diff --git a/.dprint.jsonc b/.dprint.jsonc index ffda2bf92db151..3daae9b01fc644 100644 --- a/.dprint.jsonc +++ b/.dprint.jsonc @@ -49,9 +49,9 @@ }, // NOTE: if extending this list, also update settings.template.json. "plugins": [ - "https://plugins.dprint.dev/typescript-0.88.3.wasm", - "https://plugins.dprint.dev/json-0.19.0.wasm", - "https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe" + "https://plugins.dprint.dev/typescript-0.88.8.wasm", + "https://plugins.dprint.dev/json-0.19.1.wasm", + "https://plugins.dprint.dev/prettier-0.32.1.json@19aa403ef0862ba8c41164e3dc6f84c0b7a66c2b11e42726b23dd25e6302ada9" ], "indentWidth": 4, "lineWidth": 120, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 00484e35d28bc3..2dc4bbd2ab2803 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -6,6 +6,7 @@ /types/1line-aa/ @Ry0taK /types/3box/ @shikanime /types/7zip-min/ @Tanandara +/types/a-star/ @printfn /types/a2hs.js/ @peterblazejewicz /types/abbrev/ @BendingBender /types/abs/ @AyaMorisawa @@ -84,8 +85,10 @@ /types/ag-auth/ @DanielRose /types/ag-channel/ @DanielRose @Methuselah96 /types/ag-channel/v4/ @DanielRose +/types/ag-request/ @Methuselah96 /types/ag-simple-broker/ @DanielRose @Methuselah96 /types/ag-simple-broker/v4/ @DanielRose +/types/ag-simple-broker/v5/ @DanielRose @Methuselah96 /types/agadoo/ @ArtemKlyuev /types/agent-base/ @Shinigami92 /types/agiledigital__mule-preview/ @NoxHarmonium @@ -249,6 +252,7 @@ /types/ansi-align/ @leondreamed /types/ansi-diff-stream/ @BendingBender /types/ansi-escape-sequences/ @aomarks +/types/ansi-html/ @sherlockdoyle /types/antlr4/ @mcchatman8009 @tarilabs @jgellin-sf @codex- /types/antlr4-autosuggest/ @jonfreedman /types/any-base/ @yutak23 @@ -347,10 +351,15 @@ /types/async-lock/ @afharo @rhymmor @humulus @BendingBender /types/async-polling/ @Goldsmith42 /types/async-redis/ @philipp-sapronov @dyc3 +/types/async-rerun/ @fahidarif /types/async-retry/ @albertywu @MeLlamoPablo @rafsawicki @BendingBender /types/async-stream-emitter/ @DanielRose @Methuselah96 /types/async-stream-emitter/v3/ @DanielRose +/types/async-stream-emitter/v4/ @DanielRose @Methuselah96 +/types/async-stream-emitter/v5/ @DanielRose @Methuselah96 +/types/async-stream-emitter/v6/ @DanielRose @Methuselah96 /types/async.nexttick/ @pyrho +/types/at-least-node/ @LeoDog896 /types/athenajs/ @warpdesign /types/atlaskit__layer/ @lstanden /types/atlaskit__single-select/ @lstanden @@ -410,7 +419,7 @@ /types/axios-cancel/ @TheDSCPL /types/axios-concurrency/ @powfix /types/axios-curlirize/ @stevenhankin -/types/axios-token-interceptor/ @innovation-team @mgdodge +/types/axios-token-interceptor/ @team-innovation @mgdodge /types/azdata/ @Charles-Gagnon @alanrenmsft @cheenamalhotra @kburtram @kenvanhyning /types/azure-function-log-intercept/ @peterblazejewicz /types/azure-mobile-services-client/ @dmorosinotto @@ -701,6 +710,9 @@ /types/bull-arena/ @levibostian @gtpan77 /types/bumblebee-hotword/ @sheunglaili /types/bump-regex/ @silkentrance +/types/bun/ @colinhacks @Jarred-Sumner @electroid @paperdave @robobun @dylan-conway +/types/bundle-id/ @LeoDog896 +/types/bundle-name/ @LeoDog896 /types/bunnymq/ @cyrilschumacher /types/bunyan/ @amikhalev /types/bunyan-blackhole/ @olivr70 @@ -741,6 +753,7 @@ /types/calq/ @eirikhm /types/camelcase-css/ @peterblazejewicz /types/camelcase-keys-deep/ @englund0110 +/types/camelize/ @LeoDog896 /types/camo/ @lucasmciruzzi /types/camouflage-rewrite/ @tpluscode /types/camunda-external-task-client-js/ @MacRusher @hados99 @@ -823,6 +836,7 @@ /types/chai-uuid/ @harm-less /types/chai-xml/ @jedigo /types/chalk-animation/ @BendingBender +/types/chamaeleonidae__chmln/ @chamaeleonidae /types/chance/ @cbowdon @brikou @cafesanu @colbywhite @NewDark90 @jacobez @peterblazejewicz /types/change-case-object/ @jameschao /types/change-emitter/ @iskandersierra @@ -1024,6 +1038,7 @@ /types/concat-stream/ @jmarianer /types/concatjson/ @dh-sa /types/concaveman/ @DenisCarriere +/types/concurrency-limiter/ @E0SelmY4V /types/conditional/ @rzhw /types/conductor-animate/ @TaeKimJR /types/confidence/ @jppellerin @@ -1059,6 +1074,7 @@ /types/consul/ @chrootsu @vadim-v @smoke /types/consumable-stream/ @DanielRose @Methuselah96 /types/consumable-stream/v1/ @DanielRose +/types/consumable-stream/v2/ @DanielRose @Methuselah96 /types/consumer-data-standards/ @tom-schier /types/contains-path/ @BendingBender /types/content-disposition/ @bomret @peterblazejewicz @@ -1141,6 +1157,7 @@ /types/cpu-features/ @bendingbender /types/cpx/ @alan-agius4 /types/cqrs-domain/ @blissi +/types/crack-json/ @johenning /types/craco__craco/ @fanck0605 /types/cradle/ @panuhorsmalahti /types/crawler/ @pzmarzly @@ -1148,7 +1165,7 @@ /types/crc32-stream/ @nadhifikbarw /types/create-cert/ @midgleyc /types/create-error/ @tkrotoff -/types/create-hash/ @BendingBender @gallowsmaker @maxbogus @jordansexton +/types/create-hash/ @BendingBender @gallowsmaker @maxbogus /types/create-hmac/ @BendingBender /types/create-html/ @inglec-arista /types/create-keyframe-animation/ @fengyangfifa @@ -1237,6 +1254,7 @@ /types/cytoscape-canvas/ @hellomusa /types/cytoscape-context-menus/ @hellomusa /types/cytoscape-cxtmenu/ @DieserFelix +/types/cytoscape-d3-force/ @mustafamilyas /types/cytoscape-dagre/ @DieserFelix /types/cytoscape-edgehandles/ @o-su @DieserFelix /types/cytoscape-euler/ @RogerDubbs @@ -1440,6 +1458,7 @@ /types/deep-freeze-strict/ @mhegazy /types/deepai/ @NicolasNewman /types/deezer-sdk/ @marco-eckstein +/types/default-browser-id/ @LeoDog896 /types/default-gateway/ @BendingBender @ArcaneDiver @yoursunny /types/default-user-agent/ @BendingBender /types/defaults/ @IbtihelCHNAB @@ -1473,6 +1492,7 @@ /types/destroy-on-hwm/ @BendingBender /types/detect-character-encoding/ @BendingBender /types/detect-emoji-support/ @adam-hanna +/types/detect-file/ @LeoDog896 /types/detect-hover/ @thomastilkema /types/detect-inapp/ @moelleer /types/detect-libc/ @JamieMagee @@ -1512,7 +1532,6 @@ /types/dinero.js/ @BendingBender @juandaco @peterblazejewicz /types/dingtalk-robot-sender/ @bangbang93 /types/dir-glob/ @BendingBender -/types/dir-resolve/ @andy-ms /types/dir-walker-gen/ @aynurin /types/director/ @pastelmind /types/dirname-regex/ @BendingBender @@ -1936,6 +1955,7 @@ /types/expo__status-bar-height/ @dawnmist /types/express/ @borisyankov @CMUH @puneetar @dfrankland /types/express-actuator/ @etruta @rcruzper +/types/express-as-promise/ @tpluscode @ludovicm67 /types/express-async-wrap/ @remyoudemans /types/express-boom/ @Nox-404 /types/express-brute/ @cyrilschumacher @@ -2017,6 +2037,7 @@ /types/facebook-instant-games/ @menushka @oyvindjam @doterax /types/facebook-js-sdk/ @amritk @mahmoudzohdi @fluidsonic @bengry /types/facebook-locales/ @CvX +/types/facebook-nodejs-business-sdk/ @aisel01 /types/facebook-pixel/ @noctishsu @VictorHom @ninpeng /types/facepaint/ @DogPawHat @antonsamper @timswalling /types/factory-girl/ @stackbuilders @sestrella @elcuy @OlivierKamers @DMcNamara @@ -2142,6 +2163,7 @@ /types/findandreplacedomtext/ @bartholomej /types/findup-sync/ @Bartvds @ngbrown @BendingBender @kotarella1110 /types/fined/ @BendingBender +/types/fingerpose/ @EthanL06 /types/firebase-token-generator/ @dotdotcommadot /types/firebird/ @karak /types/firefox/ @vvakame @@ -2157,7 +2179,7 @@ /types/fitvids/ @peterblazejewicz /types/fixed-data-table/ @pepaar @stephenjelfs /types/flagged-respawn/ @BendingBender -/types/flashpoint-launcher/ @colin969 @XXLuigiMario +/types/flashpoint-launcher/ @colin969 /types/flat/ @chrootsu @thewizarodofoz /types/flat-cache/ @kevinpollet /types/flat-tree/ @martinheidegger @@ -2784,6 +2806,7 @@ /types/get-sass-vars/ @manuth /types/get-size/ @leondreamed /types/get-ssl-certificate/ @peterblazejewicz +/types/get-symbol-description/ @LeoDog896 /types/get-value/ @DanielRosenwasser /types/getenv/ @impankratov /types/getos/ @BendingBender @@ -3461,6 +3484,8 @@ /types/is-empty/ @termosa /types/is-empty-object/ @Richienb /types/is-even/ @shawnkoon +/types/is-expression/ @LeoDog896 +/types/is-extglob/ @LeoDog896 /types/is-file-esm/ @leonzalion /types/is-finite/ @mhegazy /types/is-firefox/ @e9x @@ -3479,8 +3504,9 @@ /types/is-integer/ @djcsdy /types/is-iterable/ @BendingBender /types/is-lambda/ @BendingBender -/types/is-map/ @Ankan002 +/types/is-map/ @Ankan002 @LeoDog896 /types/is-negated-glob/ @ajafff +/types/is-negative-zero/ @LeoDog896 /types/is-number/ @jedster1111 /types/is-number-like/ @ffflorian /types/is-object/ @wbhob @ljharb @phuctm97 @@ -3493,6 +3519,7 @@ /types/is-running/ @danwbyrne /types/is-secret/ @wrumsby @peterblazejewicz /types/is-semver/ @BendingBender +/types/is-set/ @LeoDog896 /types/is-ssh/ @ffflorian /types/is-string/ @aaronleopold /types/is-symbol/ @BendingBender @@ -3508,6 +3535,7 @@ /types/is-valid-glob/ @BendingBender /types/is-valid-path/ @Goldsmith42 /types/is-valid-zipcode/ @dmmulroy +/types/is-weakref/ @LeoDog896 /types/is-windows/ @mizunashi-mana @ExE-Boss /types/isaac/ @mo /types/isarray/ @claasahl @@ -3932,12 +3960,13 @@ /types/jwt-then/ @phenomax /types/jxon/ @maxbogus /types/k-bucket/ @tomonari-t -/types/k6/ @MStoykov @codebien @oleiade @olegbespalov @ppcano @nicolevanderhoeven @ankur22 @inancgumus @ka3de +/types/k6/ @MStoykov @codebien @oleiade @olegbespalov @ppcano @nicolevanderhoeven @ankur22 @inancgumus @ka3de @joanlopez /types/kafka-node-avro/ @alfamegaxq /types/kahoot.js-updated/ @MysteryBlokHed /types/kakao-js-sdk/ @wooogi123 /types/kakao-pixel/ @hahnlee /types/kakaomaps/ @MinByeongDon @positiveko @yongdamsh +/types/kaluma/ @jt000 /types/kamailio-kemi/ @bonan /types/kana2ipa/ @na2na-p /types/kap-plugin/ @connor4312 @@ -4645,7 +4674,7 @@ /types/lunr/ @seantanly @hokiegeek /types/lunr/v0/ @sebastian-lenz /types/lusca/ @crutchcorn @builtinnya @peterblazejewicz -/types/luxon/ @FourwingsY @jsiebern @mastermatt @pietrovismara @dawnmist @ycmjason @Aitor1995 @peterblazejewicz @carsonf @hugofpsilva @martin-badin +/types/luxon/ @carsonf @peterblazejewicz /types/lwip/ @AyaMorisawa /types/lynx/ @leftshift /types/lyric-parser/ @wkl007 @@ -4913,7 +4942,7 @@ /types/mitm/ @alejo90 /types/mitsobox/ @MrClemds /types/mixpanel/ @hjellek @Manduro @noamgolani -/types/mixpanel-browser/ @karlos1337 @RicardoRodrigues @randak @dwilt @justinhelmer +/types/mixpanel-browser/ @karlos1337 @RicardoRodrigues @randak @dwilt @justinhelmer @screendriver /types/mixto/ @vvakame /types/mjml/ @aahoughton @marpstar @IanEdington /types/mjml-core/ @IanEdington @ryanburr @@ -5096,7 +5125,7 @@ /types/natural-sort/ @a-morales @fluggo /types/naughty-words/ @bendingbender /types/naver-whale/ @tbvjaos510 -/types/navermaps/ @ckboyjiy @DongKyuuuu @fclemonschool @suhwancha @hig4342 @kkokkojeong +/types/navermaps/ @ckboyjiy @DongKyuuuu @fclemonschool @suhwancha @hig4342 @kkokkojeong @gseok /types/navigator-languages-parser/ @mlc /types/nbayes/ @BendingBender /types/ncom/ @DanielRose @@ -5638,18 +5667,20 @@ /types/passport-oauth2-refresh/ @daphnesmit @btorresgil /types/passport-openidconnect/ @liorm @seng-siong /types/passport-orcid/ @thewilkybarkid +/types/passport-qq/ @bangbang93 /types/passport-remember-me/ @gristow /types/passport-remember-me-extended/ @AylaJK /types/passport-saml/ @cjbarth @dassennato @ksamborski @josecolella /types/passport-saml-metadata/ @carboneater /types/passport-spotify/ @rishikodali -/types/passport-steam/ @kzay +/types/passport-steam/ @nordowl /types/passport-strategy/ @liorm /types/passport-twitch-latest/ @claabs /types/passport-twitter/ @staticfunction /types/passport-twitter-token/ @podplatnikm /types/passport-unique-token/ @SomaticIT /types/passport-vkontakte/ @soulthreads +/types/passport-weibo/ @bangbang93 /types/passport-windowsauth/ @forivall /types/passport.socketio/ @Scotsoo /types/passthrough-encoding/ @BendingBender @@ -6090,7 +6121,6 @@ /types/random-uuid-v4/ @Ankan002 /types/random-web-token/ @schrudolf /types/random-word/ @SystemDisc -/types/random-words/ @peterblazejewicz /types/randomatic/ @execfera @peterblazejewicz /types/randombytes/ @BendingBender /types/randomcolor/ @feitzi @@ -6126,13 +6156,10 @@ /types/rdf-dataset-ext/ @thewilkybarkid /types/rdf-dataset-indexed/ @thewilkybarkid /types/rdf-ext/ @tpluscode @jeswr -/types/rdf-loader-code/ @tpluscode -/types/rdf-loaders-registry/ @tpluscode /types/rdf-store-fs/ @tpluscode /types/rdf-transform-triple-to-quad/ @tpluscode /types/rdf-utils-dataset/ @thewilkybarkid /types/rdf-utils-fs/ @tpluscode -/types/rdf-validate-datatype/ @tpluscode /types/rdf-validate-shacl/ @tpluscode @cristianvasquez /types/rdfjs__data-model/ @jeswr @rubensworks @tpluscode /types/rdfjs__dataset/ @tpluscode @jeswr @@ -6320,7 +6347,7 @@ /types/react-hammerjs/ @jsonunger @cecchi /types/react-hammerjs/v0/ @jsonunger /types/react-headroom/ @zerocho @rafaelderolez -/types/react-helmet/ @evanbb @isman-usoh @yuit @ykzts @wKovacs64 @Andriy2 @peterblazejewicz +/types/react-helmet/ @evanbb @isman-usoh @yuit @ykzts @Andriy2 @peterblazejewicz /types/react-helmet/v4/ @evanbb @isman-usoh /types/react-helmet/v5/ @evanbb @isman-usoh @yuit @ykzts @wKovacs64 /types/react-helmet-with-visor/ @kokushkin @@ -6420,16 +6447,6 @@ /types/react-motion-loop/ @j-em /types/react-motion-slider/ @asvetliakov /types/react-motion-ui-pack/ @jsonunger -/types/react-native/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 @phvillegas @eps1lon @ZihanChen-MSFT @kelset @MateWW @lunaleaps @saadnajmi -/types/react-native/v0.63/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @TheSavior @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ca057 @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 -/types/react-native/v0.64/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @TheSavior @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ca057 @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 -/types/react-native/v0.65/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @TheSavior @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ca057 @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 @phvillegas @bdlindsay @eps1lon -/types/react-native/v0.66/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 @phvillegas @eps1lon @ZihanChen-MSFT -/types/react-native/v0.67/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ds300 @natsathorn @connectdotz @TheWirv @alexeymolchan @alexbrazier @kuasha420 @phvillegas @eps1lon @ZihanChen-MSFT -/types/react-native/v0.68/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 @phvillegas @eps1lon @ZihanChen-MSFT @saadnajmi -/types/react-native/v0.69/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 @phvillegas @eps1lon @ZihanChen-MSFT @kelset @MateWW @saadnajmi -/types/react-native/v0.70/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 @phvillegas @eps1lon @ZihanChen-MSFT @kelset @MateWW @lunaleaps @saadnajmi -/types/react-native/v0.71/ @alloy @huhuanming @iRoachie @timwangdev @kamal @alexdunne @swissmanu @bm-software @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @tykus160 @jakebloom @ceyhun @mcmar @theohdv @romain-faust @bebebebebe @Naturalclar @chinesedfan @vtolochk @SychevSP @sasurau4 @256hz @doumart @drmas @jeremybarbet @ds300 @natsathorn @connectdotz @alexeymolchan @alexbrazier @kuasha420 @phvillegas @eps1lon @ZihanChen-MSFT @kelset @MateWW @lunaleaps @saadnajmi /types/react-native-actionsheet/ @ian-rudge /types/react-native-ad-manager/ @zucchinho /types/react-native-android-keyboard-adjust/ @stelmakhivan @@ -6767,6 +6784,7 @@ /types/read-package-tree/ @mgroenhoff /types/read-time-estimate/ @rubek-joshi /types/readable-stream/ @TeamworkGuy2 @markdreyer +/types/readable-to-readable/ @tpluscode @ludovicm67 /types/readdir-glob/ @dolanmiu /types/readdir-stream/ @Bartvds /types/readline-sync/ @jonestristand @@ -6851,6 +6869,7 @@ /types/redux-react-session/ @joaomlneto /types/redux-recycle/ @LKay /types/redux-saga-routines/ @alexey-pelykh +/types/redux-saga-test-engine/ @romellem /types/redux-saga-tester/ @BenLorantfy @lawsumisu @BreakBB /types/redux-seamless-immutable/ @SoaresMG /types/redux-sentry-middleware/ @dolezel @@ -6886,6 +6905,7 @@ /types/registry-auth-token/ @mauricedb @LiangZugeng @peterblazejewicz /types/regression/ @MattiasMartens /types/relateurl/ @tkrotoff +/types/relationship.js/ @whinc /types/relaxed-json/ @18steps /types/relay-compiler/ @n1ru4l @alloy @maraisr @levibuzolic /types/relay-runtime/ @alloy @maraisr @morrys @levibuzolic @@ -6933,6 +6953,7 @@ /types/resize-observer-browser/ @chivesrs @wffurr @AlexanderShushunov /types/resolve/ @marionebl @ajafff @ljharb /types/resolve-bin/ @cameronhunter +/types/resolve-dir/ @mrozio13pl /types/resolve-options/ @delprzemo /types/resolve-path/ @fer22f /types/resolve-protobuf-schema/ @claasahl @@ -6942,7 +6963,7 @@ /types/rest/ @Nemo157 /types/restangular/ @borisyankov /types/restful.js/ @tkqubo -/types/restify/ @blittle @leanazulyoro @mgebundy @alcmoraes @quinnlangille @GaikwadPratik +/types/restify/ @blittle @leanazulyoro @mgebundy @quinnlangille @GaikwadPratik /types/restify/v4/ @blittle /types/restify/v5/ @blittle @leanazulyoro /types/restify-cookies/ @weekens @@ -7076,6 +7097,7 @@ /types/s3-download-stream/ @everettcaleb /types/s3-streams/ @azatoth /types/s3-upload-stream/ @geoffreak +/types/s3-zip/ @janickvwcotiss /types/s3rver/ @DavidBR-SW @feuGeneA @trygveaa /types/sade/ @Epimodev @peterblazejewicz /types/safari-extension/ @luukd @@ -7199,6 +7221,7 @@ /types/segment-analytics/ @fongandrew @MiroslavPetrik /types/segment-api/ @padcom /types/segment__isodate/ @BendingBender +/types/select/ @LeoDog896 /types/select2/ @borisyankov @denisname /types/select2/v3/ @borisyankov /types/selectables/ @renjfk @@ -7324,7 +7347,7 @@ /types/shimmer/ @kjin /types/shipit-cli/ @cyrilschumacher @fsubal /types/shipit-utils/ @cyrilschumacher -/types/shippo/ @saiichihashimoto @jlismore @clalexander +/types/shippo/ @jlismore @clalexander /types/shopify-buy/ @openminder @straiforos @kilinkis @chrisworman-pela @MaciekBaron @martin-badin /types/short-css-vars/ @peterblazejewicz /types/short-hash/ @ekschro @@ -7466,10 +7489,15 @@ /types/socketcluster-client/ @DanielRose @Methuselah96 /types/socketcluster-client/v13/ @DanielRose /types/socketcluster-client/v15/ @DanielRose +/types/socketcluster-client/v16/ @DanielRose @Methuselah96 +/types/socketcluster-client/v17/ @DanielRose @Methuselah96 +/types/socketcluster-client/v18/ @DanielRose @Methuselah96 /types/socketcluster-server/ @DanielRose @Methuselah96 /types/socketcluster-server/v14/ @DanielRose /types/socketcluster-server/v15/ @DanielRose /types/socketcluster-server/v16/ @DanielRose @Methuselah96 +/types/socketcluster-server/v17/ @DanielRose @Methuselah96 +/types/socketcluster-server/v18/ @DanielRose @Methuselah96 /types/socketio-jwt-auth/ @codeanimal /types/socketio-wildcard/ @BendingBender /types/socketty/ @Nax @@ -7622,6 +7650,8 @@ /types/stream-csv-as-json/ @uhop /types/stream-demux/ @DanielRose @Methuselah96 /types/stream-demux/v7/ @DanielRose +/types/stream-demux/v8/ @DanielRose @Methuselah96 +/types/stream-demux/v9/ @DanielRose @Methuselah96 /types/stream-each/ @djcsdy /types/stream-fork/ @mjwwit /types/stream-json/ @uhop @@ -7631,6 +7661,7 @@ /types/stream-throttle/ @danwbyrne /types/stream-to-array/ @Bartvds @BendingBender /types/stream-to-array/v0/ @Bartvds +/types/stream-to-blob/ @NetanelDavid /types/stream-to-promise/ @Alorel /types/stream-write/ @ChocolateLoverRaj /types/streamifier/ @idan-at @@ -7667,7 +7698,6 @@ /types/strip-bom-string/ @pwall2222 /types/strip-color/ @BendingBender /types/strip-comments/ @peterblazejewicz -/types/strip-final-newline/ @peterblazejewicz /types/stripe-checkout/ @cgwrench /types/stripe-v2/ @ejsmith @amritk @adamcmiel @jleider @galuszkak /types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak @slangeder @marlosin @ttmarek @kimehrenpohl @KrishnaPravin @hirochachacha @paustint @ksol @matsuby @kaznovac @hartleyrobertson @qqilihq @@ -7701,7 +7731,6 @@ /types/styletron-engine-monolithic/ @tbjgolden /types/styletron-react/ @erictaylor /types/styletron-standard/ @erictaylor -/types/stylis/ @heyheyhello /types/stylus/ @SomaticIT @STRd6 /types/subleveldown/ @carsonfarmer @demensky /types/subset-font/ @omacranger @@ -7715,7 +7744,7 @@ /types/suncalc/ @horiuchi /types/sunrise-sunset-js/ @hmajid2301 /types/super-number/ @ffflorian -/types/superagent/ @NicoZelaya @mxl @paplorinc @shreyjain1994 @zopf @beeequeue @lukaselmer @theQuazz @carnesen @ghostganz @LuckyWindsck +/types/superagent/ @NicoZelaya @mxl @paplorinc @shreyjain1994 @zopf @beeequeue @lukaselmer @theQuazz @carnesen @ghostganz @LuckyWindsck @DavidTanner /types/superagent-bunyan/ @bricka /types/superagent-no-cache/ @mxl /types/superagent-prefix/ @mxl @@ -7723,7 +7752,7 @@ /types/superagent-retry-delay/ @me /types/supercluster/ @DenisCarriere @Manc /types/superfine/ @jameswilddev -/types/supertest/ @varju @pietu +/types/supertest/ @varju @pietu @DavidTanner /types/supertest-as-promised/ @tkrotoff /types/supports-color/ @mgroenhoff @mtraynham @peterblazejewicz /types/surma__rollup-plugin-off-main-thread/ @NotWoods @@ -7894,6 +7923,7 @@ /types/textversionjs/ @aaronosher /types/texzilla/ @m93a /types/tgfancy/ @Dabolus +/types/tgwf__co2/ @fershad @mrchrisadams /types/then-eos/ @seangenabe /types/theo/ @petekp @laitine /types/thepiratebay/ @jsorrell @@ -7968,6 +7998,7 @@ /types/to-ico/ @remcohaszing /types/to-json-schema/ @forivall /types/to-markdown/ @SuperPaintman +/types/to-object-path/ @LeoDog896 /types/to-px/ @vindhya /types/to-regex/ @RauliL @xapdkop /types/to-regex-range/ @Richienb @@ -8014,9 +8045,8 @@ /types/transform-pouch/ @lucasrainett /types/transit-js/ @tgriesser /types/trashable/ @jlismore -/types/traverse/ @newclear +/types/traverse/ @newclear @joshmock /types/traverson/ @marcinporebski @jelovac -/types/travis-fold/ @andy-ms /types/trayballoon/ @korve /types/treeify/ @mike-north /types/treeverse/ @HugoMendes98 @@ -8055,6 +8085,7 @@ /types/turbolinks/ @evankim390 /types/turbostatus/ @ffflorian /types/turndown/ @sergey-zhidkov +/types/tusk-mastodon/ @fishcharlie /types/tuya-panel-kit/ @youngjuning @ShinyLeee /types/tv4/ @Bartvds @psnider /types/tween-functions/ @hozblok @@ -8143,6 +8174,7 @@ /types/uniqid/ @idchlife @onomatopoetry /types/unique-hash-stream/ @BendingBender /types/unique-push-id/ @namick +/types/unique-slug/ @LeoDog896 /types/unist/ @bizen241 @lujun2 @hrajchert @wooorm @rokt33r @GuiltyDolphin @JounQin @remcohaszing /types/unist/v2/ @bizen241 @lujun2 @hrajchert @wooorm @rokt33r @GuiltyDolphin @JounQin /types/unity-webapi/ @jmvrbanac @@ -8154,6 +8186,7 @@ /types/unordered-array-remove/ @BendingBender /types/unorm/ @chbrown /types/unpaginated/ @reediculous456 +/types/unquote/ @shift-yuta-katayama /types/untar.js/ @andrewbranch /types/until-promise/ @Miladiir /types/unused-files-webpack-plugin/ @maxbogus @@ -8168,7 +8201,6 @@ /types/upnp-mediarenderer-client/ @alexkn /types/uppercamelcase/ @plantain-00 /types/upyun/ @groupguanfang -/types/urban-dictionary/ @Nigecat @peterblazejewicz /types/urbanairship-cordova/ @Justin-Credible /types/uri-template-lite/ @XVincentX /types/uri-templates/ @Bartvds @barnski @@ -8331,6 +8363,7 @@ /types/voronoi-diagram/ @michaelneu /types/vorpal/ @danwbyrne @sweethuman /types/vortex-web-client/ @Pro +/types/vosk/ @ifeanyiecheruo /types/voucher-code-generator/ @JWebCoder /types/voximplant-websdk/ @aylarov /types/vscode/ @microsoft @@ -8526,6 +8559,7 @@ /types/wildstring/ @inglec-arista /types/win-ca/ @BendingBender /types/win-version-info/ @Goldsmith42 +/types/winattr/ @anmiles /types/winbox/ @peterblazejewicz /types/window-or-global/ @vvakame @JasonHK @ExE-Boss /types/window-size/ @juergenie @@ -8602,6 +8636,8 @@ /types/wrench/ @soywiz /types/writable-consumable-stream/ @DanielRose @Methuselah96 /types/writable-consumable-stream/v1/ @DanielRose +/types/writable-consumable-stream/v2/ @DanielRose @Methuselah96 +/types/writable-consumable-stream/v3/ @DanielRose @Methuselah96 /types/write/ @yoursunny /types/write-file-atomic/ @BendingBender @peterblazejewicz /types/write-file-atomically/ @Aankhen diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1e1e1361660126..d0e4c38d0e492e 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -14,12 +14,11 @@ If adding a new definition: - [ ] If this is for an npm package, match the name. If not, do not conflict with the name of an npm package. - [ ] Create it with `dts-gen --dt`, not by basing it on an existing project. - [ ] Represents shape of module/library [correctly](https://www.typescriptlang.org/docs/handbook/declaration-files/library-structures.html) -- [ ] `tslint.json` [should contain](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#linter-tslintjson) `{ "extends": "@definitelytyped/dtslint/dt.json" }`, and no additional rules. - [ ] `tsconfig.json` [should have](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#tsconfigjson) `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`. If changing an existing definition: - [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <> -- [ ] If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header. +- [ ] If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the `package.json`. If removing a declaration: - [ ] If a package was never on Definitely Typed, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 74c9fa4b92bedd..171ffb585d541c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,14 +10,14 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: # Need this to be able to inquire about origin/master filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/ fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none. - - uses: actions/setup-node@v4 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 with: - node-version: '16' + node-version: '20' # forbid symlinks - name: 'Pre-run validation' @@ -27,7 +27,7 @@ jobs: printf "Aborting: symlinks found:\n%s" "$symlinks"; exit 1 fi - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Get pnpm cache info id: pnpm-cache @@ -35,7 +35,7 @@ jobs: echo "store=$(pnpm store path)" >> $GITHUB_OUTPUT - name: Restore pnpm cache - uses: actions/cache/restore@v3 + uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 with: path: ${{ steps.pnpm-cache.outputs.store }} key: ${{ runner.os }}-pnpm-store-cache- @@ -67,12 +67,12 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 with: - node-version: '16' + node-version: '20' - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 with: run_install: | - args: [--filter, ., --filter, '{./scripts}...'] diff --git a/.github/workflows/UpdateCodeowners.yml b/.github/workflows/UpdateCodeowners.yml index dbaf365c46c0fb..68a32ef8b7244a 100644 --- a/.github/workflows/UpdateCodeowners.yml +++ b/.github/workflows/UpdateCodeowners.yml @@ -21,12 +21,14 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 - - uses: actions/setup-node@v4 - - uses: pnpm/action-setup@v2 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 + with: + node-version: '20' + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 with: run_install: | - args: [--filter, ., --filter, '{./scripts}...'] @@ -36,7 +38,7 @@ jobs: - run: pnpm run update-codeowners - - uses: stefanzweifel/git-auto-commit-action@v5.0.0 + - uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 with: commit_author: 'TypeScript Bot ' commit_message: '🤖 Update CODEOWNERS' diff --git a/.github/workflows/format-and-commit.yml b/.github/workflows/format-and-commit.yml index 2fc1dca9c230e2..ee7ab72a4a47e9 100644 --- a/.github/workflows/format-and-commit.yml +++ b/.github/workflows/format-and-commit.yml @@ -14,13 +14,15 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: # Use the bot token so that CI triggers on pushes; we want to know if formatting broke something. token: ${{ secrets.GH_DT_MERGEBOT_TOKEN }} - - uses: actions/setup-node@v4 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 + with: + node-version: '20' - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 with: run_install: | - args: [--filter, ., --filter, '{./scripts}...'] @@ -29,7 +31,7 @@ jobs: id: date run: echo "date=$(/bin/date -u "+%Y-%m-%d")" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 with: # dprint caches info about the files in the repo to skip formatting them. # However, since package.json and .dprint.jsonc don't change very often, @@ -45,7 +47,7 @@ jobs: - run: pnpm dprint fmt - - uses: stefanzweifel/git-auto-commit-action@v5.0.0 + - uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 with: commit_author: 'TypeScript Bot ' commit_message: '🤖 dprint fmt' diff --git a/.github/workflows/ghostbuster.yml b/.github/workflows/ghostbuster.yml index 8cff77f30c5526..92c04764a29153 100644 --- a/.github/workflows/ghostbuster.yml +++ b/.github/workflows/ghostbuster.yml @@ -23,11 +23,13 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 + with: + node-version: '20' - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 with: run_install: | - args: [--filter, ., --filter, '{./scripts}...'] @@ -49,7 +51,7 @@ jobs: fi - if: ${{ inputs.skipPR != 'true' }} - uses: peter-evans/create-pull-request@v5.0.2 + uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: 'Remove contributors with deleted accounts #no-publishing-comment' diff --git a/.github/workflows/lint-md.yml b/.github/workflows/lint-md.yml index b9dfedb38d0f65..ff47865c9abc69 100644 --- a/.github/workflows/lint-md.yml +++ b/.github/workflows/lint-md.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'DefinitelyTyped/DefinitelyTyped' steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 with: run_install: | - args: [--filter, ., --filter, '{./scripts}...'] diff --git a/.github/workflows/pnpm-cache.yml b/.github/workflows/pnpm-cache.yml index 03da4df2284cbe..d5d8f9b19a3812 100644 --- a/.github/workflows/pnpm-cache.yml +++ b/.github/workflows/pnpm-cache.yml @@ -10,9 +10,11 @@ jobs: create-cache: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - uses: pnpm/action-setup@v2 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 + with: + node-version: '20' + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 - name: Get pnpm cache info id: pnpm-cache @@ -24,7 +26,7 @@ jobs: run: pnpm install - name: Save pnpm cache - uses: actions/cache/save@v3 + uses: actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 with: path: ${{ steps.pnpm-cache.outputs.store }} key: ${{ runner.os }}-pnpm-store-cache-${{ steps.pnpm-cache.outputs.date }} diff --git a/.github/workflows/support-window.yml b/.github/workflows/support-window.yml index 290b011e04bc05..21d4db723a02da 100644 --- a/.github/workflows/support-window.yml +++ b/.github/workflows/support-window.yml @@ -23,10 +23,12 @@ jobs: if: github.repository == 'DefinitelyTyped/DefinitelyTyped' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: actions/setup-node@v4 - - uses: pnpm/action-setup@v2 + - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 + with: + node-version: '20' + - uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 with: run_install: | - args: [--filter, ., --filter, '{./scripts}...'] @@ -47,7 +49,7 @@ jobs: - name: Make SVG diagram run: node --experimental-json-modules scripts/support-window > docs/support-window.svg - - uses: stefanzweifel/git-auto-commit-action@v5.0.0 + - uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 with: commit_author: 'TypeScript Bot ' commit_message: '🤖 Update support window' diff --git a/README.es.md b/README.es.md index 8a17e6ffd15c1d..c689e9c36f370b 100644 --- a/README.es.md +++ b/README.es.md @@ -138,7 +138,6 @@ Tu paquete debería tener esta estructura: | `index.d.ts` | Este contiene los typings del paquete. | | [`-tests.ts`](#my-package-teststs) | Este contiene una muestra del código con el que se realiza la prueba de escritura. Este código *no* es ejecutable, pero sí es type-checked. | | [`tsconfig.json`](#tsconfigjson) | Este permite ejecutar `tsc` dentro del paquete. | -| [`tslint.json`](#linter-tslintjson) | Permite linting. | Generalas ejecutando `npm install -g dts-gen` y `dts-gen --dt --name --template module`. Ve todas las opciones en [dts-gen](https://github.com/Microsoft/dts-gen). @@ -222,7 +221,7 @@ f("one"); Para más detalles, vea el [dtslint](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests) readme. -#### Linter: `tslint.json` +#### Linter: `.eslintrc.json` The linter configuration file, `tslint.json` should contain `{ "extends": "@definitelytyped/dtslint/dt.json" }`, and no additional rules. diff --git a/README.fr.md b/README.fr.md index e496637ee23066..b726e34c7d8e08 100644 --- a/README.fr.md +++ b/README.fr.md @@ -173,7 +173,6 @@ Votre paquet doit avoir cette structure : | `index.d.ts` | Il contient les typages du paquet. | | [`-tests.ts`](#mon-paquet-teststs) | Il contient un exemple de code qui teste les typages. Ce code *ne* s'exécute pas, mais il est vérifié. | | [`tsconfig.json`](#tsconfigjson) | Cela vous permet d'exécuter `tsc` à l'intérieur du paquet. | -| [`tslint.json`](#linter-tslintjson) | Activer le linting | | [`.eslintrc.json`](#linter-eslintrcjson) | (Rarement) Nécessaire uniquement pour désactiver les règles de lint écrites pour eslint. | Vous pouvez les générer en lançant `npx dts-gen --dt --name --template module` si vous avez npm ≥ 5.2.0, `npm install -g dts-gen` et `dts-gen --dt --name --template module` dans le cas contraire. @@ -277,17 +276,9 @@ f("one"); Pour plus de détails, voir le readme de [dtslint](https://github.com/Microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests). -#### Linter: `tslint.json` - -Le fichier de configuration du linter, `tslint.json` doit contenir `{ "extends" : "@definitelytyped/dtslint/dt.json" }`, et aucune règle supplémentaire. - -Si, pour une raison quelconque, une règle doit être désactivée, [désactivez-la pour cette ligne spécifique](https://palantir.github.io/tslint/usage/rule-flags/#comment-flags-in-source-code:~:text=%2F%2F%20tslint%3Adisable%2Dnext%2Dline%3Arule1%20rule2%20rule3...%20%2D%20Désactive%20les%20règles%20listées%20pour%20la%20prochaine%20ligne) en utilisant `// tslint:disable-next-line:[nomRègle]` - pas pour tout le paquet, afin que la désactivation puisse être examinée. (Il y a quelques anciennes configurations de lint qui ont des contenus additionnels, mais cela ne devrait pas se produire dans un nouveau travail). - ##### Linter: `.eslintrc.json` -Definitely Typed est en train de passer à eslint pour le linting. -Contrairement à tslint, vous n'avez pas besoin d'un fichier de configuration pour activer le linting. -Comme pour tslint, vous devez désactiver des règles spécifiques uniquement sur des lignes spécifiques : +Vous devez désactiver des règles spécifiques uniquement sur des lignes spécifiques : ```ts diff --git a/README.it.md b/README.it.md index 845d931fa49be2..5510f32d2247ad 100644 --- a/README.it.md +++ b/README.it.md @@ -169,7 +169,6 @@ Il tuo package dovrebbe avere questa struttura: | `index.d.ts` | Contiene le dichiarazioni dei tipi del package. | | [`-tests.ts`](#mio-package-teststs) | Contiene codice di esempio con test delle dichiarazioni dei tipi. Se il codice *non* funziona anche se viene traspilato da tsc senza errori. | [`tsconfig.json`](#tsconfigjson) | Ti permette di eseguire `tsc` all'interno del package. | -| [`tslint.json`](#linter-tslintjson) | Abilita il linting. | Generali eseguento `npx dts-gen --dt --name --template module` se hai npm ≥ 5.2.0, altrimenti `npm install -g dts-gen` and `dts-gen --dt --name --template module`. Leggi tutte le opzioni su [dts-gen](https://github.com/Microsoft/dts-gen). @@ -266,17 +265,9 @@ f("one"); Per maggiori dettagli, leggi il readme di [dtslint](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests). -#### Linter: `tslint.json` - -Il file di configurazione del linter, `tslint.json`, dovrebbe contenere `{ "extends": "@definitelytyped/dtslint/dt.json" }` e nessun'altra regola. - -Se per qualche ragione qualche regola necessita di essere disabilitata, [disabilitala solo per la riga di codice in cui dovrebbe esserlo](https://palantir.github.io/tslint/usage/rule-flags/#comment-flags-in-source-code:~:text=%2F%2F%20tslint%3Adisable%2Dnext%2Dline%3Arule1%20rule2%20rule3...%20%2D%20Disables%20the%20listed%20rules%20for%20the%20next%20line) usando `// tslint:disable-next-line:[ruleName]` e non disabilitandola per tutto il package, in modo tale che tu possa verificarne l'effetto. (CI sono alcune configurazioni lint legacy che hanno del contenuto aggiuntivo tuttavia non dovrebbe più accadere nei lavori futuri). - ##### Linter: `.eslintrc.json` -"Definitely Typed" sta migrando ad eslint per il linting. -Al contrario di tslint qui non è necessario un file di configurazione per il linting. -Proprio come tslint dovresti disabilitare le regole solo per determinate linee: +Dovresti disabilitare le regole solo per determinate linee: ```ts // eslint-disable-next-line no-const-enum diff --git a/README.ja.md b/README.ja.md index 09df009b267acf..3e37650373c7ce 100644 --- a/README.ja.md +++ b/README.ja.md @@ -168,7 +168,6 @@ npm 上にないパッケージの型定義を追加したい場合は、その | `index.d.ts` | 型定義が含まれる。 | | [`<パッケージ名>-tests.ts`](#パッケージ名-teststs) | 型定義をテストするサンプルコードが含まれる。このコードは実行は**されません**が、型チェックはされます。 | | [`tsconfig.json`](#tsconfigjson) | パッケージ内で `tsc` を実行するのに必要。 | -| [`tslint.json`](#linter-tslintjson) | Lint を有効にする。 | これらのファイルを生成するには、 npm 5.2.0 以上では `npx dts-gen --dt --name <パッケージ名> --template module` 、それより古い環境では `npm install -g dts-gen` と `dts-gen --dt --name <パッケージ名> --template module` を実行してください。 dts-gen の全オプションは[こちら](https://github.com/Microsoft/dts-gen)で確認できます。 @@ -270,17 +269,9 @@ f("one"); 詳しくは、 [dtslint](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests) の README を参照してください。 -#### Linter: `tslint.json` - -リンターの設定ファイルである `tslint.json` は `{ "extends": "@definitelytyped/dtslint/dt.json" }` を含むべきであり、追加のルールは含まれていてはいけません。 - -何らかの理由で特定のルールを無効にする必要がある場合は、[その特定の行に対して無効にしてください](https://palantir.github.io/tslint/usage/rule-flags/#comment-flags-in-source-code:~:text=%2F%2F%20tslint%3Adisable%2Dnext%2Dline%3Arule1%20rule2%20rule3...%20%2D%20Disables%20the%20listed%20rules%20for%20the%20next%20line)。ルール全体を無効にしないでください。無効にすることが確認可能であるようにするためです。(いくつかの既存のリント設定には追加の内容が含まれていることがあるが、新しい作業ではこれらは発生しないべきです。) - ##### Linter: `.eslintrc.json` -Definitely Typed はリントに eslint を使用するよう切り替えています。 -tslint とは異なり、リンティングを有効にするための設定ファイルは不要です。 -tslint と同様に、特定のルールは特定の行に対してのみ無効にするべきです: +特定のルールは特定の行に対してのみ無効にするべきです: ```ts // eslint-disable-next-line no-const-enum diff --git a/README.ko.md b/README.ko.md index ce0196d09fef58..9699b2991070b8 100644 --- a/README.ko.md +++ b/README.ko.md @@ -156,7 +156,6 @@ npm 에 올라가 있지 않은 패키지를 위한 자료형(Typing) 패키지 | `index.d.ts` | 패키지를 위한 자료형(Typing)을 포함하는 파일입니다. | | [`-tests.ts`](#my-package-teststs) | 자료형(Typing)의 테스트를 위한 파일입니다. 이 파일의 코드는 실행되지는 않지만, 자료형 검사(Type checking)를 통과해야 합니다. | | [`tsconfig.json`](#tsconfigjson) | `tsc` 명령을 돌릴 수 있게 해주는 파일입니다. | -| [`tslint.json`](#linter-tslintjson) | 린터(Linter)를 사용할 수 있게 해주는 파일입니다. | 이 파일들은, npm ≥ 5.2.0 에서는 `npx dts-gen --dt --name --template module` 명령으로, 그 이하 경우에는 `npm install -g dts-gen` 와 `dts-gen --dt --name --template module` 명령으로 만들 수 있습니다. @@ -243,11 +242,18 @@ f("one"); [dtslint](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests) 저장소의 README 파일에서 더 자세한 내용을 확인하실 수 있습니다. -#### Linter: `tslint.json` +##### Linter: `.eslintrc.json` -The linter configuration file, `tslint.json` should contain `{ "extends": "@definitelytyped/dtslint/dt.json" }`, and no additional rules. +If for some reason a lint rule needs to be disabled, disable it for a specific line: -If for some reason some rule needs to be disabled, [disable it for that specific line](https://palantir.github.io/tslint/usage/rule-flags/#comment-flags-in-source-code:~:text=%2F%2F%20tslint%3Adisable%2Dnext%2Dline%3Arule1%20rule2%20rule3...%20%2D%20Disables%20the%20listed%20rules%20for%20the%20next%20line) using `// tslint:disable-next-line:[ruleName]` — not for the whole package, so that disabling can be reviewed. (There are some legacy lint configs that have additional contents, but these should not happen in new work.) +```ts +// eslint-disable-next-line no-const-enum +const enum Const { One } +const enum Enum { Two } // eslint-disable-line no-const-enum +``` + +You can still disable rules with an .eslintrc.json, but should not in new packages. +Disabling rules for the entire package makes it harder to review. #### `tsconfig.json` diff --git a/README.md b/README.md index 4800233c35eb0b..5f0eb0676c8e56 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,6 @@ Your package should have this structure: | `index.d.ts` | This contains the typings for the package. | | [`-tests.ts`](#my-package-teststs) | This contains sample code which tests the typings. This code does *not* run, but it is type-checked. | | [`tsconfig.json`](#tsconfigjson) | This allows you to run `tsc` within the package. | -| [`tslint.json`](#linter-tslintjson) | Enables linting. | | [`.eslintrc.json`](#linter-eslintrcjson) | (Rarely) Needed only to disable lint rules written for eslint. | | [`package.json`](#packagejson) | Contains metadata for the package, including its name, version and dependencies. | | [`.npmignore`](#npmignore) | Specifies which files are intended to be included in the package. | @@ -276,18 +275,9 @@ f("one"); For more details, see [dtslint](https://github.com/Microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests) readme. -#### Linter: `tslint.json` - -The linter configuration file, `tslint.json` should contain `{ "extends": "@definitelytyped/dtslint/dt.json" }` and no additional rules. - -If for some reason some rule needs to be disabled, [disable it for that specific line](https://palantir.github.io/tslint/usage/rule-flags/#comment-flags-in-source-code:~:text=%2F%2F%20tslint%3Adisable%2Dnext%2Dline%3Arule1%20rule2%20rule3...%20%2D%20Disables%20the%20listed%20rules%20for%20the%20next%20line) using `// tslint:disable-next-line:[ruleName]` — not for the whole package, so that disabling can be reviewed. (There are some legacy lint configs that have additional contents, but these should not happen in new work.) - ##### Linter: `.eslintrc.json` -Definitely Typed is in the process of switching to eslint for linting. -Unlike tslint, you don't need a config file to enable linting. -Like tslint, you should disable specific rules only on specific lines: - +If for some reason a lint rule needs to be disabled, disable it for a specific line: ```ts // eslint-disable-next-line no-const-enum @@ -296,6 +286,7 @@ const enum Enum { Two } // eslint-disable-line no-const-enum ``` You can still disable rules with an .eslintrc.json, but should not in new packages. +Disabling rules for the entire package makes it harder to review. #### `tsconfig.json` @@ -488,7 +479,7 @@ npm packages should update within an hour. If it's been more than an hour, menti If the module you're referencing is a module (uses `export`), use an import. If the module you're referencing is an ambient module (uses `declare module`) or just declares globals, use ``. -#### Some packages have no `tslint.json` and some `tsconfig.json` are missing `"noImplicitAny": true`, `"noImplicitThis": true` or `"strictNullChecks": true`. +#### Some packages have a `tsconfig.json` that is missing `"noImplicitAny": true`, `"noImplicitThis": true` or `"strictNullChecks": true`. Then they are wrong and we've not noticed yet. You can help by submitting a pull request to fix them. diff --git a/README.pt.md b/README.pt.md index 52fb6d4eabec04..7183f81f44904b 100644 --- a/README.pt.md +++ b/README.pt.md @@ -147,7 +147,6 @@ Seu pacote deve possuir a seguinte estrutura: | `index.d.ts` | Contém os tipos para o pacote. | | [`-tests.ts`](#my-package-teststs) | Contém código de exemplo que testa os tipos. Esse código *não* é executado, mas seus tipos são checados. | | [`tsconfig.json`](#tsconfigjson) | Permite que você execute `tsc` dentro do pacote. | -| [`tslint.json`](#linter-tslintjson) | Habilita a análise do código pelo linter. | Gere esses arquivos executando `npx dts-gen --dt --name nome-do-seu-pacote --template module` se você possuir a versão 5.2.0 ou mais recente do npm ou `npm install -g dts-gen` e `dts-gen --dt --name nome-do-seu-pacote --template module` caso possua uma versão mais antiga. Veja todas as opções em [dts-gen](https://github.com/Microsoft/dts-gen). @@ -247,11 +246,18 @@ f("um"); Para mais detalhes, veja o arquivo readme do [dtslint](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests). -#### Linter: `tslint.json` +##### Linter: `.eslintrc.json` -The linter configuration file, `tslint.json` should contain `{ "extends": "@definitelytyped/dtslint/dt.json" }`, and no additional rules. +If for some reason a lint rule needs to be disabled, disable it for a specific line: -If for some reason some rule needs to be disabled, [disable it for that specific line](https://palantir.github.io/tslint/usage/rule-flags/#comment-flags-in-source-code:~:text=%2F%2F%20tslint%3Adisable%2Dnext%2Dline%3Arule1%20rule2%20rule3...%20%2D%20Disables%20the%20listed%20rules%20for%20the%20next%20line) using `// tslint:disable-next-line:[ruleName]` — not for the whole package, so that disabling can be reviewed. (There are some legacy lint configs that have additional contents, but these should not happen in new work.) +```ts +// eslint-disable-next-line no-const-enum +const enum Const { One } +const enum Enum { Two } // eslint-disable-line no-const-enum +``` + +You can still disable rules with an .eslintrc.json, but should not in new packages. +Disabling rules for the entire package makes it harder to review. #### `tsconfig.json` diff --git a/README.ru.md b/README.ru.md index e0e97e1caef41b..424a9828e27d34 100644 --- a/README.ru.md +++ b/README.ru.md @@ -153,7 +153,6 @@ Definitely Typed работает только благодаря вкладу | `index.d.ts` | Содержит типизацию для пакета. | | [`-tests.ts`](#my-package-teststs) | Содержит пример кода, который проверяет типизацию. Этот код _не_ запускается, но он проверен на тип. | | [`tsconfig.json`](#tsconfigjson) | Позволяет вам запускать `tsc` внутри пакета. | -| [`tslint.json`](#linter-tslintjson) | Включает linting. | Создайте их, запустив `npx dts-gen --dt --name --template module` если у вас npm ≥ 5.2.0, `npm install -g dts-gen` и `dts-gen --dt --name --template module` в противном случае. Посмотреть все варианты на [dts-gen](https://github.com/Microsoft/dts-gen). @@ -239,11 +238,18 @@ f('one'); Для получения дополнительной информации см. [dtslint](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests) readme. -#### Linter: `tslint.json` +##### Linter: `.eslintrc.json` -The linter configuration file, `tslint.json` should contain `{ "extends": "@definitelytyped/dtslint/dt.json" }`, and no additional rules. +If for some reason a lint rule needs to be disabled, disable it for a specific line: -If for some reason some rule needs to be disabled, [disable it for that specific line](https://palantir.github.io/tslint/usage/rule-flags/#comment-flags-in-source-code:~:text=%2F%2F%20tslint%3Adisable%2Dnext%2Dline%3Arule1%20rule2%20rule3...%20%2D%20Disables%20the%20listed%20rules%20for%20the%20next%20line) using `// tslint:disable-next-line:[ruleName]` — not for the whole package, so that disabling can be reviewed. (There are some legacy lint configs that have additional contents, but these should not happen in new work.) +```ts +// eslint-disable-next-line no-const-enum +const enum Const { One } +const enum Enum { Two } // eslint-disable-line no-const-enum +``` + +You can still disable rules with an .eslintrc.json, but should not in new packages. +Disabling rules for the entire package makes it harder to review. #### `tsconfig.json` diff --git a/README.zh-Hans.md b/README.zh-Hans.md index 7e2d924c45acc4..b5049227cbbffd 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -6,6 +6,12 @@ *[管理员手册](./docs/admin.md)* +## !!!重要提示!此仓库最近已更改布局!!!! + +Definitely Typed 最近已转为正确的 `pnpm` monorepo(包含多项目或模块);你可能需要重新阅读此文档,以了解此仓库中包的布局更改。 + +至少,你可能需要执行 `git clean -fdx` 指令(在 Windows 上为 `node ./scripts/clean-node-modules.js`)清理仓库以清理 `node_modules`,然后运行 `pnpm install --filter .` 以安装工作区根目录。有关 `pnpm install` 的更多信息,请参见后续章节。 + ## 当前状态 此章节跟踪了当前仓库及发布流程的健康状况。如果贡献者的 PR 和软件包遇到任何问题,此处的内容可能有帮助。 @@ -14,8 +20,9 @@ * 所有软件包在 typescript@next 版本中全部通过类型检查/Lint:[![构建状态](https://dev.azure.com/definitelytyped/DefinitelyTyped/_apis/build/status/Nightly%20dtslint)](https://dev.azure.com/definitelytyped/DefinitelyTyped/_build/latest?definitionId=8) * 所有软件包都在一个半小时内[发布至 npm](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/publisher): [![发布状态](https://dev.azure.com/definitelytyped/DefinitelyTyped/_apis/build/status/DefinitelyTyped.types-publisher-watchdog?branchName=master)](https://dev.azure.com/definitelytyped/DefinitelyTyped/_build/latest?definitionId=5&branchName=master) * [typescript-bot](https://github.com/typescript-bot) 在 Definitely Typed 上处于活动状态:[![活动状态](https://dev.azure.com/definitelytyped/DefinitelyTyped/_apis/build/status/DefinitelyTyped.typescript-bot-watchdog?branchName=master)](https://dev.azure.com/definitelytyped/DefinitelyTyped/_build/latest?definitionId=6&branchName=master) +* [基础设施更新现状](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/44317) -若此处任何内容出现了问题,请在 [TypeScript 社群 Discord 服务器中的 Definitely Typed 频道](https://discord.gg/typescript)提出。 +如果此处有任何错误或上述任何操作失败,请在 [TypeScript 社群 Discord 服务器中的 Definitely Typed 频道](https://discord.gg/typescript)提出。 ## 声明文件是什么,我如何获取它们? @@ -46,7 +53,7 @@ npm install --save-dev @types/node 如果还是找不到类型,只需查找软件包中的任何".d.ts "文件,然后用 `/// ` 手动将其包含在内即可 -#### 支持周期 +### 支持周期 Definitely Typed 仅在发布时间小于 2 年的 TypeScript 版本上测试软件包。 @@ -54,7 +61,7 @@ Definitely Typed 仅在发布时间小于 2 年的 TypeScript 版本上测试软
-Older versions of TypeScript +旧版本的 TypeScript `@types` 软件包在标签种列出了其明确支持的 TypeScript 版本,因此你常常可以取得大于 2 年支持周期的软件包旧版本。 例如,若运行 `npm dist-tags @types/react`,你将看到 TypeScript 2.5 可使用 react@16.0 的类型定义,而 TypeScript 2.6 和 2.7 则可使用 react@16.4: @@ -120,7 +127,14 @@ declare module "libname" { 一旦你的软件包通过测试,你便可以在 Definitely Typed 分享它。 -首先,[复刻(fork)](https://guides.github.com/activities/forking/)并[克隆](#部分克隆)此仓库,然后安装 [Node](https://nodejs.org/),并运行此命令:`npm install`。如果你使用 v7 版本的 `npm`,你需要在命令中添加 `--legacy-peer-deps` 参数。 +首先,[复刻(fork)](https://guides.github.com/activities/forking/)并[克隆](#部分克隆)此仓库, +然后安装 [Node](https://nodejs.org/),并运行此命令:`pnpm install`。请注意,`pnpm install` 将安装*整个*仓库,包括你可能不需要编辑的包。 +如果你只想安装部分内容,可以运行 `pnpm install -w --filter "{./types/foo}..."` 以安装 `@types/foo` 及其所有依赖项。 +如果你需要运行依赖于 `@types/foo` 的包的测试,可以运行 `pnpm install -w --filter "...{./types/foo}..."` 来引入所有相关的测试包。 + + +> [!NOTE] +> 如果你使用的是 Windows,你可能会发现 `git clean` 不会移除 `node_modules` 目录,或者在尝试移除时挂起。如果你需要移除 `node_modules`,你可以运行 `pnpm clean-node-modules` 来重置仓库。 我们使用机器人来确保能像自助服务一样处理提交至 Definitely Typed 的大量拉取请求。欲知详情,请阅读[此处](https://devblogs.microsoft.com/typescript/changes-to-how-we-manage-definitelytyped/)。下图简要展示了拉取请求的生命周期: @@ -147,10 +161,9 @@ declare module "libname" { #### 编辑现有软件包 -* `cd types/` * 作出修改之后,[请记得编辑测试](#my-package-teststs)。 如果你作出了破坏性更改,请不要忘记[更新主版本](#如果一个软件包做了重大的修改而更新了主版本我应该如何更新它的类型声明包)。 -* [运行 `npm test `](#运行测试)。 +* [运行 `pnpm test `](#运行测试)。 当你对现有的软件包发起 PR 的时候,`dt-bot` 应该会通知先前的作者。 如果没有,你可在与 PR 关联的评论中手动 @ 作者。 @@ -170,10 +183,12 @@ declare module "libname" { | `index.d.ts` | 此文件包含软件包的类型声明。 | | [`-tests.ts`](#my-package-teststs) | 此文件包含测试类型声明的示例代码,其**不会**运行,但是它会通过类型检查。 | | [`tsconfig.json`](#tsconfigjson) | 此文件允许你在软件包中运行 `tsc`。 | -| [`tslint.json`](#linter-tslintjson) | 启用 Lint。 | | [`.eslintrc.json`](#linter-eslintrcjson) | (极少使用)仅在需要禁用 ESLint 规则时使用。 | +| [`package.json`](#packagejson) | 包含该包的元数据(metadata),包括其名称、版本和依赖关系。 | +| [`.npmignore`](#npmignore) | 指定哪些文件应包含在包中。 | -如果你的 npm 版本高于 5.2.0,请运行 `npx dts-gen --dt --name --template module` 来生成这些文件,否则请运行 `npm install -g dts-gen` 和 `dts-gen --dt --name --template module`。 + +通过运行 `npx dts-gen --dt --name --template module` 来生成这些文件。 可以在 [dts-gen](https://github.com/Microsoft/dts-gen) 查看所有的选项。 如果软件包中除了 `index.d.ts` 以外还有别的 `.d.ts` 文件,请确保它们在 `index.d.ts` 或测试文件中被引用。 @@ -191,27 +206,12 @@ Definitely Typed 的成员会定期查看新的 PR,但是请留意,当 PR * ``:一个含有废弃信息的软件包的新版本将会发布到 `@types/`。此选项指定新版本的版本号,其应该高于当前发布的任何版本,并且应该是 npm 上的 `` 版本。 * ``:替换 Definitely Typed 中类型的 npm 的包名。与 `` 相同时可省略此项。 -Definitely Typed 中引用了被删除的软件包的任何其他软件包,都需要更新以引用新的捆绑类型。 -你可以查看 `pnpm run test-all` 中的错误来获得此列表。 -接下来,请添加一个带有 `"dependencies": { "": "x.y.z" }` 的 [`package.json`](#packagejson) 文件,以修复这些错误。 -比如: - -```json -{ - "private": true, - "dependencies": { - "": "^2.6.0" - } -} -``` - -当你向 `package.json` 添加 `` 的时候,你还需要发起一个 PR,将 `` 添加到 [DefinitelyTyped-tools 中的 allowedPackageJsonDependencies.txt](https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/definitions-parser/allowedPackageJsonDependencies.txt)。 - 如果这个软件包从未发布到 Definitely Typed 过,则不需要将其添加到 `notNeededPackages.json`。 #### 运行测试 请运行 `npm test ` 以测试你的改动,其中 `` 是你的包名。 +你需要从 DefinelyTyped 目录运行它,因为单个 package.json 不定义测试脚本。 此脚本使用了 [dtslint](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint) 来对你的 `.d.ts` 文件进行 TypeScript 编译测试。 @@ -228,7 +228,7 @@ Definitely Typed 中引用了被删除的软件包的任何其他软件包,都 #### `-tests.ts` 在类型声明包目录下应该存在一个名为 `-tests.ts` 的文件。该文件自身与其导入的所有 `*.ts` 文件都被视为测试文件。 -若你的项目目录下不存在测试文件,请建立 `-tests.ts`。这些文件用于验证 `*.d.ts` 文件导出的 API,也就是发布至 `@types/` 中的类型声明。 +若你的项目目录下不存在测试文件,请建立 `-tests.ts`。这些文件用于验证 `*.d.ts` 文件导出的 API,也就是发布至 `@types/` 中的类型声明。它们本身不会被发布。 对 `*.d.ts` 的任何修改应该在 `*.ts` 中进行相应的更改以演示此 API 的用途,因而他人将不会意外破坏你所依赖的代码。 @@ -249,7 +249,7 @@ import {twoslash} from "./" // $ExpectType string const result = twoslash("//") -+ // 处理 config 参数 ++ // 处理选项参数 + const resultWithOptions = twoslash("//", { version: "3.7" }) + // 如果参数错误 + // @ts-expect-error @@ -258,7 +258,7 @@ const result = twoslash("//") 如果你不知道从何处开始编写测试代码,模块 README 文件中的示例代码是个很好的参考。 -你可以在根目录执行 `npm test ` 来[验证你的更改](#运行测试)(包括修改的文件)。 +你可以在根目录执行 `npm test ` 来[验证你的更改](#运行测试),该命令会考虑到已更改的文件。 若要断言表达式为给定类型,请使用 `$ExpectType`. 若要断言表达式会导致编译错误,请使用 `@ts-expect-error`。例如: @@ -272,15 +272,9 @@ f("one"); 更多详细信息,请参见 [dtslint](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/dtslint#write-tests) 的 README 文件。 -#### Linter: `tslint.json` - -Linter 的配置文件 `tslint.json` 只应包含 `{ "extends": "@definitelytyped/dtslint/dt.json" }`,并且不含其他规则。 - -若出于某些原因,需要禁用规则,请使用 `// tslint:disable-next-line:[ruleName]` [在需要禁用规则的那一行禁用它](https://palantir.github.io/tslint/usage/rule-flags/#comment-flags-in-source-code:~:text=%2F%2F%20tslint%3Adisable%2Dnext%2Dline%3Arule1%20rule2%20rule3...%20%2D%20Disables%20the%20listed%20rules%20for%20the%20next%20line),而不是在整个软件包内禁用,因此代码审核者可以审核禁用规则的代码。(一些陈旧的 Linter 配置文件可能包含额外内容,但这些内容不应该出现在新项目中。) - ##### Linter: `.eslintrc.json` -Definitely Typed 正在从 TSLint 迁移至 ESLint。与 TSLint 不同,ESLint 无需配置文件即可启用。你仅应在需要禁用规则的那一行处禁用规则,与 TSLint 相同: +你仅应在需要禁用规则的那一行处禁用规则,与 TSLint 相同: ```ts // eslint-disable-next-line no-const-enum @@ -289,6 +283,7 @@ const enum Enum { Two } // eslint-disable-line no-const-enum ``` 你仍可以在 `.eslintrc.json` 中禁用规则,但在新增软件包中不应这么做。 +为整个包禁用规则会使审查变得更加困难。 #### `tsconfig.json` @@ -323,40 +318,83 @@ const enum Enum { Two } // eslint-disable-line no-const-enum #### `package.json` -通常你不需要它。 -如果你的软件包除了 Definitely Typed 自身没有其他依赖,Definitely Typed 软件包的发布者会自动创建一个 `package.json` 文件。 -`package.json` 可其他非 `@types` 软件包的依赖。 -[Pikaday 是一个很好的示例](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/pikaday/package.json)。 -即使你编写了自己的 `package.json`,允许的内容只有指定依赖项;其他字段如 `"description"` 是不允许的。 -你还需要将依赖项添加到[允许的软件包列表](https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/definitions-parser/allowedPackageJsonDependencies.txt)。 -此列表由人工维护,以确保 `@types` 软件包不会依赖恶意软件包。 +此文件是必需的,应遵循以下模板: + +```json5 +{ + "private": true, + "name": "@types/PACKAGE-NAME", + "version": "1.2.9999", + "projects": [ + "https://aframe.io/" + ], + "dependencies": { + "@types/DEPENDENCY-1": "*", + "@types/DEPENDENCY-2": "*" + }, + "devDependencies": { + "@types/PACKAGE-NAME": "workspace:." + }, + "owners": [ + { + "name": "Your Name Here", + "githubUsername": "ghost" + } + ] +} +``` + +`package.json` 指定了*所有*依赖项,包括其他 `@types` 包。 + +你必须将非 `@types` 依赖项添加到 [允许的外部依赖项列表](https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/definitions-parser/allowedPackageJsonDependencies.txt)。 +[Pikaday 是一个很好的示例。](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/pikaday/package.json) +这些添加需要由维护者批准,这样我们就可以确保 `@types` 包不依赖于恶意包。 -在极少数情况下,`@types` 软件包因原始软件包包含了自己的类型定义而被删除,但你需要依赖旧的、已经删除的 `@types` 软件包。此时,你可以添加对 `@types` 软件包的依赖。 -在添加到允许的软件包列表中时,请务必解释一下原因,以便让人工维护者知道发生了什么。 +如果实现包使用 ESM 并指定了 `"type": "module"`,那么你应该修改 `package.json` 以匹配: -创建自己的 `package.json` 的第二个原因是为了使类型定义包成为 ECMAScript 模块。 -如果对应的软件包实现使用了 ES 模块并且指定了 `"type": "module"`,你可以新建一个 `package.json` 文件并添加相同内容: ```json { - "private": true, "type": "module" } ``` + 如果软件包在 `package.json` 中包含了 `export` 导出,这么做仍旧适用。 -#### `OTHER_FILES.txt` -如果有一些文件需要包含在类型定义包中,但没有在测试文件或 `index.d.ts` 中被引用的话。你需要在 `OTHER_FILES.txt` 列出,一行一个文件。 +#### `.npmignore` + +此文件定义了应该包含在每个 `@types` 包中的文件。它必须采用特定的形式。对于仓库中只有一个版本的包: + +```ignore +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts +``` + +这意味着“忽略所有文件,但不要忽略任何声明文件”。对于仓库中有多个版本的包,"latest" 版本(位于顶层)应包含类似以下内容: + +```ignore +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts +/v15/ +/v16/ +/v17/ +``` + +这与前面的 `.npmignore` 相同,只是忽略了每个版本化的子目录。 + +如果此文件包含错误的内容,CI 将失败并提供预期的值。无论此文件包含什么内容,发布者都只会发布声明文件。 #### 常见错误 * 首先,请遵循[手册](https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html)的建议。 -* 格式化:使用 4 个空格。 该仓库已经设置了 Prettier,因此你只需要运行 `pnpm run prettier -- --write 'path/to/package/**/*.ts'`。[使用断言时](https://github.com/SamVerschueren/tsd#assertions),添加 `// prettier-ignore` 将这几行标记为不需要格式化的代码: - ```tsx - // prettier-ignore - // @ts-expect-error - const incompleteThemeColorModes: Theme = { colors: { modes: { papaya: { - ``` +* 格式化:此仓库已设置 [dprint](https://dprint.dev),因此你可以运行 `pnpm dprint fmt -- 'path/to/package/**/*.ts'`。 + * 考虑使用 VS Code 的 `.vscode/settings.template.json`(或其他编辑器的等效文件),通过 [VS Code dprint 扩展](https://marketplace.visualstudio.com/items?itemName=dprint.dprint) 在保存时进行格式化。 * `function sum(nums: number[]): number`: 如果函数没有修改传入的参数,请使用 `ReadonlyArray`。 * `interface Foo { new(): Foo; }`: 以上代码定义了一个可以实例化的接口(对象),你可能想要的是 `declare class Foo { constructor(); }`。 @@ -368,13 +406,13 @@ const enum Enum { Two } // eslint-disable-line no-const-enum 可接受的类型参数示例:`function id(value: T): T;`。 不可接受的类型参数示例:`function parseJson(json: string): T;`。 例外:`new Map()` 是可以接受的。 -* 使用 `Function` 和 `Object` 类型基本上属于下下策。在绝大多数情况下,你都可以将其替换为更精确的类型。例如,如果你打算使用 [Function](https://www.typescriptlang.org/docs/handbook/2/functions.html#function-type-expressions),或许 `(x: number) => number` 更适合;如果你打算使用 `Object`,或许 `{ x: number, y: number }` 会更好。对于完全无法确定的类型,应使用 [`any`](https://www.typescriptlang.org/docs/handbook/basic-types.html#any) 而不是 `Object`。如果仅知道某个类型为某种对象,请使用 [`object`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#object-type),而不是 `Object` 或 `{ [key: string]: any }`。 +* 使用 `Function` 和 `Object` 类型基本上属于下下策。在 99% 的情况下,你都可以将其替换为更精确的类型。例如,如果使用 `(x: number) => number` 表示 [函数(Function)](https://www.typescriptlang.org/docs/handbook/2/functions.html#function-type-expressions);使用 `{ x: number, y: number }` 表示 `Object`。对于完全无法确定的类型,应使用 [`any`](https://www.typescriptlang.org/docs/handbook/basic-types.html#any) 而不是 `Object`。如果仅知道某个类型为某种对象,请使用 [`object`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#object-type),而不是 `Object` 或 `{ [key: string]: any }`。 * `var foo: string | any`: 在联合类型中使用 `any` 将导致最终结果始终为 `any`。因此,即便类型中的 `string` 部分*看起来*很有用,但实际上在类型检查方面与 `any` 并无区别。根据你的实际目的,请考虑选择 `any`、`string`,或 `string | object`。 ### 类型定义所有者 -> 简言之:请勿修改 `.github/CODEOWNERS`,请始终修改 `index.d.ts` 文件标头的所有者列表 +> 简言之:请勿修改 `.github/CODEOWNERS`,请始终修改 `package.json` 中的 `owners` 数组 Definitely Typed 有“类型定义所有者”的概念——即愿意维护特定模块类型声明的人。 @@ -382,22 +420,28 @@ Definitely Typed 有“类型定义所有者”的概念——即愿意维护特 * 对于维护本仓库的[机器人](https://github.com/DefinitelyTyped/dt-mergebot)而言,你的 PR 审核将会具有更高优先级以及重要性。 * 为维护稳定的社区环境,DT 维护者对类型定义所有者给予了较高的信任,因此将你自己添加为所有者时,请三思而后行。 -若要将你自己添加为类型定义所有者: +若要将你自己添加为类型定义所有者,编辑 `package.json` 中的 `owners` 数组: -* 将你的名字添加至行末,例如 `// Definitions by: Alice , Bob `。 -* 或者,如果人数较多,可以分行: - ```typescript - // Definitions by: Alice - // Bob - // Steve - // John - ``` +```json +"owners": [ + { + "name": "Some Person", + "githubUsername": "somebody" + }, + { + "name": "Some Corp", + "url": "https://example.org" + } +] +``` + +请注意,此列表*不用于*为贡献者提供认可;它仅用于管理 PR 的审查。 -类型定义所有者会被同步到文件 [.github/CODEOWNERS](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/.github/CODEOWNERS),每周更新一次。此文件就是我们的事实来源(Source of Truth)。 +类型定义所有者会被同步到文件 [.github/CODEOWNERS](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/.github/CODEOWNERS),每周更新一次。此数组就是我们的事实来源(Source of Truth)。 -## The history of Definitely Typed +## Definitely Typed 历史 -Definitely Typed 是 GitHub 上最活跃的软件源之一。你可能想知道这个项目是如何诞生的。@johnnyreilly 整理了 Definitely Typed 的历史。它讲述了 Definitely Typed 早期的故事,从 @borisyankov 创建仓库到成为 TypeScript 生态系统的关键部分。您可以在这里[阅读 Definitely Typed 的故事](https://johnnyreilly.com/definitely-typed-the-movie)。 +Definitely Typed 是 GitHub 上最活跃的软件源之一。你可能想知道这个项目是如何诞生的。@johnnyreilly 整理了 Definitely Typed 的历史。它讲述了 Definitely Typed 早期的故事,从 @borisyankov 创建仓库到成为 TypeScript 生态系统的关键部分。你可以在这里[阅读 Definitely Typed 的故事](https://johnnyreilly.com/definitely-typed-the-movie)。 ## 常见问题(FAQ) @@ -411,7 +455,7 @@ Definitely Typed 是 GitHub 上最活跃的软件源之一。你可能想知道 > 如果 PR 仅仅更改了模块中的类型,并且包含了相应的测试,合并过程会大大加快。 -被类型定义所有者(在定义文件的标头列明)批准的 PR 通常合并得更快;提交新类型定义的 PR 需要更多时间,因为它们需要维护人员花更多的时间审核。每一个 PR 在合并之前都会由 TypeScript 或 Definitely Typed 的团队成员进行审核,所以请耐心等待,因为人为因素可能导致延迟。通过查看 [New Pull Request Status Board](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5),可以看到维护人员在开启的 PR 上的工作进度。 +被类型定义所有者(在定义文件的标头列明)批准的 PR 通常合并得更快;提交新类型定义的 PR 需要更多时间,因为它们需要维护人员花更多的时间审核。每一个 PR 在合并之前都会由 TypeScript 或 Definitely Typed 的团队成员进行审核,所以请耐心等待,因为人为因素可能导致延迟。通过查看 [新拉取请求状态板](https://github.com/DefinitelyTyped/DefinitelyTyped/projects/5),可以看到维护人员在开启的 PR 上的工作进度。 #### 我想给流行项目提交更改,为什么它们受到了特殊对待? @@ -433,9 +477,16 @@ npm 软件包应该会在几分钟内更新。如果已经超过了一小时, 那么这些文件就是错误的,但我们还没有注意到它们。你可以通过发起 PR 来修复它们。 -#### 我可以为模块更改/强制使用某个格式化设置吗? +#### 文件是否会自动格式化? + +是的,使用 [dprint](https://dprint.dev)。 +我们建议使用 [编辑器的 dprint 扩展](https://dprint.dev/install/#editor-extensions)。 -不可以。我们之前曾试图统一 DT 代码样式,但由于本仓库过于活跃,最终目标无法达成。为了让你在编辑器中格式化文件,我们在 [`.editorconfig`](.editorconfig) 文件中加入了格式化设置,两者的内容互不冲突。我们即没有改变这些设置的计划,也没有在此仓库强制推行单一代码风格的计划,因为我们希望尽量降低贡献门槛。 +合并请求不需要正确的格式化即可合并。 +任何未格式化的代码将在合并后自动重新格式化。 + +> 💡 如果你使用 VS Code,请建议将 `.vscode/settings.template.json` 文件复制到 `.vscode/settings.json`。 +> 该模板将 [dprint VS Code 扩展](https://marketplace.visualstudio.com/items?itemName=dprint.dprint) 设置为仓库中的默认格式化工具。 #### 我可以申请新增类型定义吗? @@ -443,11 +494,11 @@ npm 软件包应该会在几分钟内更新。如果已经超过了一小时, #### DOM 的类型定义应该包含于此吗? -如果类型是 Web 标准的一部分,它们应该贡献给 [TSJS-lib-generator](https://github.com/Microsoft/TSJS-lib-generator),以便其成为默认 `lib.dom.d.ts` 的一部分。 +如果类型是 Web 标准的一部分,它们应该贡献给 [TypeScript-DOM-lib-generator](https://github.com/Microsoft/TypeScript-DOM-lib-generator),以便其成为默认 `lib.dom.d.ts` 的一部分。 #### 没有匹配软件包的类型定义怎么办? -如果完全没有 Javascript 源代码,例如您正在编写辅助类型或规范类型,则应自行发布这些类型,而不是在 Definitely Typed 上发布。 +如果完全没有 Javascript 源代码,例如你正在编写辅助类型或规范类型,则应自行发布这些类型,而不是在 Definitely Typed 上发布。 因为 `@types` 包的目的是为现有 Javascript 代码提供类型,所以不能直接导入。 也就是说,你不应该创建一个类似于 `import type { ... } from "@types/foo"` 的 Definitely Typed 包。 当 `foo` 未安装时,也不要指望写出 `import type { ... } from "foo"`。 @@ -462,7 +513,7 @@ npm 软件包应该会在几分钟内更新。如果已经超过了一小时, 使用 ES6 风格的导入语法 `import * as foo from "foo";` 导入此模块将产生如下错误: -> error TS2497: Module 'foo' resolves to a non-module entity and cannot be imported using this construct +> 错误 TS2497: 模块'foo'解析为非模块实体,不能使用此结构导入 添加同名的空命名空间与函数声明合并可以抑制此错误,但不鼓励这种做法。关于此问题,该 [Stack Overflow 回答](https://stackoverflow.com/questions/39415661/what-does-resolves-to-a-non-module-entity-and-cannot-be-imported-using-this)常被提及,值得参考。 @@ -477,7 +528,7 @@ npm 软件包应该会在几分钟内更新。如果已经超过了一小时, 或 [`--esModuleInterop`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#support-for-import-d-from-cjs-form-commonjs-modules-with---esmoduleinterop) 编译器选项。 -请勿更改准确的类型定义。 +如果类型定义准确,请勿更改。 如果一个 npm 软件包可以使用 `node -p 'require("foo")'` 导入,那么 `export =` 就是准确的;如果其可以使用 `node -p 'require("foo").default'` 导入,那么 `export default` 就是准确的。 #### 我想使用极新的 TypeScript 版本的功能。 @@ -489,40 +540,30 @@ npm 软件包应该会在几分钟内更新。如果已经超过了一小时, 为帮助你理解,以下为简要示例: -1. 你必须在软件包定义中添加 `package.json` 文件,其中包含以下内容: +1. 你需要在 `package.json` 中添加 `typesVersions`: -```json -{ - "private": true, - "types": "index", - "typesVersions": { - "<=3.6": { "*": ["ts3.6/*"] } + ```json + { + "private": true, + "types": "index", + "typesVersions": { + "<=3.6": { "*": ["ts3.6/*"] } + } } -} -``` + ``` 2. 在你的类型目录中创建在 `typesVersions` 字段中提到的子目录(在本例中为 `ts3.6/`),其中包含支持 TypeScript 3.6 及以下版本的类型声明。接着,请复制现有的类型声明和测试文件至该目录。 由于只有根目录的 `index.d.ts` 文件才应拥有类型定义标头,你需要删除 `ts3.6/index.d.ts` 中的类型定义标头。 -3. 将 `ts3.6/tsconfig.json` 中 `baseUrl` 和 `typeRoots` 选项设置为正确的路径,如下所示: -```json -{ - "compilerOptions": { - "baseUrl": "../../", - "typeRoots": ["../../"] - } -} -``` - -4. 返回至项目的根目录,在根目录下的文件中添加你欲使用的 TypeScript 3.7 功能。 +3. 回到包的根目录,在那里添加你想要使用的 TypeScript 3.7 功能。 当安装软件包时,TypeScript 3.6 及更低版本将会使用 `ts3.6/index.d.ts`,而 TypeScript 3.7 及更高版本将会使用 `index.d.ts`。 你可参照 [bluebird](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/f2512c2cf7cdcf9a487d989e288174e49b7839ab/types/bluebird) 作为示例。 #### 我想添加默认情况下不存在于 TypeScript 的 DOM API。 -这些 API 属于 [TSJS-Lib-Generator](https://github.com/Microsoft/TSJS-lib-generator#readme),请阅读其指引以了解更多信息。 +这些 API 属于 [TypeScript-DOM-lib-generator](https://github.com/Microsoft/TypeScript-DOM-lib-generator#readme),请阅读其指引以了解更多信息。 如果标准仍处于草案阶段,那么它应该收录于此。 请使用以 `dom-` 开头的名称作为包名,并在标头中包含指向标准的链接作为项目链接。 当它成为正式标准时,我们可以将它从 Definitely Typed 删除,并弃用相关的 `@types`软件包。 @@ -532,20 +573,20 @@ npm 软件包应该会在几分钟内更新。如果已经超过了一小时, *注意:本节中的讨论假定你熟悉[语义化版本(Semantic Versioning)](https://semver.org/lang/zh-CN/)* 每个 Definitely Typed 软件包在发布到 npm 时都会标注版本。 -[DefinitelyTyped-tools](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/publisher) (将 `@types` 软件包发布到 npm 的工具) 会通过写于 `index.d.ts` 文件第一行的 `major.minor` 版本号来设置类型定义包的版本号。 -例如,以下是 `10.12.x` 版本的 [Node 的类型声明](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/1253faabf5e0d2c5470db6ea87795d7f96fef7e2/types/node/index.d.ts) 的前几行: +[DefinitelyTyped-tools](https://github.com/microsoft/DefinitelyTyped-tools/tree/master/packages/publisher) (将 `@types` 软件包发布到 npm 的工具) 将使用在 `package.json` 中列出的 `major.minor.9999` 版本号来设置声明包的版本。 +例如,在撰写时,以下是 Node 版本 `20.8.x` 的类型声明的前几行: -```js -// Type definitions for Node.js 10.12 -// Project: https://nodejs.org/ -// Definitions by: Microsoft TypeScript -// Definitely Typed -// Alberto Schiabel +```json +{ + "private": true, + "name": "@types/node", + "version": "20.8.9999", +} ``` -因为 `10.12` 在第一行的末尾,所以 `@types/node` 软件包的版本号也是 `10.12.x`。 -注意在 `index.d.ts` 文件的第一行注释中应该只包含 `major.minor` 的版本号(比如 `10.12`),不应该包含补丁版本(例如 `10.12.4`)。 -这是因为,在库包和类型声明包之间只有主要版本号和次要版本号是一致的。 +由于版本被列为 `20.8.9999`,`@types/node` 包的 npm 版本也将是 `20.8.x`。 +请注意,`package.json` 中的版本应该只包含 `major.minor` 版本(例如 `10.12`),后跟 `.9999`。 +这是因为只有库包和类型声明包之间的主要和次要发布版本号是对齐的。(`.9999` 是为了确保在本地开发期间本地的 `@types` 包始终是最新的。) 类型声明包的补丁版本号(比如 `10.12.0` 中的 `.0`)由 Definitely Typed 初始化为 0,每次将新的 `@types/node` 软件包以同一主/次版本发布到 npm 中对应库时,其都会递增。 有时,类型声明包的版本号和库包的版本号可能会不同步。 @@ -569,38 +610,32 @@ npm 软件包应该会在几分钟内更新。如果已经超过了一小时, 如果你打算继续更新旧版本库的类型声明,你可以创建一个以当前版本(很快就是旧版本)命名的新的子文件夹(比如 `/v2/`),并将现有版本的文件都拷贝进去。 -因为根文件夹始终包含最新版本的类型声明,所以你需要对旧版本子目录中的文件进行一些修改,以确保相对路径的引用指向子目录,而不是根目录。 - -1. 更新 `tsconfig.json` 和 `tslint.json` 中的相对路径。 -2. 添加路径映射规则以确保测试能够针对预期版本运行。 +在创建新的版本目录时,请确保已更新 `package.json` 的版本字段;`pnpm` 将在需要时自动解析到这个版本化的包。如果仓库中的其他包需要依赖于这个新版本,请确保它们的 `package.json` 也已更新。 -例如,[`history`](https://github.com/ReactTraining/history/) 库在 `2.x` 到 `3.x` 版本间引入了重大的修改。 -因为许多用户仍然使用较老的 `2.x` 版本,维护人员想要将此库的类型声明更新到 `3.x`,需要在仓库里添加 `v2` 文件夹,里面包含了旧版本的类型声明。 -在本文撰写时,[history v2 的 `tsconfig.json`](https://github.com/%44efinitelyTyped/DefinitelyTyped/blob/1253faabf5e0d2c5470db6ea87795d7f96fef7e2/types/history/v2/tsconfig.json) 大致如下: +例如,如果我们正在创建 `types/history/v2`,其 `package.json` 将如下所示: ```json { - "compilerOptions": { - "baseUrl": "../../", - "typeRoots": ["../../"], - "paths": { - "history": [ "history/v2" ] - }, - }, - "files": [ - "index.d.ts", - "history-tests.ts" - ] + "private": true, + "name": "@types/history", + "version": "2.4.9999", } ``` -如果 Definitely Typed 上的其他软件包与新版本不兼容,你需要将路径映射到旧版本。 -对于依赖于旧版本的软件包,你还需要递归地执行此操作。 +另一个包可以通过指定以下内容选择此版本: -例如,`browser-sync` 依赖 `micromatch@2` 软件包,所以 [browser-sync 的 `tsconfig.json`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/browser-sync/tsconfig.json) 包含路径映射 `"micromatch": [ "micromatch/v2" ]`。 -所以,`browser-sync-webpack-plugin`(依赖 `browser-sync` 软件包)在它的依赖 `browser-sync` 更新到最新版本之前,也需要在它的 `tsconfig.json` 里添加相同的路径映射(`"micromatch": [ "micromatch/v2" ]`)。 +```json +{ + "private": true, + "name": "@types/browser-sync", + "version": "2.26.9999", + "dependencies": { + "@types/history": "^2" + } +} +``` -此外,`/// ` 不适用于路径映射,因此依赖需要使用 `import`。 +另外,`/// ` 在使用路径映射时无法正常工作,因此依赖项必须使用 `import`。 #### 如何为既可全局使用,也可作为模块使用的软件包编写类型定义? @@ -614,18 +649,6 @@ TypeScript 手册包含了优秀的[编写类型定义的一般信息](https://w 作用域包 `@foo/bar` 的类型应该放在 `types/foo__bar` 中。请注意使用双下划线。 -当使用 `dts-gen` 构建作用域包时,必须在生成的 `tsconfig.json` 中手动调整 `paths` 属性以正确引用作用域包: - -```json -{ - "compilerOptions": { - "paths": { - "@foo/*": ["foo__*"] - } - } -} -``` - ## 许可证 该项目根据 MIT 许可证授权。 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2da1fd3f4b15c4..90551d4bdc8a62 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,10 +8,10 @@ jobs: timeoutInMinutes: 360 steps: - - task: NodeTool@0 - displayName: Use Node 16 + - task: UseNode@1 + displayName: Use Node 20 inputs: - versionSpec: 16.x + version: 20.x checkLatest: true - script: | diff --git a/notNeededPackages.json b/notNeededPackages.json index e1ec694c40c5e3..ffac773cfccfc8 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -4495,6 +4495,10 @@ "libraryName": "random-obj-prop", "asOfVersion": "2.0.0" }, + "random-words": { + "libraryName": "random-words", + "asOfVersion": "1.2.0" + }, "randoma": { "libraryName": "randoma", "asOfVersion": "1.3.0" @@ -4575,6 +4579,18 @@ "libraryName": "rdf-js", "asOfVersion": "4.0.2" }, + "rdf-loader-code": { + "libraryName": "rdf-loader-code", + "asOfVersion": "2.1.1" + }, + "rdf-loaders-registry": { + "libraryName": "rdf-loaders-registry", + "asOfVersion": "1.0.0" + }, + "rdf-validate-datatype": { + "libraryName": "rdf-validate-datatype", + "asOfVersion": "0.2.0" + }, "rdflib": { "libraryName": "rdflib", "asOfVersion": "1.2.0" @@ -4835,6 +4851,10 @@ "libraryName": "react-monaco-editor", "asOfVersion": "0.16.0" }, + "react-native": { + "libraryName": "react-native", + "asOfVersion": "0.73.0" + }, "react-native-app-intro-slider": { "libraryName": "react-native-app-intro-slider", "asOfVersion": "4.0.0" @@ -5783,6 +5803,10 @@ "libraryName": "strip-bom", "asOfVersion": "4.0.0" }, + "strip-final-newline": { + "libraryName": "strip-final-newline", + "asOfVersion": "4.0.0" + }, "strip-indent": { "libraryName": "strip-indent", "asOfVersion": "3.0.0" diff --git a/package.json b/package.json index e933bcd87dfd08..613281ee62e3ae 100644 --- a/package.json +++ b/package.json @@ -37,12 +37,11 @@ "@definitelytyped/typescript-versions": "latest", "@definitelytyped/utils": "latest", "danger": "^11.2.3", - "dprint": "^0.42.3", + "dprint": "^0.45.0", "eslint-plugin-jsdoc": "^44.2.7", "remark-cli": "^11.0.0", "remark-gfm": "^3.0.0", "remark-validate-links": "^12.0.0", - "tslint": "latest", "typescript": "next" }, "type": "module", diff --git a/scripts/fix-tslint.js b/scripts/fix-tslint.js deleted file mode 100644 index 69b251e4e73802..00000000000000 --- a/scripts/fix-tslint.js +++ /dev/null @@ -1,46 +0,0 @@ -/// - -import JSON from "comment-json"; -import * as fs from "node:fs"; - -const home = new URL("../types/", import.meta.url); - -for (const dirName of fs.readdirSync(home)) { - if (dirName.startsWith(".") || dirName === "node_modules" || dirName === "scripts") { - continue; - } - - const dir = new URL(`${dirName}/`, home); - const stats = fs.lstatSync(dir); - if (stats.isDirectory()) { - fixTslint(dir); - // Also do it for old versions - for (const subdir of fs.readdirSync(dir)) { - if (/^v\d+$/.test(subdir)) { - fixTslint(new URL(`${subdir}/`, dir)); - } - } - } -} - -/** - * @param {URL} dir - */ -function fixTslint(dir) { - const target = new URL("tslint.json", dir); - if (!fs.existsSync(target)) return; - /** @type {any} */ - const json = JSON.parse(fs.readFileSync(target, "utf-8")); - json.rules = fixRules(json.rules); - const text = Object.keys(json).length === 1 - ? "{ \"extends\": \"@definitelytyped/dtslint/dt.json\" }" - : JSON.stringify(json, undefined, 4); - fs.writeFileSync(target, text + "\n", "utf-8"); -} - -/** - * @param {{}} rules - */ -function fixRules(rules) { - return Object.fromEntries(Object.entries(rules).map(([key, value]) => [key, value])); -} diff --git a/scripts/tslint-rule-begone.js b/scripts/tslint-rule-begone.js deleted file mode 100644 index 0bf0768423ca85..00000000000000 --- a/scripts/tslint-rule-begone.js +++ /dev/null @@ -1,87 +0,0 @@ -import { parse } from "comment-json"; -import fs from "fs"; -import * as path from "path"; -import sh from "shelljs"; - -/** - * @param {string} filePath - */ -const parseAndReadFileContents = filePath => { - try { - return parse(fs.readFileSync(filePath).toString()) ?? {}; - } catch { - return {}; - } -}; - -/** - * @param {string} filePath - * @param {unknown} contents - */ -const writeFileFormatted = (filePath, contents) => { - fs.writeFileSync( - filePath, - JSON.stringify(contents, null, 4), - ); -}; - -const [, , ...tslintRuleNames] = process.argv; - -for (const tslintRuleName of tslintRuleNames) { - console.log(`Clearing ${tslintRuleName} comment directives...`); - sh.exec( - `find types -path '*/node_modules' -prune -o -iname '*.ts' -type f -print | xargs sed -i '' '/tslint:disable[: ]${tslintRuleName}/d'`, - ); - sh.exec( - `find types -path '*/node_modules' -prune -o -iname '*.ts' -type f -print | xargs sed -i '' '/tslint:enable[: ]${tslintRuleName}/d'`, - ); - sh.exec( - `find types -path '*/node_modules' -prune -o -iname '*.ts' -type f -print | xargs sed -i '' '/tslint:disable-next-line[: ]${tslintRuleName}/d'`, - ); - sh.exec( - `find types -path '*/node_modules' -prune -o -iname '*.ts' -type f -print | xargs sed -i '' '/tslint:disable-line[: ]${tslintRuleName}/d'`, - ); -} - -console.log("Done clearing comment directives."); - -const typeNames = fs.readdirSync("types"); -for (const typeName of typeNames) { - const typeDirectory = path.join("types", typeName); - try { - typeNames.push(...fs.readdirSync(typeDirectory).map(childDirectory => path.join(typeName, childDirectory))); - } catch {} - - const tslintFilePath = path.join(typeDirectory, "tslint.json"); - - /** @type {Partial<{ extends: string; rules?: { [s:string]: boolean }}>} */ - const tslintData = parseAndReadFileContents(tslintFilePath); - if (!tslintData?.rules) { - continue; - } - - let matchedTSLintRule = false; - - for (const tslintRuleName of tslintRuleNames) { - if (tslintData.rules[tslintRuleName] !== undefined) { - delete tslintData.rules[tslintRuleName]; - matchedTSLintRule = true; - } - } - - if (!matchedTSLintRule) { - continue; - } - - console.log(`Re-writing ${typeName}...`); - - if (Object.keys(tslintData.rules).length === 0) { - console.log(`\t${tslintFilePath} has no remaining rules; deleting rules property.`); - delete tslintData.rules; - } else { - console.log(`\t${tslintFilePath} has remaining rules.`); - } - - writeFileFormatted(tslintFilePath, tslintData); - console.log(`\t(Re-)wrote ${tslintFilePath}.`); -} diff --git a/scripts/tslint-rule-to-eslint.js b/scripts/tslint-rule-to-eslint.js deleted file mode 100644 index cf290ce115036d..00000000000000 --- a/scripts/tslint-rule-to-eslint.js +++ /dev/null @@ -1,104 +0,0 @@ -import cp from "child_process"; -import { parse } from "comment-json"; -import fs from "fs"; -import * as path from "path"; -import sh from "shelljs"; - -/** @type {any} */ -const emptyObject = {}; - -/** - * @param {string} filePath - * @returns {any} - */ -const parseAndReadFileContents = filePath => { - try { - return parse(fs.readFileSync(filePath).toString()); - } catch { - return undefined; - } -}; - -/** - * @param {string} contents - */ -function formatFile(contents) { - return cp.execFileSync( - process.execPath, - ["./node_modules/dprint/bin.js", "fmt", "--stdin", "json"], - { - stdio: ["pipe", "pipe", "inherit"], - encoding: "utf-8", - input: contents, - maxBuffer: 100 * 1024 * 1024, // 100 MB "ought to be enough for anyone"; https://github.com/nodejs/node/issues/9829 - }, - ); -} - -/** - * @param {string} filePath - * @param {unknown} contents - */ -const writeFileFormatted = (filePath, contents) => { - fs.writeFileSync( - filePath, - formatFile(JSON.stringify(contents, null, 4)), - ); -}; - -const [, , tslintRuleName, eslintRuleName = "@definitelytyped/" + tslintRuleName] = process.argv; - -sh.exec( - `find types -path '*/node_modules' -prune -o -iname '*.ts' -type f -print | xargs sed -i 's_tslint:disable-next-line[: ]${tslintRuleName}_eslint-disable-next-line ${eslintRuleName}_'`, -); -sh.exec( - `find types -path '*/node_modules' -prune -o -iname '*.ts' -type f -print | xargs sed -i 's_tslint:disable-next-line[: ] ${tslintRuleName}_eslint-disable-next-line ${eslintRuleName}_'`, -); -sh.exec( - `find types -path '*/node_modules' -prune -o -iname '*.ts' -type f -print | xargs sed -i 's_tslint:disable-line[: ]${tslintRuleName}_eslint-disable-line ${eslintRuleName}_'`, -); - -const typeNames = fs.readdirSync("types"); -for (const typeName of typeNames) { - const typeDirectory = path.join("types", typeName); - typeNames.push( - ...(fs.readdirSync(typeDirectory)) - .filter(childDirectory => /^(ts|v)(\d+|\.)+$/.test(childDirectory)) - .map(childDirectory => path.join(typeName, childDirectory)), - ); - - const tslintFilePath = path.join(typeDirectory, "tslint.json"); - /** @type {{ rules?: { [s:string]: boolean }}} */ - const tslintData = parseAndReadFileContents(tslintFilePath); - if (tslintData?.rules?.[tslintRuleName] !== false) { - continue; - } - - console.log(`Converting ${typeName}...`); - - delete tslintData.rules[tslintRuleName]; - if (Object.keys(tslintData.rules).length === 0) { - console.log(`\t${tslintFilePath} has no remaining rules; deleting rules property.`); - delete tslintData.rules; - } else { - console.log(`\t${tslintFilePath} has remaining rules.`); - } - writeFileFormatted(tslintFilePath, tslintData); - - const eslintFilePath = path.join(typeDirectory, ".eslintrc.json"); - const eslintData = parseAndReadFileContents(eslintFilePath) ?? emptyObject; - - if (eslintData === emptyObject) { - console.log(`\t${eslintFilePath} did not yet exist; creating.`); - } else { - console.log(`\t${eslintFilePath} already exists; modifying.`); - } - - writeFileFormatted(eslintFilePath, { - ...eslintData, - rules: { - ...eslintData.rules, - [eslintRuleName]: "off", - }, - }); -} diff --git a/scripts/update-config/LintPackage.js b/scripts/update-config/LintPackage.js deleted file mode 100644 index 463c6794668395..00000000000000 --- a/scripts/update-config/LintPackage.js +++ /dev/null @@ -1,73 +0,0 @@ -import stringify from "json-stable-stringify"; -import * as fs from "node:fs"; -import * as path from "node:path"; -import { Configuration as Config, Linter } from "tslint"; -import { isExternalDependency } from "./dependencies.js"; - -/** - * Represents a package from the linter's perspective. - * For example, `DefinitelyTyped/types/react` and `DefinitelyTyped/types/react/v15` are different - * packages. - */ -export class LintPackage { - /** @type {import("typescript").SourceFile[]} */ - #files = []; - #rootDir; - #program; - - /** - * @param {string} rootDir - */ - constructor(rootDir) { - this.#rootDir = rootDir; - this.#program = Linter.createProgram(path.join(this.#rootDir, "tsconfig.json")); - } - - config() { - return Config.readConfigurationFile(path.join(this.#rootDir, "tslint.json")); - } - - /** - * @param {string} filePath - */ - addFile(filePath) { - const file = this.#program.getSourceFile(filePath); - if (file) { - this.#files.push(file); - } - } - - /** - * @param {import("tslint").ILinterOptions} opts - * @param {import("tslint").Configuration.IConfigurationFile} config - */ - lint(opts, config) { - const linter = new Linter(opts, this.#program); - for (const file of this.#files) { - if (ignoreFile(file, this.#rootDir, this.#program)) { - continue; - } - linter.lint(file.fileName, file.text, config); - } - return linter.getResult(); - } - - /** - * @param {import("tslint").Configuration.RawConfigFile} config - */ - updateConfig(config) { - fs.writeFileSync(path.join(this.#rootDir, "tslint.json"), stringify(config, { space: 4 }), { - encoding: "utf8", - flag: "w", - }); - } -} - -/** - * @param {import("typescript").SourceFile} file - * @param {string} dirPath - * @param {import("typescript").Program} program - */ -function ignoreFile(file, dirPath, program) { - return program.isSourceFileDefaultLibrary(file) || isExternalDependency(file, path.resolve(dirPath), program); -} diff --git a/scripts/update-config/dependencies.js b/scripts/update-config/dependencies.js deleted file mode 100644 index e45a06a6fe39dc..00000000000000 --- a/scripts/update-config/dependencies.js +++ /dev/null @@ -1,30 +0,0 @@ -import * as path from "node:path"; - -/** - * @param {import("typescript").SourceFile} file - * @param {string} dirPath - * @param {import("typescript").Program} program - */ -export function isExternalDependency(file, dirPath, program) { - return !startsWithDirectory(file.fileName, dirPath) || program.isSourceFileFromExternalLibrary(file); -} - -/** - * @param {string} file - */ -export function normalizePath(file) { - // replaces '\' with '/' and forces all DOS drive letters to be upper-case - return path.normalize(file) - .replace(/\\/g, "/") - .replace(/^[a-z](?=:)/, c => c.toUpperCase()); -} - -/** - * @param {string} filePath - * @param {string} dirPath - */ -function startsWithDirectory(filePath, dirPath) { - const normalFilePath = normalizePath(filePath); - const normalDirPath = normalizePath(dirPath).replace(/\/$/, ""); - return normalFilePath.startsWith(normalDirPath + "/") || normalFilePath.startsWith(normalDirPath + "\\"); -} diff --git a/scripts/update-config/ignoredRules.js b/scripts/update-config/ignoredRules.js deleted file mode 100644 index 5cd028fd4fcaba..00000000000000 --- a/scripts/update-config/ignoredRules.js +++ /dev/null @@ -1,2 +0,0 @@ -// Rule "expect" needs TypeScript version information, which this script doesn't collect. -export const ignoredRules = new Set(["expect"]); diff --git a/scripts/update-config/index.js b/scripts/update-config/index.js deleted file mode 100644 index ecb2501e82489a..00000000000000 --- a/scripts/update-config/index.js +++ /dev/null @@ -1,97 +0,0 @@ -// This is a stand-alone script that updates TSLint configurations for DefinitelyTyped packages. -// It runs all rules specified in `dt.json`, and updates the existing configuration for a package -// by adding rule exemptions only for the rules that caused a lint failure. -// For example, if a configuration specifies `"no-trailing-whitespace": false` and this rule -// no longer produces an error, then it will not be disabled in the new configuration. -// If you update or create a rule and now it causes new failures in DT, you can update the `dt.json` -// configuration with your rule, then register a disabler function for your rule -// (check `disableRules` function below), then run this script with your rule as argument. - -import * as fs from "node:fs"; -import * as path from "node:path"; -import { Configuration as Config } from "tslint"; -import yargs from "yargs"; -import { normalizePath } from "./dependencies.js"; -import { ignoredRules } from "./ignoredRules.js"; -import { updatePackage } from "./updatePackage.js"; - -async function main() { - const args = await yargs(process.argv.slice(2)) - .usage(`\`$0 --dt=path-to-dt\` or \`$0 --package=path-to-dt-package\` -'dt.json' is used as the base tslint config for running the linter.`) - .option("package", { - describe: "Path of DT package.", - type: "string", - conflicts: "dt", - }) - .option("dt", { - describe: "Path of local DefinitelyTyped repository.", - type: "string", - conflicts: "package", - }) - .option("rules", { - describe: "Names of the rules to be updated. Leave this empty to update all rules.", - type: "array", - string: true, - default: [], - }) - .check(arg => { - if (!arg.package && !arg.dt) { - throw new Error("You must provide either argument 'package' or 'dt'."); - } - const unsupportedRules = arg.rules.filter(rule => ignoredRules.has(rule)); - if (unsupportedRules.length > 0) { - throw new Error(`Rules ${unsupportedRules.join(", ")} are not supported at the moment.`); - } - return true; - }).argv; - - const baseConfig = dtConfig(args.rules); - - if (args.package) { - updatePackage(args.package, baseConfig); - } else if (args.dt) { - updateAll(args.dt, baseConfig); - } -} - -/** - * @param {string[]} updatedRules - */ -function dtConfig(updatedRules) { - const resolvedDtslint = require.resolve("dtslint"); - const dtConfigPath = normalizePath( - path.join( - resolvedDtslint.slice(0, resolvedDtslint.lastIndexOf("dtslint")), - "dtslint/dt.json", - ), - ); - const config = Config.findConfiguration(dtConfigPath).results; - if (!config) { - throw new Error(`Could not load config at ${dtConfigPath}.`); - } - // Disable ignored or non-updated rules. - for (const entry of config.rules.entries()) { - const [rule, ruleOpts] = entry; - if (ignoredRules.has(rule) || (updatedRules.length > 0 && !updatedRules.includes(rule))) { - ruleOpts.ruleSeverity = "off"; - } - } - return config; -} - -/** - * @param {string} dtPath - * @param {Config.IConfigurationFile} config - */ -function updateAll(dtPath, config) { - const packages = fs.readdirSync(path.join(dtPath, "types")); - for (const pkg of packages) { - updatePackage(path.join(dtPath, "types", pkg), config); - } -} - -main().catch((error) => { - console.error(`Error in update-config: ${error}`); - process.exitCode = 1; -}); diff --git a/scripts/update-config/npmNamingDisabler.js b/scripts/update-config/npmNamingDisabler.js deleted file mode 100644 index 28e987e2c38558..00000000000000 --- a/scripts/update-config/npmNamingDisabler.js +++ /dev/null @@ -1,42 +0,0 @@ -import { defaultErrors, ErrorKind, Mode } from "@definitelytyped/dts-critic"; - -/** - * Given npm-naming lint failures, returns a rule configuration that prevents such failures. - * @param {import("tslint").IRuleFailureJson[]} failures - */ -export function npmNamingDisabler(failures) { - const disabledErrors = new Set(); - for (const ruleFailure of failures) { - if (ruleFailure.ruleName !== "npm-naming") { - throw new Error(`Expected failures of rule "npm-naming", found failures of rule ${ruleFailure.ruleName}.`); - } - const message = ruleFailure.failure; - // Name errors. - if ( - message.includes("must have a matching npm package") - || message.includes("must match a version that exists on npm") - || message.includes("conflicts with the existing npm package") - ) { - return false; - } - // Code errors. - if (message.includes("declaration should use 'export =' syntax")) { - disabledErrors.add(ErrorKind.NeedsExportEquals); - } else if ( - message.includes( - "declaration specifies 'export default' but the JavaScript source \ - does not mention 'default' anywhere", - ) - ) { - disabledErrors.add(ErrorKind.NoDefaultExport); - } else { - return [true, { mode: Mode.NameOnly }]; - } - } - - if (defaultErrors.every(error => disabledErrors.has(error))) { - return [true, { mode: Mode.NameOnly }]; - } - const errors = [...disabledErrors].map(error => [error, false]); - return [true, { mode: Mode.Code, errors }]; -} diff --git a/scripts/update-config/updatePackage.js b/scripts/update-config/updatePackage.js deleted file mode 100644 index 4117795df148f7..00000000000000 --- a/scripts/update-config/updatePackage.js +++ /dev/null @@ -1,125 +0,0 @@ -import * as cp from "node:child_process"; -import * as fs from "node:fs"; -import * as path from "node:path"; - -import { ignoredRules } from "./ignoredRules.js"; -import { LintPackage } from "./LintPackage.js"; -import { npmNamingDisabler } from "./npmNamingDisabler.js"; - -/** - * @param {string} pkgPath - * @param {import("tslint").Configuration.IConfigurationFile} baseConfig - */ -export function updatePackage(pkgPath, baseConfig) { - installDependencies(pkgPath); - const packages = walkPackageDir(pkgPath); - - const linterOpts = { - fix: false, - }; - - for (const pkg of packages) { - const results = pkg.lint(linterOpts, baseConfig); - if (results.failures.length > 0) { - const disabledRules = disableRules(results.failures); - const newConfig = mergeConfigRules(pkg.config(), disabledRules, baseConfig); - pkg.updateConfig(newConfig); - } - } -} - -/** - * @param {string} rootDir - */ -function walkPackageDir(rootDir) { - const packages = []; - - /** - * @param {LintPackage} curPackage - * @param {string} dir - */ - function walk(curPackage, dir) { - for (const ent of fs.readdirSync(dir, { encoding: "utf8", withFileTypes: true })) { - const entPath = path.join(dir, ent.name); - if (ent.isFile()) { - curPackage.addFile(entPath); - } else if (ent.isDirectory() && ent.name !== "node_modules") { - if (isVersionDir(ent.name)) { - const newPackage = new LintPackage(entPath); - packages.push(newPackage); - walk(newPackage, entPath); - } else { - walk(curPackage, entPath); - } - } - } - } - - const lintPackage = new LintPackage(rootDir); - packages.push(lintPackage); - walk(lintPackage, rootDir); - return packages; -} - -/** - * Returns true if directory name matches a TypeScript or package version directory. - * Examples: `ts3.5`, `v11`, `v0.6` are all version names. - * @param {string} dirName - */ -function isVersionDir(dirName) { - return /^ts\d+\.\d$/.test(dirName) || /^v\d+(\.\d+)?$/.test(dirName); -} - -/** - * @param {string} pkgPath - */ -function installDependencies(pkgPath) { - if (fs.existsSync(path.join(pkgPath, "package.json"))) { - cp.execSync( - "npm install --ignore-scripts --no-shrinkwrap --no-package-lock --no-bin-links", - { - encoding: "utf8", - cwd: pkgPath, - }, - ); - } -} - -/** - * @param {import("tslint").Configuration.RawConfigFile} config - * @param {import("tslint").Configuration.RawRulesConfig} newRules - * @param {import("tslint").Configuration.IConfigurationFile} baseConfig - */ -function mergeConfigRules(config, newRules, baseConfig) { - const activeRules = [...baseConfig.rules.entries()] - .filter(([, ruleOpts]) => ruleOpts.ruleSeverity !== "off") - .map(([ruleName]) => ruleName); - const oldRules = config.rules || {}; - const newRulesConfig = { - ...Object.fromEntries(Object.entries(oldRules).filter(([rule]) => !activeRules.includes(rule))), - ...newRules, - }; - return { ...config, rules: newRulesConfig }; -} - -/** - * @param {import("tslint").RuleFailure[]} allFailures - */ -function disableRules(allFailures) { - /** @type {Record} */ - const ruleToFailures = {}; - for (const failure of allFailures) { - const failureJson = failure.toJson(); - if (ignoredRules.has(failureJson.ruleName)) continue; - (ruleToFailures[failureJson.ruleName] ||= []).push(failureJson); - } - - return Object.fromEntries( - Object.entries(ruleToFailures).map(([rule, failures]) => [ - rule, - (rule === "npm-naming" ? npmNamingDisabler : defaultDisabler)(failures), - ]), - ); -} - -const defaultDisabler = () => false; diff --git a/types/11ty__eleventy-img/tslint.json b/types/11ty__eleventy-img/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/11ty__eleventy-img/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/1line-aa/tslint.json b/types/1line-aa/tslint.json deleted file mode 100755 index 794cb4bf3e0782..00000000000000 --- a/types/1line-aa/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/3box/tslint.json b/types/3box/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/3box/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/7zip-min/tslint.json b/types/7zip-min/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/7zip-min/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/a-big-triangle/tslint.json b/types/a-big-triangle/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/a-big-triangle/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/random-words/.npmignore b/types/a-star/.npmignore similarity index 100% rename from types/random-words/.npmignore rename to types/a-star/.npmignore diff --git a/types/a-star/a-star-tests.ts b/types/a-star/a-star-tests.ts new file mode 100644 index 00000000000000..1090feb63e98be --- /dev/null +++ b/types/a-star/a-star-tests.ts @@ -0,0 +1,19 @@ +import aStar = require("a-star"); + +aStar({ + start: { x: 0, y: 0 }, + isEnd: (node) => node.x === 10 && node.y === 10, + neighbor: (node) => { + const neighbors = []; + if (node.x < 10) { + neighbors.push({ x: node.x + 1, y: node.y }); + } + if (node.y < 10) { + neighbors.push({ x: node.x, y: node.y + 1 }); + } + return neighbors; + }, + distance: (from, to) => Math.abs(from.x - to.x) + Math.abs(from.y - to.y), + heuristic: (node) => Math.abs(node.x - 10) + Math.abs(node.y - 10), + hash: (node) => `${node.x},${node.y}`, +}); diff --git a/types/a-star/index.d.ts b/types/a-star/index.d.ts new file mode 100644 index 00000000000000..4229b2f89f05c6 --- /dev/null +++ b/types/a-star/index.d.ts @@ -0,0 +1,42 @@ +export = aStar; + +declare function aStar(options: aStar.Options): aStar.Result; + +declare namespace aStar { + interface Options { + /** The start node */ + start: T; + /** Returns whether a node is an acceptable end. */ + isEnd: (node: T) => boolean; + /** Returns an array of neighbors for a node. */ + neighbor: (node: T) => T[]; + /** Returns the distance between two nodes. */ + distance: (from: T, to: T) => number; + /** + * Returns a heuristic guess of the cost from `node` to an end. This + * function must be [*admissible*](https://en.wikipedia.org/wiki/Admissible_heuristic), + * meaning it must never overestimate the actual cost to get to an end node. + * + * If the heuristic function also satisfies `h(x) <= d(x, y) + h(y)` for + * every edge `x, y` of the graph, then the function is considered + * [*consistent*](https://en.wikipedia.org/wiki/Consistent_heuristic). + * Equivalently, for every node `x` and successor `y` of `x`, the estimated + * cost of reaching the goal from `x` must be no greater than the step cost + * of getting to `y` plus the estimated cost of reaching the goal from `y`. + * This is also equivalent to the triangle inequality. + * + * With a consistent heuristic, A* is guaranteed to find an optimal path + * without processing any node more than once. */ + heuristic: (node: T) => number; + /** Returns a unique string for a node (defaults to `node.toString()`). */ + hash?: ((node: T) => string) | undefined; + /** Limit the number of milliseconds to search before aborting. */ + timeout?: number | undefined; + } + + interface Result { + status: "success" | "noPath" | "timeout"; + path: T[]; + cost: number; + } +} diff --git a/types/a-star/package.json b/types/a-star/package.json new file mode 100644 index 00000000000000..d597c5d212de40 --- /dev/null +++ b/types/a-star/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/a-star", + "version": "0.2.9999", + "projects": [ + "https://github.com/andrewrk/node-astar" + ], + "devDependencies": { + "@types/a-star": "workspace:." + }, + "owners": [ + { + "name": "printfn", + "githubUsername": "printfn" + } + ] +} diff --git a/types/a-star/tsconfig.json b/types/a-star/tsconfig.json new file mode 100644 index 00000000000000..ffaafcfb5100e4 --- /dev/null +++ b/types/a-star/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "a-star-tests.ts" + ] +} diff --git a/types/a2hs.js/tslint.json b/types/a2hs.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/a2hs.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/abbrev/tslint.json b/types/abbrev/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/abbrev/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/abs-svg-path/tslint.json b/types/abs-svg-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/abs-svg-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/abs/tslint.json b/types/abs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/abs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/absinthe__socket/tslint.json b/types/absinthe__socket/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/absinthe__socket/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/absolute-url/tslint.json b/types/absolute-url/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/absolute-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/absolute/tslint.json b/types/absolute/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/absolute/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/abstract-leveldown/tslint.json b/types/abstract-leveldown/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/abstract-leveldown/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/abstract-things/tslint.json b/types/abstract-things/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/abstract-things/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/acc-wizard/.eslintrc.json b/types/acc-wizard/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/acc-wizard/.eslintrc.json +++ b/types/acc-wizard/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/acc-wizard/tslint.json b/types/acc-wizard/tslint.json deleted file mode 100644 index 72ed420ebbd4c3..00000000000000 --- a/types/acc-wizard/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/accedo__accedo-one/tslint.json b/types/accedo__accedo-one/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/accedo__accedo-one/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/accept-language-parser/tslint.json b/types/accept-language-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/accept-language-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/accepts/tslint.json b/types/accepts/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/accepts/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/accessibility/tslint.json b/types/accessibility/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/accessibility/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/accounting/tslint.json b/types/accounting/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/accounting/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/accumulator-hash/tslint.json b/types/accumulator-hash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/accumulator-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/accurate-interval/tslint.json b/types/accurate-interval/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/accurate-interval/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ace-diff/tslint.json b/types/ace-diff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ace-diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ace/tslint.json b/types/ace/tslint.json deleted file mode 100644 index e66dd652b19192..00000000000000 --- a/types/ace/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-string-throw": false, - "no-var-keyword": false, - "no-void-expression": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/ackee-tracker/tslint.json b/types/ackee-tracker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ackee-tracker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/acl/tslint.json b/types/acl/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/acl/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/actioncable/tslint.json b/types/actioncable/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/actioncable/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/activedirectory2/tslint.json b/types/activedirectory2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/activedirectory2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/activestorage/tslint.json b/types/activestorage/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/activestorage/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/activex-access/tslint.json b/types/activex-access/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-access/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-adodb/tslint.json b/types/activex-adodb/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-adodb/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-adox/tslint.json b/types/activex-adox/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-adox/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-dao/tslint.json b/types/activex-dao/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-dao/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-diskquota/tslint.json b/types/activex-diskquota/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/activex-diskquota/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/activex-excel/tslint.json b/types/activex-excel/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-excel/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-faxcomexlib/tslint.json b/types/activex-faxcomexlib/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/activex-faxcomexlib/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/activex-infopath/tslint.json b/types/activex-infopath/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-infopath/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-interop/tslint.json b/types/activex-interop/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/activex-interop/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/activex-iwshruntimelibrary/tslint.json b/types/activex-iwshruntimelibrary/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-iwshruntimelibrary/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-libreoffice/tslint.json b/types/activex-libreoffice/tslint.json deleted file mode 100644 index ab0074ddfe6951..00000000000000 --- a/types/activex-libreoffice/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false, - "no-unnecessary-qualifier": false - } -} diff --git a/types/activex-msforms/tslint.json b/types/activex-msforms/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-msforms/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-mshtml/tslint.json b/types/activex-mshtml/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-mshtml/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-msxml2/tslint.json b/types/activex-msxml2/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-msxml2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-office/tslint.json b/types/activex-office/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-office/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-opendssengine/tslint.json b/types/activex-opendssengine/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/activex-opendssengine/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/activex-outlook/tslint.json b/types/activex-outlook/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-outlook/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-powerpoint/tslint.json b/types/activex-powerpoint/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-powerpoint/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-scripting/tslint.json b/types/activex-scripting/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/activex-scripting/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/activex-shdocvw/tslint.json b/types/activex-shdocvw/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/activex-shdocvw/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/activex-shell/tslint.json b/types/activex-shell/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/activex-shell/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/activex-stdole/tslint.json b/types/activex-stdole/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-stdole/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-vbide/tslint.json b/types/activex-vbide/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-vbide/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-wia/tslint.json b/types/activex-wia/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-wia/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/activex-word/tslint.json b/types/activex-word/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/activex-word/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/adal-angular/tslint.json b/types/adal-angular/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adal-angular/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adblock-rs/tslint.json b/types/adblock-rs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adblock-rs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/add-dom-event-listener/tslint.json b/types/add-dom-event-listener/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/add-dom-event-listener/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/add-zero/tslint.json b/types/add-zero/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/add-zero/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/add/tslint.json b/types/add/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/add/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/add2home/.eslintrc.json b/types/add2home/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/add2home/.eslintrc.json +++ b/types/add2home/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/add2home/tslint.json b/types/add2home/tslint.json deleted file mode 100644 index 1c6a1d9f2da66e..00000000000000 --- a/types/add2home/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "npm-naming": false - } -} diff --git a/types/addons-linter/tslint.json b/types/addons-linter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/addons-linter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/addressparser/tslint.json b/types/addressparser/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/addressparser/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/adeira__graphql-global-id/tslint.json b/types/adeira__graphql-global-id/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adeira__graphql-global-id/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adeira__graphql-resolve-wrapper/tslint.json b/types/adeira__graphql-resolve-wrapper/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adeira__graphql-resolve-wrapper/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adeira__js/tslint.json b/types/adeira__js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adeira__js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adeira__murmur-hash/tslint.json b/types/adeira__murmur-hash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adeira__murmur-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adeira__test-utils/tslint.json b/types/adeira__test-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adeira__test-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adj-noun/tslint.json b/types/adj-noun/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adj-noun/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adlib/tslint.json b/types/adlib/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adlib/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adm-zip/tslint.json b/types/adm-zip/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/adm-zip/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/admin-check/tslint.json b/types/admin-check/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/admin-check/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adobe__aio-lib-analytics/tslint.json b/types/adobe__aio-lib-analytics/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/adobe__aio-lib-analytics/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/adobe__es-modules-middleware/tslint.json b/types/adobe__es-modules-middleware/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/adobe__es-modules-middleware/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/adobe__pdfservices-node-sdk/tslint.json b/types/adobe__pdfservices-node-sdk/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/adobe__pdfservices-node-sdk/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ads-client/tslint.json b/types/ads-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ads-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aes-js/tslint.json b/types/aes-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aes-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/af-utils__react-table/tslint.json b/types/af-utils__react-table/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/af-utils__react-table/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/af-utils__react-virtual-headless/tslint.json b/types/af-utils__react-virtual-headless/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/af-utils__react-virtual-headless/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/af-utils__react-virtual-list/tslint.json b/types/af-utils__react-virtual-list/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/af-utils__react-virtual-list/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aframe/tslint.json b/types/aframe/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/aframe/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/africastalking/tslint.json b/types/africastalking/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/africastalking/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/after-all-results/tslint.json b/types/after-all-results/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/after-all-results/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ag-auth/tslint.json b/types/ag-auth/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ag-auth/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ag-channel/tslint.json b/types/ag-channel/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ag-channel/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ag-channel/v4/tslint.json b/types/ag-channel/v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ag-channel/v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/rdf-loader-code/.npmignore b/types/ag-request/.npmignore similarity index 100% rename from types/rdf-loader-code/.npmignore rename to types/ag-request/.npmignore diff --git a/types/ag-request/ag-request-tests.ts b/types/ag-request/ag-request-tests.ts new file mode 100644 index 00000000000000..356cbabfd31079 --- /dev/null +++ b/types/ag-request/ag-request-tests.ts @@ -0,0 +1,7 @@ +import AGRequest = require("ag-request"); + +declare const socket: AGRequest.Socket; +const request = new AGRequest(socket, 0, "procedure", { foo: 5 }); + +request.end({ foo: 5 }); +request.error(new Error("something failed")); diff --git a/types/ag-request/index.d.ts b/types/ag-request/index.d.ts new file mode 100644 index 00000000000000..fe93a7abdceeb1 --- /dev/null +++ b/types/ag-request/index.d.ts @@ -0,0 +1,22 @@ +declare namespace AGRequest { + interface Socket { + // FIXME Add typed options + sendObject(responseData: unknown, options?: unknown): void; + } +} + +declare class AGRequest { + socket: unknown; + id: unknown; + procedure: string; + data: unknown; + sent: boolean; + + constructor(socket: AGRequest.Socket, id: unknown, procedureName: string, data: unknown); + + // FIXME Add typed options + end: (data: unknown) => void; + error: (error: unknown) => void; +} + +export = AGRequest; diff --git a/types/ag-request/package.json b/types/ag-request/package.json new file mode 100644 index 00000000000000..fbd085b9da4568 --- /dev/null +++ b/types/ag-request/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/ag-request", + "version": "1.0.9999", + "projects": [ + "https://github.com/SocketCluster/ag-request#readme" + ], + "devDependencies": { + "@types/ag-request": "workspace:." + }, + "owners": [ + { + "name": "Nathan Bierema", + "githubUsername": "Methuselah96" + } + ] +} diff --git a/types/ag-request/tsconfig.json b/types/ag-request/tsconfig.json new file mode 100644 index 00000000000000..f7a2b25a1687ad --- /dev/null +++ b/types/ag-request/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "ag-request-tests.ts" + ] +} diff --git a/types/ag-simple-broker/.npmignore b/types/ag-simple-broker/.npmignore index 62191506c25333..88d2e32450c4fa 100644 --- a/types/ag-simple-broker/.npmignore +++ b/types/ag-simple-broker/.npmignore @@ -4,3 +4,4 @@ !**/*.d.mts !**/*.d.*.ts /v4/ +/v5/ diff --git a/types/ag-simple-broker/package.json b/types/ag-simple-broker/package.json index 29ff057533d811..efd11a2681993a 100644 --- a/types/ag-simple-broker/package.json +++ b/types/ag-simple-broker/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/ag-simple-broker", - "version": "5.0.9999", + "version": "6.0.9999", "projects": [ "https://github.com/SocketCluster/ag-simple-broker" ], diff --git a/types/ag-simple-broker/tslint.json b/types/ag-simple-broker/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ag-simple-broker/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ag-simple-broker/v4/tslint.json b/types/ag-simple-broker/v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ag-simple-broker/v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/rdf-loaders-registry/.npmignore b/types/ag-simple-broker/v5/.npmignore similarity index 100% rename from types/rdf-loaders-registry/.npmignore rename to types/ag-simple-broker/v5/.npmignore diff --git a/types/ag-simple-broker/v5/ag-simple-broker-tests.ts b/types/ag-simple-broker/v5/ag-simple-broker-tests.ts new file mode 100644 index 00000000000000..45fd5536801731 --- /dev/null +++ b/types/ag-simple-broker/v5/ag-simple-broker-tests.ts @@ -0,0 +1,57 @@ +import AGSimpleBroker = require("ag-simple-broker"); + +const brokerEngine = new AGSimpleBroker(); + +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const { error } of brokerEngine.listener("error")) { + console.log(error); + } +})(); + +if (brokerEngine.isReady) { + console.log("ready"); +} else { + (async () => { + await brokerEngine.listener("ready").once(); + console.log("ready"); + })(); +} + +const exchange = brokerEngine.exchange(); + +brokerEngine.subscribeSocket(exchange, "test"); + +exchange.invokePublish("test", "dummy"); +exchange.invokePublish("test", {}); + +brokerEngine.unsubscribeSocket(exchange, "test"); + +// check the various events +(async () => { + // $ExpectType {} + await brokerEngine.listener("ready").once(); + + const subscribeResult = await brokerEngine.listener("subscribe").once(); + + // $ExpectType string + subscribeResult.channel; + + const unsubscribeResult = await brokerEngine.listener("unsubscribe").once(); + + // $ExpectType string + unsubscribeResult.channel; + + const errorResult = await brokerEngine.listener("error").once(); + + // $ExpectType any + errorResult.error; + + const publishResult = await brokerEngine.listener("publish").once(); + + // $ExpectType string + publishResult.channel; + + // $ExpectType any + publishResult.data; +})(); diff --git a/types/ag-simple-broker/v5/index.d.ts b/types/ag-simple-broker/v5/index.d.ts new file mode 100644 index 00000000000000..644ca6535009ca --- /dev/null +++ b/types/ag-simple-broker/v5/index.d.ts @@ -0,0 +1,147 @@ +import AsyncStreamEmitter = require("async-stream-emitter"); +import AGServer = require("socketcluster-server/server"); +import ConsumableStream = require("consumable-stream"); +import AGChannel = require("ag-channel"); +import Consumer = require("writable-consumable-stream/consumer"); + +declare class AGSimpleBroker extends AsyncStreamEmitter { + isReady: boolean; + + emit(eventName: "ready", data: {}): void; + emit(eventName: "subscribe", data: AGSimpleBroker.SubscribeData): void; + emit(eventName: "unsubscribe", data: AGSimpleBroker.UnsubscribeData): void; + emit(eventName: "error", data: AGSimpleBroker.ErrorData): void; + emit(eventName: "publish", data: AGSimpleBroker.PublishData): void; + + listener(eventName: "ready"): ConsumableStream<{}>; + listener(eventName: "subscribe"): ConsumableStream; + listener(eventName: "unsubscribe"): ConsumableStream; + listener(eventName: "error"): ConsumableStream; + listener(eventName: "publish"): ConsumableStream; + + exchange(): AGSimpleBroker.SimpleExchange; + + subscribeClient(client: { id: string }, channelName: string): Promise; + subscribeSocket(client: { id: string }, channelName: string): Promise; + + unsubscribeClient(client: { id: string }, channelName: string): Promise; + unsubscribeSocket(client: { id: string }, channelName: string): Promise; + + subscriptions(): string[]; + isSubscribed(channelName: string): boolean; + + setCodecEngine(codec: AGServer.CodecEngine): void; + + invokePublish(channelName: string, data: any, suppressEvent?: boolean): Promise; + transmitPublish(channelName: string, data: any, suppressEvent?: boolean): Promise; +} + +export = AGSimpleBroker; + +declare namespace AGSimpleBroker { + class SimpleExchange extends AsyncStreamEmitter implements AGChannel.Client { + id: string; + + constructor(broker: AGSimpleBroker); + + emit(eventName: "subscribe", data: SubscribeData): void; + emit(eventName: "unsubscribe", data: UnsubscribeData): void; + + listener(eventName: "subscribe"): ConsumableStream; + listener(eventName: "unsubscribe"): ConsumableStream; + + /* AGChannel.Client start */ + + closeChannel(channelName: string): void; + + killChannel(channelName: string): void; + + killChannelOutputConsumer(consumerId: number): void; + killChannelListenerConsumer(consumerId: number): void; + + getChannelOutputConsumerStats(consumerId: number): Consumer.ConsumerStats; + getChannelListenerConsumerStats(consumerId: number): Consumer.ConsumerStats; + + getChannelBackpressure(channelName: string): number; + + getChannelListenerConsumerBackpressure(consumerId: number): number; + getChannelOutputConsumerBackpressure(consumerId: number): number; + + channelCloseOutput(channelName: string): void; + channelCloseListener(channelName: string, eventName: string): void; + channelCloseAllListeners(channelName: string): void; + + channelKillOutput(channelName: string): void; + channelKillListener(channelName: string, eventName: string): void; + channelKillAllListeners(channelName: string): void; + + channelGetOutputConsumerStatsList(channelName: string): Consumer.ConsumerStats[]; + channelGetListenerConsumerStatsList(channelName: string, eventName: string): Consumer.ConsumerStats[]; + channelGetAllListenersConsumerStatsList(channelName: string): Consumer.ConsumerStats[]; + + channelGetOutputBackpressure(channelName: string): number; + channelGetListenerBackpressure(channelName: string, eventName: string): number; + channelGetAllListenersBackpressure(channelName: string): number; + + channelHasOutputConsumer(channelName: string, consumerId: number): boolean; + channelHasListenerConsumer(channelName: string, eventName: string, consumerId: number): boolean; + channelHasAnyListenerConsumer(channelName: string, consumerId: number): boolean; + + getChannelState(channelName: string): AGChannel.ChannelState; + getChannelOptions(channelName: string): object; + + subscribe(channelName: string): AGChannel; + unsubscribe(channelName: string): Promise; + isSubscribed(channelName: string, includePending?: boolean): boolean; + + transmitPublish(channelName: string, data: any): Promise; + invokePublish(channelName: string, data: any): Promise; + + /* AGChannel.Client end */ + + transmit(event: string, packet: any): void; + + destroy(): void; + + channel(channelName: string): AGChannel; + + closeAllChannelOutputs(): void; + closeAllChannelListeners(): void; + closeAllChannels(): void; + + killAllChannelOutputs(): void; + killAllChannelListeners(): void; + killAllChannels(): void; + + getAllChannelOutputsConsumerStatsList(): Consumer.ConsumerStats[]; + + getAllChannelListenersConsumerStatsList(): Consumer.ConsumerStats[]; + + getBackpressure(): number; + getAllChannelOutputsBackpressure(): number; + getAllChannelListenersBackpressure(): number; + getAllChannelsBackpressure(): number; + + hasAnyChannelOutputConsumer(consumerId: number): boolean; + hasAnyChannelListenerConsumer(consumerId: number): boolean; + + subscriptions(includePending?: boolean): string[]; + } + + interface SubscribeData { + channel: string; + } + + interface UnsubscribeData { + channel: string; + } + + interface ErrorData { + error: any; + } + + interface PublishData { + channel: string; + data: any; + } +} diff --git a/types/ag-simple-broker/v5/package.json b/types/ag-simple-broker/v5/package.json new file mode 100644 index 00000000000000..0ed21a830328a8 --- /dev/null +++ b/types/ag-simple-broker/v5/package.json @@ -0,0 +1,28 @@ +{ + "private": true, + "name": "@types/ag-simple-broker", + "version": "5.0.9999", + "projects": [ + "https://github.com/SocketCluster/ag-simple-broker" + ], + "dependencies": { + "@types/ag-channel": "*", + "@types/async-stream-emitter": "^6", + "@types/consumable-stream": "*", + "@types/socketcluster-server": "^18", + "@types/writable-consumable-stream": "*" + }, + "devDependencies": { + "@types/ag-simple-broker": "workspace:." + }, + "owners": [ + { + "name": "Daniel Rose", + "githubUsername": "DanielRose" + }, + { + "name": "Nathan Bierema", + "githubUsername": "Methuselah96" + } + ] +} diff --git a/types/ag-simple-broker/v5/tsconfig.json b/types/ag-simple-broker/v5/tsconfig.json new file mode 100644 index 00000000000000..90d6588a1b8144 --- /dev/null +++ b/types/ag-simple-broker/v5/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "esnext.asynciterable" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "ag-simple-broker-tests.ts" + ] +} diff --git a/types/agadoo/tslint.json b/types/agadoo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/agadoo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/agent-base/tslint.json b/types/agent-base/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/agent-base/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/agiledigital__mule-preview/tslint.json b/types/agiledigital__mule-preview/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/agiledigital__mule-preview/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/agnostic-http-error-handler/tslint.json b/types/agnostic-http-error-handler/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/agnostic-http-error-handler/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ahoy.js/tslint.json b/types/ahoy.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ahoy.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/airbnb-prop-types/package.json b/types/airbnb-prop-types/package.json index 6dad57fb9d2247..b53d884e83ffdf 100644 --- a/types/airbnb-prop-types/package.json +++ b/types/airbnb-prop-types/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@types/airbnb-prop-types": "workspace:.", - "@types/react": "*" + "@types/react": "^16" }, "owners": [ { diff --git a/types/airbnb-prop-types/tslint.json b/types/airbnb-prop-types/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/airbnb-prop-types/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/airbnb__node-memwatch/tslint.json b/types/airbnb__node-memwatch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/airbnb__node-memwatch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ajv-async/tslint.json b/types/ajv-async/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ajv-async/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ajv-bsontype/tslint.json b/types/ajv-bsontype/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ajv-bsontype/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ajv-merge-patch/tslint.json b/types/ajv-merge-patch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ajv-merge-patch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ajv-pack/tslint.json b/types/ajv-pack/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ajv-pack/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/akamai-edgeworkers/index.d.ts b/types/akamai-edgeworkers/index.d.ts index f64bc9487b9a01..108feed2c00ee1 100644 --- a/types/akamai-edgeworkers/index.d.ts +++ b/types/akamai-edgeworkers/index.d.ts @@ -1135,6 +1135,116 @@ declare module "log" { * @param values Zero or more values to record in the log. */ log(format: string, ...values: any): void; + + /** + * Emit a message to the debug level log. If logging is not enabled, this is a noop. + * + * When logging is enabled, the format string indicates how to display + * the arguments. Format specifiers are: + * + * - %s - Call `Value::ToString()` on the corresponding argument. + * - %d or %i - Convert the argument to an integer. + * - %f - Convert the argument to a float. + * - %o or %O - Convert the argument to JSON with `JSON.stringify()`. + * + * See https://console.spec.whatwg.org/#formatter. + * + * When logging is disabled, the format string is not processed, which + * makes it more efficient than string arithmatic in production + * environments. + * + * @param format A format string, containing zero or more specifiers. + * @param values Zero or more values to record in the log. + */ + debug(format: string, ...values: any): void; + + /** + * Emit a message to the error level log. If logging is not enabled, this is a noop. + * + * When logging is enabled, the format string indicates how to display + * the arguments. Format specifiers are: + * + * - %s - Call `Value::ToString()` on the corresponding argument. + * - %d or %i - Convert the argument to an integer. + * - %f - Convert the argument to a float. + * - %o or %O - Convert the argument to JSON with `JSON.stringify()`. + * + * See https://console.spec.whatwg.org/#formatter. + * + * When logging is disabled, the format string is not processed, which + * makes it more efficient than string arithmatic in production + * environments. + * + * @param format A format string, containing zero or more specifiers. + * @param values Zero or more values to record in the log. + */ + error(format: string, ...values: any): void; + + /** + * Emit a message to the info level log. If logging is not enabled, this is a noop. + * + * When logging is enabled, the format string indicates how to display + * the arguments. Format specifiers are: + * + * - %s - Call `Value::ToString()` on the corresponding argument. + * - %d or %i - Convert the argument to an integer. + * - %f - Convert the argument to a float. + * - %o or %O - Convert the argument to JSON with `JSON.stringify()`. + * + * See https://console.spec.whatwg.org/#formatter. + * + * When logging is disabled, the format string is not processed, which + * makes it more efficient than string arithmatic in production + * environments. + * + * @param format A format string, containing zero or more specifiers. + * @param values Zero or more values to record in the log. + */ + info(format: string, ...values: any): void; + + /** + * Emit a message to the trace level log. If logging is not enabled, this is a noop. + * + * When logging is enabled, the format string indicates how to display + * the arguments. Format specifiers are: + * + * - %s - Call `Value::ToString()` on the corresponding argument. + * - %d or %i - Convert the argument to an integer. + * - %f - Convert the argument to a float. + * - %o or %O - Convert the argument to JSON with `JSON.stringify()`. + * + * See https://console.spec.whatwg.org/#formatter. + * + * When logging is disabled, the format string is not processed, which + * makes it more efficient than string arithmatic in production + * environments. + * + * @param format A format string, containing zero or more specifiers. + * @param values Zero or more values to record in the log. + */ + trace(format: string, ...values: any): void; + + /** + * Emit a message to the warn level log. If logging is not enabled, this is a noop. + * + * When logging is enabled, the format string indicates how to display + * the arguments. Format specifiers are: + * + * - %s - Call `Value::ToString()` on the corresponding argument. + * - %d or %i - Convert the argument to an integer. + * - %f - Convert the argument to a float. + * - %o or %O - Convert the argument to JSON with `JSON.stringify()`. + * + * See https://console.spec.whatwg.org/#formatter. + * + * When logging is disabled, the format string is not processed, which + * makes it more efficient than string arithmatic in production + * environments. + * + * @param format A format string, containing zero or more specifiers. + * @param values Zero or more values to record in the log. + */ + warn(format: string, ...values: any): void; } const logger: Logger; @@ -1228,6 +1338,13 @@ declare module "encoding" { * @param outputFormat Optional argument for output format type. */ decode(encodedData: string, outputFormat?: "String" | "Uint8Array"): DecodedValue; + + /** + * @param dataToBeEncoded Input Uint8Array that needs to be encoded. + * + * @returns encoded base64 string. + */ + encode(dataToBeEncoded: Uint8Array): string; } const base64: Base64; @@ -1238,6 +1355,13 @@ declare module "encoding" { * @param outputFormat Optional argument for output format type. */ decode(encodedData: string, outputFormat?: "String" | "Uint8Array"): DecodedValue; + + /** + * @param dataToBeEncoded Input Uint8Array that needs to be encoded. + * + * @returns encoded base64url string. + */ + encode(dataToBeEncoded: Uint8Array): string; } const base64url: Base64url; @@ -1248,6 +1372,13 @@ declare module "encoding" { * @param outputFormat Optional argument for output format type. */ decode(encodedData: string, outputFormat?: "String" | "Uint8Array"): DecodedValue; + + /** + * @param dataToBeEncoded Input Uint8Array that needs to be encoded. + * + * @returns encoded base16 string. + */ + encode(dataToBeEncoded: Uint8Array): string; } const base16: Base16; diff --git a/types/akamai-edgeworkers/test/encoding.ts b/types/akamai-edgeworkers/test/encoding.ts index 985888078e8b30..910047c609690d 100644 --- a/types/akamai-edgeworkers/test/encoding.ts +++ b/types/akamai-edgeworkers/test/encoding.ts @@ -1,6 +1,22 @@ import { atob, base16, base64, base64url, btoa, TextDecoder, TextEncoder } from "encoding"; export function onClientRequest(request: EW.IngressClientRequest) { + const str = "Hello, world!"; + const enc1 = base64.encode(toBytesArray(str)); // "Hello, world!" + const dec1 = base64.decode(enc1, "String"); // decode to "Hello, world!" + if (str !== dec1) { + request.respondWith(400, {}, "`base64` encode or decode gone wrong!"); + } + const enc2 = base64url.encode(toBytesArray(str)); // "Hello, world!" + const dec2 = base64url.decode(enc2, "String"); // decode to "Hello, world!" + if (str !== dec2) { + request.respondWith(400, {}, "`base64url` encode or decode gone wrong!"); + } + const enc3 = base16.encode(new Uint8Array([72, 101, 108, 108, 111])); // "Hello" + const dec3 = base16.decode(enc3, "String"); // decode to "Hello" + if (str !== dec3) { + request.respondWith(400, {}, "`base16` encode or decode gone wrong!"); + } const result = base64.decode("SGVsbG8=", "String"); // decode to "Hello" const dec = atob("V29ybGQ="); // decodes to "World" request.setHeader("output", result.toString() + dec); @@ -64,3 +80,8 @@ export function onClientResponse(request: EW.EgressClientRequest, response: EW.E output += decoder.decode(); // produces "€" request.respondWith(201, {}, output); } + +function toBytesArray(str: string) { + const encoder = new TextEncoder(); + return encoder.encode(str); +} diff --git a/types/akamai-edgeworkers/test/log-tests.ts b/types/akamai-edgeworkers/test/log-tests.ts index 2d71bb56f03690..3bc8ac4f85818c 100644 --- a/types/akamai-edgeworkers/test/log-tests.ts +++ b/types/akamai-edgeworkers/test/log-tests.ts @@ -3,3 +3,11 @@ import { logger } from "log"; logger.log(""); logger.log("%s", "hi"); logger.log("%i %o", 9, { obj: true }); +logger.error(""); +logger.debug("b", "c", "d"); +logger.error("%s %s %s", "boop"); +logger.log("%s %s %s", "hi", 1, { hello_obj: "Hello" }); +logger.warn("%s %s %s", "hi", 1, {}); +logger.info("%s %s %s", "boop"); +logger.debug("b", "c", "d"); +logger.trace("%s %s %s", "hi", 1, { trace: 1 }); diff --git a/types/akamai-edgeworkers/tslint.json b/types/akamai-edgeworkers/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/akamai-edgeworkers/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/akumina-core/.eslintrc.json b/types/akumina-core/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/akumina-core/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/akumina-core/tslint.json b/types/akumina-core/tslint.json deleted file mode 100644 index 819fd391589a58..00000000000000 --- a/types/akumina-core/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-class": false, - "npm-naming": false - } -} diff --git a/types/akumina-core/v4/.eslintrc.json b/types/akumina-core/v4/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/akumina-core/v4/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/akumina-core/v4/tslint.json b/types/akumina-core/v4/tslint.json deleted file mode 100644 index 819fd391589a58..00000000000000 --- a/types/akumina-core/v4/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-class": false, - "npm-naming": false - } -} diff --git a/types/alcides/tslint.json b/types/alcides/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alcides/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ale-url-parser/tslint.json b/types/ale-url-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ale-url-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alertify/tslint.json b/types/alertify/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/alertify/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/alexa-voice-service/tslint.json b/types/alexa-voice-service/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alexa-voice-service/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/algebra.js/tslint.json b/types/algebra.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/algebra.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ali-app/tslint.json b/types/ali-app/tslint.json deleted file mode 100644 index 53be931499333c..00000000000000 --- a/types/ali-app/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false - } -} diff --git a/types/ali-oss/tslint.json b/types/ali-oss/tslint.json deleted file mode 100644 index 53be931499333c..00000000000000 --- a/types/ali-oss/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false - } -} diff --git a/types/align-text/tslint.json b/types/align-text/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/align-text/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alipayjssdk/tslint.json b/types/alipayjssdk/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/alipayjssdk/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/alks-node/tslint.json b/types/alks-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alks-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/all-the-cities/tslint.json b/types/all-the-cities/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/all-the-cities/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/all-the-package-names/tslint.json b/types/all-the-package-names/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/all-the-package-names/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alloy/tslint.json b/types/alloy/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/alloy/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/allure-js-commons/tslint.json b/types/allure-js-commons/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/allure-js-commons/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/almost-equal/tslint.json b/types/almost-equal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/almost-equal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpha-bravo/tslint.json b/types/alpha-bravo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpha-bravo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpha-shape/tslint.json b/types/alpha-shape/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpha-shape/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpinejs/alpinejs-tests.ts b/types/alpinejs/alpinejs-tests.ts index fae5ac15a16959..794f431d0c44e0 100644 --- a/types/alpinejs/alpinejs-tests.ts +++ b/types/alpinejs/alpinejs-tests.ts @@ -12,6 +12,7 @@ import Alpine, { DirectiveData, DirectiveUtilities, ElementWithXAttributes, + InterceptorObject, } from "alpinejs"; { @@ -247,12 +248,18 @@ import Alpine, { // $ExpectType interceptor Alpine.interceptor; - Alpine.data("user", () => ({ + // This uses the generics as older versions of TypeScript don't properly infer the argument types + Alpine.data<{ + intercepted: InterceptorObject<"foo">; + init(): void; + hello: "world"; + }, [hello: "world"]>("user", (hello: "world") => ({ // checks argument support intercepted: Alpine.interceptor((initialValue: "foo") => initialValue)("foo"), init() { // $ExpectType "foo" this.intercepted; }, + hello, })); let alias: string; diff --git a/types/alpinejs/index.d.ts b/types/alpinejs/index.d.ts index 1080f9efc7605d..33ca5d4a863d3f 100644 --- a/types/alpinejs/index.d.ts +++ b/types/alpinejs/index.d.ts @@ -103,10 +103,10 @@ export interface InterceptorObject { } type InferInterceptor = T extends InterceptorObject ? U - : T extends Record ? { - [K in keyof T]: InferInterceptor; - } - : T; + : keyof T extends never ? T + : { + [K in keyof T]: InferInterceptor; + }; export type InferInterceptors = { [K in keyof T]: InferInterceptor; @@ -140,7 +140,7 @@ export type AlpineComponent = T & XDataContext & ThisType { } export interface Alpine { + /** + * Wraps an object in a reactive proxy + * + * @param obj an object to be wrapped + * @returns a reactive proxy + */ readonly reactive: (obj: T) => T; + /** + * Stops an effect from re-evaluating on dependency change + * + * @param effect reactive operation + */ readonly release: (effect: ReactiveEffect) => void; + /** + * Creates a reactive effect + * + * @param fn callback to be executed when dependencies change + * @returns effect + */ readonly effect: (fn: () => T) => ReactiveEffect; + /** + * Returns the raw value of a reactive proxy + * + * @param obj reactive proxy + * @returns raw object + */ readonly raw: (obj: T) => T; version: string; flushAndStopDeferringMutations: () => void; @@ -241,7 +264,7 @@ export interface Alpine { addRootSelector: (selectorCallback: () => string) => void; addInitSelector: (selectorCallback: () => string) => void; addScopeToNode: ( - node: ElementWithXAttributes, + node: Element, data: Record, referenceNode?: ElementWithXAttributes, ) => () => void; @@ -252,8 +275,12 @@ export interface Alpine { value: string | (() => unknown); }, ) => void; + /** + * Provides a function that can be called to evaluate an expression + * in the context of the specified element + */ evaluateLater: ( - el: ElementWithXAttributes, + el: Element, expression?: string | (() => T_1), ) => ( callback?: (value: T_1) => void, @@ -275,6 +302,11 @@ export interface Alpine { }, ) => void, ) => void; + /** + * "Flattens" an array of objects into a single Proxy object + * @param {Array} objects + * @returns flattened object + */ mergeProxies: (objects: Array>) => Record; extractProp: ( el: ElementWithXAttributes, @@ -282,10 +314,13 @@ export interface Alpine { fallback: T_3 | (() => T_3), extract?: boolean, ) => unknown; - findClosest: ( - el: ElementWithXAttributes, - callback: (el: ElementWithXAttributes) => boolean, - ) => ElementWithXAttributes; + /** + * Finds closest Node that satisfies the provided test function + * @param {Node} el + * @param callback + * @returns {Node} + */ + findClosest: (el: Element, callback: (el: ElementWithXAttributes) => boolean) => Element; closestRoot: (el: ElementWithXAttributes, includeInitSelectors?: boolean) => ElementWithXAttributes | undefined; destroyTree: (root: ElementWithXAttributes) => void; interceptor: interceptor; @@ -314,13 +349,30 @@ export interface Alpine { after?: () => void, ) => void; setStyles: (el: ElementWithXAttributes, value: string | Partial) => () => void; + /** + * Runs an operation without having Alpine react to changes in the DOM caused by the function + * Useful for making a set of changes to the DOM and manually handling initialization + * @param {function} callback + */ mutateDom: (callback: () => T_5) => T_5; + /** + * Registers a new directive that can be used in markup (ex. `x-directive`) + * @param {string} name + * @param {function} callback + */ directive: ( name: string, callback: DirectiveCallback, ) => { before(directive: string): void; }; + /** + * Entangles two objects + * Creates a reactive effect that bidirectionally bings the getters and setters on each object + * + * @param outer + * @param inner + */ entangle: ( { get: outerGet, @@ -337,35 +389,92 @@ export interface Alpine { set: (value: T_6) => void; }, ) => () => void; + /** + * Provides a throttled version of the passed in function + * Can be called multiple times and only executes once per specified time + * + * @param {function} func + * @param {number} wait time to throttle + * @returns {function} throttled function + */ throttle: ) => void>( func: T_7, limit?: number, ) => (...args: Parameters) => void; + /** + * Provides a debounced version of the passed in function + * Can be called multiple times and only executes after specified delay + * since last call + * + * @param {function} func + * @param {number} wait time to debounce + * @returns {function} debounced function + */ debounce: ) => void>(func: T_8, wait?: number) => T_8; - evaluate: (el: ElementWithXAttributes, expression: string | (() => T_9), extras?: {}) => T_9; + /** + * Evaluates a string expression within the Alpine context of a particular Node + * + * @param {Node} el element in Alpine Context + * @param {string} expression function or string expression + * @param {object} extras additional values to expose to the expression + * @returns whatever the expression returns + */ + evaluate: (el: Node, expression: string | (() => T_9), extras?: {}) => T_9; initTree: ( el: ElementWithXAttributes, walker?: (el: ElementWithXAttributes, callback: WalkerCallback) => any, intercept?: WalkerCallback, ) => void; + /** + * Waits until after a frame is painted to continue execution + * @param callback + * @returns Promise that resolves on the next frame + */ nextTick: (callback?: () => void) => Promise; prefixed: (subject?: string) => string; prefix: (newPrefix: string) => void; + /** + * Registers Plugins onto Alpine + */ plugin: (callbacks: PluginCallback | PluginCallback[]) => void; + /** + * Registers a magic accessible at $name in Alpine contexts + * @param name name of Magic + * @param callback Method that builds the magic's value + */ magic: (name: string, callback: (el: ElementWithXAttributes, options: MagicUtilities) => unknown) => void; + /** + * Registers a global reactive store to a name + * or accesses a global reactive store by name + */ store: { (name: T): Stores[T]; (name: T, value: Stores[T]): void; }; + /** + * Starts Alpine on the current document + */ start: () => void; clone: (oldEl: ElementWithXAttributes, newEl: ElementWithXAttributes) => void; bound: (el: ElementWithXAttributes, name: string, fallback?: unknown) => unknown; + /** + * Gets the data context of a particular Node + * This is a "flattened" object of all the components that element is within + * @param node Element inside an Alpine Component + * @returns Object + */ $data: (node: ElementWithXAttributes) => {}; walk: (el: ElementWithXAttributes, callback: WalkerCallback) => any; + /** + * Registers a component constructor a name referenceable inside `x-data` expressions + * + * @param name Component name + * @param callback Data context constructor function + */ // eslint-disable-next-line @definitelytyped/no-unnecessary-generics - data: >( + data: ( name: string, - callback: (...args: unknown[]) => AlpineComponent, // Needed generic to properly autotype objects + callback: (...args: A) => AlpineComponent, // Needed generic to properly autotype objects ) => void; bind: (name: string | ElementWithXAttributes, bindings: Bindings | ((...args: unknown[]) => Bindings)) => void; } diff --git a/types/alpinejs/tslint.json b/types/alpinejs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpinejs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpinejs__anchor/tslint.json b/types/alpinejs__anchor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpinejs__anchor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpinejs__collapse/tslint.json b/types/alpinejs__collapse/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpinejs__collapse/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpinejs__focus/tslint.json b/types/alpinejs__focus/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpinejs__focus/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpinejs__intersect/tslint.json b/types/alpinejs__intersect/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpinejs__intersect/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpinejs__mask/tslint.json b/types/alpinejs__mask/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpinejs__mask/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpinejs__morph/tslint.json b/types/alpinejs__morph/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpinejs__morph/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alpinejs__persist/tslint.json b/types/alpinejs__persist/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/alpinejs__persist/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/alt/tslint.json b/types/alt/tslint.json deleted file mode 100644 index ffdc889a09656f..00000000000000 --- a/types/alt/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-inferrable-types": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/amap-js-api-arrival-range/tslint.json b/types/amap-js-api-arrival-range/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-arrival-range/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-autocomplete/tslint.json b/types/amap-js-api-autocomplete/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-autocomplete/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-city-search/tslint.json b/types/amap-js-api-city-search/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-city-search/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-control-bar/tslint.json b/types/amap-js-api-control-bar/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-control-bar/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-district-search/tslint.json b/types/amap-js-api-district-search/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-district-search/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-driving/tslint.json b/types/amap-js-api-driving/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-driving/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-geocoder/tslint.json b/types/amap-js-api-geocoder/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-geocoder/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-geolocation/tslint.json b/types/amap-js-api-geolocation/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-geolocation/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-heatmap/tslint.json b/types/amap-js-api-heatmap/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-heatmap/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-indoor-map/tslint.json b/types/amap-js-api-indoor-map/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-indoor-map/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-line-search/tslint.json b/types/amap-js-api-line-search/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-line-search/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-map-type/tslint.json b/types/amap-js-api-map-type/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-map-type/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-map3d/tslint.json b/types/amap-js-api-map3d/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-map3d/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-overview/tslint.json b/types/amap-js-api-overview/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-overview/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-place-search/tslint.json b/types/amap-js-api-place-search/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-place-search/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-riding/tslint.json b/types/amap-js-api-riding/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-riding/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-scale/tslint.json b/types/amap-js-api-scale/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-scale/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-station-search/tslint.json b/types/amap-js-api-station-search/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-station-search/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-tool-bar/tslint.json b/types/amap-js-api-tool-bar/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-tool-bar/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api-transfer/tslint.json b/types/amap-js-api-transfer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api-transfer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-api/.eslintrc.json b/types/amap-js-api/.eslintrc.json index 9b6fd3e0f09a7d..3accbf9293bc8c 100644 --- a/types/amap-js-api/.eslintrc.json +++ b/types/amap-js-api/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/no-single-element-tuple-type": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/amap-js-api/tslint.json b/types/amap-js-api/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amap-js-api/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/amap-js-sdk/tslint.json b/types/amap-js-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/amap-js-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amazon-cognito-auth-js/tslint.json b/types/amazon-cognito-auth-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/amazon-cognito-auth-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amazon-dax-client/tslint.json b/types/amazon-dax-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/amazon-dax-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amazon-product-api/tslint.json b/types/amazon-product-api/tslint.json deleted file mode 100644 index 6df2a1b3df723f..00000000000000 --- a/types/amazon-product-api/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false - } -} diff --git a/types/ambient-weather-api/tslint.json b/types/ambient-weather-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ambient-weather-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amcharts/.eslintrc.json b/types/amcharts/.eslintrc.json index 79ee5b5a1a5836..01ad6d65a9c9e6 100644 --- a/types/amcharts/.eslintrc.json +++ b/types/amcharts/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/no-single-element-tuple-type": "off" + "@definitelytyped/no-single-element-tuple-type": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/amcharts/tslint.json b/types/amcharts/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/amcharts/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/americanexpress__react-seo/index.d.ts b/types/americanexpress__react-seo/index.d.ts index ed173cc6dd24fc..d4a37b43b2cef6 100644 --- a/types/americanexpress__react-seo/index.d.ts +++ b/types/americanexpress__react-seo/index.d.ts @@ -1,3 +1,4 @@ +import { JSX } from "react"; export interface Media { src: string; secureUrl?: string; diff --git a/types/americanexpress__react-seo/package.json b/types/americanexpress__react-seo/package.json index 40e8bb68c85c64..557a4cb240fa0e 100644 --- a/types/americanexpress__react-seo/package.json +++ b/types/americanexpress__react-seo/package.json @@ -5,10 +5,12 @@ "projects": [ "https://github.com/americanexpress/react-seo" ], - "devDependencies": { - "@types/americanexpress__react-seo": "workspace:.", + "dependencies": { "@types/react": "*" }, + "devDependencies": { + "@types/americanexpress__react-seo": "workspace:." + }, "owners": [ { "name": "Zenoo", diff --git a/types/americanexpress__react-seo/tslint.json b/types/americanexpress__react-seo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/americanexpress__react-seo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amp-message/tslint.json b/types/amp-message/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/amp-message/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amp/tslint.json b/types/amp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/amp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amphtml-validator/tslint.json b/types/amphtml-validator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/amphtml-validator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amplifier/.eslintrc.json b/types/amplifier/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/amplifier/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/amplifier/tslint.json b/types/amplifier/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/amplifier/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/amplify-deferred/.eslintrc.json b/types/amplify-deferred/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/amplify-deferred/.eslintrc.json +++ b/types/amplify-deferred/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/amplify-deferred/tslint.json b/types/amplify-deferred/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/amplify-deferred/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/amplify/.eslintrc.json b/types/amplify/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/amplify/.eslintrc.json +++ b/types/amplify/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/amplify/tslint.json b/types/amplify/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/amplify/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/amplitude-js/tslint.json b/types/amplitude-js/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/amplitude-js/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/amplitude-js/v4/tslint.json b/types/amplitude-js/v4/tslint.json deleted file mode 100644 index 29a15e5b44ca08..00000000000000 --- a/types/amplitude-js/v4/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-boolean-literal-compare": false, - "no-namespace": false, - "no-var-keyword": false, - "only-arrow-functions": false - } -} diff --git a/types/amplitude-js/v5/tslint.json b/types/amplitude-js/v5/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/amplitude-js/v5/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/amqp-rpc/tslint.json b/types/amqp-rpc/tslint.json deleted file mode 100644 index a48935b1927690..00000000000000 --- a/types/amqp-rpc/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false - } -} diff --git a/types/amqp/tslint.json b/types/amqp/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/amqp/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/amqplib/tslint.json b/types/amqplib/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/amqplib/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/analog-clock/tslint.json b/types/analog-clock/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/analog-clock/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/analytics-node/tslint.json b/types/analytics-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/analytics-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/anchor-js/tslint.json b/types/anchor-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/anchor-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/android-device-list/tslint.json b/types/android-device-list/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/android-device-list/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/android-versions/tslint.json b/types/android-versions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/android-versions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/angular-agility/tslint.json b/types/angular-agility/tslint.json deleted file mode 100644 index 14d8eb09eeafe3..00000000000000 --- a/types/angular-agility/tslint.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "arrow-return-shorthand": false, - "no-object-literal-type-assertion": false, - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/angular-animate/tslint.json b/types/angular-animate/tslint.json deleted file mode 100644 index 3b98e9902aec85..00000000000000 --- a/types/angular-animate/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "unified-signatures": false - } -} diff --git a/types/angular-aria/tslint.json b/types/angular-aria/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/angular-aria/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/angular-block-ui/tslint.json b/types/angular-block-ui/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/angular-block-ui/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/angular-bootstrap-calendar/tslint.json b/types/angular-bootstrap-calendar/tslint.json deleted file mode 100644 index 3d87576ad7de93..00000000000000 --- a/types/angular-bootstrap-calendar/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false - } -} diff --git a/types/angular-bootstrap-lightbox/tslint.json b/types/angular-bootstrap-lightbox/tslint.json deleted file mode 100644 index f9475fd4df533a..00000000000000 --- a/types/angular-bootstrap-lightbox/tslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/angular-breadcrumb/tslint.json b/types/angular-breadcrumb/tslint.json deleted file mode 100644 index 398d313224b578..00000000000000 --- a/types/angular-breadcrumb/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-qualifier": false - } -} diff --git a/types/angular-clipboard/tslint.json b/types/angular-clipboard/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/angular-clipboard/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/angular-cookie/tslint.json b/types/angular-cookie/tslint.json deleted file mode 100644 index 9dbebc888fc87c..00000000000000 --- a/types/angular-cookie/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-cookies/tslint.json b/types/angular-cookies/tslint.json deleted file mode 100644 index c20284e1fbc90e..00000000000000 --- a/types/angular-cookies/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false - } -} diff --git a/types/angular-deferred-bootstrap/tslint.json b/types/angular-deferred-bootstrap/tslint.json deleted file mode 100644 index c1806eec64e0be..00000000000000 --- a/types/angular-deferred-bootstrap/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false - } -} diff --git a/types/angular-desktop-notification/tslint.json b/types/angular-desktop-notification/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/angular-desktop-notification/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/angular-dialog-service/.eslintrc.json b/types/angular-dialog-service/.eslintrc.json index c47b3f50daa904..d35573b5b1c72b 100644 --- a/types/angular-dialog-service/.eslintrc.json +++ b/types/angular-dialog-service/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off" } } diff --git a/types/angular-dialog-service/tslint.json b/types/angular-dialog-service/tslint.json deleted file mode 100644 index b3b932590fc3ad..00000000000000 --- a/types/angular-dialog-service/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/angular-environment/tslint.json b/types/angular-environment/tslint.json deleted file mode 100644 index e2652fbdb44daa..00000000000000 --- a/types/angular-environment/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false - } -} diff --git a/types/angular-es/tslint.json b/types/angular-es/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/angular-es/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/angular-feature-flags/tslint.json b/types/angular-feature-flags/tslint.json deleted file mode 100644 index 35121118d544db..00000000000000 --- a/types/angular-feature-flags/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "only-arrow-functions": false - } -} diff --git a/types/angular-file-saver/tslint.json b/types/angular-file-saver/tslint.json deleted file mode 100644 index 87dbfbb389e9e3..00000000000000 --- a/types/angular-file-saver/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/angular-file-upload/tslint.json b/types/angular-file-upload/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/angular-file-upload/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/angular-formly/tslint.json b/types/angular-formly/tslint.json deleted file mode 100644 index 3f4f337bb6a3bf..00000000000000 --- a/types/angular-formly/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/angular-fullscreen/tslint.json b/types/angular-fullscreen/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/angular-fullscreen/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/angular-gettext/tslint.json b/types/angular-gettext/tslint.json deleted file mode 100644 index afab31ad94ab70..00000000000000 --- a/types/angular-gettext/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/angular-google-analytics/tslint.json b/types/angular-google-analytics/tslint.json deleted file mode 100644 index e05c425013b8d7..00000000000000 --- a/types/angular-google-analytics/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ], - "prefer-const": false - } -} diff --git a/types/angular-gridster/tslint.json b/types/angular-gridster/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/angular-gridster/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/angular-growl-v2/tslint.json b/types/angular-growl-v2/tslint.json deleted file mode 100644 index 20bc163d7fa80a..00000000000000 --- a/types/angular-growl-v2/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-hotkeys/tslint.json b/types/angular-hotkeys/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/angular-hotkeys/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/angular-http-auth/tslint.json b/types/angular-http-auth/tslint.json deleted file mode 100644 index 3516a57389203a..00000000000000 --- a/types/angular-http-auth/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "only-arrow-functions": false - } -} diff --git a/types/angular-httpi/.eslintrc.json b/types/angular-httpi/.eslintrc.json index b998f99b964396..c737de27eb73f5 100644 --- a/types/angular-httpi/.eslintrc.json +++ b/types/angular-httpi/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-unnecessary-generics": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/angular-httpi/tslint.json b/types/angular-httpi/tslint.json deleted file mode 100644 index b551c2db92af49..00000000000000 --- a/types/angular-httpi/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/angular-idle/.eslintrc.json b/types/angular-idle/.eslintrc.json index d2f42ca8616c8e..db1b55b94d5980 100644 --- a/types/angular-idle/.eslintrc.json +++ b/types/angular-idle/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/triple-slash-reference": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/angular-idle/tslint.json b/types/angular-idle/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/angular-idle/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/angular-jwt/tslint.json b/types/angular-jwt/tslint.json deleted file mode 100644 index f9475fd4df533a..00000000000000 --- a/types/angular-jwt/tslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/angular-load/tslint.json b/types/angular-load/tslint.json deleted file mode 100644 index c1806eec64e0be..00000000000000 --- a/types/angular-load/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false - } -} diff --git a/types/angular-loading-bar/tslint.json b/types/angular-loading-bar/tslint.json deleted file mode 100644 index 55204b0f0e5c5a..00000000000000 --- a/types/angular-loading-bar/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-var-keyword": false - } -} diff --git a/types/angular-local-storage/tslint.json b/types/angular-local-storage/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/angular-local-storage/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/angular-localforage/tslint.json b/types/angular-localforage/tslint.json deleted file mode 100644 index 5bdb59d5f59257..00000000000000 --- a/types/angular-localforage/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/angular-locker/tslint.json b/types/angular-locker/tslint.json deleted file mode 100644 index 4c102b9b7089d9..00000000000000 --- a/types/angular-locker/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-material/tslint.json b/types/angular-material/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/angular-material/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/angular-media-queries/tslint.json b/types/angular-media-queries/tslint.json deleted file mode 100644 index 44114f1f405849..00000000000000 --- a/types/angular-media-queries/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/angular-meteor/.eslintrc.json b/types/angular-meteor/.eslintrc.json index da17ceeaad7471..053ee689f5a348 100644 --- a/types/angular-meteor/.eslintrc.json +++ b/types/angular-meteor/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/no-unnecessary-generics": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/angular-meteor/tslint.json b/types/angular-meteor/tslint.json deleted file mode 100644 index cb53290f9df8fe..00000000000000 --- a/types/angular-meteor/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "arrow-return-shorthand": false, - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false - } -} diff --git a/types/angular-mocks/tslint.json b/types/angular-mocks/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/angular-mocks/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/angular-modal/tslint.json b/types/angular-modal/tslint.json deleted file mode 100644 index bc7715db4bee40..00000000000000 --- a/types/angular-modal/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/angular-notifications/tslint.json b/types/angular-notifications/tslint.json deleted file mode 100644 index 225c8db7bbfd02..00000000000000 --- a/types/angular-notifications/tslint.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ], - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-notify/.eslintrc.json b/types/angular-notify/.eslintrc.json index d2f42ca8616c8e..db1b55b94d5980 100644 --- a/types/angular-notify/.eslintrc.json +++ b/types/angular-notify/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/triple-slash-reference": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/angular-notify/tslint.json b/types/angular-notify/tslint.json deleted file mode 100644 index e9773438c1de61..00000000000000 --- a/types/angular-notify/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-oauth2/tslint.json b/types/angular-oauth2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/angular-oauth2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/angular-odata-resources/tslint.json b/types/angular-odata-resources/tslint.json deleted file mode 100644 index 365bbf890067cf..00000000000000 --- a/types/angular-odata-resources/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/angular-pdfjs-viewer/tslint.json b/types/angular-pdfjs-viewer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/angular-pdfjs-viewer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/angular-permission/tslint.json b/types/angular-permission/tslint.json deleted file mode 100644 index a0f48b435eb592..00000000000000 --- a/types/angular-permission/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-promise-tracker/tslint.json b/types/angular-promise-tracker/tslint.json deleted file mode 100644 index bebf0541130966..00000000000000 --- a/types/angular-promise-tracker/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false, - "no-unnecessary-qualifier": false - } -} diff --git a/types/angular-q-extras/tslint.json b/types/angular-q-extras/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/angular-q-extras/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/angular-q-spread/tslint.json b/types/angular-q-spread/tslint.json deleted file mode 100644 index 3b9ed126eb87a1..00000000000000 --- a/types/angular-q-spread/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "prefer-template": false - } -} diff --git a/types/angular-resource/tslint.json b/types/angular-resource/tslint.json deleted file mode 100644 index cd7af589ffe520..00000000000000 --- a/types/angular-resource/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/angular-route/tslint.json b/types/angular-route/tslint.json deleted file mode 100644 index 2c0ad7df77c1df..00000000000000 --- a/types/angular-route/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/angular-sanitize/tslint.json b/types/angular-sanitize/tslint.json deleted file mode 100644 index 7bed62bc37f548..00000000000000 --- a/types/angular-sanitize/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false - } -} diff --git a/types/angular-scenario/tslint.json b/types/angular-scenario/tslint.json deleted file mode 100644 index 961736c015599a..00000000000000 --- a/types/angular-scenario/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "unified-signatures": false - } -} diff --git a/types/angular-scroll/tslint.json b/types/angular-scroll/tslint.json deleted file mode 100644 index 810404b5fd59e0..00000000000000 --- a/types/angular-scroll/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-namespace": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-signalr-hub/tslint.json b/types/angular-signalr-hub/tslint.json deleted file mode 100644 index 4c6677410dd617..00000000000000 --- a/types/angular-signalr-hub/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false, - "prefer-for-of": false - } -} diff --git a/types/angular-spinner/tslint.json b/types/angular-spinner/tslint.json deleted file mode 100644 index 7f65909246afe9..00000000000000 --- a/types/angular-spinner/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "only-arrow-functions": false - } -} diff --git a/types/angular-storage/tslint.json b/types/angular-storage/tslint.json deleted file mode 100644 index 836d7096274292..00000000000000 --- a/types/angular-storage/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/angular-strap/tslint.json b/types/angular-strap/tslint.json deleted file mode 100644 index 8e48b8cdc672bc..00000000000000 --- a/types/angular-strap/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-namespace": false - } -} diff --git a/types/angular-toastr/tslint.json b/types/angular-toastr/tslint.json deleted file mode 100644 index 8b264a800c92eb..00000000000000 --- a/types/angular-toastr/tslint.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ], - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/angular-toasty/tslint.json b/types/angular-toasty/tslint.json deleted file mode 100644 index f53569b667dfa3..00000000000000 --- a/types/angular-toasty/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/angular-tooltips/tslint.json b/types/angular-tooltips/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/angular-tooltips/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/angular-translate/tslint.json b/types/angular-translate/tslint.json deleted file mode 100644 index 38a1bcc88a0641..00000000000000 --- a/types/angular-translate/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-ui-bootstrap/tslint.json b/types/angular-ui-bootstrap/tslint.json deleted file mode 100644 index 8da74b0536df07..00000000000000 --- a/types/angular-ui-bootstrap/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false - } -} diff --git a/types/angular-ui-notification/tslint.json b/types/angular-ui-notification/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/angular-ui-notification/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/angular-ui-router/.eslintrc.json b/types/angular-ui-router/.eslintrc.json index 2c352d49ef9f99..2bcb88e6719257 100644 --- a/types/angular-ui-router/.eslintrc.json +++ b/types/angular-ui-router/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@definitelytyped/no-duplicate-imports": "off", "@typescript-eslint/naming-convention": "off", diff --git a/types/angular-ui-router/tslint.json b/types/angular-ui-router/tslint.json deleted file mode 100644 index 9036915c1d3855..00000000000000 --- a/types/angular-ui-router/tslint.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-boolean-literal-compare": false, - "no-namespace": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/angular-ui-scroll/tslint.json b/types/angular-ui-scroll/tslint.json deleted file mode 100644 index 19806b39df635a..00000000000000 --- a/types/angular-ui-scroll/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-inferrable-types": false, - "no-namespace": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/angular-ui-sortable/tslint.json b/types/angular-ui-sortable/tslint.json deleted file mode 100644 index 435d9047ec06aa..00000000000000 --- a/types/angular-ui-sortable/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "no-void-expression": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/angular-ui-tree/.eslintrc.json b/types/angular-ui-tree/.eslintrc.json index c47b3f50daa904..d35573b5b1c72b 100644 --- a/types/angular-ui-tree/.eslintrc.json +++ b/types/angular-ui-tree/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off" } } diff --git a/types/angular-ui-tree/tslint.json b/types/angular-ui-tree/tslint.json deleted file mode 100644 index 5e6fc0a93b9818..00000000000000 --- a/types/angular-ui-tree/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/angular-websocket/tslint.json b/types/angular-websocket/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/angular-websocket/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/angular-wizard/tslint.json b/types/angular-wizard/tslint.json deleted file mode 100644 index ea7ebb83ed99e6..00000000000000 --- a/types/angular-wizard/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-type-assertion": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/angular-xeditable/tslint.json b/types/angular-xeditable/tslint.json deleted file mode 100644 index ab76de849159e1..00000000000000 --- a/types/angular-xeditable/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false - } -} diff --git a/types/angular.throttle/.eslintrc.json b/types/angular.throttle/.eslintrc.json index 3ac6662857cb68..adbb80516c05a3 100644 --- a/types/angular.throttle/.eslintrc.json +++ b/types/angular.throttle/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/triple-slash-reference": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/angular.throttle/tslint.json b/types/angular.throttle/tslint.json deleted file mode 100644 index e60356b03b7986..00000000000000 --- a/types/angular.throttle/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/angular/tslint.json b/types/angular/tslint.json deleted file mode 100644 index c9fdadecbfd106..00000000000000 --- a/types/angular/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "class-name": true, - "jsdoc-format": false, - "no-namespace": false, - "no-unnecessary-qualifier": false, - "unified-signatures": false, - "variable-name": [ - true, - "check-format" - ] - } -} diff --git a/types/angularfire/.eslintrc.json b/types/angularfire/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/angularfire/.eslintrc.json +++ b/types/angularfire/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/angularfire/tslint.json b/types/angularfire/tslint.json deleted file mode 100644 index 150f7798935a92..00000000000000 --- a/types/angularfire/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-string-throw": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/angularjs-dragula/tslint.json b/types/angularjs-dragula/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/angularjs-dragula/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/angularlocalstorage/.eslintrc.json b/types/angularlocalstorage/.eslintrc.json index d2f42ca8616c8e..db1b55b94d5980 100644 --- a/types/angularlocalstorage/.eslintrc.json +++ b/types/angularlocalstorage/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/triple-slash-reference": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/angularlocalstorage/tslint.json b/types/angularlocalstorage/tslint.json deleted file mode 100644 index b3b932590fc3ad..00000000000000 --- a/types/angularlocalstorage/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/angulartics/tslint.json b/types/angulartics/tslint.json deleted file mode 100644 index d001bac96a7485..00000000000000 --- a/types/angulartics/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-namespace": false, - "prefer-const": false - } -} diff --git a/types/animals/tslint.json b/types/animals/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/animals/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/animated_gif/tslint.json b/types/animated_gif/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/animated_gif/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/animation-frame/tslint.json b/types/animation-frame/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/animation-frame/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/anime-quotes-api/tslint.json b/types/anime-quotes-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/anime-quotes-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/animejs/tslint.json b/types/animejs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/animejs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/annyang/tslint.json b/types/annyang/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/annyang/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ansi-align/tslint.json b/types/ansi-align/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ansi-align/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ansi-diff-stream/tslint.json b/types/ansi-diff-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ansi-diff-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ansi-escape-sequences/tslint.json b/types/ansi-escape-sequences/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ansi-escape-sequences/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/rdf-validate-datatype/.npmignore b/types/ansi-html/.npmignore similarity index 100% rename from types/rdf-validate-datatype/.npmignore rename to types/ansi-html/.npmignore diff --git a/types/ansi-html/ansi-html-tests.ts b/types/ansi-html/ansi-html-tests.ts new file mode 100644 index 00000000000000..c3c711c6cb2001 --- /dev/null +++ b/types/ansi-html/ansi-html-tests.ts @@ -0,0 +1,31 @@ +import ansiHTML = require("ansi-html"); + +// Test AnsiHTML function +ansiHTML("text"); // $ExpectType string + +// Test setColors function +// $ExpectType void +ansiHTML.setColors({ + reset: "000", + black: "000000", + red: "FF0000", + green: "00FF00", + yellow: "FFFF00", + blue: "0000FF", + magenta: "FF00FF", + cyan: "00FFFF", + lightgrey: "D3D3D3", + darkgrey: "A9A9A9", +}); + +// Test setColors function with array input for reset +ansiHTML.setColors({ reset: ["111"] }); // $ExpectType void +ansiHTML.setColors({ reset: ["111", "222"] }); // $ExpectType void +ansiHTML.setColors({ reset: ["111", "222", "333"] }); // $ExpectType void + +// Test reset function +ansiHTML.reset(); // $ExpectType void + +// Test tags +ansiHTML.tags.open; // $ExpectType { [key: number]: string } +ansiHTML.tags.close; // $ExpectType { [key: number]: string } diff --git a/types/ansi-html/index.d.ts b/types/ansi-html/index.d.ts new file mode 100644 index 00000000000000..44a20075a75f50 --- /dev/null +++ b/types/ansi-html/index.d.ts @@ -0,0 +1,29 @@ +declare namespace ansiHTML { + interface Colors { + reset: string | readonly string[]; + black: string; + red: string; + green: string; + yellow: string; + blue: string; + magenta: string; + cyan: string; + lightgrey: string; + darkgrey: string; + } + + interface Tags { + open: { [key: number]: string }; + close: { [key: number]: string }; + } + + interface AnsiHTML { + (text: string): string; + setColors(colors: Partial): void; + reset(): void; + tags: Tags; + } +} + +declare const ansiHTML: ansiHTML.AnsiHTML; +export = ansiHTML; diff --git a/types/ansi-html/package.json b/types/ansi-html/package.json new file mode 100644 index 00000000000000..bbe63ae37f0188 --- /dev/null +++ b/types/ansi-html/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/ansi-html", + "version": "0.0.9999", + "projects": [ + "https://github.com/Tjatse/ansi-html" + ], + "devDependencies": { + "@types/ansi-html": "workspace:." + }, + "owners": [ + { + "name": "Sherlock Doyle", + "githubUsername": "sherlockdoyle" + } + ] +} diff --git a/types/ansi-html/tsconfig.json b/types/ansi-html/tsconfig.json new file mode 100644 index 00000000000000..f5de9549b4e986 --- /dev/null +++ b/types/ansi-html/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "ansi-html-tests.ts" + ] +} diff --git a/types/ansi/tslint.json b/types/ansi/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ansi/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ansicolors/tslint.json b/types/ansicolors/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ansicolors/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/antlr4-autosuggest/tslint.json b/types/antlr4-autosuggest/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/antlr4-autosuggest/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/antlr4/tslint.json b/types/antlr4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/antlr4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/any-base/tslint.json b/types/any-base/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/any-base/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/any-db-transaction/tslint.json b/types/any-db-transaction/tslint.json deleted file mode 100644 index f6adc4e44a837b..00000000000000 --- a/types/any-db-transaction/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/any-db/tslint.json b/types/any-db/tslint.json deleted file mode 100644 index 11d1905b6a2c0f..00000000000000 --- a/types/any-db/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-inferrable-types": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/anyproxy/tslint.json b/types/anyproxy/tslint.json deleted file mode 100644 index 9a503812d2674a..00000000000000 --- a/types/anyproxy/tslint.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "strict-export-declare-modifiers": true -} diff --git a/types/aos/tslint.json b/types/aos/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/aos/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/apca-w3/tslint.json b/types/apca-w3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apca-w3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apex.js/tslint.json b/types/apex.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apex.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/api-error-handler/tslint.json b/types/api-error-handler/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/api-error-handler/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/apicache/tslint.json b/types/apicache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apicache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apicalypse/tslint.json b/types/apicalypse/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apicalypse/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apidoc/tslint.json b/types/apidoc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apidoc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apigee-access/tslint.json b/types/apigee-access/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/apigee-access/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/apimatic__json-bigint/tslint.json b/types/apimatic__json-bigint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apimatic__json-bigint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apimocker/tslint.json b/types/apimocker/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/apimocker/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/apollo-upload-client/apollo-upload-client-tests.ts b/types/apollo-upload-client/apollo-upload-client-tests.ts index 6b49e1891a7006..f7eb541a796fe2 100644 --- a/types/apollo-upload-client/apollo-upload-client-tests.ts +++ b/types/apollo-upload-client/apollo-upload-client-tests.ts @@ -1,13 +1,11 @@ -import { ReactNativeFile } from "apollo-upload-client"; - -import createUploadLink, { UploadLinkOptions } from "apollo-upload-client/public/createUploadLink"; -import formDataAppendFile from "apollo-upload-client/public/formDataAppendFile"; -import isExtractableFile from "apollo-upload-client/public/isExtractableFile"; +import createUploadLink from "apollo-upload-client/createUploadLink.mjs"; +import formDataAppendFile from "apollo-upload-client/formDataAppendFile.mjs"; +import isExtractableFile from "apollo-upload-client/isExtractableFile.mjs"; // ============================================================================== -// UploadLinkOptions +// createUploadLink // ============================================================================== -const uploadLinkOptions: UploadLinkOptions = { +createUploadLink({ uri: "http://localhost", isExtractableFile, formDataAppendFile, @@ -18,12 +16,7 @@ const uploadLinkOptions: UploadLinkOptions = { includeExtensions: true, credentials: "beepboop", FormData, -}; - -// ============================================================================== -// createUploadLink -// ============================================================================== -createUploadLink(uploadLinkOptions); +}); // ============================================================================== // formDataAppendFile @@ -34,15 +27,6 @@ const fieldName = "field name"; const file = new Blob(); formDataAppendFile(formData, fieldName, file); -// ============================================================================== -// ReactNativeFile -// ============================================================================== -new ReactNativeFile({ - name: "its coming home", - type: "its coming", - uri: "football's coming home", -}); - // ============================================================================== // isExtractableFile // ============================================================================== diff --git a/types/apollo-upload-client/createUploadLink.d.mts b/types/apollo-upload-client/createUploadLink.d.mts new file mode 100644 index 00000000000000..3b70e5e474e64a --- /dev/null +++ b/types/apollo-upload-client/createUploadLink.d.mts @@ -0,0 +1,45 @@ +import { ApolloLink } from "@apollo/client/link/core/ApolloLink.js"; + +export default function createUploadLink( + { + uri: fetchUri, + useGETForQueries, + isExtractableFile: customIsExtractableFile, + FormData: CustomFormData, + formDataAppendFile: customFormDataAppendFile, + print, + fetch: customFetch, + fetchOptions, + credentials, + headers, + includeExtensions, + }?: { + uri?: [ + operation: import("@apollo/client/core").Operation, + fallbackURI?: string | ((operation: import("@apollo/client/core").Operation) => string) | undefined, + ][1]; + useGETForQueries?: boolean | undefined; + isExtractableFile?: ExtractableFileMatcher | undefined; + FormData?: { + new(form?: HTMLFormElement | undefined, submitter?: HTMLElement | null | undefined): FormData; + prototype: FormData; + } | undefined; + formDataAppendFile?: FormDataFileAppender | undefined; + print?: import("@apollo/client/link/http/selectHttpOptionsAndBody.js").Printer | undefined; + fetch?: typeof fetch | undefined; + fetchOptions?: RequestInit | undefined; + credentials?: string | undefined; + headers?: { + [headerName: string]: string; + } | undefined; + includeExtensions?: boolean | undefined; + }, +): ApolloLink; + +export type ExtractableFileMatcher = (value: unknown) => value is ExtractableFile; + +export type FormDataFileAppender = ( + formData: FormData, + fieldName: string, + file: ExtractableFile, +) => any; diff --git a/types/apollo-upload-client/formDataAppendFile.d.mts b/types/apollo-upload-client/formDataAppendFile.d.mts new file mode 100644 index 00000000000000..c344a245025b82 --- /dev/null +++ b/types/apollo-upload-client/formDataAppendFile.d.mts @@ -0,0 +1,5 @@ +export default function formDataAppendFile( + formData: FormData, + fieldName: string, + file: import("./isExtractableFile.mjs").ExtractableFile, +): void; diff --git a/types/apollo-upload-client/index.d.ts b/types/apollo-upload-client/index.d.ts index e16b3a41baed13..a14cb68e6a7475 100644 --- a/types/apollo-upload-client/index.d.ts +++ b/types/apollo-upload-client/index.d.ts @@ -1,18 +1,5 @@ -// ============================================================================== -// exports -// ============================================================================== +// Despite not having any definitions, this file must exist on DefinitelyTyped. +// Currently, the tooling assumes that this file exists and performs extra lints, +// as well as using it to figure out where things are. -export { default as createUploadLink } from "./public/createUploadLink"; -export { default as formDataAppendFile } from "./public/formDataAppendFile"; -export { default as isExtractableFile } from "./public/isExtractableFile"; -export { default as ReactNativeFile } from "./public/ReactNativeFile"; - -// ============================================================================== -// declare -// ============================================================================== - -declare global { - interface GlobalFetch { - fetch: WindowOrWorkerGlobalScope["fetch"]; - } -} +export {}; diff --git a/types/apollo-upload-client/isExtractableFile.d.mts b/types/apollo-upload-client/isExtractableFile.d.mts new file mode 100644 index 00000000000000..90b1e1a808fbb1 --- /dev/null +++ b/types/apollo-upload-client/isExtractableFile.d.mts @@ -0,0 +1,3 @@ +export { default } from "extract-files/isExtractableFile.mjs"; + +export type ExtractableFile = import("extract-files/isExtractableFile.mjs").ExtractableFile; diff --git a/types/apollo-upload-client/package.json b/types/apollo-upload-client/package.json index 240430f5b97695..250a3b819613c5 100644 --- a/types/apollo-upload-client/package.json +++ b/types/apollo-upload-client/package.json @@ -1,12 +1,24 @@ { "private": true, "name": "@types/apollo-upload-client", - "version": "17.0.9999", + "version": "18.0.9999", "projects": [ "https://github.com/jaydenseric/apollo-upload-client#readme" ], + "exports": { + "./createUploadLink.mjs": { + "types": "./createUploadLink.d.mts" + }, + "./formDataAppendFile.mjs": { + "types": "./formDataAppendFile.d.mts" + }, + "./isExtractableFile.mjs": { + "types": "./isExtractableFile.d.mts" + }, + "./package.json": "./package.json" + }, "dependencies": { - "@apollo/client": "^3.7.0", + "@apollo/client": "^3.8.0", "@types/extract-files": "*", "graphql": "14 - 16" }, diff --git a/types/apollo-upload-client/public/ReactNativeFile.d.ts b/types/apollo-upload-client/public/ReactNativeFile.d.ts deleted file mode 100644 index 2f819d6f5b99de..00000000000000 --- a/types/apollo-upload-client/public/ReactNativeFile.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import ExtractFiles = require("extract-files"); - -export = ExtractFiles.ReactNativeFile; diff --git a/types/apollo-upload-client/public/createUploadLink.d.ts b/types/apollo-upload-client/public/createUploadLink.d.ts deleted file mode 100644 index aaab116adcd693..00000000000000 --- a/types/apollo-upload-client/public/createUploadLink.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import apolloCore = require("@apollo/client/core"); -import apolloHttp = require("@apollo/client/link/http"); -import formDataAppendFile = require("./formDataAppendFile"); -import isExtractableFile = require("./isExtractableFile"); - -declare namespace createUploadLink { - type UploadLinkOptions = - & apolloHttp.HttpOptions - & Partial<{ - FormData: typeof FormData; - formDataAppendFile: typeof formDataAppendFile; - isExtractableFile: typeof isExtractableFile; - }>; -} - -/** - * Creates a [terminating Apollo Link](https://www.apollographql.com/docs/link/overview/#terminating-links) capable of file uploads. - * @see https://github.com/jaydenseric/apollo-upload-client#function-createuploadlink - */ -declare function createUploadLink(uploadLinkOptions?: createUploadLink.UploadLinkOptions): apolloCore.ApolloLink; - -export = createUploadLink; diff --git a/types/apollo-upload-client/public/formDataAppendFile.d.ts b/types/apollo-upload-client/public/formDataAppendFile.d.ts deleted file mode 100644 index 3b2d04c58c3a72..00000000000000 --- a/types/apollo-upload-client/public/formDataAppendFile.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import ExtractFiles = require("extract-files"); - -/** - * The default implementation for [`createUploadLink`](https://github.com/jaydenseric/apollo-upload-client#function-createuploadlink) `options.formDataAppendFile` - * that uses the standard [`FormData.append`](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append) method. - * @see https://github.com/jaydenseric/apollo-upload-client#function-formdataappendfile - */ -declare function formDataAppendFile(formData: FormData, fieldName: string, file: ExtractFiles.ExtractableFile): void; - -export = formDataAppendFile; diff --git a/types/apollo-upload-client/public/isExtractableFile.d.ts b/types/apollo-upload-client/public/isExtractableFile.d.ts deleted file mode 100644 index 1eb8bcea9d40cb..00000000000000 --- a/types/apollo-upload-client/public/isExtractableFile.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import ExtractFiles = require("extract-files"); - -export = ExtractFiles.isExtractableFile; diff --git a/types/apollo-upload-client/tsconfig.json b/types/apollo-upload-client/tsconfig.json index 652088bdf294e3..e311ee0056ff3b 100644 --- a/types/apollo-upload-client/tsconfig.json +++ b/types/apollo-upload-client/tsconfig.json @@ -17,6 +17,9 @@ }, "files": [ "index.d.ts", - "apollo-upload-client-tests.ts" + "apollo-upload-client-tests.ts", + "createUploadLink.d.mts", + "formDataAppendFile.d.mts", + "isExtractableFile.d.mts" ] } diff --git a/types/apollo-upload-client/tslint.json b/types/apollo-upload-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apollo-upload-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apostrophe/tslint.json b/types/apostrophe/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/apostrophe/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/app-module-path/tslint.json b/types/app-module-path/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/app-module-path/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/app-root-dir/.eslintrc.json b/types/app-root-dir/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/app-root-dir/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/app-root-dir/tslint.json b/types/app-root-dir/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/app-root-dir/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/app-root-path/tslint.json b/types/app-root-path/tslint.json deleted file mode 100644 index bf7fb63ec02589..00000000000000 --- a/types/app-root-path/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "prefer-const": false - } -} diff --git a/types/appcache-webpack-plugin/tslint.json b/types/appcache-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/appcache-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/appdmg/tslint.json b/types/appdmg/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/appdmg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/appdynamics/tslint.json b/types/appdynamics/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/appdynamics/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/append-query/tslint.json b/types/append-query/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/append-query/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/appframework/.eslintrc.json b/types/appframework/.eslintrc.json index 8ed536043c4296..7efd1fbf4325fe 100644 --- a/types/appframework/.eslintrc.json +++ b/types/appframework/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/prefer-declare-function": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/appframework/tslint.json b/types/appframework/tslint.json deleted file mode 100644 index 9a84b45a6d5249..00000000000000 --- a/types/appframework/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "arrow-return-shorthand": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-void-expression": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/appgeist__ensure-dir/tslint.json b/types/appgeist__ensure-dir/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/appgeist__ensure-dir/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/appium-adb/tslint.json b/types/appium-adb/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/appium-adb/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apple-mapkit-js-browser/tslint.json b/types/apple-mapkit-js-browser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apple-mapkit-js-browser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apple-music-api/tslint.json b/types/apple-music-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apple-music-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/apple-signin-api/tslint.json b/types/apple-signin-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apple-signin-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/applepayjs/.eslintrc.json b/types/applepayjs/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/applepayjs/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/applepayjs/tslint.json b/types/applepayjs/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/applepayjs/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/applest-atem/tslint.json b/types/applest-atem/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/applest-atem/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/appletvjs/.eslintrc.json b/types/appletvjs/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/appletvjs/.eslintrc.json +++ b/types/appletvjs/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/appletvjs/tslint.json b/types/appletvjs/tslint.json deleted file mode 100644 index 62ea7c9a0bc1c9..00000000000000 --- a/types/appletvjs/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/apptimize__apptimize-web-sdk/tslint.json b/types/apptimize__apptimize-web-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/apptimize__apptimize-web-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aqb/tslint.json b/types/aqb/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/aqb/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/arangodb/tslint.json b/types/arangodb/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/arangodb/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/arbiter/.eslintrc.json b/types/arbiter/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/arbiter/.eslintrc.json +++ b/types/arbiter/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/arbiter/tslint.json b/types/arbiter/tslint.json deleted file mode 100644 index 29d6fdf9e1c5f1..00000000000000 --- a/types/arbiter/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/arcgis-rest-api/tslint.json b/types/arcgis-rest-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/arcgis-rest-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/arcgis-to-geojson-utils/tslint.json b/types/arcgis-to-geojson-utils/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/arcgis-to-geojson-utils/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/architect/tslint.json b/types/architect/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/architect/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/architect__functions/tslint.json b/types/architect__functions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/architect__functions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/architect__sandbox/tslint.json b/types/architect__sandbox/tslint.json deleted file mode 100644 index 94c7d46258c018..00000000000000 --- a/types/architect__sandbox/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false - } -} diff --git a/types/archiver/tslint.json b/types/archiver/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/archiver/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/archy/tslint.json b/types/archy/tslint.json deleted file mode 100644 index 8710889d92dbcf..00000000000000 --- a/types/archy/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/arconnect/tslint.json b/types/arconnect/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/arconnect/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/are-we-there-yet/tslint.json b/types/are-we-there-yet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/are-we-there-yet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/are.na/tslint.json b/types/are.na/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/are.na/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/argon2-browser/tslint.json b/types/argon2-browser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/argon2-browser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/argparse/tslint.json b/types/argparse/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/argparse/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/args/tslint.json b/types/args/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/args/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/argv/tslint.json b/types/argv/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/argv/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ari-client/tslint.json b/types/ari-client/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ari-client/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/aria-query/tslint.json b/types/aria-query/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aria-query/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/arr-diff/tslint.json b/types/arr-diff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/arr-diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/arr-union/tslint.json b/types/arr-union/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/arr-union/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-binarysearch.closest/tslint.json b/types/array-binarysearch.closest/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-binarysearch.closest/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-bounds/tslint.json b/types/array-bounds/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-bounds/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-equal/tslint.json b/types/array-equal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-equal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-find-index/tslint.json b/types/array-find-index/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-find-index/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-foreach/tslint.json b/types/array-foreach/tslint.json deleted file mode 100644 index daabeb935bd622..00000000000000 --- a/types/array-foreach/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "object-literal-shorthand": false - } -} diff --git a/types/array-initial/tslint.json b/types/array-initial/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-initial/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-normalize/tslint.json b/types/array-normalize/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-normalize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-polar/tslint.json b/types/array-polar/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-polar/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-rearrange/tslint.json b/types/array-rearrange/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-rearrange/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-same/tslint.json b/types/array-same/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-same/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array-sort/tslint.json b/types/array-sort/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/array-sort/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/array-unique/tslint.json b/types/array-unique/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array-unique/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array.from/tslint.json b/types/array.from/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array.from/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array.prototype.flat/tslint.json b/types/array.prototype.flat/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array.prototype.flat/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/array.prototype.flatmap/tslint.json b/types/array.prototype.flatmap/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/array.prototype.flatmap/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/arrayify-stream/tslint.json b/types/arrayify-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/arrayify-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/arrive/tslint.json b/types/arrive/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/arrive/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/artillery/tslint.json b/types/artillery/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/artillery/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/asana/tslint.json b/types/asana/tslint.json deleted file mode 100644 index cd627e188a0d3d..00000000000000 --- a/types/asana/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/asap/tslint.json b/types/asap/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/asap/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ascii-art/tslint.json b/types/ascii-art/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ascii-art/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ascii-cats/tslint.json b/types/ascii-cats/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ascii-cats/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ascii2mathml/tslint.json b/types/ascii2mathml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ascii2mathml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/asciichart/tslint.json b/types/asciichart/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/asciichart/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/asciify/tslint.json b/types/asciify/tslint.json deleted file mode 100644 index aabd199eda41c7..00000000000000 --- a/types/asciify/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/asenv/tslint.json b/types/asenv/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/asenv/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/asn1/tslint.json b/types/asn1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/asn1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/aspect-fit/tslint.json b/types/aspect-fit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aspect-fit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aspnet-identity-pw/tslint.json b/types/aspnet-identity-pw/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/aspnet-identity-pw/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/assert-equal-jsx/index.d.ts b/types/assert-equal-jsx/index.d.ts index a73de791b2d9bb..0cb9988ccbfbbb 100644 --- a/types/assert-equal-jsx/index.d.ts +++ b/types/assert-equal-jsx/index.d.ts @@ -6,6 +6,10 @@ declare namespace assertEqualJSX { } } -declare function assertEqualJSX(actual: JSX.Element, expected: JSX.Element, opts?: assertEqualJSX.AsssertOptions): void; +declare function assertEqualJSX( + actual: React.JSX.Element, + expected: React.JSX.Element, + opts?: assertEqualJSX.AsssertOptions, +): void; export = assertEqualJSX; diff --git a/types/assert-equal-jsx/tslint.json b/types/assert-equal-jsx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/assert-equal-jsx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/assert-plus/tslint.json b/types/assert-plus/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/assert-plus/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/assert/tslint.json b/types/assert/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/assert/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/assertrc/tslint.json b/types/assertrc/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/assertrc/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/assertsharp/tslint.json b/types/assertsharp/tslint.json deleted file mode 100644 index 9e140884373d3c..00000000000000 --- a/types/assertsharp/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-string-throw": false, - "no-unnecessary-class": false - } -} diff --git a/types/assets-webpack-plugin/tslint.json b/types/assets-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/assets-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/async-busboy/tslint.json b/types/async-busboy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/async-busboy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/async-cache/tslint.json b/types/async-cache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/async-cache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/async-csv/tslint.json b/types/async-csv/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/async-csv/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/async-eventemitter/tslint.json b/types/async-eventemitter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/async-eventemitter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/async-exit-hook/tslint.json b/types/async-exit-hook/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/async-exit-hook/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/async-iterable-stream/tslint.json b/types/async-iterable-stream/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/async-iterable-stream/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/async-lock/tslint.json b/types/async-lock/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/async-lock/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/async-polling/tslint.json b/types/async-polling/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/async-polling/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/async-redis/tslint.json b/types/async-redis/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/async-redis/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/react-native/v0.63/.npmignore b/types/async-rerun/.npmignore similarity index 100% rename from types/react-native/v0.63/.npmignore rename to types/async-rerun/.npmignore diff --git a/types/async-rerun/async-rerun-tests.ts b/types/async-rerun/async-rerun-tests.ts new file mode 100644 index 00000000000000..9804ba4c939f77 --- /dev/null +++ b/types/async-rerun/async-rerun-tests.ts @@ -0,0 +1,15 @@ +import { runAsync } from "async-rerun"; + +function test() { + return new Promise((resolve, reject) => { + reject(false); + }); +} + +runAsync(test, 10, 1000, false, true).then((res: any) => { + // logic for the positive case + return true; +}).catch((res: any) => { + // logic for the negative case + return false; +}); diff --git a/types/async-rerun/index.d.ts b/types/async-rerun/index.d.ts new file mode 100644 index 00000000000000..c3c7a5b8d7cb42 --- /dev/null +++ b/types/async-rerun/index.d.ts @@ -0,0 +1,18 @@ +type CallBackFunction = () => Promise; + +/** + * @param fn The function which will be used as parameter should return a PROMISE & SHOULD NOT HAVE ANY PARAMETER it's compulsory, as its a async retry mechanism. Also you can BIND the global scope too with the function in order use the global scoped variables like this => .bind(this). + * @param maxRetries Max Retries in number. + * @param delayInMS Delay time for retries in number as mili-seconds(ms). + * @param alwaysRetry To retry always untill the positive response, If its true then maxRetries will not count. + * @param showLogs To show logs for all retries. + */ +declare function runAsync( + fn: CallBackFunction, + maxRetries: number, + delayInMS: number, + alwaysRetry?: boolean, + showLogs?: boolean, +): Promise; + +export { runAsync }; diff --git a/types/async-rerun/package.json b/types/async-rerun/package.json new file mode 100644 index 00000000000000..b556ca7424865e --- /dev/null +++ b/types/async-rerun/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/async-rerun", + "version": "1.1.9999", + "projects": [ + "https://github.com/fahidarif/rerun#readme" + ], + "devDependencies": { + "@types/async-rerun": "workspace:." + }, + "owners": [ + { + "name": "M Fahad A.", + "githubUsername": "fahidarif" + } + ] +} diff --git a/types/async-rerun/tsconfig.json b/types/async-rerun/tsconfig.json new file mode 100644 index 00000000000000..c232e5fbec71c7 --- /dev/null +++ b/types/async-rerun/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "async-rerun-tests.ts" + ] +} diff --git a/types/async-retry/.eslintrc.json b/types/async-retry/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/async-retry/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/async-retry/tslint.json b/types/async-retry/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/async-retry/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/async-stream-emitter/.npmignore b/types/async-stream-emitter/.npmignore index 54c4a06d9989eb..f7a22c1f66353d 100644 --- a/types/async-stream-emitter/.npmignore +++ b/types/async-stream-emitter/.npmignore @@ -4,3 +4,6 @@ !**/*.d.mts !**/*.d.*.ts /v3/ +/v4/ +/v5/ +/v6/ diff --git a/types/async-stream-emitter/index.d.ts b/types/async-stream-emitter/index.d.ts index 92031397bc480f..3f6b6cf5f6f453 100644 --- a/types/async-stream-emitter/index.d.ts +++ b/types/async-stream-emitter/index.d.ts @@ -5,14 +5,17 @@ declare class AsyncStreamEmitter { emit(eventName: string, data: T): void; listener(eventName: string): ConsumableStream; - closeListener(eventName: string): void; closeAllListeners(): void; + removeListener(eventName: string): void; getListenerConsumerStats(consumerId: number): Consumer.ConsumerStats; getListenerConsumerStatsList(eventName: string): Consumer.ConsumerStats[]; getAllListenersConsumerStatsList(): Consumer.ConsumerStats[]; + getListenerConsumerCount(eventName: string): number; + getAllListenersConsumerCount(): number; + killListener(eventName: string): void; killAllListeners(): void; killListenerConsumer(consumerId: number): void; diff --git a/types/async-stream-emitter/package.json b/types/async-stream-emitter/package.json index 0c0ad62fdd4c48..1a80d4d9b447e2 100644 --- a/types/async-stream-emitter/package.json +++ b/types/async-stream-emitter/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/async-stream-emitter", - "version": "4.0.9999", + "version": "7.0.9999", "projects": [ "https://github.com/SocketCluster/async-stream-emitter" ], diff --git a/types/async-stream-emitter/tslint.json b/types/async-stream-emitter/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/async-stream-emitter/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/async-stream-emitter/v3/tslint.json b/types/async-stream-emitter/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/async-stream-emitter/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/react-native/v0.64/.npmignore b/types/async-stream-emitter/v4/.npmignore similarity index 100% rename from types/react-native/v0.64/.npmignore rename to types/async-stream-emitter/v4/.npmignore diff --git a/types/async-stream-emitter/v4/async-stream-emitter-tests.ts b/types/async-stream-emitter/v4/async-stream-emitter-tests.ts new file mode 100644 index 00000000000000..130c7d5d214593 --- /dev/null +++ b/types/async-stream-emitter/v4/async-stream-emitter-tests.ts @@ -0,0 +1,34 @@ +import AsyncStreamEmitter = require("async-stream-emitter"); + +// From README.md + +const emitter = new AsyncStreamEmitter(); + +(async () => { + await wait(10); + emitter.emit("foo", "hello"); + + // This will cause all for-await-of loops for that event to exit. + // Note that you can also use the 'break' statement inside + // individual for-await-of loops. + emitter.closeListener("foo"); +})(); + +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const data of emitter.listener("foo")) { + // data is 'hello' + // $ExpectType string + data; + } + console.log("The listener was closed."); +})(); + +// Utility function. +function wait(duration: number) { + return new Promise(resolve => { + setTimeout(() => { + resolve(); + }, duration); + }); +} diff --git a/types/async-stream-emitter/v4/index.d.ts b/types/async-stream-emitter/v4/index.d.ts new file mode 100644 index 00000000000000..f3afa45711f36a --- /dev/null +++ b/types/async-stream-emitter/v4/index.d.ts @@ -0,0 +1,31 @@ +import ConsumableStream = require("consumable-stream"); +import Consumer = require("writable-consumable-stream/consumer"); + +declare class AsyncStreamEmitter { + emit(eventName: string, data: T): void; + + listener(eventName: string): ConsumableStream; + + closeListener(eventName: string): void; + closeAllListeners(): void; + + getListenerConsumerStats(consumerId: number): Consumer.ConsumerStats; + getListenerConsumerStatsList(eventName: string): Consumer.ConsumerStats[]; + getAllListenersConsumerStatsList(): Consumer.ConsumerStats[]; + + getListenerConsumerCount(eventName: string): number; + getAllListenersConsumerCount(): number; + + killListener(eventName: string): void; + killAllListeners(): void; + killListenerConsumer(consumerId: number): void; + + getListenerBackpressure(eventName: string): number; + getAllListenersBackpressure(): number; + getListenerConsumerBackpressure(consumerId: number): number; + + hasListenerConsumer(eventName: string, consumerId: number): boolean; + hasAnyListenerConsumer(consumerId: number): boolean; +} + +export = AsyncStreamEmitter; diff --git a/types/async-stream-emitter/v4/package.json b/types/async-stream-emitter/v4/package.json new file mode 100644 index 00000000000000..23e7b4fffbb5f9 --- /dev/null +++ b/types/async-stream-emitter/v4/package.json @@ -0,0 +1,25 @@ +{ + "private": true, + "name": "@types/async-stream-emitter", + "version": "4.1.9999", + "projects": [ + "https://github.com/SocketCluster/async-stream-emitter" + ], + "dependencies": { + "@types/consumable-stream": "^2", + "@types/writable-consumable-stream": "^3" + }, + "devDependencies": { + "@types/async-stream-emitter": "workspace:." + }, + "owners": [ + { + "name": "Daniel Rose", + "githubUsername": "DanielRose" + }, + { + "name": "Nathan Bierema", + "githubUsername": "Methuselah96" + } + ] +} diff --git a/types/async-stream-emitter/v4/tsconfig.json b/types/async-stream-emitter/v4/tsconfig.json new file mode 100644 index 00000000000000..c2f06eb75b0438 --- /dev/null +++ b/types/async-stream-emitter/v4/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "esnext.asynciterable" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "async-stream-emitter-tests.ts" + ] +} diff --git a/types/react-native/v0.65/.npmignore b/types/async-stream-emitter/v5/.npmignore similarity index 100% rename from types/react-native/v0.65/.npmignore rename to types/async-stream-emitter/v5/.npmignore diff --git a/types/async-stream-emitter/v5/async-stream-emitter-tests.ts b/types/async-stream-emitter/v5/async-stream-emitter-tests.ts new file mode 100644 index 00000000000000..130c7d5d214593 --- /dev/null +++ b/types/async-stream-emitter/v5/async-stream-emitter-tests.ts @@ -0,0 +1,34 @@ +import AsyncStreamEmitter = require("async-stream-emitter"); + +// From README.md + +const emitter = new AsyncStreamEmitter(); + +(async () => { + await wait(10); + emitter.emit("foo", "hello"); + + // This will cause all for-await-of loops for that event to exit. + // Note that you can also use the 'break' statement inside + // individual for-await-of loops. + emitter.closeListener("foo"); +})(); + +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const data of emitter.listener("foo")) { + // data is 'hello' + // $ExpectType string + data; + } + console.log("The listener was closed."); +})(); + +// Utility function. +function wait(duration: number) { + return new Promise(resolve => { + setTimeout(() => { + resolve(); + }, duration); + }); +} diff --git a/types/async-stream-emitter/v5/index.d.ts b/types/async-stream-emitter/v5/index.d.ts new file mode 100644 index 00000000000000..f3afa45711f36a --- /dev/null +++ b/types/async-stream-emitter/v5/index.d.ts @@ -0,0 +1,31 @@ +import ConsumableStream = require("consumable-stream"); +import Consumer = require("writable-consumable-stream/consumer"); + +declare class AsyncStreamEmitter { + emit(eventName: string, data: T): void; + + listener(eventName: string): ConsumableStream; + + closeListener(eventName: string): void; + closeAllListeners(): void; + + getListenerConsumerStats(consumerId: number): Consumer.ConsumerStats; + getListenerConsumerStatsList(eventName: string): Consumer.ConsumerStats[]; + getAllListenersConsumerStatsList(): Consumer.ConsumerStats[]; + + getListenerConsumerCount(eventName: string): number; + getAllListenersConsumerCount(): number; + + killListener(eventName: string): void; + killAllListeners(): void; + killListenerConsumer(consumerId: number): void; + + getListenerBackpressure(eventName: string): number; + getAllListenersBackpressure(): number; + getListenerConsumerBackpressure(consumerId: number): number; + + hasListenerConsumer(eventName: string, consumerId: number): boolean; + hasAnyListenerConsumer(consumerId: number): boolean; +} + +export = AsyncStreamEmitter; diff --git a/types/async-stream-emitter/v5/package.json b/types/async-stream-emitter/v5/package.json new file mode 100644 index 00000000000000..4cd9c40b80f96e --- /dev/null +++ b/types/async-stream-emitter/v5/package.json @@ -0,0 +1,25 @@ +{ + "private": true, + "name": "@types/async-stream-emitter", + "version": "5.0.9999", + "projects": [ + "https://github.com/SocketCluster/async-stream-emitter" + ], + "dependencies": { + "@types/consumable-stream": "*", + "@types/writable-consumable-stream": "*" + }, + "devDependencies": { + "@types/async-stream-emitter": "workspace:." + }, + "owners": [ + { + "name": "Daniel Rose", + "githubUsername": "DanielRose" + }, + { + "name": "Nathan Bierema", + "githubUsername": "Methuselah96" + } + ] +} diff --git a/types/async-stream-emitter/v5/tsconfig.json b/types/async-stream-emitter/v5/tsconfig.json new file mode 100644 index 00000000000000..c2f06eb75b0438 --- /dev/null +++ b/types/async-stream-emitter/v5/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "esnext.asynciterable" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "async-stream-emitter-tests.ts" + ] +} diff --git a/types/react-native/v0.66/.npmignore b/types/async-stream-emitter/v6/.npmignore similarity index 100% rename from types/react-native/v0.66/.npmignore rename to types/async-stream-emitter/v6/.npmignore diff --git a/types/async-stream-emitter/v6/async-stream-emitter-tests.ts b/types/async-stream-emitter/v6/async-stream-emitter-tests.ts new file mode 100644 index 00000000000000..130c7d5d214593 --- /dev/null +++ b/types/async-stream-emitter/v6/async-stream-emitter-tests.ts @@ -0,0 +1,34 @@ +import AsyncStreamEmitter = require("async-stream-emitter"); + +// From README.md + +const emitter = new AsyncStreamEmitter(); + +(async () => { + await wait(10); + emitter.emit("foo", "hello"); + + // This will cause all for-await-of loops for that event to exit. + // Note that you can also use the 'break' statement inside + // individual for-await-of loops. + emitter.closeListener("foo"); +})(); + +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const data of emitter.listener("foo")) { + // data is 'hello' + // $ExpectType string + data; + } + console.log("The listener was closed."); +})(); + +// Utility function. +function wait(duration: number) { + return new Promise(resolve => { + setTimeout(() => { + resolve(); + }, duration); + }); +} diff --git a/types/async-stream-emitter/v6/index.d.ts b/types/async-stream-emitter/v6/index.d.ts new file mode 100644 index 00000000000000..b2d877302621d6 --- /dev/null +++ b/types/async-stream-emitter/v6/index.d.ts @@ -0,0 +1,41 @@ +import ConsumableStream = require("consumable-stream"); +import Consumer = require("writable-consumable-stream/consumer"); + +declare namespace AsyncStreamEmitter { + interface Options { + usabilityMode?: unknown; + } +} + +declare class AsyncStreamEmitter { + usabilityMode: boolean; + + constructor(options?: AsyncStreamEmitter.Options); + + emit(eventName: string, data: T): void; + + listener(eventName: string): ConsumableStream; + + closeListener(eventName: string): void; + closeAllListeners(): void; + + getListenerConsumerStats(consumerId: number): Consumer.ConsumerStats; + getListenerConsumerStatsList(eventName: string): Consumer.ConsumerStats[]; + getAllListenersConsumerStatsList(): Consumer.ConsumerStats[]; + + getListenerConsumerCount(eventName: string): number; + getAllListenersConsumerCount(): number; + + killListener(eventName: string): void; + killAllListeners(): void; + killListenerConsumer(consumerId: number): void; + + getListenerBackpressure(eventName: string): number; + getAllListenersBackpressure(): number; + getListenerConsumerBackpressure(consumerId: number): number; + + hasListenerConsumer(eventName: string, consumerId: number): boolean; + hasAnyListenerConsumer(consumerId: number): boolean; +} + +export = AsyncStreamEmitter; diff --git a/types/async-stream-emitter/v6/package.json b/types/async-stream-emitter/v6/package.json new file mode 100644 index 00000000000000..e7e25fb0f73261 --- /dev/null +++ b/types/async-stream-emitter/v6/package.json @@ -0,0 +1,25 @@ +{ + "private": true, + "name": "@types/async-stream-emitter", + "version": "6.0.9999", + "projects": [ + "https://github.com/SocketCluster/async-stream-emitter" + ], + "dependencies": { + "@types/consumable-stream": "*", + "@types/writable-consumable-stream": "*" + }, + "devDependencies": { + "@types/async-stream-emitter": "workspace:." + }, + "owners": [ + { + "name": "Daniel Rose", + "githubUsername": "DanielRose" + }, + { + "name": "Nathan Bierema", + "githubUsername": "Methuselah96" + } + ] +} diff --git a/types/async-stream-emitter/v6/tsconfig.json b/types/async-stream-emitter/v6/tsconfig.json new file mode 100644 index 00000000000000..c2f06eb75b0438 --- /dev/null +++ b/types/async-stream-emitter/v6/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "esnext.asynciterable" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "async-stream-emitter-tests.ts" + ] +} diff --git a/types/async-stream-generator/tslint.json b/types/async-stream-generator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/async-stream-generator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/async-writer/tslint.json b/types/async-writer/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/async-writer/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/async.nexttick/tslint.json b/types/async.nexttick/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/async.nexttick/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/async/tslint.json b/types/async/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/async/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/react-native/v0.67/.npmignore b/types/at-least-node/.npmignore similarity index 100% rename from types/react-native/v0.67/.npmignore rename to types/at-least-node/.npmignore diff --git a/types/at-least-node/at-least-node-tests.ts b/types/at-least-node/at-least-node-tests.ts new file mode 100644 index 00000000000000..8bda997266c69e --- /dev/null +++ b/types/at-least-node/at-least-node-tests.ts @@ -0,0 +1,13 @@ +import atLeastNode = require("at-least-node"); + +// $ExpectType boolean +atLeastNode("0.10.0"); + +// $ExpectType boolean +atLeastNode("0.12.0"); + +// @ts-expect-error +atLeastNode(1); + +// @ts-expect-error +atLeastNode(); diff --git a/types/at-least-node/index.d.ts b/types/at-least-node/index.d.ts new file mode 100644 index 00000000000000..f34b21cd3476a0 --- /dev/null +++ b/types/at-least-node/index.d.ts @@ -0,0 +1,3 @@ +declare function atLeastNode(version: string): boolean; + +export = atLeastNode; diff --git a/types/at-least-node/package.json b/types/at-least-node/package.json new file mode 100644 index 00000000000000..bc2123f6530e90 --- /dev/null +++ b/types/at-least-node/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/at-least-node", + "version": "1.0.9999", + "projects": [ + "https://github.com/RyanZim/at-least-node#readme" + ], + "devDependencies": { + "@types/at-least-node": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/at-least-node/tsconfig.json b/types/at-least-node/tsconfig.json new file mode 100644 index 00000000000000..100372f624dc8e --- /dev/null +++ b/types/at-least-node/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "at-least-node-tests.ts" + ] +} diff --git a/types/athenajs/tslint.json b/types/athenajs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/athenajs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/atlaskit__layer/atlaskit__layer-tests.tsx b/types/atlaskit__layer/atlaskit__layer-tests.tsx index a74f5b96acc473..4920006327f216 100644 --- a/types/atlaskit__layer/atlaskit__layer-tests.tsx +++ b/types/atlaskit__layer/atlaskit__layer-tests.tsx @@ -1,15 +1,9 @@ import Layer from "@atlaskit/layer"; import * as React from "react"; -import { render } from "react-dom"; -declare const container: Element; - -render( - Hello, world!} - autoFlip={false} - />, - container, -); +Hello, world!} + autoFlip={false} +/>; diff --git a/types/atlaskit__layer/package.json b/types/atlaskit__layer/package.json index 3e1d9587c8f195..eb630464cfb45f 100644 --- a/types/atlaskit__layer/package.json +++ b/types/atlaskit__layer/package.json @@ -10,8 +10,7 @@ "@types/react": "*" }, "devDependencies": { - "@types/atlaskit__layer": "workspace:.", - "@types/react-dom": "*" + "@types/atlaskit__layer": "workspace:." }, "owners": [ { diff --git a/types/atlaskit__layer/tslint.json b/types/atlaskit__layer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atlaskit__layer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/atlaskit__single-select/atlaskit__single-select-tests.tsx b/types/atlaskit__single-select/atlaskit__single-select-tests.tsx index f0b617f14ad967..d7fa2f061e9d28 100644 --- a/types/atlaskit__single-select/atlaskit__single-select-tests.tsx +++ b/types/atlaskit__single-select/atlaskit__single-select-tests.tsx @@ -1,14 +1,8 @@ import SingleSelect, { StatelessSelect } from "@atlaskit/single-select"; import * as React from "react"; -import { render } from "react-dom"; -declare const container: Element; - -render( -
- - -
, - container, -); +
+ + +
; diff --git a/types/atlaskit__single-select/tslint.json b/types/atlaskit__single-select/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atlaskit__single-select/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/atlassian-connect-js/tslint.json b/types/atlassian-connect-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atlassian-connect-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/atlassian-crowd-client/tslint.json b/types/atlassian-crowd-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atlassian-crowd-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/atmosphere.js/.eslintrc.json b/types/atmosphere.js/.eslintrc.json index 857e77140fb3cd..e3b68f53c7c89b 100644 --- a/types/atmosphere.js/.eslintrc.json +++ b/types/atmosphere.js/.eslintrc.json @@ -3,6 +3,7 @@ "@definitelytyped/dt-header": "off", "@definitelytyped/no-declare-current-package": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/atmosphere.js/tslint.json b/types/atmosphere.js/tslint.json deleted file mode 100644 index e60356b03b7986..00000000000000 --- a/types/atmosphere.js/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/atna-audit/tslint.json b/types/atna-audit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atna-audit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/atob-lite/tslint.json b/types/atob-lite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atob-lite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/atob/tslint.json b/types/atob/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/atob/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/atom-keymap/tslint.json b/types/atom-keymap/tslint.json deleted file mode 100644 index f2a138d850d412..00000000000000 --- a/types/atom-keymap/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-any": true - } -} diff --git a/types/atom-mocha-test-runner/tslint.json b/types/atom-mocha-test-runner/tslint.json deleted file mode 100644 index f2a138d850d412..00000000000000 --- a/types/atom-mocha-test-runner/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-any": true - } -} diff --git a/types/atom/tslint.json b/types/atom/tslint.json deleted file mode 100644 index 4e858a40cc7202..00000000000000 --- a/types/atom/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "await-promise": [true, "CancellablePromise"], - "no-any": true, - "invalid-void": false - } -} diff --git a/types/atom__watcher/tslint.json b/types/atom__watcher/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atom__watcher/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/atomic-sleep/tslint.json b/types/atomic-sleep/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atomic-sleep/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/atpl/tslint.json b/types/atpl/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/atpl/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/atvlegacycontentkit/tslint.json b/types/atvlegacycontentkit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/atvlegacycontentkit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/audio-context/tslint.json b/types/audio-context/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/audio-context/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/audio-play/tslint.json b/types/audio-play/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/audio-play/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/audiobuffer-to-wav/tslint.json b/types/audiobuffer-to-wav/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/audiobuffer-to-wav/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/audiosprite/tslint.json b/types/audiosprite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/audiosprite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/auth-header/tslint.json b/types/auth-header/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/auth-header/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/auth0-js/tslint.json b/types/auth0-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/auth0-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/auth0-js/v7/tslint.json b/types/auth0-js/v7/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/auth0-js/v7/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/auth0-lock/tslint.json b/types/auth0-lock/tslint.json deleted file mode 100644 index 7e1a456c8d9b87..00000000000000 --- a/types/auth0-lock/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/auth0.widget/.eslintrc.json b/types/auth0.widget/.eslintrc.json index ad17350352f9eb..c7309c55fa0c48 100644 --- a/types/auth0.widget/.eslintrc.json +++ b/types/auth0.widget/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-misused-new": "off" } diff --git a/types/auth0.widget/tslint.json b/types/auth0.widget/tslint.json deleted file mode 100644 index 352822772455e6..00000000000000 --- a/types/auth0.widget/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/auth0/tslint.json b/types/auth0/tslint.json deleted file mode 100644 index f42cf5b5a41085..00000000000000 --- a/types/auth0/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-class": false, - "unified-signatures": false - } -} diff --git a/types/authenticator/tslint.json b/types/authenticator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/authenticator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/authorizenet/tslint.json b/types/authorizenet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/authorizenet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/auto-launch/tslint.json b/types/auto-launch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/auto-launch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/auto-sni/tslint.json b/types/auto-sni/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/auto-sni/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/autobahn/tslint.json b/types/autobahn/tslint.json deleted file mode 100644 index ec483865c71e31..00000000000000 --- a/types/autobahn/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-inferrable-types": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/autocannon/tslint.json b/types/autocannon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/autocannon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/autokanji/tslint.json b/types/autokanji/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/autokanji/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/autoprefixer-core/tslint.json b/types/autoprefixer-core/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/autoprefixer-core/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/autosize/tslint.json b/types/autosize/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/autosize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/autosuggest-highlight/tslint.json b/types/autosuggest-highlight/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/autosuggest-highlight/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/autosuggest-trie/tslint.json b/types/autosuggest-trie/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/autosuggest-trie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/av/tslint.json b/types/av/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/av/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/avocat/tslint.json b/types/avocat/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/avocat/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/await-promises/tslint.json b/types/await-promises/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/await-promises/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/await-timeout/tslint.json b/types/await-timeout/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/await-timeout/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/awesome-notifications/tslint.json b/types/awesome-notifications/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/awesome-notifications/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/awesomplete/tslint.json b/types/awesomplete/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/awesomplete/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/aws-api-gateway-client/tslint.json b/types/aws-api-gateway-client/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/aws-api-gateway-client/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/aws-cloudfront-function/.eslintrc.json b/types/aws-cloudfront-function/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/aws-cloudfront-function/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/aws-cloudfront-function/tslint.json b/types/aws-cloudfront-function/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/aws-cloudfront-function/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/aws-greengrass-core-sdk/tslint.json b/types/aws-greengrass-core-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aws-greengrass-core-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aws-iot-device-sdk/tslint.json b/types/aws-iot-device-sdk/tslint.json deleted file mode 100644 index 4254df4c1a210c..00000000000000 --- a/types/aws-iot-device-sdk/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "only-arrow-functions": false - } -} diff --git a/types/aws-kcl/tslint.json b/types/aws-kcl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aws-kcl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aws-lambda-fastify/tslint.json b/types/aws-lambda-fastify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aws-lambda-fastify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aws-lambda-http-server/tslint.json b/types/aws-lambda-http-server/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aws-lambda-http-server/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aws-lambda/.eslintrc.json b/types/aws-lambda/.eslintrc.json index 0f7b7412939420..efd71c1a6c0e5f 100644 --- a/types/aws-lambda/.eslintrc.json +++ b/types/aws-lambda/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/aws-lambda/test/cognito-tests.ts b/types/aws-lambda/test/cognito-tests.ts index 75c82e395782f4..1de95cf67be3f8 100644 --- a/types/aws-lambda/test/cognito-tests.ts +++ b/types/aws-lambda/test/cognito-tests.ts @@ -19,6 +19,8 @@ import { PreSignUpTriggerHandler, PreTokenGenerationTriggerEvent, PreTokenGenerationTriggerHandler, + PreTokenGenerationV2TriggerEvent, + PreTokenGenerationV2TriggerHandler, UserMigrationTriggerEvent, UserMigrationTriggerHandler, VerifyAuthChallengeResponseTriggerEvent, @@ -34,6 +36,7 @@ type CognitoTriggerEvent = | CreateAuthChallengeTriggerEvent | VerifyAuthChallengeResponseTriggerEvent | PreTokenGenerationTriggerEvent + | PreTokenGenerationV2TriggerEvent | UserMigrationTriggerEvent | CustomMessageTriggerEvent | CustomEmailSenderTriggerEvent; @@ -230,6 +233,46 @@ const preTokenGeneration: PreTokenGenerationTriggerHandler = async (event, _, ca objectOrUndefined = request.clientMetadata; }; +const preTokenGenerationv2: PreTokenGenerationV2TriggerHandler = async (event, _, callback) => { + const { request, response, triggerSource } = event; + + obj = request.userAttributes; + str = request.userAttributes.email; + obj = request.groupConfiguration; + strArrayOrUndefined = request.groupConfiguration.groupsToOverride; + strArrayOrUndefined = request.groupConfiguration.iamRolesToOverride; + strOrUndefined = request.groupConfiguration.preferredRole; + + strArrayOrUndefined = request.scopes; + + obj = response.claimsAndScopeOverrideDetails; + objectOrUndefined = response.claimsAndScopeOverrideDetails.idTokenGeneration; + objectOrUndefined = response.claimsAndScopeOverrideDetails.accessTokenGeneration; + + objectOrUndefined = response.claimsAndScopeOverrideDetails.idTokenGeneration; + objectOrUndefined = response.claimsAndScopeOverrideDetails.idTokenGeneration?.claimsToAddOrOverride; + strArrayOrUndefined = response.claimsAndScopeOverrideDetails.idTokenGeneration?.claimsToSuppress; + + objectOrUndefined = response.claimsAndScopeOverrideDetails.accessTokenGeneration; + objectOrUndefined = response.claimsAndScopeOverrideDetails.accessTokenGeneration?.claimsToAddOrOverride; + strArrayOrUndefined = response.claimsAndScopeOverrideDetails.accessTokenGeneration?.claimsToSuppress; + strArrayOrUndefined = response.claimsAndScopeOverrideDetails.accessTokenGeneration?.scopesToAdd; + strArrayOrUndefined = response.claimsAndScopeOverrideDetails.accessTokenGeneration?.scopesToSuppress; + + const groupOverrideDetails = response.claimsAndScopeOverrideDetails.groupOverrideDetails!; + strArrayOrUndefined = groupOverrideDetails.groupsToOverride; + strArrayOrUndefined = groupOverrideDetails.iamRolesToOverride; + strOrUndefined = groupOverrideDetails.preferredRole; + + triggerSource === "TokenGeneration_AuthenticateDevice"; + triggerSource === "TokenGeneration_Authentication"; + triggerSource === "TokenGeneration_HostedAuth"; + triggerSource === "TokenGeneration_NewPasswordChallenge"; + triggerSource === "TokenGeneration_RefreshTokens"; + + objectOrUndefined = request.clientMetadata; +}; + const userMigration: UserMigrationTriggerHandler = async (event, _, callback) => { const { request, response, triggerSource } = event; diff --git a/types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts b/types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts index f900785116806d..7c9cf7a5c5192d 100644 --- a/types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +++ b/types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts @@ -123,5 +123,6 @@ export * from "./post-confirmation"; export * from "./pre-authentication"; export * from "./pre-signup"; export * from "./pre-token-generation"; +export * from "./pre-token-generation-v2"; export * from "./user-migration"; export * from "./verify-auth-challenge-response"; diff --git a/types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v2.d.ts b/types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v2.d.ts new file mode 100644 index 00000000000000..6aada78412b900 --- /dev/null +++ b/types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v2.d.ts @@ -0,0 +1,73 @@ +import { Handler } from "../../handler"; +import { BaseTriggerEvent, StringMap } from "./_common"; + +export interface GroupOverrideDetailsV2 { + groupsToOverride?: string[] | undefined; + iamRolesToOverride?: string[] | undefined; + preferredRole?: string | undefined; +} + +/** + * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html#cognito-user-pools-lambda-trigger-syntax-pre-token-generation + */ +export interface IdTokenGeneration { + claimsToAddOrOverride?: StringMap | undefined; + claimsToSuppress?: string[] | undefined; +} + +export interface AccessTokenGeneration { + claimsToAddOrOverride?: StringMap | undefined; + claimsToSuppress?: string[] | undefined; + scopesToAdd?: string[] | undefined; + scopesToSuppress?: string[] | undefined; +} + +export interface ClaimsAndScopeOverrideDetails { + idTokenGeneration?: IdTokenGeneration | undefined; + accessTokenGeneration?: AccessTokenGeneration | undefined; + groupOverrideDetails?: GroupOverrideDetailsV2 | undefined; +} + +export interface BasePreTokenGenerationV2TriggerEvent extends BaseTriggerEvent { + request: { + userAttributes: StringMap; + groupConfiguration: GroupOverrideDetailsV2; + scopes?: string[] | undefined; + clientMetadata?: StringMap | undefined; + }; + response: { + claimsAndScopeOverrideDetails: ClaimsAndScopeOverrideDetails; + }; +} + +export type PreTokenGenerationHostedAuthV2TriggerEvent = BasePreTokenGenerationV2TriggerEvent< + "TokenGeneration_HostedAuth" +>; + +export type PreTokenGenerationAuthenticationV2TriggerEvent = BasePreTokenGenerationV2TriggerEvent< + "TokenGeneration_Authentication" +>; + +export type PreTokenGenerationNewPasswordChallengeV2TriggerEvent = BasePreTokenGenerationV2TriggerEvent< + "TokenGeneration_NewPasswordChallenge" +>; + +export type PreTokenGenerationAuthenticateDeviceV2TriggerEvent = BasePreTokenGenerationV2TriggerEvent< + "TokenGeneration_AuthenticateDevice" +>; + +export type PreTokenGenerationRefreshTokensV2TriggerEvent = BasePreTokenGenerationV2TriggerEvent< + "TokenGeneration_RefreshTokens" +>; + +/** + * @see https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html + */ +export type PreTokenGenerationV2TriggerEvent = + | PreTokenGenerationHostedAuthV2TriggerEvent + | PreTokenGenerationAuthenticationV2TriggerEvent + | PreTokenGenerationNewPasswordChallengeV2TriggerEvent + | PreTokenGenerationAuthenticateDeviceV2TriggerEvent + | PreTokenGenerationRefreshTokensV2TriggerEvent; + +export type PreTokenGenerationV2TriggerHandler = Handler; diff --git a/types/aws-lambda/tslint.json b/types/aws-lambda/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/aws-lambda/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/aws-param-store/tslint.json b/types/aws-param-store/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aws-param-store/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aws-regions/tslint.json b/types/aws-regions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aws-regions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aws-sdk2-types/tslint.json b/types/aws-sdk2-types/tslint.json deleted file mode 100644 index 7121da2b2bdbd5..00000000000000 --- a/types/aws-sdk2-types/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "unified-signatures": false, - "array-type": false, - "no-var-keyword": false, - "no-mergeable-namespace": false, - "jsdoc-format": false, - "no-irregular-whitespace": false, - "no-redundant-jsdoc-2": false, - "eofline": false - } -} diff --git a/types/aws-serverless-express/tslint.json b/types/aws-serverless-express/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aws-serverless-express/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aws-synthetics-puppeteer/tslint.json b/types/aws-synthetics-puppeteer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/aws-synthetics-puppeteer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/aws4/tslint.json b/types/aws4/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/aws4/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/axe-webdriverjs/tslint.json b/types/axe-webdriverjs/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/axe-webdriverjs/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/axel/tslint.json b/types/axel/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/axel/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/axios-cancel/tslint.json b/types/axios-cancel/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/axios-cancel/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/axios-concurrency/tslint.json b/types/axios-concurrency/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/axios-concurrency/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/axios-curlirize/tslint.json b/types/axios-curlirize/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/axios-curlirize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/axios-token-interceptor/tslint.json b/types/axios-token-interceptor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/axios-token-interceptor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/axon/tslint.json b/types/axon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/axon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/azdata/.eslintrc.json b/types/azdata/.eslintrc.json index f54fbe06846818..cb0e0ea8938bbd 100644 --- a/types/azdata/.eslintrc.json +++ b/types/azdata/.eslintrc.json @@ -4,6 +4,7 @@ "@definitelytyped/no-declare-current-package": "off", "@definitelytyped/strict-export-declare-modifiers": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/naming-convention": "off", "@typescript-eslint/explicit-member-accessibility": "off", diff --git a/types/azdata/tslint.json b/types/azdata/tslint.json deleted file mode 100644 index 816f7b059ce7c9..00000000000000 --- a/types/azdata/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "unified-signatures": false - } -} diff --git a/types/azure-function-log-intercept/tslint.json b/types/azure-function-log-intercept/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/azure-function-log-intercept/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/azure-mobile-services-client/.eslintrc.json b/types/azure-mobile-services-client/.eslintrc.json index b13b2ef53a8952..52db66b413be58 100644 --- a/types/azure-mobile-services-client/.eslintrc.json +++ b/types/azure-mobile-services-client/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/naming-convention": "off", "@typescript-eslint/no-misused-new": "off" diff --git a/types/azure-mobile-services-client/tslint.json b/types/azure-mobile-services-client/tslint.json deleted file mode 100644 index 8ace259a81eb2b..00000000000000 --- a/types/azure-mobile-services-client/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-for-of": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/azure-sb/tslint.json b/types/azure-sb/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/azure-sb/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/b-spline/tslint.json b/types/b-spline/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/b-spline/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/b2a/tslint.json b/types/b2a/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/b2a/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/b4a/tslint.json b/types/b4a/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/b4a/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/b64-lite/tslint.json b/types/b64-lite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/b64-lite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/b_/tslint.json b/types/b_/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/b_/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babar/tslint.json b/types/babar/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babar/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-code-frame/tslint.json b/types/babel-code-frame/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-code-frame/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-core/tslint.json b/types/babel-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-generator/tslint.json b/types/babel-generator/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/babel-generator/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/babel-plugin-glaze/tslint.json b/types/babel-plugin-glaze/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-plugin-glaze/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-plugin-macros/tslint.json b/types/babel-plugin-macros/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-plugin-macros/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-plugin-react-docgen/tslint.json b/types/babel-plugin-react-docgen/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-plugin-react-docgen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-plugin-react-html-attrs/index.d.ts b/types/babel-plugin-react-html-attrs/index.d.ts index e5daf80f4bc7ff..b2c3931f9396bb 100644 --- a/types/babel-plugin-react-html-attrs/index.d.ts +++ b/types/babel-plugin-react-html-attrs/index.d.ts @@ -2042,6 +2042,7 @@ declare namespace React { interface DetailsHTMLAttributes extends HTMLAttributes { open?: boolean | string | undefined; + name?: string | undefined; } interface DelHTMLAttributes extends HTMLAttributes { diff --git a/types/babel-plugin-react-html-attrs/tslint.json b/types/babel-plugin-react-html-attrs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/babel-plugin-react-html-attrs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/babel-plugin-react-pug/tslint.json b/types/babel-plugin-react-pug/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-plugin-react-pug/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-plugin-syntax-jsx/tslint.json b/types/babel-plugin-syntax-jsx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-plugin-syntax-jsx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-plugin-tester/tslint.json b/types/babel-plugin-tester/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-plugin-tester/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-template/tslint.json b/types/babel-template/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-template/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-traverse/tslint.json b/types/babel-traverse/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-traverse/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel-types/tslint.json b/types/babel-types/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel-types/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__code-frame/tslint.json b/types/babel__code-frame/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__code-frame/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__core/tslint.json b/types/babel__core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__generator/index.d.ts b/types/babel__generator/index.d.ts index 13c70900c1bff0..f2c2af6ab1af47 100644 --- a/types/babel__generator/index.d.ts +++ b/types/babel__generator/index.d.ts @@ -82,6 +82,12 @@ export interface GeneratorOptions { */ decoratorsBeforeExport?: boolean | undefined; + /** + * The import attributes/assertions syntax to use. + * When not specified, @babel/generator will try to match the style in the input code based on the AST shape. + */ + importAttributesKeyword?: "with" | "assert" | "with-legacy"; + /** * Options for outputting jsesc representation. */ diff --git a/types/babel__generator/tslint.json b/types/babel__generator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__generator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__helper-module-imports/tslint.json b/types/babel__helper-module-imports/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__helper-module-imports/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__helper-plugin-utils/tslint.json b/types/babel__helper-plugin-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__helper-plugin-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__helper-validator-identifier/tslint.json b/types/babel__helper-validator-identifier/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__helper-validator-identifier/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__plugin-transform-runtime/tslint.json b/types/babel__plugin-transform-runtime/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/babel__plugin-transform-runtime/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/babel__preset-env/tslint.json b/types/babel__preset-env/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/babel__preset-env/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/babel__register/tslint.json b/types/babel__register/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__register/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__standalone/tslint.json b/types/babel__standalone/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/babel__standalone/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/babel__template/tslint.json b/types/babel__template/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__template/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babel__traverse/babel__traverse-tests.ts b/types/babel__traverse/babel__traverse-tests.ts index b44ba17a3dcc69..e57beacd2559b0 100644 --- a/types/babel__traverse/babel__traverse-tests.ts +++ b/types/babel__traverse/babel__traverse-tests.ts @@ -468,3 +468,7 @@ const outerIdentifierPathTrue = newPath.getOuterBindingIdentifierPaths(true); outerIdentifierPathTrue; // $ExpectType Record[]> const outerIdentifierPathBoolean = newPath.getOuterBindingIdentifierPaths(booleanVar); outerIdentifierPathBoolean; // $ExpectType Record | NodePath[]> + +newPath.traverse({ + denylist: ["TypeAnnotation"], +}); diff --git a/types/babel__traverse/index.d.ts b/types/babel__traverse/index.d.ts index f639d99a202105..fdac4e4ec02001 100644 --- a/types/babel__traverse/index.d.ts +++ b/types/babel__traverse/index.d.ts @@ -392,8 +392,8 @@ export class NodePath { buildCodeFrameError(msg: string, Error?: ErrorConstructor): Error; - traverse(visitor: Visitor, state: T): void; - traverse(visitor: Visitor): void; + traverse(visitor: TraverseOptions, state: T): void; + traverse(visitor: TraverseOptions): void; set(key: string, node: any): void; diff --git a/types/babel__traverse/tslint.json b/types/babel__traverse/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babel__traverse/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/babelify/tslint.json b/types/babelify/tslint.json deleted file mode 100644 index 4cf0b20b242951..00000000000000 --- a/types/babelify/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-namespace": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/babylon-walk/.eslintrc.json b/types/babylon-walk/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/babylon-walk/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/babylon-walk/tslint.json b/types/babylon-walk/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/babylon-walk/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/babylon/tslint.json b/types/babylon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/babylon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/backblaze-b2/tslint.json b/types/backblaze-b2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/backblaze-b2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/backbone-associations/tslint.json b/types/backbone-associations/tslint.json deleted file mode 100644 index 4e843e20b3aefc..00000000000000 --- a/types/backbone-associations/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/backbone-fetch-cache/tslint.json b/types/backbone-fetch-cache/tslint.json deleted file mode 100644 index d5d3c4b5f16115..00000000000000 --- a/types/backbone-fetch-cache/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-inferrable-types": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/backbone-relational/tslint.json b/types/backbone-relational/tslint.json deleted file mode 100644 index 692887457ba378..00000000000000 --- a/types/backbone-relational/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/backbone.layoutmanager/tslint.json b/types/backbone.layoutmanager/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/backbone.layoutmanager/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/backbone.localstorage/.eslintrc.json b/types/backbone.localstorage/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/backbone.localstorage/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/backbone.localstorage/tslint.json b/types/backbone.localstorage/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/backbone.localstorage/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/backbone.marionette/tslint.json b/types/backbone.marionette/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/backbone.marionette/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/backbone.paginator/tslint.json b/types/backbone.paginator/tslint.json deleted file mode 100644 index 161ba84aab2485..00000000000000 --- a/types/backbone.paginator/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/backbone.radio/tslint.json b/types/backbone.radio/tslint.json deleted file mode 100644 index 4e843e20b3aefc..00000000000000 --- a/types/backbone.radio/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/backbone/tslint.json b/types/backbone/tslint.json deleted file mode 100644 index 1b85ff6a91f5d5..00000000000000 --- a/types/backbone/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-namespace": false, - "unified-signatures": false - } -} diff --git a/types/backgrid/.eslintrc.json b/types/backgrid/.eslintrc.json index 74747947dd2149..afd6dd79e976cb 100644 --- a/types/backgrid/.eslintrc.json +++ b/types/backgrid/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/export-just-namespace": "off" + "@definitelytyped/export-just-namespace": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/backgrid/tslint.json b/types/backgrid/tslint.json deleted file mode 100644 index 22d667028762eb..00000000000000 --- a/types/backgrid/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/backo2/tslint.json b/types/backo2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/backo2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/backoff/tslint.json b/types/backoff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/backoff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/backstopjs/tslint.json b/types/backstopjs/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/backstopjs/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/bad-words/tslint.json b/types/bad-words/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bad-words/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/badwords/tslint.json b/types/badwords/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/badwords/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bagpipes/tslint.json b/types/bagpipes/tslint.json deleted file mode 100755 index 96eb6944687ef8..00000000000000 --- a/types/bagpipes/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false - } -} diff --git a/types/baidu-app/tslint.json b/types/baidu-app/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/baidu-app/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/baidumap-web-sdk/tslint.json b/types/baidumap-web-sdk/tslint.json deleted file mode 100644 index fce5eccdb06ede..00000000000000 --- a/types/baidumap-web-sdk/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false - } -} diff --git a/types/balanced-match/tslint.json b/types/balanced-match/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/balanced-match/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bandagedbd__bdapi/tslint.json b/types/bandagedbd__bdapi/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bandagedbd__bdapi/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/barbellweights/tslint.json b/types/barbellweights/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/barbellweights/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/barco-eventmaster/tslint.json b/types/barco-eventmaster/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/barco-eventmaster/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/barcode/tslint.json b/types/barcode/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/barcode/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/bardjs/tslint.json b/types/bardjs/tslint.json deleted file mode 100644 index abfb9a1c998fc5..00000000000000 --- a/types/bardjs/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-namespace": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/baretest/tslint.json b/types/baretest/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/baretest/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/barnard59-base/tslint.json b/types/barnard59-base/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/barnard59-base/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/barnard59-core/package.json b/types/barnard59-core/package.json index 46db5891a592dd..6213eb3cefbb0e 100644 --- a/types/barnard59-core/package.json +++ b/types/barnard59-core/package.json @@ -9,7 +9,7 @@ "dependencies": { "@types/clownface": "*", "@types/node": "*", - "@types/rdf-loaders-registry": "*", + "@types/rdf-loaders-registry": "^0.3.0", "@types/readable-stream": "*", "rdf-js": "^4.0.2", "winston": "^3.3.3" diff --git a/types/barnard59-core/tslint.json b/types/barnard59-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/barnard59-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/barnard59-graph-store/tslint.json b/types/barnard59-graph-store/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/barnard59-graph-store/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/barnard59-validate-shacl/tslint.json b/types/barnard59-validate-shacl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/barnard59-validate-shacl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/barnard59/tslint.json b/types/barnard59/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/barnard59/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base-64/tslint.json b/types/base-64/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base-64/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base16/tslint.json b/types/base16/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base16/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base32-encoding/tslint.json b/types/base32-encoding/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base32-encoding/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base45/tslint.json b/types/base45/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base45/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base58-random/tslint.json b/types/base58-random/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base58-random/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base62-random/tslint.json b/types/base62-random/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base62-random/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base64-async/tslint.json b/types/base64-async/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base64-async/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base64-emoji/tslint.json b/types/base64-emoji/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base64-emoji/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base64-js/tslint.json b/types/base64-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base64-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base64-stream/tslint.json b/types/base64-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base64-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base64-url/tslint.json b/types/base64-url/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base64-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base64id/tslint.json b/types/base64id/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base64id/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base64topdf/tslint.json b/types/base64topdf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/base64topdf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/base64util/tslint.json b/types/base64util/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/base64util/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bases/tslint.json b/types/bases/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/bases/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/bash-glob/tslint.json b/types/bash-glob/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bash-glob/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/basic-auth/basic-auth-tests.ts b/types/basic-auth/basic-auth-tests.ts index 6154be3e61cc5b..8929712e91e3fc 100644 --- a/types/basic-auth/basic-auth-tests.ts +++ b/types/basic-auth/basic-auth-tests.ts @@ -1,4 +1,5 @@ import { IncomingMessage } from "http"; +import { Context } from "koa"; import auth = require("basic-auth"); const loginData = auth(undefined! as IncomingMessage); @@ -10,3 +11,11 @@ const parsed = auth.parse("Basic QmFzaWM6QXV0aA=="); if (parsed) { const { name, pass } = parsed; } + +const koaContext = auth(undefined! as Context); +if (koaContext) { + const { name, pass } = koaContext; +} + +// @ts-expect-error +auth({ headers: { authorization: ["Bearer", "token"] } }); diff --git a/types/basic-auth/index.d.ts b/types/basic-auth/index.d.ts index b362ed400cabd6..99ed47eacbbd9d 100644 --- a/types/basic-auth/index.d.ts +++ b/types/basic-auth/index.d.ts @@ -1,10 +1,13 @@ /// -import * as http from "http"; -import * as http2 from "http2"; +interface Request { + headers?: { + authorization?: string; + }; +} // See https://github.com/jshttp/basic-auth/blob/v1.1.0/index.js#L49 -declare function auth(req: http.IncomingMessage | http2.Http2ServerRequest): auth.BasicAuthResult | undefined; +declare function auth(req: Request): auth.BasicAuthResult | undefined; declare namespace auth { interface BasicAuthResult { diff --git a/types/basic-auth/package.json b/types/basic-auth/package.json index 5fdcc4a34f7fb6..5af0aa213cd37a 100644 --- a/types/basic-auth/package.json +++ b/types/basic-auth/package.json @@ -9,7 +9,8 @@ "@types/node": "*" }, "devDependencies": { - "@types/basic-auth": "workspace:." + "@types/basic-auth": "workspace:.", + "@types/koa": "*" }, "owners": [ { diff --git a/types/basic-auth/tslint.json b/types/basic-auth/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/basic-auth/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/basicauth-middleware/tslint.json b/types/basicauth-middleware/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/basicauth-middleware/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/basiclightbox/tslint.json b/types/basiclightbox/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/basiclightbox/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/basicscroll/tslint.json b/types/basicscroll/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/basicscroll/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/batch-stream/tslint.json b/types/batch-stream/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/batch-stream/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/battery-level/tslint.json b/types/battery-level/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/battery-level/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bayes-classifier/tslint.json b/types/bayes-classifier/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bayes-classifier/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bazinga-translator/tslint.json b/types/bazinga-translator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bazinga-translator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bbcode-to-react/tslint.json b/types/bbcode-to-react/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bbcode-to-react/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bbob__core/tslint.json b/types/bbob__core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bbob__core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bbob__html/tslint.json b/types/bbob__html/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bbob__html/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bbob__parser/tslint.json b/types/bbob__parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bbob__parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bbob__plugin-helper/tslint.json b/types/bbob__plugin-helper/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bbob__plugin-helper/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bbob__preset-html5/tslint.json b/types/bbob__preset-html5/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bbob__preset-html5/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bbob__preset/tslint.json b/types/bbob__preset/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bbob__preset/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bchaddrjs/tslint.json b/types/bchaddrjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bchaddrjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bcrypt/tslint.json b/types/bcrypt/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bcrypt/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bcryptjs/tslint.json b/types/bcryptjs/tslint.json deleted file mode 100644 index 94c7d46258c018..00000000000000 --- a/types/bcryptjs/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false - } -} diff --git a/types/bcswipe/tslint.json b/types/bcswipe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bcswipe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bdfjs/tslint.json b/types/bdfjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bdfjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/beanstalkd-worker/tslint.json b/types/beanstalkd-worker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/beanstalkd-worker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/beanstalkd/tslint.json b/types/beanstalkd/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/beanstalkd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bearcat-es6/tslint.json b/types/bearcat-es6/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bearcat-es6/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/beats/tslint.json b/types/beats/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/beats/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/beautify/tslint.json b/types/beautify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/beautify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/begin__data/tslint.json b/types/begin__data/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/begin__data/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/behavior3/tslint.json b/types/behavior3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/behavior3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/belter/tslint.json b/types/belter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/belter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bem-classname/tslint.json b/types/bem-classname/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bem-classname/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bemmer/tslint.json b/types/bemmer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bemmer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/benchmark/tslint.json b/types/benchmark/tslint.json deleted file mode 100644 index 97a6078124279a..00000000000000 --- a/types/benchmark/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "new-parens": false, - "no-duplicate-variable": false, - "no-unnecessary-type-assertion": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/bencode/tslint.json b/types/bencode/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bencode/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bent/tslint.json b/types/bent/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bent/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bero/tslint.json b/types/bero/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bero/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bessel/tslint.json b/types/bessel/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bessel/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/better-bem/tslint.json b/types/better-bem/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/better-bem/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/better-curry/tslint.json b/types/better-curry/tslint.json deleted file mode 100644 index 085b14c6b3bab1..00000000000000 --- a/types/better-curry/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false, - "radix": false - } -} diff --git a/types/better-queue/tslint.json b/types/better-queue/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/better-queue/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/better-scroll/tslint.json b/types/better-scroll/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/better-scroll/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/better-sqlite3/tslint.json b/types/better-sqlite3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/better-sqlite3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/beyonk__gdpr-cookie-consent-banner/tslint.json b/types/beyonk__gdpr-cookie-consent-banner/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/beyonk__gdpr-cookie-consent-banner/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bezier-js/tslint.json b/types/bezier-js/tslint.json deleted file mode 100644 index ecabc63a395cff..00000000000000 --- a/types/bezier-js/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-mergeable-namespace": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/bgiframe/.eslintrc.json b/types/bgiframe/.eslintrc.json index b3385d3ace1daf..9813a48ac1df16 100644 --- a/types/bgiframe/.eslintrc.json +++ b/types/bgiframe/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off" } } diff --git a/types/bgiframe/tslint.json b/types/bgiframe/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/bgiframe/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/bible-reference-formatter/tslint.json b/types/bible-reference-formatter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bible-reference-formatter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bicubic-interpolate/tslint.json b/types/bicubic-interpolate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bicubic-interpolate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bidi-css-js/tslint.json b/types/bidi-css-js/tslint.json deleted file mode 100755 index 794cb4bf3e0782..00000000000000 --- a/types/bidi-css-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bidirectional-map/tslint.json b/types/bidirectional-map/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bidirectional-map/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/big-json/tslint.json b/types/big-json/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/big-json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/big-rat/tslint.json b/types/big-rat/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/big-rat/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/big.js/tslint.json b/types/big.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/big.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bigbite__wp-cypress/tslint.json b/types/bigbite__wp-cypress/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bigbite__wp-cypress/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bigbluebutton-js/tslint.json b/types/bigbluebutton-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bigbluebutton-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bigi/tslint.json b/types/bigi/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bigi/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bigint/.eslintrc.json b/types/bigint/.eslintrc.json index 1f7ba987af8f79..eaf0236b45a52b 100644 --- a/types/bigint/.eslintrc.json +++ b/types/bigint/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/ban-types": "off" diff --git a/types/bigint/tslint.json b/types/bigint/tslint.json deleted file mode 100644 index d2e909551b4e95..00000000000000 --- a/types/bigint/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "arrow-return-shorthand": false, - "no-var-keyword": false, - "npm-naming": false, - "unified-signatures": false, - "no-redundant-jsdoc-2": false - } -} diff --git a/types/bignum/tslint.json b/types/bignum/tslint.json deleted file mode 100644 index f167dccc51f29f..00000000000000 --- a/types/bignum/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "no-var-requires": false - } -} diff --git a/types/bigscreen/tslint.json b/types/bigscreen/tslint.json deleted file mode 100644 index ac5337530b2a0c..00000000000000 --- a/types/bigscreen/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "prefer-template": false - } -} diff --git a/types/biguintbe/tslint.json b/types/biguintbe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/biguintbe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/biguintle/tslint.json b/types/biguintle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/biguintle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bin-pack/tslint.json b/types/bin-pack/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bin-pack/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/binary-file/tslint.json b/types/binary-file/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/binary-file/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/binary-parse-stream/tslint.json b/types/binary-parse-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/binary-parse-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/binary-parser/tslint.json b/types/binary-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/binary-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/binary-split/tslint.json b/types/binary-split/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/binary-split/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/binary-xml/tslint.json b/types/binary-xml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/binary-xml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bind-args/tslint.json b/types/bind-args/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bind-args/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bind-ponyfill/tslint.json b/types/bind-ponyfill/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/bind-ponyfill/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/bindings/tslint.json b/types/bindings/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bindings/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bintrees/tslint.json b/types/bintrees/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/bintrees/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/bip21/tslint.json b/types/bip21/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/bip21/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/bip38/tslint.json b/types/bip38/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bip38/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bit-array/tslint.json b/types/bit-array/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bit-array/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bit-twiddle/tslint.json b/types/bit-twiddle/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bit-twiddle/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bitauth/tslint.json b/types/bitauth/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bitauth/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bitcoin-computer-bitcore/tslint.json b/types/bitcoin-computer-bitcore/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bitcoin-computer-bitcore/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bitcoin-computer__lib/tslint.json b/types/bitcoin-computer__lib/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bitcoin-computer__lib/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bitcore-lib-cash/tslint.json b/types/bitcore-lib-cash/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bitcore-lib-cash/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bitcore-lib/tslint.json b/types/bitcore-lib/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bitcore-lib/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bitfield-rle/tslint.json b/types/bitfield-rle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bitfield-rle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bittorrent-protocol/tslint.json b/types/bittorrent-protocol/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bittorrent-protocol/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bitwise-xor/tslint.json b/types/bitwise-xor/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bitwise-xor/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/black-engine/tslint.json b/types/black-engine/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/black-engine/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blacklist/tslint.json b/types/blacklist/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blacklist/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blake2/tslint.json b/types/blake2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blake2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blake2b-wasm/tslint.json b/types/blake2b-wasm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blake2b-wasm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blake2b/tslint.json b/types/blake2b/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blake2b/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blazor__javascript-interop/tslint.json b/types/blazor__javascript-interop/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blazor__javascript-interop/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blazy/tslint.json b/types/blazy/tslint.json deleted file mode 100644 index 3b0a2cda11f082..00000000000000 --- a/types/blazy/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/bleno/tslint.json b/types/bleno/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/bleno/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/blessed/tslint.json b/types/blessed/tslint.json deleted file mode 100644 index c0ba9f5c846d8e..00000000000000 --- a/types/blessed/tslint.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ], - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/blip-sdk/tslint.json b/types/blip-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blip-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blissfuljs/tslint.json b/types/blissfuljs/tslint.json deleted file mode 100644 index 12eacd05c02e8b..00000000000000 --- a/types/blissfuljs/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "arrow-return-shorthand": false, - "no-duplicate-variable": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/blob-stream/tslint.json b/types/blob-stream/tslint.json deleted file mode 100644 index e85f488ac39596..00000000000000 --- a/types/blob-stream/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-var-requires": false - } -} diff --git a/types/blob-to-buffer/tslint.json b/types/blob-to-buffer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/blob-to-buffer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/blobshape/tslint.json b/types/blobshape/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blobshape/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/block-stream2/tslint.json b/types/block-stream2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/block-stream2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/blocked-at/tslint.json b/types/blocked-at/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blocked-at/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blocked/tslint.json b/types/blocked/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blocked/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blockies/tslint.json b/types/blockies/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blockies/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blocks/tslint.json b/types/blocks/tslint.json deleted file mode 100644 index 33029c85be403b..00000000000000 --- a/types/blocks/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-construct": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/bloem/tslint.json b/types/bloem/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bloem/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bloom-filter/tslint.json b/types/bloom-filter/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bloom-filter/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bloomfilter/tslint.json b/types/bloomfilter/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bloomfilter/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/blue-tape/tslint.json b/types/blue-tape/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/blue-tape/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/bluebird-global/.eslintrc.json b/types/bluebird-global/.eslintrc.json index cfa66f53329b18..4e5f8fa32255df 100644 --- a/types/bluebird-global/.eslintrc.json +++ b/types/bluebird-global/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/no-unnecessary-generics": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/bluebird-global/tslint.json b/types/bluebird-global/tslint.json deleted file mode 100644 index 5ee46c74c619ae..00000000000000 --- a/types/bluebird-global/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-undefined": false, - "unified-signatures": false - } -} diff --git a/types/bluebird-retry/tslint.json b/types/bluebird-retry/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bluebird-retry/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bluebird/tslint.json b/types/bluebird/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/bluebird/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/bluebird/v1/tslint.json b/types/bluebird/v1/tslint.json deleted file mode 100644 index 8d9a6bb23477f9..00000000000000 --- a/types/bluebird/v1/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/bluebird/v2/tslint.json b/types/bluebird/v2/tslint.json deleted file mode 100644 index cfd1912aaff285..00000000000000 --- a/types/bluebird/v2/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-unnecessary-callback-wrapper": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/blueimp-load-image/tslint.json b/types/blueimp-load-image/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/blueimp-load-image/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/blueimp-md5/tslint.json b/types/blueimp-md5/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/blueimp-md5/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bmapgl-browser/tslint.json b/types/bmapgl-browser/tslint.json deleted file mode 100644 index fce5eccdb06ede..00000000000000 --- a/types/bmapgl-browser/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false - } -} diff --git a/types/bmp-js/tslint.json b/types/bmp-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bmp-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bn.js/tslint.json b/types/bn.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bn.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/body-parser-xml/tslint.json b/types/body-parser-xml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/body-parser-xml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/body-parser/tslint.json b/types/body-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/body-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/body-scroll-lock/tslint.json b/types/body-scroll-lock/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/body-scroll-lock/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/body/tslint.json b/types/body/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/body/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bogon/tslint.json b/types/bogon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bogon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bonjour/tslint.json b/types/bonjour/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bonjour/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/boolbase/tslint.json b/types/boolbase/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/boolbase/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/boolean-to-signed/tslint.json b/types/boolean-to-signed/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/boolean-to-signed/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/boolify-string/tslint.json b/types/boolify-string/tslint.json deleted file mode 100644 index 36c48af5871ae0..00000000000000 --- a/types/boolify-string/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-construct": false - } -} diff --git a/types/boom/tslint.json b/types/boom/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/boom/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/boom/v3/tslint.json b/types/boom/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/boom/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/boom/v4/tslint.json b/types/boom/v4/tslint.json deleted file mode 100644 index 713a2f2fd12530..00000000000000 --- a/types/boom/v4/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false, - "unified-signatures": false - } -} diff --git a/types/bootbox/tslint.json b/types/bootbox/tslint.json deleted file mode 100644 index f34b02b800a8b2..00000000000000 --- a/types/bootbox/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/bootpag/tslint.json b/types/bootpag/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/bootpag/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/bootstrap-3-typeahead/tslint.json b/types/bootstrap-3-typeahead/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-3-typeahead/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-colorpicker/tslint.json b/types/bootstrap-colorpicker/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/bootstrap-colorpicker/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/bootstrap-datepicker/tslint.json b/types/bootstrap-datepicker/tslint.json deleted file mode 100644 index 206c5ac9b1af99..00000000000000 --- a/types/bootstrap-datepicker/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/bootstrap-fileinput/tslint.json b/types/bootstrap-fileinput/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-fileinput/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-filestyle/tslint.json b/types/bootstrap-filestyle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-filestyle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-growl-ifightcrime/tslint.json b/types/bootstrap-growl-ifightcrime/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-growl-ifightcrime/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-maxlength/.eslintrc.json b/types/bootstrap-maxlength/.eslintrc.json index 12dc0523ec6ea8..d0441fac2a22df 100644 --- a/types/bootstrap-maxlength/.eslintrc.json +++ b/types/bootstrap-maxlength/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/bootstrap-maxlength/tslint.json b/types/bootstrap-maxlength/tslint.json deleted file mode 100644 index 17b3b7454d4ea4..00000000000000 --- a/types/bootstrap-maxlength/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/bootstrap-menu/tslint.json b/types/bootstrap-menu/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-menu/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-multiselect/tslint.json b/types/bootstrap-multiselect/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-multiselect/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-notify/tslint.json b/types/bootstrap-notify/tslint.json deleted file mode 100644 index 8948ae83a56bb8..00000000000000 --- a/types/bootstrap-notify/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/bootstrap-select/tslint.json b/types/bootstrap-select/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-select/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-slider/tslint.json b/types/bootstrap-slider/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-slider/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-switch/tslint.json b/types/bootstrap-switch/tslint.json deleted file mode 100644 index 7adc6d1a1b0d0a..00000000000000 --- a/types/bootstrap-switch/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-boolean-literal-compare": false, - "unified-signatures": false - } -} diff --git a/types/bootstrap-toggle/tslint.json b/types/bootstrap-toggle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-toggle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap-touchspin/tslint.json b/types/bootstrap-touchspin/tslint.json deleted file mode 100644 index aabd199eda41c7..00000000000000 --- a/types/bootstrap-touchspin/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/bootstrap-treeview/.eslintrc.json b/types/bootstrap-treeview/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/bootstrap-treeview/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/bootstrap-treeview/tslint.json b/types/bootstrap-treeview/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/bootstrap-treeview/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/bootstrap-validator/tslint.json b/types/bootstrap-validator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap-validator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap.paginator/.eslintrc.json b/types/bootstrap.paginator/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/bootstrap.paginator/.eslintrc.json +++ b/types/bootstrap.paginator/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/bootstrap.paginator/tslint.json b/types/bootstrap.paginator/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/bootstrap.paginator/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/bootstrap.timepicker/.eslintrc.json b/types/bootstrap.timepicker/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/bootstrap.timepicker/.eslintrc.json +++ b/types/bootstrap.timepicker/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/bootstrap.timepicker/tslint.json b/types/bootstrap.timepicker/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/bootstrap.timepicker/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/bootstrap.v3.datetimepicker/tslint.json b/types/bootstrap.v3.datetimepicker/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bootstrap.v3.datetimepicker/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bootstrap.v3.datetimepicker/v3/tslint.json b/types/bootstrap.v3.datetimepicker/v3/tslint.json deleted file mode 100644 index 816f7b059ce7c9..00000000000000 --- a/types/bootstrap.v3.datetimepicker/v3/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "unified-signatures": false - } -} diff --git a/types/bootstrap/tslint.json b/types/bootstrap/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap/v4/tslint.json b/types/bootstrap/v4/tslint.json deleted file mode 100755 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap/v4/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap3-dialog/tslint.json b/types/bootstrap3-dialog/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap3-dialog/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bootstrap4-toggle/tslint.json b/types/bootstrap4-toggle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bootstrap4-toggle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bounce.js/tslint.json b/types/bounce.js/tslint.json deleted file mode 100644 index 5b4ab367cd62e3..00000000000000 --- a/types/bounce.js/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "npm-naming": [ - true, - { - "mode": "name-only" - } - ], - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/bounds.js/tslint.json b/types/bounds.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bounds.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/box-intersect/tslint.json b/types/box-intersect/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/box-intersect/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/box2d/tslint.json b/types/box2d/tslint.json deleted file mode 100644 index bb3cc2dc2ea116..00000000000000 --- a/types/box2d/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-mergeable-namespace": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-var-keyword": false - } -} diff --git a/types/bpmn-moddle/tslint.json b/types/bpmn-moddle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bpmn-moddle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/brace-expansion/tslint.json b/types/brace-expansion/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/brace-expansion/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/braces/tslint.json b/types/braces/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/braces/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/brainhubeu__react-carousel/index.d.ts b/types/brainhubeu__react-carousel/index.d.ts index 066d15713548ae..57ed8eff297670 100644 --- a/types/brainhubeu__react-carousel/index.d.ts +++ b/types/brainhubeu__react-carousel/index.d.ts @@ -24,8 +24,8 @@ export type CarouselPluginFunc = ({ refs: Record>; }) => { plugin?: (() => void) | undefined; - beforeCarouselItems?: (() => JSX.Element) | undefined; - afterCarouselItems?: (() => JSX.Element) | undefined; + beforeCarouselItems?: (() => React.JSX.Element) | undefined; + afterCarouselItems?: (() => React.JSX.Element) | undefined; carouselCustomProps?: (() => Record any>) | undefined; trackCustomProps?: (() => Record any>) | undefined; slideCustomProps?: (() => Record any>) | undefined; @@ -48,7 +48,7 @@ export interface CarouselProps { itemWidth?: number | undefined; value?: number | undefined; onChange?(value: number): void; - slides?: JSX.Element[] | undefined; + slides?: React.JSX.Element[] | undefined; offset?: number | undefined; draggable?: boolean | undefined; animationSpeed?: number | undefined; diff --git a/types/brainhubeu__react-carousel/tslint.json b/types/brainhubeu__react-carousel/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/brainhubeu__react-carousel/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/braintree-web-drop-in/tslint.json b/types/braintree-web-drop-in/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/braintree-web-drop-in/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/braintree-web/apple-pay.d.ts b/types/braintree-web/apple-pay.d.ts index bce3fbe796b6b0..87ffabb706fd24 100644 --- a/types/braintree-web/apple-pay.d.ts +++ b/types/braintree-web/apple-pay.d.ts @@ -314,6 +314,18 @@ export interface ApplePay { */ tokenize(options: { token: any }, callback: callback): void; tokenize(options: { token: any }): Promise; + + /** + * Cleanly tear down anything set up by {@link module:braintree-web/apple-pay.create|create}. + * @example + * applePayInstance.teardown(); + * @example With callback + * applePayInstance.teardown(function () { + * // teardown is complete + * }); + */ + teardown(callback: () => void): void; + teardown(): Promise; } export function create(options: { client: Client }): Promise; diff --git a/types/braintree-web/test/node.ts b/types/braintree-web/test/node.ts index 0fbc5125b3d580..3ec768ad3be35a 100644 --- a/types/braintree-web/test/node.ts +++ b/types/braintree-web/test/node.ts @@ -303,6 +303,14 @@ braintree.client.create( console.log(paymentRequest); // { total: { }, countryCode: 'US', currencyCode: 'USD', merchantCapabilities: [ ], supportedNetworks: [ ] } + + // $ExpectType Promise + applePayInstance.teardown(); + + // $ExpectType void + applePayInstance.teardown(() => { + // teardown with callback + }); }); braintree.applePay.create({ client: clientInstance }, (createErr, applePayInstance) => { diff --git a/types/braintree-web/test/web.ts b/types/braintree-web/test/web.ts index 06051cc94cafe9..fa777160760a40 100644 --- a/types/braintree-web/test/web.ts +++ b/types/braintree-web/test/web.ts @@ -388,6 +388,14 @@ braintree.client.create( console.log(paymentRequest); // { total: { }, countryCode: 'US', currencyCode: 'USD', merchantCapabilities: [ ], supportedNetworks: [ ] } + + // $ExpectType Promise + applePayInstance.teardown(); + + // $ExpectType void + applePayInstance.teardown(() => { + // teardown with callback + }); }, ); diff --git a/types/braintree-web/tslint.json b/types/braintree-web/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/braintree-web/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/braintree/tslint.json b/types/braintree/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/braintree/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bramus__pagination-sequence/tslint.json b/types/bramus__pagination-sequence/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bramus__pagination-sequence/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/branca/tslint.json b/types/branca/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/branca/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/branch-sdk/tslint.json b/types/branch-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/branch-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/branchy/tslint.json b/types/branchy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/branchy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/breejs__later/tslint.json b/types/breejs__later/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/breejs__later/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/breeze/.eslintrc.json b/types/breeze/.eslintrc.json index 38ea301fa3e3f3..0a11d50dd9bdbf 100644 --- a/types/breeze/.eslintrc.json +++ b/types/breeze/.eslintrc.json @@ -5,6 +5,7 @@ "@definitelytyped/no-declare-current-package": "off", "@definitelytyped/strict-export-declare-modifiers": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/breeze/tslint.json b/types/breeze/tslint.json deleted file mode 100644 index 5f3ffd0f1b68bc..00000000000000 --- a/types/breeze/tslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-mergeable-namespace": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/bresenham/tslint.json b/types/bresenham/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bresenham/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bricks.js/tslint.json b/types/bricks.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bricks.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bristol-sentry/tslint.json b/types/bristol-sentry/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bristol-sentry/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bristol/tslint.json b/types/bristol/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bristol/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bro-fs/tslint.json b/types/bro-fs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bro-fs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/broccoli-funnel/tslint.json b/types/broccoli-funnel/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/broccoli-funnel/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/broccoli-merge-trees/tslint.json b/types/broccoli-merge-trees/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/broccoli-merge-trees/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/broken-link-checker/tslint.json b/types/broken-link-checker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/broken-link-checker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/brorand/tslint.json b/types/brorand/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/brorand/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/brotli-webpack-plugin/tslint.json b/types/brotli-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/brotli-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/brotli/tslint.json b/types/brotli/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/brotli/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/browser-bunyan/tslint.json b/types/browser-bunyan/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/browser-bunyan/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/browser-fingerprint/tslint.json b/types/browser-fingerprint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/browser-fingerprint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/browser-harness/tslint.json b/types/browser-harness/tslint.json deleted file mode 100644 index 9dbebc888fc87c..00000000000000 --- a/types/browser-harness/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/browser-lang/tslint.json b/types/browser-lang/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/browser-lang/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/browser-or-node/tslint.json b/types/browser-or-node/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/browser-or-node/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/browser-pack/tslint.json b/types/browser-pack/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/browser-pack/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/browser-report/tslint.json b/types/browser-report/tslint.json deleted file mode 100644 index e7edaa5dc184ef..00000000000000 --- a/types/browser-report/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/browser-resolve/tslint.json b/types/browser-resolve/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/browser-resolve/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/browser-sync-webpack-plugin/tslint.json b/types/browser-sync-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/browser-sync-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/browser-sync/browser-sync-tests.ts b/types/browser-sync/browser-sync-tests.ts index 7ffd297eb6f926..91142c27ba657c 100644 --- a/types/browser-sync/browser-sync-tests.ts +++ b/types/browser-sync/browser-sync-tests.ts @@ -270,6 +270,12 @@ browserSync({ }, }); +browserSync({ + watch: true, + server: "./app", + snippet: false, +}); + browserSync({ httpModule: "http2", }); diff --git a/types/browser-sync/index.d.ts b/types/browser-sync/index.d.ts index 70ed1f39c6f82c..7b29ade832cbfb 100644 --- a/types/browser-sync/index.d.ts +++ b/types/browser-sync/index.d.ts @@ -10,297 +10,352 @@ import { ServeStaticOptions } from "serve-static"; declare namespace browserSync { interface Options { /** - * Browsersync includes a user-interface that is accessed via a separate port. The UI allows to controls - * all devices, push sync updates and much more. - * - * port - Default: 3001 - * weinre.port - Default: 8080 - * Note: Requires at least version 2.0.0. + * Browsersync includes a user-interface that is accessed via a separate port. + * The UI allows to controls all devices, push sync updates and much more. + * @default false */ ui?: UIOptions | boolean | undefined; /** - * Browsersync can watch your files as you work. Changes you make will either be injected into the page (CSS - * & images) or will cause all browsers to do a full-page refresh. See anymatch for more information on glob - * patterns. - * Default: false + * Browsersync can watch your files as you work. Changes you make will either + * be injected into the page (CSS & images) or will cause all browsers to do + * a full-page refresh. + * @default false */ files?: string | Array | undefined; /** * Specify which file events to respond to. * Available events: `add`, `change`, `unlink`, `addDir`, `unlinkDir` + * @default ["change"] + * @since 2.18.8 */ watchEvents?: WatchEvents | string[] | undefined; /** - * Watch files automatically. + * Watch files automatically - this should be used as an + * alternative to the `files` option. When this option is used, some directories + * will be ignored automatically such as `node_modules` `bower_components` `.sass-cache` + * `.vscode` `.git` `.idea` + * @default false + * @since 2.23.0 */ watch?: boolean | undefined; /** - * Patterns for any watchers to ignore. - * Anything provided here will end up inside 'watchOptions.ignored'. + * Patterns for any watchers to ignore. Anything provided here + * will end up inside `watchOptions.ignored` + * @default [] + * @since 2.23.0 */ ignore?: string[] | undefined; /** - * Serve an index.html file for all non-asset routes. - * Useful when using client-routers. + * Serve an index.html file for all non-asset routes. Useful + * when using client-routers + * @default false + * @since 2.23.0 */ single?: boolean | undefined; /** - * File watching options that get passed along to Chokidar. Check their docs for available options - * Default: undefined - * Note: Requires at least version 2.6.0. + * File watching options that get passed along to [Chokidar](https://github.com/paulmillr/chokidar). + * Check their docs for available options + * @default undefined + * @since 2.6.0 */ watchOptions?: chokidar.WatchOptions | undefined; /** * Use the built-in static server for basic HTML/JS/CSS websites. - * Default: false + * @default false */ server?: string | boolean | string[] | ServerOptions | undefined; /** * Proxy an EXISTING vhost. Browsersync will wrap your vhost with a proxy URL to view your site. - * Passing only a URL as a string equates to passing only target property of ProxyOptions type. - * target - Default: undefined - * ws - Default: undefined - * middleware - Default: undefined - * reqHeaders - Default: undefined - * proxyRes - Default: undefined (http.ServerResponse if expecting single parameter) - * proxyReq - Default: undefined + * @default false */ proxy?: string | ProxyOptions | undefined; /** * Use a specific port (instead of the one auto-detected by Browsersync) - * Default: 3000 + * @default 3000 */ port?: number | undefined; /** * Functions or actual plugins used as middleware. + * @default false */ middleware?: MiddlewareHandler | PerRouteMiddleware | Array | undefined; /** - * Add additional directories from which static files should be served. - * Should only be used in proxy or snippet mode. - * Default: [] - * Note: Requires at least version 2.8.0. + * Add additional directories from which static + * files should be served. Should only be used in `proxy` or `snippet` + * mode. + * @default [] + * @since 2.8.0 */ serveStatic?: StaticOptions[] | string[] | undefined; /** - * Options that are passed to the serve-static middleware when you use the - * string[] syntax: eg: `serveStatic: ['./app']`. - * Please see [serve-static](https://github.com/expressjs/serve-static) for details. + * Options that are passed to the serve-static middleware + * when you use the string[] syntax: eg: `serveStatic: ['./app']`. Please see + * [serve-static](https://github.com/expressjs/serve-static) for details + * @since 2.17.0 */ serveStaticOptions?: ServeStaticOptions | undefined; /** - * Enable https for localhost development. - * Note: This may not be needed for proxy option as it will try to infer from your target url. - * Note: If privacy error is encountered please see HttpsOptions below, setting those will resolve. - * Note: Requires at least version 1.3.0. + * Enable https for localhost development. **Note** - this is not needed for proxy + * option as it will be inferred from your target url. + * @default undefined + * @since 1.3.0 */ https?: boolean | HttpsOptions | undefined; /** - * Override http module to allow using 3rd party server modules (such as http2). + * Override http module to allow using 3rd party server modules (such as http2) + * *Note*: these modules are not included in the Browsersync package - you need + * to 'npm install' any that you'd like to use. + * @default undefined + * @since 2.18.0 */ httpModule?: string | undefined; /** * Current working directory + * @since 2.23.0 */ cwd?: string; /** - * Register callbacks via a regular option - this can be used to get access the Browsersync - * instance in situations where you cannot provide a callback via the normal API (for example, - * in a Gruntfile) + * Register callbacks via a regular option - this can be used + * to get access the Browsersync instance in situations where you + * cannot provide a callback via the normal API (for example, in a Gruntfile) * - * This 'ready' callback can be used to access the Browsersync instance + * **Note**: Only the `ready` callback is currently supported here. */ callbacks?: CallbacksOptions; /** * Clicks, Scrolls & Form inputs on any device will be mirrored to all others. * clicks - Default: true * scroll - Default: true - * forms - Default: true + * forms - Default: { + submit: true, + inputs: true, + toggles: true + } */ ghostMode?: GhostOptions | boolean | undefined; /** * Can be either "info", "debug", "warn", or "silent" - * Default: info + * @default "info" */ logLevel?: LogLevel | undefined; /** - * Change the console logging prefix. Useful if you're creating your own project based on Browsersync - * Default: BS - * Note: Requires at least version 1.5.1. + * Change the console logging prefix. Useful if you're creating your + * own project based on Browsersync + * @default "Browsersync" + * @since 1.5.1 */ logPrefix?: string | undefined; /** * Whether or not to log connections - * Default: false + * @default false */ logConnections?: boolean | undefined; /** * Whether or not to log information about changed files - * Default: false + * @default true */ logFileChanges?: boolean | undefined; /** * Log the snippet to the console when you're in snippet mode (no proxy/server) - * Default: true - * Note: Requires at least version 1.5.2. + * @default true + * @since 1.5.2 */ logSnippet?: boolean | undefined; /** - * You can control how the snippet is injected onto each page via a custom regex + function. - * You can also provide patterns for certain urls that should be ignored from the snippet injection. - * Note: Requires at least version 2.0.0. + * You can prevent Browsersync from injecting the connection snippet + * by passing `snippet: false`. + * @default undefined + */ + snippet?: boolean | undefined; + /** + * You can control how the snippet is injected + * onto each page via a custom regex + function. + * You can also provide patterns for certain urls + * that should be ignored from the snippet injection. + * @since 2.0.0 */ snippetOptions?: SnippetOptions | undefined; /** * Add additional HTML rewriting rules. - * Default: false - * Note: Requires at least version 2.4.0. + * @since 2.4.0 + * @default false */ rewriteRules?: boolean | RewriteRules[] | undefined; /** * Tunnel the Browsersync server through a random Public URL - * Default: null + * @default null */ tunnel?: string | boolean | undefined; /** - * Some features of Browsersync (such as xip & tunnel) require an internet connection, but if you're - * working offline, you can reduce start-up time by setting this option to false + * Some features of Browsersync (such as `xip` & `tunnel`) require an internet connection, but if you're + * working offline, you can reduce start-up time by setting this option to `false` + * @default undefined */ online?: boolean | undefined; /** - * Default: true * Decide which URL to open automatically when Browsersync starts. Defaults to "local" if none set. - * Can be true, local, external, ui, ui-external, tunnel or false + * Can be `true`, `local`, `external`, `ui`, `ui-external`, `tunnel` or `false` + * @default true */ open?: OpenOptions | boolean | undefined; /** * The browser(s) to open - * Default: default + * @default "default" */ browser?: string | string[] | undefined; /** * Add HTTP access control (CORS) headers to assets served by Browsersync. - * Default: false - * Note: Requires at least version 2.16.0. + * @default false + * @since 2.16.0 */ cors?: boolean | undefined; /** - * Requires an internet connection - useful for services such as Typekit as it allows you to configure - * domains such as *.xip.io in your kit settings - * Default: false + * Requires an internet connection - useful for services such as [Typekit](https://typekit.com/) + * as it allows you to configure domains such as `*.xip.io` in your kit settings + * @default false */ xip?: boolean | undefined; + /** + * ¯\_(ツ)_/¯ + * @default false + */ + hostnameSuffix?: boolean | undefined; /** * Reload each browser when Browsersync is restarted. - * Default: false + * @default false */ reloadOnRestart?: boolean | undefined; /** * The small pop-over notifications in the browser are not always needed/wanted. - * Default: true + * @default true */ notify?: boolean | undefined; /** * scrollProportionally: false // Sync viewports to TOP position - * Default: true + * @default true */ scrollProportionally?: boolean | undefined; /** * How often to send scroll events - * Default: 0 + * @default 0 */ scrollThrottle?: number | undefined; /** - * Decide which technique should be used to restore scroll position following a reload. - * Can be window.name or cookie - * Default: 'window.name' + * Decide which technique should be used to restore + * scroll position following a reload. + * Can be `window.name` or `cookie` + * @default "window.name" */ scrollRestoreTechnique?: string | undefined; /** - * Sync the scroll position of any element on the page. Add any amount of CSS selectors - * Default: [] - * Note: Requires at least version 2.9.0. + * Sync the scroll position of any element + * on the page. Add any amount of CSS selectors + * @default [] + * @since 2.9.0 */ scrollElements?: string[] | undefined; /** - * Default: [] - * Note: Requires at least version 2.9.0. - * Sync the scroll position of any element on the page - where any scrolled element will cause - * all others to match scroll position. This is helpful when a breakpoint alters which element + * Sync the scroll position of any element + * on the page - where any scrolled element + * will cause all others to match scroll position. + * This is helpful when a breakpoint alters which element * is actually scrolling + * @default [] + * @since 2.9.0 */ scrollElementMapping?: string[] | undefined; /** - * Time, in milliseconds, to wait before instructing the browser to reload/inject following a file - * change event - * Default: 0 + * Time, in milliseconds, to wait before + * instructing the browser to reload/inject following a + * file change event + * @default 0 */ reloadDelay?: number | undefined; /** - * Restrict the frequency in which browser:reload events can be emitted to connected clients - * Default: 0 - * Note: Requires at least version 2.6.0. + * Wait for a specified window of event-silence before + * sending any reload events. + * @default 500 + * @since 2.6.0 */ reloadDebounce?: number | undefined; /** - * Emit only the first event during sequential time windows of a specified duration. - * Note: Requires at least version 2.13.0. + * Emit only the first event during sequential time windows + * of a specified duration. + * @default 0 + * @since 2.13.0 */ reloadThrottle?: number | undefined; /** * User provided plugins - * Default: [] - * Note: Requires at least version 2.6.0. + * @default [] + * @since 2.6.0 */ plugins?: any[] | undefined; /** * Whether to inject changes (rather than a page refresh) - * Default: true + * @default true */ injectChanges?: boolean | undefined; /** * The initial path to load + * @default null */ - startPath?: string | undefined; + startPath?: string | undefined | null; /** * Whether to minify the client script - * Default: true + * @default true */ minify?: boolean | undefined; /** * Override host detection if you know the correct IP to use + * @default null */ - host?: string | undefined; + host?: string | undefined | null; /** - * Specify a host to listen on. Use this if you want to prevent binding to all interfaces. + * Specify a host to listen on. Use this if you want to + * prevent binding to all interfaces. * - * Note: When you specify this option, it overrides the 'host' option + * **Note**: When you specify this option, it overrides the 'host' option + * @default undefined */ listen?: string; /** - * Support environments where dynamic hostnames are not required (ie: electron). + * Support environments where dynamic hostnames are not required + * (ie: electron) + * @default false + * @since 2.14.0 */ localOnly?: boolean | undefined; /** * Send file-change events to the browser - * Default: true + * @default true */ codeSync?: boolean | undefined; /** * Append timestamps to injected files - * Default: true + * @default true */ timestamps?: boolean | undefined; /** - * ¯\_(ツ)_/¯ - * Best guess, when ghostMode (or SocketIO?) is setup the events + * When ghostMode is setup the events * listed here will be emitted and able to hook into. + * @default [ + * "scroll", + * "scroll:element", + * "input:text", + * "input:toggles", + * "form:submit", + * "form:reset", + * "click" + * ] */ clientEvents?: string[] | undefined; /** - * Alter the script path for complete control over where the Browsersync Javascript is served - * from. Whatever you return from this function will be used as the script path. - * Note: Requires at least version 1.5.0. + * Alter the script path for complete control over where the Browsersync + * Javascript is served from. Whatever you return from this function + * will be used as the script path. + * @default undefined + * @since 1.5.0 */ scriptPath?: ((path: string) => string) | undefined; /** @@ -311,23 +366,53 @@ declare namespace browserSync { * domain - Default: undefined * port - Default: undefined * clients.heartbeatTimeout - Default: 5000 - * Note: Requires at least version 1.6.2. + * @since 1.6.2 */ socket?: SocketOptions | undefined; /** * Configure the script domain + * @since 2.14.0 */ script?: ScriptOptions | undefined; - /** - * ¯\_(ツ)_/¯ - */ tagNames?: TagNamesOptions | undefined; /** - * ¯\_(ツ)_/¯ + * @default ["css", "png", "jpg", "jpeg", "svg", "gif", "webp", "map"] */ injectFileTypes?: string[] | undefined; /** - * ¯\_(ツ)_/¯ + * @default false + */ + injectNotification?: boolean | undefined; + /** + * @default [ + * "js", + * "css", + * "pdf", + * "map", + * "svg", + * "ico", + * "woff", + * "json", + * "eot", + * "ttf", + * "png", + * "jpg", + * "jpeg", + * "webp", + * "gif", + * "mp4", + * "mp3", + * "3gp", + * "ogg", + * "ogv", + * "webm", + * "m4a", + * "flv", + * "wmv", + * "avi", + * "swf", + * "scss" + * ] */ excludeFileTypes?: string[] | undefined; } diff --git a/types/browser-sync/package.json b/types/browser-sync/package.json index 3da53f38563af1..e455f67a657c19 100644 --- a/types/browser-sync/package.json +++ b/types/browser-sync/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/browser-sync", - "version": "2.27.9999", + "version": "2.29.9999", "projects": [ "http://www.browsersync.io/" ], diff --git a/types/browser-sync/tslint.json b/types/browser-sync/tslint.json deleted file mode 100644 index ea43b3fe2c3e85..00000000000000 --- a/types/browser-sync/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/browser-update/tslint.json b/types/browser-update/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/browser-update/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/browser-util-inspect/tslint.json b/types/browser-util-inspect/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/browser-util-inspect/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/browserify/tslint.json b/types/browserify/tslint.json deleted file mode 100644 index 5499ea95daafae..00000000000000 --- a/types/browserify/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "arrow-return-shorthand": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/browserslist-useragent/tslint.json b/types/browserslist-useragent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/browserslist-useragent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bs58/tslint.json b/types/bs58/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bs58/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bs58/v3/tslint.json b/types/bs58/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bs58/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bs58check/tslint.json b/types/bs58check/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bs58check/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bs58grscheck/tslint.json b/types/bs58grscheck/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bs58grscheck/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bser/tslint.json b/types/bser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/btoa-lite/tslint.json b/types/btoa-lite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/btoa-lite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/btoa/tslint.json b/types/btoa/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/btoa/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/buble/tslint.json b/types/buble/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buble/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bucks/tslint.json b/types/bucks/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/bucks/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/buffer-builder/tslint.json b/types/buffer-builder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buffer-builder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/buffer-compare/tslint.json b/types/buffer-compare/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/buffer-compare/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/buffer-crc32/tslint.json b/types/buffer-crc32/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buffer-crc32/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/buffer-equal/tslint.json b/types/buffer-equal/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/buffer-equal/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/buffer-from/tslint.json b/types/buffer-from/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buffer-from/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/buffer-json-encoding/tslint.json b/types/buffer-json-encoding/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buffer-json-encoding/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/buffer-json/tslint.json b/types/buffer-json/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buffer-json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/buffer-reader/tslint.json b/types/buffer-reader/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buffer-reader/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/buffer-split/tslint.json b/types/buffer-split/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buffer-split/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/buffer-to-stream/tslint.json b/types/buffer-to-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/buffer-to-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/buffer-xor/tslint.json b/types/buffer-xor/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/buffer-xor/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bufferhelper/tslint.json b/types/bufferhelper/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bufferhelper/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/buffers/tslint.json b/types/buffers/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/buffers/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/bufferstream/tslint.json b/types/bufferstream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bufferstream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bugsnag__cuid/tslint.json b/types/bugsnag__cuid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bugsnag__cuid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/build-output-script/tslint.json b/types/build-output-script/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/build-output-script/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bull-arena/tslint.json b/types/bull-arena/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bull-arena/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bumblebee-hotword/tslint.json b/types/bumblebee-hotword/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bumblebee-hotword/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bump-regex/tslint.json b/types/bump-regex/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bump-regex/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/react-native/v0.68/.npmignore b/types/bun/.npmignore similarity index 100% rename from types/react-native/v0.68/.npmignore rename to types/bun/.npmignore diff --git a/types/bun/README.md b/types/bun/README.md new file mode 100644 index 00000000000000..9d7123ae5773af --- /dev/null +++ b/types/bun/README.md @@ -0,0 +1,20 @@ +# TypeScript types for Bun + +

+ Logo +

+ +These are the type definitions for Bun's JavaScript runtime APIs. + +# Installation + +Install the `@types/bun` npm package: + +```bash +# yarn/npm/pnpm work too, "@types/bun" is an ordinary npm package +bun add -D @types/bun +``` + +# Contributing + +The `@types/bun` package is a wrapper over the `bun-types` package, which lives in the [Bun repo](https://github.com/oven-sh/bun) under `packages/bun-types`. diff --git a/types/bun/bun-tests.ts b/types/bun/bun-tests.ts new file mode 100644 index 00000000000000..bda0992f7e4fe5 --- /dev/null +++ b/types/bun/bun-tests.ts @@ -0,0 +1 @@ +Bun; diff --git a/types/bun/index.d.ts b/types/bun/index.d.ts new file mode 100644 index 00000000000000..22f6a666046f00 --- /dev/null +++ b/types/bun/index.d.ts @@ -0,0 +1 @@ +/// diff --git a/types/bun/package.json b/types/bun/package.json new file mode 100644 index 00000000000000..9cae92cc6f4c18 --- /dev/null +++ b/types/bun/package.json @@ -0,0 +1,40 @@ +{ + "private": true, + "name": "@types/bun", + "version": "1.0.9999", + "projects": [ + "https://bun.sh" + ], + "dependencies": { + "bun-types": "1.0.18" + }, + "devDependencies": { + "@types/bun": "workspace:." + }, + "owners": [ + { + "name": "Colin McDonnell", + "githubUsername": "colinhacks" + }, + { + "name": "Jarred Sumner", + "githubUsername": "Jarred-Sumner" + }, + { + "name": "Ashcon Partovi", + "githubUsername": "electroid" + }, + { + "name": "Dave Caruso", + "githubUsername": "paperdave" + }, + { + "name": "Robobun", + "githubUsername": "robobun" + }, + { + "name": "Dylan Conway", + "githubUsername": "dylan-conway" + } + ] +} diff --git a/types/bun/tsconfig.json b/types/bun/tsconfig.json new file mode 100644 index 00000000000000..6f79ccdcbb737e --- /dev/null +++ b/types/bun/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "lib": ["ESNext"], + "strict": true, + "target": "esnext", + "module": "node16", + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "types": [], + "noUnusedLocals": true, + "noEmit": true + } +} diff --git a/types/react-native/v0.69/.npmignore b/types/bundle-id/.npmignore similarity index 100% rename from types/react-native/v0.69/.npmignore rename to types/bundle-id/.npmignore diff --git a/types/bundle-id/bundle-id-tests.ts b/types/bundle-id/bundle-id-tests.ts new file mode 100644 index 00000000000000..384e3881168375 --- /dev/null +++ b/types/bundle-id/bundle-id-tests.ts @@ -0,0 +1,19 @@ +import { bundleId, bundleIdSync } from "bundle-id"; + +// $ExpectType Promise +bundleId("Safari"); + +// $ExpectType string +bundleIdSync("Safari"); + +// @ts-expect-error +bundleId(); + +// @ts-expect-error +bundleId(1); + +// @ts-expect-error +bundleIdSync(); + +// @ts-expect-error +bundleIdSync(1); diff --git a/types/bundle-id/index.d.ts b/types/bundle-id/index.d.ts new file mode 100644 index 00000000000000..c6d46490839f05 --- /dev/null +++ b/types/bundle-id/index.d.ts @@ -0,0 +1,2 @@ +export function bundleId(bundleName: string): Promise; +export function bundleIdSync(bundleName: string): string; diff --git a/types/bundle-id/package.json b/types/bundle-id/package.json new file mode 100644 index 00000000000000..d3b6a00f41a0e0 --- /dev/null +++ b/types/bundle-id/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/bundle-id", + "version": "3.0.9999", + "projects": [ + "https://github.com/sindresorhus/bundle-id#readme" + ], + "devDependencies": { + "@types/bundle-id": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/bundle-id/tsconfig.json b/types/bundle-id/tsconfig.json new file mode 100644 index 00000000000000..51c73c2eb4fd18 --- /dev/null +++ b/types/bundle-id/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bundle-id-tests.ts" + ] +} diff --git a/types/react-native/v0.70/.npmignore b/types/bundle-name/.npmignore similarity index 100% rename from types/react-native/v0.70/.npmignore rename to types/bundle-name/.npmignore diff --git a/types/bundle-name/bundle-name-tests.ts b/types/bundle-name/bundle-name-tests.ts new file mode 100644 index 00000000000000..8a0cf05b996689 --- /dev/null +++ b/types/bundle-name/bundle-name-tests.ts @@ -0,0 +1,10 @@ +import bundleName from "bundle-name"; + +// $ExpectType Promise +bundleName("com.apple.Safari"); + +// @ts-expect-error +bundleName(1); + +// @ts-expect-error +bundleName(); diff --git a/types/bundle-name/index.d.ts b/types/bundle-name/index.d.ts new file mode 100644 index 00000000000000..65141026f01c91 --- /dev/null +++ b/types/bundle-name/index.d.ts @@ -0,0 +1 @@ +export default function bundleName(bundleId: string): Promise; diff --git a/types/bundle-name/package.json b/types/bundle-name/package.json new file mode 100644 index 00000000000000..166314bdc2d86c --- /dev/null +++ b/types/bundle-name/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/bundle-name", + "version": "4.0.9999", + "projects": [ + "https://github.com/sindresorhus/bundle-name#readme" + ], + "devDependencies": { + "@types/bundle-name": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/bundle-name/tsconfig.json b/types/bundle-name/tsconfig.json new file mode 100644 index 00000000000000..e3761c501389ac --- /dev/null +++ b/types/bundle-name/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bundle-name-tests.ts" + ] +} diff --git a/types/bunnymq/tslint.json b/types/bunnymq/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bunnymq/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bunyan-blackhole/.eslintrc.json b/types/bunyan-blackhole/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/bunyan-blackhole/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/bunyan-blackhole/tslint.json b/types/bunyan-blackhole/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/bunyan-blackhole/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/bunyan-config/tslint.json b/types/bunyan-config/tslint.json deleted file mode 100644 index e93c78a7654aa7..00000000000000 --- a/types/bunyan-config/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "no-var-requires": false, - "prefer-const": false - } -} diff --git a/types/bunyan-format/tslint.json b/types/bunyan-format/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bunyan-format/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bunyan-logentries/tslint.json b/types/bunyan-logentries/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/bunyan-logentries/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/bunyan-prettystream/tslint.json b/types/bunyan-prettystream/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/bunyan-prettystream/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/bunyan-syslog/tslint.json b/types/bunyan-syslog/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bunyan-syslog/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bunyan-winston-adapter/tslint.json b/types/bunyan-winston-adapter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/bunyan-winston-adapter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bunyan/tslint.json b/types/bunyan/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/bunyan/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/busboy/tslint.json b/types/busboy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/busboy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/busboy/v0/tslint.json b/types/busboy/v0/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/busboy/v0/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/business-rules-engine/tslint.json b/types/business-rules-engine/tslint.json deleted file mode 100644 index 87dbfbb389e9e3..00000000000000 --- a/types/business-rules-engine/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/bwip-js/tslint.json b/types/bwip-js/tslint.json deleted file mode 100644 index d8d234d29a5d66..00000000000000 --- a/types/bwip-js/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-type-assertion": false, - "only-arrow-functions": false, - "triple-equals": false - } -} diff --git a/types/byline/tslint.json b/types/byline/tslint.json deleted file mode 100644 index 85d3128baa3f4a..00000000000000 --- a/types/byline/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-conditional-assignment": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "no-var-requires": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/byte-range/tslint.json b/types/byte-range/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/byte-range/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/byte-size/tslint.json b/types/byte-size/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/byte-size/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/bytebuffer/tslint.json b/types/bytebuffer/tslint.json deleted file mode 100644 index 5b4b4719f20441..00000000000000 --- a/types/bytebuffer/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/bytes/tslint.json b/types/bytes/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bytes/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/bytewise/tslint.json b/types/bytewise/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/bytewise/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/c-struct/tslint.json b/types/c-struct/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/c-struct/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/c3/tslint.json b/types/c3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/c3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cabarc/tslint.json b/types/cabarc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cabarc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cacache/tslint.json b/types/cacache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cacache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cache-manager-fs-hash/tslint.json b/types/cache-manager-fs-hash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cache-manager-fs-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cache-manager-ioredis/tslint.json b/types/cache-manager-ioredis/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cache-manager-ioredis/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cache-manager-memcached-store/tslint.json b/types/cache-manager-memcached-store/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cache-manager-memcached-store/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cache-manager-redis-store/tslint.json b/types/cache-manager-redis-store/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cache-manager-redis-store/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cache-manager/tslint.json b/types/cache-manager/tslint.json deleted file mode 100644 index ffa0ec889557fa..00000000000000 --- a/types/cache-manager/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "object-literal-shorthand": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/cached-path-relative/tslint.json b/types/cached-path-relative/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cached-path-relative/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cached/tslint.json b/types/cached/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cached/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cadesplugin/tslint.json b/types/cadesplugin/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cadesplugin/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cadviewer/tslint.json b/types/cadviewer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cadviewer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cal-heatmap/tslint.json b/types/cal-heatmap/tslint.json deleted file mode 100644 index 701ef3481591f0..00000000000000 --- a/types/cal-heatmap/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/calc-percent/tslint.json b/types/calc-percent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/calc-percent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/calendar/tslint.json b/types/calendar/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/calendar/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/calidation/tslint.json b/types/calidation/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/calidation/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/call-bind/tslint.json b/types/call-bind/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/call-bind/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/callback-to-async-iterator/tslint.json b/types/callback-to-async-iterator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/callback-to-async-iterator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/caller/tslint.json b/types/caller/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/caller/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/callsite/tslint.json b/types/callsite/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/callsite/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/calq/tslint.json b/types/calq/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/calq/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/camelcase-css/tslint.json b/types/camelcase-css/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/camelcase-css/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/camelcase-keys-deep/tslint.json b/types/camelcase-keys-deep/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/camelcase-keys-deep/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/react-native/v0.71/.npmignore b/types/camelize/.npmignore similarity index 100% rename from types/react-native/v0.71/.npmignore rename to types/camelize/.npmignore diff --git a/types/camelize/camelize-tests.ts b/types/camelize/camelize-tests.ts new file mode 100644 index 00000000000000..e74d481309110f --- /dev/null +++ b/types/camelize/camelize-tests.ts @@ -0,0 +1,34 @@ +import camelize = require("camelize"); + +const obj = { + "foo-bar": 1, + "bar-baz": { + "baz-qux": 2, + }, + "qux.quux": { + "quux_quuz": { + "quuz-corge": 3, + }, + }, + 15: 4, +}; + +const camelizedObj = camelize(obj); + +// $ExpectType number +camelizedObj.fooBar; + +// $ExpectType number +camelizedObj.barBaz.bazQux; + +// $ExpectType number +camelizedObj.quxQuux.quuxQuuz.quuzCorge; + +// $ExpectType "fooBar" +camelize("foo-bar" as const); + +// $ExpectType Date +camelize(new Date()); + +// $ExpectType RegExp +camelize(/foo/); diff --git a/types/camelize/index.d.ts b/types/camelize/index.d.ts new file mode 100644 index 00000000000000..81690f28ef780a --- /dev/null +++ b/types/camelize/index.d.ts @@ -0,0 +1,20 @@ +type CamelSeparator = "-" | "_" | "."; + +/** + * Converts a string to camel case. + */ +type CamelCase = S extends `${infer FirstWord}${CamelSeparator}${infer SecondChar}${infer Remaining}` + ? `${Lowercase}${Uppercase}${CamelCase}` + : Lowercase; + +type Camelize = { + [K in keyof T as CamelCase]: T[K] extends {} ? Camelize : T[K]; +}; + +declare function camelize(obj: T): T extends string ? CamelCase + : T extends RegExp ? T + : T extends Date ? T + : T extends {} ? Camelize + : T; + +export = camelize; diff --git a/types/camelize/package.json b/types/camelize/package.json new file mode 100644 index 00000000000000..fa1beec509e627 --- /dev/null +++ b/types/camelize/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/camelize", + "version": "1.0.9999", + "projects": [ + "https://github.com/ljharb/camelize" + ], + "devDependencies": { + "@types/camelize": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/camelize/tsconfig.json b/types/camelize/tsconfig.json new file mode 100644 index 00000000000000..86695ee94a7550 --- /dev/null +++ b/types/camelize/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "camelize-tests.ts" + ] +} diff --git a/types/camo/tslint.json b/types/camo/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/camo/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/camouflage-rewrite/tslint.json b/types/camouflage-rewrite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/camouflage-rewrite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/camunda-external-task-client-js/tslint.json b/types/camunda-external-task-client-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/camunda-external-task-client-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/can-autoplay/tslint.json b/types/can-autoplay/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/can-autoplay/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cancan/tslint.json b/types/cancan/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cancan/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/caniuse-api/tslint.json b/types/caniuse-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/caniuse-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/caniuse-lite/tslint.json b/types/caniuse-lite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/caniuse-lite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cannon/.eslintrc.json b/types/cannon/.eslintrc.json index 2aad8fd12324ec..e527d9d126a8aa 100644 --- a/types/cannon/.eslintrc.json +++ b/types/cannon/.eslintrc.json @@ -3,6 +3,7 @@ "@definitelytyped/no-declare-current-package": "off", "@definitelytyped/strict-export-declare-modifiers": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/prefer-namespace": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/cannon/tslint.json b/types/cannon/tslint.json deleted file mode 100644 index 16c26890463879..00000000000000 --- a/types/cannon/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/canvas-confetti/tslint.json b/types/canvas-confetti/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/canvas-confetti/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/canvas-fit/tslint.json b/types/canvas-fit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/canvas-fit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/canvas-gauges/tslint.json b/types/canvas-gauges/tslint.json deleted file mode 100644 index 820b53e26eed79..00000000000000 --- a/types/canvas-gauges/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/canvas-multiline-text/tslint.json b/types/canvas-multiline-text/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/canvas-multiline-text/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/canvas-size/tslint.json b/types/canvas-size/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/canvas-size/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/canvas-txt/tslint.json b/types/canvas-txt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/canvas-txt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/canvasjs/.eslintrc.json b/types/canvasjs/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/canvasjs/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/canvasjs/tslint.json b/types/canvasjs/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/canvasjs/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/capitalize/tslint.json b/types/capitalize/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/capitalize/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/capture-console/tslint.json b/types/capture-console/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/capture-console/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/car-names/tslint.json b/types/car-names/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/car-names/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon-components-react/lib/components/AspectRatio/AspectRatio.d.ts b/types/carbon-components-react/lib/components/AspectRatio/AspectRatio.d.ts index a8518c693b169c..98ae359e5714ad 100644 --- a/types/carbon-components-react/lib/components/AspectRatio/AspectRatio.d.ts +++ b/types/carbon-components-react/lib/components/AspectRatio/AspectRatio.d.ts @@ -21,7 +21,7 @@ export type AspectRatioDefaultProps = as?: undefined; }; -export type AspectRatioIntrinsicProps = +export type AspectRatioIntrinsicProps = & AspectRatioBaseProps & SafeProps> & { @@ -39,7 +39,9 @@ export type AspectRatioCustomComponentProps< : never; declare function AspectRatio(props: AspectRatioDefaultProps): FCReturn; -declare function AspectRatio(props: AspectRatioIntrinsicProps): FCReturn; +declare function AspectRatio( + props: AspectRatioIntrinsicProps, +): FCReturn; declare function AspectRatio>( props: AspectRatioCustomComponentProps, ): FCReturn; diff --git a/types/carbon-components-react/lib/components/Button/Button.d.ts b/types/carbon-components-react/lib/components/Button/Button.d.ts index 766549c3564d61..df5fd5a201c94c 100644 --- a/types/carbon-components-react/lib/components/Button/Button.d.ts +++ b/types/carbon-components-react/lib/components/Button/Button.d.ts @@ -70,7 +70,7 @@ export interface ButtonAnchorProps extends ButtonBaseProps, Omit = +export type ButtonIntrinsicProps = & ButtonBaseProps & SafeProps> & { @@ -101,7 +101,7 @@ export type ButtonCustomComponentProps< declare function Button(props: ForwardRefProps): FCReturn; // tslint:disable:unified-signatures breaks certain usages declare function Button(props: ForwardRefProps): FCReturn; -declare function Button( +declare function Button( props: ForwardRefProps & ButtonKindProps>, ): FCReturn; declare function Button, R = unknown>( diff --git a/types/carbon-components-react/lib/components/DangerButton/DangerButton.d.ts b/types/carbon-components-react/lib/components/DangerButton/DangerButton.d.ts index 8d88a10bd4ce98..396c03f32786b5 100644 --- a/types/carbon-components-react/lib/components/DangerButton/DangerButton.d.ts +++ b/types/carbon-components-react/lib/components/DangerButton/DangerButton.d.ts @@ -5,7 +5,9 @@ import { ButtonAnchorProps, ButtonCustomComponentProps, ButtonDefaultProps, Butt declare function DangerButton(props: FCProps): FCReturn; // tslint:disable:unified-signatures breaks certain usages declare function DangerButton(props: FCProps): FCReturn; -declare function DangerButton(props: FCProps>): FCReturn; +declare function DangerButton( + props: FCProps>, +): FCReturn; declare function DangerButton>( props: FCProps>, ): FCReturn; diff --git a/types/carbon-components-react/lib/components/Dialog/index.d.ts b/types/carbon-components-react/lib/components/Dialog/index.d.ts index 0830e247eb0671..ec784701f77472 100644 --- a/types/carbon-components-react/lib/components/Dialog/index.d.ts +++ b/types/carbon-components-react/lib/components/Dialog/index.d.ts @@ -1,6 +1,8 @@ import { FCReturn, ForwardRefProps, ReactComponentConstructor } from "../../../typings/shared"; import { FocusScopeCustomComponentProps, FocusScopeDefaultProps, FocusScopeIntrinsicProps } from "../FocusScope"; +import { JSX } from "react"; + // Props used by Dialog that are not inherited from FocusScope usage interface DialogBaseProps { "aria-labelledby": string; diff --git a/types/carbon-components-react/lib/components/FocusScope/index.d.ts b/types/carbon-components-react/lib/components/FocusScope/index.d.ts index 7e1fa2b8508d2a..ed6953113f9f56 100644 --- a/types/carbon-components-react/lib/components/FocusScope/index.d.ts +++ b/types/carbon-components-react/lib/components/FocusScope/index.d.ts @@ -27,7 +27,7 @@ export type FocusScopeDefaultProps = as?: undefined; }; -export type FocusScopeIntrinsicProps = +export type FocusScopeIntrinsicProps = & FocusScopeBaseProps & SafeProps> & { @@ -45,7 +45,7 @@ export type FocusScopeCustomComponentProps< : never; declare function FocusScope(props: ForwardRefProps): FCReturn; -declare function FocusScope( +declare function FocusScope( props: ForwardRefProps>, ): FCReturn; declare function FocusScope, R = unknown>( diff --git a/types/carbon-components-react/lib/components/Grid/Column.d.ts b/types/carbon-components-react/lib/components/Grid/Column.d.ts index 99337fa98e4207..2f061ebdd50a5b 100644 --- a/types/carbon-components-react/lib/components/Grid/Column.d.ts +++ b/types/carbon-components-react/lib/components/Grid/Column.d.ts @@ -36,7 +36,7 @@ export type ColumnDefaultProps = as?: undefined; }; -export type ColumnIntrinsicProps = +export type ColumnIntrinsicProps = & ColumnBaseProps & SafeProps> & { @@ -54,7 +54,7 @@ export type ColumnCustomComponentProps< : never; declare function Column(props: ColumnDefaultProps): FCReturn; -declare function Column(props: ColumnIntrinsicProps): FCReturn; +declare function Column(props: ColumnIntrinsicProps): FCReturn; declare function Column>(props: ColumnCustomComponentProps): FCReturn; export default Column; diff --git a/types/carbon-components-react/lib/components/Grid/Grid.d.ts b/types/carbon-components-react/lib/components/Grid/Grid.d.ts index 5ebc8379a0d1f4..01b8c9063205f7 100644 --- a/types/carbon-components-react/lib/components/Grid/Grid.d.ts +++ b/types/carbon-components-react/lib/components/Grid/Grid.d.ts @@ -28,7 +28,7 @@ export type GridDefaultProps = as?: undefined; }; -export type GridIntrinsicProps = +export type GridIntrinsicProps = & GridBaseProps & SafeProps> & { @@ -46,7 +46,7 @@ export type GridCustomComponentProps< : never; declare function Grid(props: GridDefaultProps): FCReturn; -declare function Grid(props: GridIntrinsicProps): FCReturn; +declare function Grid(props: GridIntrinsicProps): FCReturn; declare function Grid>(props: GridCustomComponentProps): FCReturn; export default Grid; diff --git a/types/carbon-components-react/lib/components/Grid/Row.d.ts b/types/carbon-components-react/lib/components/Grid/Row.d.ts index 853962e9ef8322..96738347cfbc6a 100644 --- a/types/carbon-components-react/lib/components/Grid/Row.d.ts +++ b/types/carbon-components-react/lib/components/Grid/Row.d.ts @@ -25,7 +25,7 @@ export type RowDefaultProps = as?: undefined; }; -export type RowIntrinsicProps = +export type RowIntrinsicProps = & RowBaseProps & SafeProps> & { @@ -43,7 +43,7 @@ export type RowCustomComponentProps> : never; declare function Row(props: RowDefaultProps): FCReturn; -declare function Row(props: RowIntrinsicProps): FCReturn; +declare function Row(props: RowIntrinsicProps): FCReturn; declare function Row>(props: RowCustomComponentProps): FCReturn; export default Row; diff --git a/types/carbon-components-react/lib/components/Heading/index.d.ts b/types/carbon-components-react/lib/components/Heading/index.d.ts index ba9bf586c3418e..c8009965973cd3 100644 --- a/types/carbon-components-react/lib/components/Heading/index.d.ts +++ b/types/carbon-components-react/lib/components/Heading/index.d.ts @@ -13,9 +13,11 @@ export type SectionDefaultProps = ReactAttr & { as?: undefined; }; -export type SectionIntrinsicProps = SafeProps> & { - as: K; -}; +export type SectionIntrinsicProps = + & SafeProps> + & { + as: K; + }; export type SectionCustomComponentProps< C extends ReactComponentConstructor, @@ -25,7 +27,7 @@ export type SectionCustomComponentProps< : never; declare function Section(props: SectionDefaultProps): FCReturn; -declare function Section(props: SectionIntrinsicProps): FCReturn; +declare function Section(props: SectionIntrinsicProps): FCReturn; declare function Section>(props: SectionCustomComponentProps): FCReturn; export interface HeadingProps extends ReactAttr {} diff --git a/types/carbon-components-react/lib/components/Icon/Icon.d.ts b/types/carbon-components-react/lib/components/Icon/Icon.d.ts index cd3009276a0198..7c943593231efc 100644 --- a/types/carbon-components-react/lib/components/Icon/Icon.d.ts +++ b/types/carbon-components-react/lib/components/Icon/Icon.d.ts @@ -3,7 +3,7 @@ import * as React from "react"; export function findIcon(name: string, iconsObj?: readonly T[]): false | T; export function setIconsList(list: readonly T[]): void; export function getSvgData(iconName: string): R; -export function svgShapes(svgData: D): Array; +export function svgShapes(svgData: D): Array; export function isPrefixed(name: string): boolean; export interface IconData { diff --git a/types/carbon-components-react/lib/components/Layout/LayoutDirection.d.ts b/types/carbon-components-react/lib/components/Layout/LayoutDirection.d.ts index dbb97c7dcc2fb5..6ec860769b070d 100644 --- a/types/carbon-components-react/lib/components/Layout/LayoutDirection.d.ts +++ b/types/carbon-components-react/lib/components/Layout/LayoutDirection.d.ts @@ -19,7 +19,7 @@ export type LayoutDirectionDefaultProps = as?: undefined; }; -export type LayoutDirectionIntrinsicProps = +export type LayoutDirectionIntrinsicProps = & LayoutDirectionBaseProps & JSXIntrinsicElementProps & { @@ -37,7 +37,7 @@ export type LayoutDirectionCustomComponentProps< : never; declare function LayoutDirection(props: LayoutDirectionDefaultProps): FCReturn; -declare function LayoutDirection( +declare function LayoutDirection( props: LayoutDirectionIntrinsicProps, ): FCReturn; declare function LayoutDirection>( diff --git a/types/carbon-components-react/lib/components/Popover/index.d.ts b/types/carbon-components-react/lib/components/Popover/index.d.ts index e36646fb4efd6c..a141c42ace7187 100644 --- a/types/carbon-components-react/lib/components/Popover/index.d.ts +++ b/types/carbon-components-react/lib/components/Popover/index.d.ts @@ -47,7 +47,7 @@ export type PopoverDefaultProps = as?: undefined; }; -export type PopoverIntrinsicProps = +export type PopoverIntrinsicProps = & PopoverBaseProps & SafePopoverProps> & { @@ -65,7 +65,7 @@ export type PopoverCustomComponentProps< : never; declare function Popover(props: ForwardRefProps): FCReturn; -declare function Popover( +declare function Popover( props: ForwardRefProps>, ): FCReturn; declare function Popover, R = unknown>( diff --git a/types/carbon-components-react/lib/components/PrimaryButton/PrimaryButton.d.ts b/types/carbon-components-react/lib/components/PrimaryButton/PrimaryButton.d.ts index a6e1ff749ae091..7b048d13df7cce 100644 --- a/types/carbon-components-react/lib/components/PrimaryButton/PrimaryButton.d.ts +++ b/types/carbon-components-react/lib/components/PrimaryButton/PrimaryButton.d.ts @@ -5,7 +5,7 @@ import { ButtonAnchorProps, ButtonCustomComponentProps, ButtonDefaultProps, Butt declare function PrimaryButton(props: FCProps): FCReturn; // tslint:disable:unified-signatures breaks certain usages declare function PrimaryButton(props: FCProps): FCReturn; -declare function PrimaryButton( +declare function PrimaryButton( props: FCProps>, ): FCReturn; declare function PrimaryButton>( diff --git a/types/carbon-components-react/lib/components/SecondaryButton/SecondaryButton.d.ts b/types/carbon-components-react/lib/components/SecondaryButton/SecondaryButton.d.ts index 91e6a21def9704..a5029531113670 100644 --- a/types/carbon-components-react/lib/components/SecondaryButton/SecondaryButton.d.ts +++ b/types/carbon-components-react/lib/components/SecondaryButton/SecondaryButton.d.ts @@ -5,7 +5,7 @@ import { ButtonAnchorProps, ButtonCustomComponentProps, ButtonDefaultProps, Butt declare function SecondaryButton(props: FCProps): FCReturn; // tslint:disable:unified-signatures breaks certain usages declare function SecondaryButton(props: FCProps): FCReturn; -declare function SecondaryButton( +declare function SecondaryButton( props: FCProps>, ): FCReturn; declare function SecondaryButton>( diff --git a/types/carbon-components-react/lib/components/Text/Text.d.ts b/types/carbon-components-react/lib/components/Text/Text.d.ts index 30982ed58e7d72..f9186ca0ee00b5 100644 --- a/types/carbon-components-react/lib/components/Text/Text.d.ts +++ b/types/carbon-components-react/lib/components/Text/Text.d.ts @@ -20,7 +20,7 @@ export type TextDefaultProps = as?: undefined; }; -export type TextIntrinsicProps = +export type TextIntrinsicProps = & TextBaseProps & JSXIntrinsicElementProps & { @@ -38,7 +38,7 @@ export type TextCustomComponentProps< : never; declare function Text(props: TextDefaultProps): FCReturn; -declare function Text(props: TextIntrinsicProps): FCReturn; +declare function Text(props: TextIntrinsicProps): FCReturn; declare function Text>(props: TextCustomComponentProps): FCReturn; export { Text }; diff --git a/types/carbon-components-react/lib/components/UIShell/Content.d.ts b/types/carbon-components-react/lib/components/UIShell/Content.d.ts index 873f14925b7f16..fa6223f13bab23 100644 --- a/types/carbon-components-react/lib/components/UIShell/Content.d.ts +++ b/types/carbon-components-react/lib/components/UIShell/Content.d.ts @@ -13,7 +13,7 @@ export type ContentDefaultProps = tagName?: undefined; }; -export type ContentIntrinsicProps = +export type ContentIntrinsicProps = & ContentBaseProps & JSXIntrinsicElementProps & { @@ -21,6 +21,6 @@ export type ContentIntrinsicProps = }; declare function Content(props: ContentDefaultProps): FCReturn; -declare function Content(props: ContentIntrinsicProps): FCReturn; +declare function Content(props: ContentIntrinsicProps): FCReturn; export default Content; diff --git a/types/carbon-components-react/tslint.json b/types/carbon-components-react/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/carbon-components-react/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/carbon-components-react/typings/shared.d.ts b/types/carbon-components-react/typings/shared.d.ts index 552962bfac7c0e..3603c385f019ec 100644 --- a/types/carbon-components-react/typings/shared.d.ts +++ b/types/carbon-components-react/typings/shared.d.ts @@ -79,9 +79,9 @@ export type ForwardRefProps = React.PropsWithoutRef = React.ForwardRefExoticComponent>; export type JSXIntrinsicElementProps< - K extends keyof JSX.IntrinsicElements, + K extends keyof React.JSX.IntrinsicElements, REF extends boolean = false, -> = REF extends true ? JSX.IntrinsicElements[K] : Omit; +> = REF extends true ? React.JSX.IntrinsicElements[K] : Omit; // for "as" props export type ReactComponentConstructor

= ((props: P) => FCReturn) | (new(props: P) => React.Component); diff --git a/types/carbon-components/tslint.json b/types/carbon-components/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon-components/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__colors/tslint.json b/types/carbon__colors/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__colors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__elements/tslint.json b/types/carbon__elements/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__elements/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__feature-flags/tslint.json b/types/carbon__feature-flags/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__feature-flags/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__icon-helpers/tslint.json b/types/carbon__icon-helpers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__icon-helpers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__layout/tslint.json b/types/carbon__layout/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__layout/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__motion/tslint.json b/types/carbon__motion/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__motion/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__pictograms-react/tslint.json b/types/carbon__pictograms-react/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__pictograms-react/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__themes/tslint.json b/types/carbon__themes/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__themes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbon__type/tslint.json b/types/carbon__type/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbon__type/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carbone/tslint.json b/types/carbone/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carbone/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cardinal/tslint.json b/types/cardinal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cardinal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/carlo/tslint.json b/types/carlo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/carlo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/case-sensitive-paths-webpack-plugin/tslint.json b/types/case-sensitive-paths-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/case-sensitive-paths-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/caseless/tslint.json b/types/caseless/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/caseless/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cashaddrjs/tslint.json b/types/cashaddrjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cashaddrjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/casperjs/tslint.json b/types/casperjs/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/casperjs/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/cassandra-store/tslint.json b/types/cassandra-store/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cassandra-store/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cassanknex/tslint.json b/types/cassanknex/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cassanknex/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/catbox/tslint.json b/types/catbox/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/catbox/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/catbox/v7/tslint.json b/types/catbox/v7/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/catbox/v7/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cavy/package.json b/types/cavy/package.json index 5a601e822e68dd..1bed72375e0dd0 100644 --- a/types/cavy/package.json +++ b/types/cavy/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@types/cavy": "workspace:.", - "@types/react-native": "*" + "react-native": "*" }, "owners": [ { diff --git a/types/cavy/tsconfig.json b/types/cavy/tsconfig.json index 79f2e53ef64649..4296129c1a1b6c 100644 --- a/types/cavy/tsconfig.json +++ b/types/cavy/tsconfig.json @@ -10,11 +10,6 @@ "strictFunctionTypes": true, "types": [], "jsx": "react", - "paths": { - "react-native": [ - "../react-native/index.d.ts" - ] - }, "noEmit": true, "forceConsistentCasingInFileNames": true }, diff --git a/types/cavy/tslint.json b/types/cavy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cavy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ccap/tslint.json b/types/ccap/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ccap/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ccapture.js/tslint.json b/types/ccapture.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ccapture.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ceddl__ceddl-polyfill/tslint.json b/types/ceddl__ceddl-polyfill/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ceddl__ceddl-polyfill/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/center-align/tslint.json b/types/center-align/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/center-align/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/centra/tslint.json b/types/centra/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/centra/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cerner__terra-functional-testing/tslint.json b/types/cerner__terra-functional-testing/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cerner__terra-functional-testing/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cfenv/tslint.json b/types/cfenv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cfenv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cfn-response-promise/tslint.json b/types/cfn-response-promise/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cfn-response-promise/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cfn-response/tslint.json b/types/cfn-response/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cfn-response/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chacha20-universal/tslint.json b/types/chacha20-universal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chacha20-universal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-almost/tslint.json b/types/chai-almost/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-almost/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-arrays/tslint.json b/types/chai-arrays/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-arrays/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-as-promised/tslint.json b/types/chai-as-promised/tslint.json deleted file mode 100644 index 5969b866225fc8..00000000000000 --- a/types/chai-as-promised/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/chai-datetime/tslint.json b/types/chai-datetime/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/chai-datetime/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/chai-dom/tslint.json b/types/chai-dom/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/chai-dom/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/chai-enzyme/tslint.json b/types/chai-enzyme/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/chai-enzyme/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/chai-fs/tslint.json b/types/chai-fs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-fs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-fuzzy/tslint.json b/types/chai-fuzzy/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/chai-fuzzy/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/chai-html/tslint.json b/types/chai-html/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-html/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-jest-snapshot/tslint.json b/types/chai-jest-snapshot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-jest-snapshot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-jquery/tslint.json b/types/chai-jquery/tslint.json deleted file mode 100644 index 941926d7419e7e..00000000000000 --- a/types/chai-jquery/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/chai-json-pattern/tslint.json b/types/chai-json-pattern/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-json-pattern/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-json-schema/tslint.json b/types/chai-json-schema/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-json-schema/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-jwt/tslint.json b/types/chai-jwt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-jwt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-like/tslint.json b/types/chai-like/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-like/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-match-pattern/tslint.json b/types/chai-match-pattern/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-match-pattern/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-moment/tslint.json b/types/chai-moment/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-moment/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-oequal/tslint.json b/types/chai-oequal/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/chai-oequal/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/chai-quantifiers/tslint.json b/types/chai-quantifiers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-quantifiers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-roughly/tslint.json b/types/chai-roughly/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-roughly/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-snapshot-matcher/tslint.json b/types/chai-snapshot-matcher/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-snapshot-matcher/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-sorted/tslint.json b/types/chai-sorted/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-sorted/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-spies/tslint.json b/types/chai-spies/tslint.json deleted file mode 100644 index ffcad91cb3fa98..00000000000000 --- a/types/chai-spies/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/chai-string/tslint.json b/types/chai-string/tslint.json deleted file mode 100644 index 75606c70e86392..00000000000000 --- a/types/chai-string/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/chai-style/tslint.json b/types/chai-style/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-style/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-subset-in-order/tslint.json b/types/chai-subset-in-order/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-subset-in-order/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-subset/tslint.json b/types/chai-subset/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-subset/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-things/tslint.json b/types/chai-things/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/chai-things/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/chai-uuid/tslint.json b/types/chai-uuid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-uuid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai-xml/tslint.json b/types/chai-xml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chai-xml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chai/tslint.json b/types/chai/tslint.json deleted file mode 100644 index f9ccac50e0be3d..00000000000000 --- a/types/chai/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "new-parens": false, - "no-redundant-jsdoc-2": false - } -} diff --git a/types/chai/v2/tslint.json b/types/chai/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/chai/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/chalk-animation/tslint.json b/types/chalk-animation/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chalk-animation/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chalk-pipe/tslint.json b/types/chalk-pipe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chalk-pipe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/strip-final-newline/.npmignore b/types/chamaeleonidae__chmln/.npmignore similarity index 100% rename from types/strip-final-newline/.npmignore rename to types/chamaeleonidae__chmln/.npmignore diff --git a/types/chamaeleonidae__chmln/chamaeleonidae__chmln-tests.ts b/types/chamaeleonidae__chmln/chamaeleonidae__chmln-tests.ts new file mode 100644 index 00000000000000..0e1e1f4e378695 --- /dev/null +++ b/types/chamaeleonidae__chmln/chamaeleonidae__chmln-tests.ts @@ -0,0 +1,53 @@ +import * as chmln from "@chamaeleonidae/chmln"; + +// $ExpectType void +chmln.init("token"); + +// $ExpectType void +chmln.init("token", { fastUrl: "https://example.com" }); + +// $ExpectType void +chmln.init("token", { forceOverride: true }); + +// @ts-expect-error +chmln.init(42); + +// @ts-expect-error +chmln.init("token", 42); + +// @ts-expect-error +chmln.init("token", { foo: "bar" }); + +// $ExpectType void +chmln.identify("id"); + +// $ExpectType void +chmln.identify(1, { + email: "jdoe@airbnb.com", + created: "2017-07-01T03:21:10Z", + name: "James Doe", + role: "Admin", + logins: 39, + project: "12a34b56", + company: { + uid: "590b80e5f433ea81b96c9bf7", + created: "2017-07-01T03:21:10Z", + name: "airbnb", + trial_ends: "2017-08-01T03:21:10Z", + version: "1.56", + plan: "Gold", + spend: "sales rep", + }, +}); + +// @ts-expect-error +chmln.identify("id", 42); + +// @ts-expect-error +chmln.identify("id", ["foo", "bar"]); + +// $ExpectType void +chmln.track("event"); + +// @ts-expect-error +chmln.track(42); diff --git a/types/chamaeleonidae__chmln/index.d.ts b/types/chamaeleonidae__chmln/index.d.ts new file mode 100644 index 00000000000000..41f56b19c46960 --- /dev/null +++ b/types/chamaeleonidae__chmln/index.d.ts @@ -0,0 +1,61 @@ +/** + * Initialize the chmln object. This must be called before any other + * chmln functions. + * + * For accounts created before 2022-05-21 you must omit the fastUrl option. + * If you're unsure, verify your account-specific instructions on the + * [installation page]{@link https://app.chameleon.io/setup/install}. + * + * To use Chameleon as first-party (i.e. via chameleon.your-product.com), first + * [contact us]{@link https://app.chameleon.io/help} to set this up, then use + * this updated script with your custom domain. + * + * @example + * import * as chmln from "@chamaeleonidae/chmln"; + * chmln.init('YOUR_TOKEN', { fastUrl: 'https://fast.chameleon.io/' }); + */ +export function init(token: string, options?: { fastUrl?: string; forceOverride?: boolean }): void; + +/** + * Identifies the user by sending a unique ID (this normally matches the UIDs from + * your database). + * + * Without this, Chameleon can't display Experiences to users. You should also + * [send additional user data]{@link https://help.trychameleon.com/en/articles/1226443-how-do-i-send-my-users-data-to-chameleon} + * (such as "email address", "role") or company data (such as "plan type", + * "subdomain") so you can target Experiences to the right users, at the right + * time. + * + * @example + * chmln.identify(USER.ID_IN_DB, { // REQUIRED Unique ID of each user in your database (e.g. 23443 or "590b80e5f433ea81b96c9bf6") + * email: USER.EMAIL, // RECOMMENDED Used to connect data coming from various integrations + * + * // SUGGESTED - User properties: + * created: USER.SIGN_UP_DATE, // Send dates in ISO or unix timestamp format (e.g. "2017-07-01T03:21:10Z" or 1431432000) + * name: USER.NAME, // We will parse this to extra first and surnames (e.g. "James Doe") + * role: USER.ROLE, // Send properties useful for targeting types of users (e.g. "Admin") + * logins: USER.LOGIN_COUNT, // Send any data about user engagement (e.g. 39) + * project: USER.PROJECT_ID, // Send any unique data for a user that might appear in any page URLs (e.g. 09876 or "12a34b56") + * + * // OPTIONAL - Company properties: + * company: { // For B2B products, send company / account information here + * uid: COMPANY.ID_IN_DB, // Unique ID of the company / account in your database (e.g. 9832 or "590b80e5f433ea81b96c9bf7") + * created: COMPANY.SIGN_UP_DATE, // To enable targeting all users based on this company property + * name: COMPANY.NAME, // Send any data that appears within URLs, such as subdomains (e.g. "airbnb") + * trial_ends: COMPANY.TRIAL_ENDS, // Send data about key milestones (e.g. "2017-08-01T03:21:10Z") + * version: COMPANY.VERSION, // If your software varies by version then this will help show the correct guidance (e.g. "1.56") + * plan: COMPANY.PLAN, // Send null when no value exists (e.g. "Gold", "Advanced") + * spend: COMPANY.CLV // Send other properties that will help in targeting users (e.g. sales rep, source, stage) + * } + * }); + */ +export function identify(userId: string | number, options?: Record): void; + +/** + * Track a user event + * + * @example + * chmln.track(PLAN_CHANGED); // Example event "PLAN_CHANGED" can be used for targeting or measuring success + * chmln.track(ACTIVATED); // Having a defined activation point can be helpful for targeting onboarding experiences. + */ +export function track(event: string): void; diff --git a/types/chamaeleonidae__chmln/package.json b/types/chamaeleonidae__chmln/package.json new file mode 100644 index 00000000000000..2678a408b4cfca --- /dev/null +++ b/types/chamaeleonidae__chmln/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/chamaeleonidae__chmln", + "version": "1.0.9999", + "projects": [ + "https://github.com/chamaeleonidae/chmln" + ], + "devDependencies": { + "@types/chamaeleonidae__chmln": "workspace:." + }, + "owners": [ + { + "name": "chamaeleonidae", + "githubUsername": "chamaeleonidae" + } + ] +} diff --git a/types/chamaeleonidae__chmln/tsconfig.json b/types/chamaeleonidae__chmln/tsconfig.json new file mode 100644 index 00000000000000..f125111be9f97e --- /dev/null +++ b/types/chamaeleonidae__chmln/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "chamaeleonidae__chmln-tests.ts" + ] +} diff --git a/types/chance/tslint.json b/types/chance/tslint.json deleted file mode 100644 index 5969b866225fc8..00000000000000 --- a/types/chance/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/change-case-object/tslint.json b/types/change-case-object/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/change-case-object/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/change-emitter/tslint.json b/types/change-emitter/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/change-emitter/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/changelog-filename-regex/tslint.json b/types/changelog-filename-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/changelog-filename-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/changelog-parser/tslint.json b/types/changelog-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/changelog-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/channel-io/tslint.json b/types/channel-io/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/channel-io/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/charcodes/tslint.json b/types/charcodes/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/charcodes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chardet/tslint.json b/types/chardet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chardet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/charm/tslint.json b/types/charm/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/charm/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/charset-detector/tslint.json b/types/charset-detector/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/charset-detector/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/charset/tslint.json b/types/charset/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/charset/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chart.js/tslint.json b/types/chart.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/chart.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/chartjs-color-string/tslint.json b/types/chartjs-color-string/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chartjs-color-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chartjs-plugin-annotation/tslint.json b/types/chartjs-plugin-annotation/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/chartjs-plugin-annotation/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/chartjs-plugin-colorschemes/tslint.json b/types/chartjs-plugin-colorschemes/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chartjs-plugin-colorschemes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chartjs-plugin-crosshair/tslint.json b/types/chartjs-plugin-crosshair/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chartjs-plugin-crosshair/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chartjs-plugin-doughnutlabel-rebourne/tslint.json b/types/chartjs-plugin-doughnutlabel-rebourne/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chartjs-plugin-doughnutlabel-rebourne/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chartjs-plugin-trendline/tslint.json b/types/chartjs-plugin-trendline/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/chartjs-plugin-trendline/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/chartmogul-node/tslint.json b/types/chartmogul-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chartmogul-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chayns/tslint.json b/types/chayns/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chayns/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chec__commerce.js/tslint.json b/types/chec__commerce.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chec__commerce.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/check-error/tslint.json b/types/check-error/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/check-error/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/check-sum/tslint.json b/types/check-sum/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/check-sum/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/check-types/tslint.json b/types/check-types/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/check-types/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/checkstyle-formatter/tslint.json b/types/checkstyle-formatter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/checkstyle-formatter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/checksum/tslint.json b/types/checksum/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/checksum/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/cheerio/tslint.json b/types/cheerio/tslint.json deleted file mode 100644 index 8710889d92dbcf..00000000000000 --- a/types/cheerio/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/cheet.js/tslint.json b/types/cheet.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cheet.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chenfengyuan__datepicker/tslint.json b/types/chenfengyuan__datepicker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chenfengyuan__datepicker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chenfengyuan__vue-qrcode/tslint.json b/types/chenfengyuan__vue-qrcode/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chenfengyuan__vue-qrcode/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chenyfan__cache-db/tslint.json b/types/chenyfan__cache-db/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chenyfan__cache-db/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chess.js/tslint.json b/types/chess.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chess.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chessboardjs/.eslintrc.json b/types/chessboardjs/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/chessboardjs/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/chessboardjs/tslint.json b/types/chessboardjs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/chessboardjs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/child-process-promise/tslint.json b/types/child-process-promise/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/child-process-promise/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chillout/tslint.json b/types/chillout/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chillout/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chloride/tslint.json b/types/chloride/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chloride/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chmodr/tslint.json b/types/chmodr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chmodr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chocolatechipjs/.eslintrc.json b/types/chocolatechipjs/.eslintrc.json index a9228253c2ccbb..8ef8462cef30b7 100644 --- a/types/chocolatechipjs/.eslintrc.json +++ b/types/chocolatechipjs/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-any-union": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/adjacent-overload-signatures": "off", "@typescript-eslint/ban-types": "off" } diff --git a/types/chocolatechipjs/tslint.json b/types/chocolatechipjs/tslint.json deleted file mode 100644 index 59d6237df78f62..00000000000000 --- a/types/chocolatechipjs/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/chordsheetjs/tslint.json b/types/chordsheetjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chordsheetjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chosen-js/tslint.json b/types/chosen-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/chosen-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/chownr/tslint.json b/types/chownr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chownr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chroma-js/tslint.json b/types/chroma-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chroma-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chroma-js/v0/tslint.json b/types/chroma-js/v0/tslint.json deleted file mode 100644 index 0837b1852e7e23..00000000000000 --- a/types/chroma-js/v0/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/chrome-apps/.eslintrc.json b/types/chrome-apps/.eslintrc.json index 9d1bc8d82745e0..d0476c08c56ec3 100644 --- a/types/chrome-apps/.eslintrc.json +++ b/types/chrome-apps/.eslintrc.json @@ -5,6 +5,7 @@ "@definitelytyped/no-unnecessary-generics": "off", "@definitelytyped/no-single-element-tuple-type": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/naming-convention": "off", diff --git a/types/chrome-apps/tslint.json b/types/chrome-apps/tslint.json deleted file mode 100644 index 0df7255a936f15..00000000000000 --- a/types/chrome-apps/tslint.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "arrow-return-shorthand": false, - "jsdoc-format": false, - "no-conditional-assignment": false, - "no-for-in-array": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-object-literal-type-assertion": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/chrome-location/tslint.json b/types/chrome-location/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chrome-location/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chrome-remote-interface/tslint.json b/types/chrome-remote-interface/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chrome-remote-interface/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/urban-dictionary/.npmignore b/types/chrome-webstore-upload/.npmignore similarity index 100% rename from types/urban-dictionary/.npmignore rename to types/chrome-webstore-upload/.npmignore diff --git a/types/chrome-webstore-upload/chrome-webstore-upload-tests.ts b/types/chrome-webstore-upload/chrome-webstore-upload-tests.ts new file mode 100644 index 00000000000000..8439ac29d0961a --- /dev/null +++ b/types/chrome-webstore-upload/chrome-webstore-upload-tests.ts @@ -0,0 +1,16 @@ +import chromeWebstoreUpload from "chrome-webstore-upload"; +import { createReadStream } from "node:fs"; + +const store = chromeWebstoreUpload({ + extensionId: "ecnglinljpjkbgmdpeiglonddahpbkeb", + clientId: "xxxxxxxxxx", + clientSecret: "xxxxxxxxxx", + refreshToken: "xxxxxxxxxx", +}); + +(async () => { + const extZip = createReadStream("ext.zip"); + const uploadResponse = await store.uploadExisting(extZip); + const publishResponse = await store.publish("trustedTesters"); + const item = await store.get(); +})(); diff --git a/types/chrome-webstore-upload/index.d.ts b/types/chrome-webstore-upload/index.d.ts new file mode 100644 index 00000000000000..552eb156e5dfef --- /dev/null +++ b/types/chrome-webstore-upload/index.d.ts @@ -0,0 +1,53 @@ +/// + +export interface Options { + extensionId: string; + clientId: string; + clientSecret?: string; + refreshToken: string; +} + +export interface Item { + kind: string; + id: string; + publicKey: string; + uploadState: "FAILURE" | "IN_PROGRESS" | "NOT_FOUND" | "SUCCESS"; + itemError: { + error_code: string; + error_detail: string; + }; +} + +export type PublishStatus = + | "OK" + | "NOT_AUTHORIZED" + | "INVALID_DEVELOPER" + | "DEVELOPER_NO_OWNERSHIP" + | "DEVELOPER_SUSPENDED" + | "ITEM_NOT_FOUND" + | "ITEM_PENDING_REVIEW" + | "ITEM_TAKEN_DOWN" + | "PUBLISHER_SUSPENDED"; + +export interface PublishResponse { + kind: string; + item_id: string; + status: PublishStatus[]; + statusDetail: string[]; +} + +export interface APIClient { + /** @async */ + uploadExisting(readStream: NodeJS.ReadableStream, token?: string): Promise; + + /** @async */ + publish(target?: string, token?: string): Promise; + + /** @async */ + get(projection?: string, token?: string): Promise; + + /** @async */ + fetchToken(): Promise; +} + +export default function chromeWebstoreUpload(options: Options): APIClient; diff --git a/types/chrome-webstore-upload/package.json b/types/chrome-webstore-upload/package.json new file mode 100644 index 00000000000000..d73928c55edf9a --- /dev/null +++ b/types/chrome-webstore-upload/package.json @@ -0,0 +1,21 @@ +{ + "private": true, + "name": "@types/chrome-webstore-upload", + "version": "1.0.9999", + "projects": [ + "https://github.com/fregante/chrome-webstore-upload" + ], + "type": "module", + "dependencies": { + "@types/node": "*" + }, + "devDependencies": { + "@types/chrome-webstore-upload": "workspace:." + }, + "owners": [ + { + "name": "Granga", + "githubUsername": "Granga" + } + ] +} diff --git a/types/chrome-webstore-upload/tsconfig.json b/types/chrome-webstore-upload/tsconfig.json new file mode 100644 index 00000000000000..8e6e5bcdbaf139 --- /dev/null +++ b/types/chrome-webstore-upload/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "chrome-webstore-upload-tests.ts" + ] +} diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts index bb38e39459ab29..d4362dfa32bd2b 100644 --- a/types/chrome/index.d.ts +++ b/types/chrome/index.d.ts @@ -6242,6 +6242,11 @@ declare namespace chrome.pageCapture { * Parameter mhtmlData: The MHTML data as a Blob. */ export function saveAsMHTML(details: SaveDetails, callback: (mhtmlData?: Blob) => void): void; + /** + * Saves the content of the tab with given id as MHTML. + * @since Chrome 116 MV3 + */ + export function saveAsMHTML(details: SaveDetails): Promise; } //////////////////// @@ -7235,7 +7240,9 @@ declare namespace chrome.runtime { icons?: ManifestIcons | undefined; // Optional - author?: string | undefined; + author?: { + email: string; + } | undefined; background_page?: string | undefined; chrome_settings_overrides?: { homepage?: string | undefined; @@ -12357,6 +12364,17 @@ declare namespace chrome.declarativeNetRequest { removeRuleIds?: number[] | undefined; } + export interface UpdateStaticRulesOptions { + /** Set of ids corresponding to rules in the Ruleset to disable. */ + disableRuleIds?: number[]; + + /** Set of ids corresponding to rules in the Ruleset to enable. */ + enableRuleIds?: number[]; + + /** The id corresponding to a static Ruleset. */ + rulesetId: string; + } + export interface UpdateRulesetOptions { /** The set of ids corresponding to a static Ruleset that should be disabled. */ disableRulesetIds?: string[] | undefined; @@ -12573,6 +12591,15 @@ declare namespace chrome.declarativeNetRequest { */ export function updateSessionRules(options: UpdateRuleOptions): Promise; + /** Disables and enables individual static rules in a Ruleset. + * Changes to rules belonging to a disabled Ruleset will take effect the next time that it becomes enabled. + * + * @return The `updateStaticRules` method either calls a provided callback if its finished or returns as a `Promise` (MV3 only). + * @since Chrome 111 + */ + export function updateStaticRules(options: UpdateStaticRulesOptions): Promise; + export function updateStaticRules(options: UpdateStaticRulesOptions, callback?: () => void): void; + /** The rule that has been matched along with information about the associated request. */ export interface RuleMatchedDebugEvent extends chrome.events.Event<(info: MatchedRuleInfoDebug) => void> {} diff --git a/types/chrome/test/index.ts b/types/chrome/test/index.ts index a050e9a8e4d5ab..d6c436de0610ae 100644 --- a/types/chrome/test/index.ts +++ b/types/chrome/test/index.ts @@ -513,6 +513,9 @@ function testGetManifest() { manifest.name; // $ExpectType string manifest.version; // $ExpectType string + if (manifest.author) { + manifest.author.email; // $ExpectType string + } if (manifest.manifest_version === 2) { manifest.browser_action; // $ExpectType ManifestAction | undefined @@ -1854,8 +1857,9 @@ async function testI18nForPromise() { await chrome.i18n.detectLanguage("dummy-id"); } -function testPageCapture() { - chrome.pageCapture.saveAsMHTML({ tabId: 0 }, (data: Blob | undefined) => {}); +async function testPageCapture() { + chrome.pageCapture.saveAsMHTML({ tabId: 0 }, (data: Blob | undefined) => {}); // $ExpectType void + await chrome.pageCapture.saveAsMHTML({ tabId: 0 }); // $ExpectType Blob | undefined } // https://developer.chrome.com/docs/extensions/reference/downloads diff --git a/types/chrome/tslint.json b/types/chrome/tslint.json deleted file mode 100644 index 0a6e924ced38bd..00000000000000 --- a/types/chrome/tslint.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-mergeable-namespace": false, - "no-outside-dependencies": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "no-void-expression": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/chromecast-api/tslint.json b/types/chromecast-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chromecast-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chromecast-caf-receiver/cast.framework.messages.d.ts b/types/chromecast-caf-receiver/cast.framework.messages.d.ts index 2292d7dee72c16..b673369411bb77 100644 --- a/types/chromecast-caf-receiver/cast.framework.messages.d.ts +++ b/types/chromecast-caf-receiver/cast.framework.messages.d.ts @@ -590,6 +590,26 @@ export class TvShowMediaMetadata { */ title?: string | undefined; } +/** + * Describes audio track information for an audio track. + * @see https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.AudioTrackInfo + */ +export class AudioTrackInfo { + /** + * This represents the codec of the audio track. + */ + audioCodec?: string | undefined; + + /** + * The number of audio track channels. + */ + numAudioChannels?: number | undefined; + + /** + * True indicates this track content has spatial audio. Determined by signals from the manifest. + */ + spatialAudio?: boolean | undefined; +} /** * Describes track metadata information. * @see https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages.Track @@ -597,6 +617,11 @@ export class TvShowMediaMetadata { export class Track { constructor(trackId: number, trackType: TrackType); + /** + * Audio-specific information about the track. Defined only for Track#type === 'AUDIO' tracks. + */ + audioTrackInfo?: AudioTrackInfo | undefined; + /** * Custom data set by the receiver application. */ diff --git a/types/chromecast-caf-receiver/tslint.json b/types/chromecast-caf-receiver/tslint.json deleted file mode 100644 index 2a955c47d9939a..00000000000000 --- a/types/chromecast-caf-receiver/tslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - } -} diff --git a/types/chromecast-caf-sender/tslint.json b/types/chromecast-caf-sender/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chromecast-caf-sender/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chromedriver/tslint.json b/types/chromedriver/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chromedriver/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chui/.eslintrc.json b/types/chui/.eslintrc.json index 3fd6d735e5cdd0..ca09b586000420 100644 --- a/types/chui/.eslintrc.json +++ b/types/chui/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off" } diff --git a/types/chui/tslint.json b/types/chui/tslint.json deleted file mode 100644 index dcf4a804891e67..00000000000000 --- a/types/chui/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/chunk-text/tslint.json b/types/chunk-text/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chunk-text/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/chunk/tslint.json b/types/chunk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/chunk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cidr-matcher/tslint.json b/types/cidr-matcher/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cidr-matcher/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cipher-base/tslint.json b/types/cipher-base/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cipher-base/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/circle-to-polygon/tslint.json b/types/circle-to-polygon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/circle-to-polygon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/circomlibjs/tslint.json b/types/circomlibjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/circomlibjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/circuit-breaker-js/tslint.json b/types/circuit-breaker-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/circuit-breaker-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/circular-dependency-plugin/tslint.json b/types/circular-dependency-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/circular-dependency-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cjson/tslint.json b/types/cjson/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cjson/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ckeditor4/tslint.json b/types/ckeditor4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ckeditor4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clamav.js/tslint.json b/types/clamav.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clamav.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clamp-js-main/tslint.json b/types/clamp-js-main/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clamp-js-main/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clamp-js/tslint.json b/types/clamp-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clamp-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clamp/tslint.json b/types/clamp/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clamp/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clamscan/clamscan-tests.ts b/types/clamscan/clamscan-tests.ts index bf985b3a90a7d6..a2cc0c60b0b9b3 100644 --- a/types/clamscan/clamscan-tests.ts +++ b/types/clamscan/clamscan-tests.ts @@ -1,46 +1,40 @@ import NodeClam = require("clamscan"); -import { PassThrough, Readable } from "stream"; - -import axios from "axios"; +import * as http from "http"; +import * as https from "https"; +import { PassThrough, Readable, Writable } from "stream"; const fakeVirusUrl = "https://secure.eicar.org/eicar.com.txt"; (async () => { - try { - const clamscan = await new NodeClam().init({ - debugMode: false, - clamdscan: { - bypassTest: true, - host: "localhost", - port: 3310, - }, - }); - - const version = await clamscan.getVersion(); - console.log("Version: ", version); + // $ExpectType NodeClam + const clamscan = await new NodeClam().init({ + debugMode: false, + clamdscan: { + bypassTest: true, + host: "localhost", + port: 3310, + }, + }); + // $ExpectType string + const version = await clamscan.getVersion(); - const { data } = await axios.get(fakeVirusUrl, { - responseType: "stream", - }); + const response = await new Promise((resolve, reject) => { + https.get(fakeVirusUrl, (res) => { + if (res.statusCode !== 200) { + reject(new Error(`Request failed with status code ${res.statusCode}`)); + return; + } + resolve(res); + }).on("error", reject); + }); - const { isInfected, viruses } = await clamscan.scanStream(data.pipe(new PassThrough())); - - if (isInfected) { - console.log( - `You've downloaded a virus (${ - viruses.join( - "", - ) - })! Don't worry, it's only a test one and is not malicious...`, - ); - } else if (isInfected === null) { - console.log("Something didn't work right..."); - } else if (!isInfected) { - console.log(`The file (${fakeVirusUrl}) you downloaded was just fine... Carry on...`); - } - process.exit(0); - } catch (err) { - console.error(err); - process.exit(1); + const { statusCode } = response; + if (statusCode !== 200) { + console.error(`Request failed with status code ${statusCode}`); + return; } + + const data: Readable = response; + // $ExpectType Response<{ file: string; isInfected: boolean; }> + await clamscan.scanStream(data.pipe(new PassThrough())); })(); diff --git a/types/clamscan/package.json b/types/clamscan/package.json index 56936c4bf1f950..805a3ebca272b4 100644 --- a/types/clamscan/package.json +++ b/types/clamscan/package.json @@ -6,8 +6,7 @@ "https://github.com/kylefarris/clamscan" ], "dependencies": { - "@types/node": "*", - "axios": "^0.24.0" + "@types/node": "*" }, "devDependencies": { "@types/clamscan": "workspace:." diff --git a/types/clamscan/tslint.json b/types/clamscan/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clamscan/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clarinet/tslint.json b/types/clarinet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clarinet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/classificator/tslint.json b/types/classificator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/classificator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cldr/tslint.json b/types/cldr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cldr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cldrjs/tslint.json b/types/cldrjs/tslint.json deleted file mode 100644 index 53e2a6dbfb51ab..00000000000000 --- a/types/cldrjs/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "unified-signatures": false - } -} diff --git a/types/clean-css/tslint.json b/types/clean-css/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clean-css/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clean-css/v3/tslint.json b/types/clean-css/v3/tslint.json deleted file mode 100644 index c1f4c3577e9a94..00000000000000 --- a/types/clean-css/v3/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/clean-git-ref/tslint.json b/types/clean-git-ref/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clean-git-ref/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clean-regexp/tslint.json b/types/clean-regexp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clean-regexp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clear/tslint.json b/types/clear/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clear/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clearbladejs-client/tslint.json b/types/clearbladejs-client/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clearbladejs-client/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clearbladejs-node/tslint.json b/types/clearbladejs-node/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clearbladejs-node/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clearbladejs-server/tslint.json b/types/clearbladejs-server/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clearbladejs-server/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cleasby-vigfusson-dictionary/tslint.json b/types/cleasby-vigfusson-dictionary/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cleasby-vigfusson-dictionary/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cleave.js/tslint.json b/types/cleave.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cleave.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clevertap-web-sdk/tslint.json b/types/clevertap-web-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clevertap-web-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clevertap/tslint.json b/types/clevertap/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clevertap/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cli-box/tslint.json b/types/cli-box/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cli-box/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cli-color/tslint.json b/types/cli-color/tslint.json deleted file mode 100644 index 8bd3ad71b1dcdc..00000000000000 --- a/types/cli-color/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/cli-interact/tslint.json b/types/cli-interact/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cli-interact/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cli-progress/tslint.json b/types/cli-progress/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cli-progress/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cli-spinner/tslint.json b/types/cli-spinner/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cli-spinner/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cli-spinners/tslint.json b/types/cli-spinners/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cli-spinners/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cli-table/tslint.json b/types/cli-table/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cli-table/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cli-table2/tslint.json b/types/cli-table2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cli-table2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cli-welcome/tslint.json b/types/cli-welcome/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cli-welcome/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cli/tslint.json b/types/cli/tslint.json deleted file mode 100644 index 17e535065ff2c2..00000000000000 --- a/types/cli/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "radix": false, - "unified-signatures": false - } -} diff --git a/types/client-sessions/tslint.json b/types/client-sessions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/client-sessions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clientjs/tslint.json b/types/clientjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clientjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cliff/tslint.json b/types/cliff/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cliff/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clmtrackr/tslint.json b/types/clmtrackr/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clmtrackr/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clndr/tslint.json b/types/clndr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clndr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clockpicker/tslint.json b/types/clockpicker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clockpicker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clone-deep/tslint.json b/types/clone-deep/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clone-deep/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clone/tslint.json b/types/clone/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clone/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cloneable-readable/tslint.json b/types/cloneable-readable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cloneable-readable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cloner/tslint.json b/types/cloner/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cloner/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/closure-compiler/tslint.json b/types/closure-compiler/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/closure-compiler/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cloud-env/tslint.json b/types/cloud-env/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cloud-env/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cloudflare-apps/tslint.json b/types/cloudflare-apps/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cloudflare-apps/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cloudflare-turnstile/tslint.json b/types/cloudflare-turnstile/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cloudflare-turnstile/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cloudflare/tslint.json b/types/cloudflare/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cloudflare/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cloudfour__simple-svg-placeholder/tslint.json b/types/cloudfour__simple-svg-placeholder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cloudfour__simple-svg-placeholder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cloudinary-uploadwidget-browser/tslint.json b/types/cloudinary-uploadwidget-browser/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cloudinary-uploadwidget-browser/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cloudmersive-virus-api-client/tslint.json b/types/cloudmersive-virus-api-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cloudmersive-virus-api-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clovelced-plugin-audiomanagement/tslint.json b/types/clovelced-plugin-audiomanagement/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clovelced-plugin-audiomanagement/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/clownface/Factory.d.ts b/types/clownface/Factory.d.ts index 20bb343e897857..84e70779e8f247 100644 --- a/types/clownface/Factory.d.ts +++ b/types/clownface/Factory.d.ts @@ -1,4 +1,4 @@ -import { DatasetCore, DatasetCoreFactory, Literal, Term } from "rdf-js"; +import { DatasetCore, DatasetCoreFactory, Literal, Term } from "@rdfjs/types"; import { AnyContext, AnyPointer, diff --git a/types/clownface/clownface-tests.ts b/types/clownface/clownface-tests.ts index 781d83924a933d..e5211f925ce8ad 100644 --- a/types/clownface/clownface-tests.ts +++ b/types/clownface/clownface-tests.ts @@ -1,10 +1,10 @@ import DatasetFactory from "@rdfjs/dataset/Factory.js"; import Environment from "@rdfjs/environment/Environment.js"; +import { BlankNode, Dataset, DatasetCore, Literal, NamedNode, Quad_Graph, Term, Variable } from "@rdfjs/types"; import clownface, { AnyContext, AnyPointer, GraphPointer, MultiPointer } from "clownface"; import ClownfaceFactory from "clownface/Factory.js"; import filters from "clownface/filter.js"; import Context from "clownface/lib/Context.js"; -import { BlankNode, Dataset, DatasetCore, Literal, NamedNode, Quad_Graph, Term, Variable } from "rdf-js"; const node: NamedNode = {}; const blankNode: BlankNode = {}; diff --git a/types/clownface/filter.d.ts b/types/clownface/filter.d.ts index ec0501f7554143..77a1cd9a09c7d2 100644 --- a/types/clownface/filter.d.ts +++ b/types/clownface/filter.d.ts @@ -1,4 +1,4 @@ -import { Literal } from "rdf-js"; +import { Literal } from "@rdfjs/types"; import { FilterCallback } from "./index.js"; declare function taggedLiteral(language: string | string[]): FilterCallback; diff --git a/types/clownface/index.d.ts b/types/clownface/index.d.ts index 947cd833c476df..74b19eeb5f303c 100644 --- a/types/clownface/index.d.ts +++ b/types/clownface/index.d.ts @@ -1,4 +1,4 @@ -import { BlankNode, DatasetCore, DatasetCoreFactory, Literal, NamedNode, Quad_Graph, Term } from "rdf-js"; +import { BlankNode, DatasetCore, DatasetCoreFactory, Literal, NamedNode, Quad_Graph, Term } from "@rdfjs/types"; import Context from "./lib/Context.js"; export type AnyContext = Term | Term[] | undefined; diff --git a/types/clownface/lib/Context.d.ts b/types/clownface/lib/Context.d.ts index 0984bb504bc05e..b299fa30a3cad6 100644 --- a/types/clownface/lib/Context.d.ts +++ b/types/clownface/lib/Context.d.ts @@ -1,4 +1,4 @@ -import { DatasetCore, Quad_Graph, Term } from "rdf-js"; +import { DatasetCore, Quad_Graph, Term } from "@rdfjs/types"; export default class Context { constructor(dataset: D, graph: Quad_Graph | undefined, value: any); diff --git a/types/clownface/package.json b/types/clownface/package.json index 6b822679767526..dc982196085e45 100644 --- a/types/clownface/package.json +++ b/types/clownface/package.json @@ -7,7 +7,7 @@ ], "type": "module", "dependencies": { - "rdf-js": "^4.0.2" + "@rdfjs/types": ">=1.0.0" }, "devDependencies": { "@types/clownface": "workspace:.", diff --git a/types/clownface/tslint.json b/types/clownface/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/clownface/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cls-hooked/.eslintrc.json b/types/cls-hooked/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/cls-hooked/.eslintrc.json +++ b/types/cls-hooked/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/cls-hooked/tslint.json b/types/cls-hooked/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/cls-hooked/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/clui/tslint.json b/types/clui/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clui/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cluster-hub/tslint.json b/types/cluster-hub/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cluster-hub/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clusterize.js-paging/tslint.json b/types/clusterize.js-paging/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clusterize.js-paging/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/clusterize.js/tslint.json b/types/clusterize.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/clusterize.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cmd-shim/tslint.json b/types/cmd-shim/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cmd-shim/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/co-body/tslint.json b/types/co-body/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/co-body/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/co-views/tslint.json b/types/co-views/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/co-views/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/co/tslint.json b/types/co/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/co/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cobe/tslint.json b/types/cobe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cobe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/code/tslint.json b/types/code/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/code/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/codecs/tslint.json b/types/codecs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/codecs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/codeflask/tslint.json b/types/codeflask/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/codeflask/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/codemirror/tslint.json b/types/codemirror/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/codemirror/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/codependency/tslint.json b/types/codependency/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/codependency/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/coffeeify/tslint.json b/types/coffeeify/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/coffeeify/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/coffeescript/tslint.json b/types/coffeescript/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/coffeescript/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/coinbase-commerce-node/tslint.json b/types/coinbase-commerce-node/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/coinbase-commerce-node/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/coinbase/tslint.json b/types/coinbase/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/coinbase/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/coingecko-api/tslint.json b/types/coingecko-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/coingecko-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/coinify__currency/tslint.json b/types/coinify__currency/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/coinify__currency/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/coinlist/tslint.json b/types/coinlist/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/coinlist/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/coinstring/tslint.json b/types/coinstring/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/coinstring/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/colab/.eslintrc.json b/types/colab/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/colab/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/colab/tslint.json b/types/colab/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/colab/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/collections/tslint.json b/types/collections/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/collections/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/collectionsjs/tslint.json b/types/collectionsjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/collectionsjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-check/tslint.json b/types/color-check/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-check/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-convert/tslint.json b/types/color-convert/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-convert/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-diff/tslint.json b/types/color-diff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-hash/tslint.json b/types/color-hash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-name/tslint.json b/types/color-name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-namer/tslint.json b/types/color-namer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-namer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-rgba/tslint.json b/types/color-rgba/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-rgba/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-string/tslint.json b/types/color-string/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-support/tslint.json b/types/color-support/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-support/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color-thief-node/tslint.json b/types/color-thief-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color-thief-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color/tslint.json b/types/color/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/color/v0/tslint.json b/types/color/v0/tslint.json deleted file mode 100644 index 7cd05219d7305f..00000000000000 --- a/types/color/v0/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/color/v1/tslint.json b/types/color/v1/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/color/v1/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/color/v2/tslint.json b/types/color/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/color/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/colorbrewer/tslint.json b/types/colorbrewer/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/colorbrewer/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/colorguard/tslint.json b/types/colorguard/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/colorguard/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/colormap/tslint.json b/types/colormap/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/colormap/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/colornames/tslint.json b/types/colornames/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/colornames/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/colresizable/tslint.json b/types/colresizable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/colresizable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/columnify/tslint.json b/types/columnify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/columnify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/com.darktalker.cordova.screenshot/tslint.json b/types/com.darktalker.cordova.screenshot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/com.darktalker.cordova.screenshot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/com.wikitude.phonegap.wikitudeplugin/.eslintrc.json b/types/com.wikitude.phonegap.wikitudeplugin/.eslintrc.json index 79ee5b5a1a5836..01ad6d65a9c9e6 100644 --- a/types/com.wikitude.phonegap.wikitudeplugin/.eslintrc.json +++ b/types/com.wikitude.phonegap.wikitudeplugin/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/no-single-element-tuple-type": "off" + "@definitelytyped/no-single-element-tuple-type": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/com.wikitude.phonegap.wikitudeplugin/tslint.json b/types/com.wikitude.phonegap.wikitudeplugin/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/com.wikitude.phonegap.wikitudeplugin/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/combinations/tslint.json b/types/combinations/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/combinations/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/combine-reducers/tslint.json b/types/combine-reducers/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/combine-reducers/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/combine-source-map/tslint.json b/types/combine-source-map/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/combine-source-map/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/combined-stream/tslint.json b/types/combined-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/combined-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/combokeys/tslint.json b/types/combokeys/tslint.json deleted file mode 100644 index 94c7d46258c018..00000000000000 --- a/types/combokeys/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false - } -} diff --git a/types/cometd/tslint.json b/types/cometd/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cometd/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/comma-number/tslint.json b/types/comma-number/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/comma-number/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/command-exists/tslint.json b/types/command-exists/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/command-exists/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/command-line-args/tslint.json b/types/command-line-args/tslint.json deleted file mode 100644 index 2a955c47d9939a..00000000000000 --- a/types/command-line-args/tslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - } -} diff --git a/types/command-line-args/v4/tslint.json b/types/command-line-args/v4/tslint.json deleted file mode 100644 index 2a955c47d9939a..00000000000000 --- a/types/command-line-args/v4/tslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - } -} diff --git a/types/command-line-commands/tslint.json b/types/command-line-commands/tslint.json deleted file mode 100644 index 0a771645a2dc23..00000000000000 --- a/types/command-line-commands/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false - } -} diff --git a/types/command-line-usage/tslint.json b/types/command-line-usage/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/command-line-usage/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/command-shell-lib/tslint.json b/types/command-shell-lib/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/command-shell-lib/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/commander-remaining-args/tslint.json b/types/commander-remaining-args/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/commander-remaining-args/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/commangular/.eslintrc.json b/types/commangular/.eslintrc.json index afebcfe2b7c293..b9940a28d50632 100644 --- a/types/commangular/.eslintrc.json +++ b/types/commangular/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/prefer-namespace": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/commangular/tslint.json b/types/commangular/tslint.json deleted file mode 100644 index 1cc1b2685cfec4..00000000000000 --- a/types/commangular/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/commercetools__enzyme-extensions/tslint.json b/types/commercetools__enzyme-extensions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/commercetools__enzyme-extensions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/common-ancestor-path/tslint.json b/types/common-ancestor-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/common-ancestor-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/common-errors/tslint.json b/types/common-errors/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/common-errors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/common-prefix/tslint.json b/types/common-prefix/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/common-prefix/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/common-tags/tslint.json b/types/common-tags/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/common-tags/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/commondir/tslint.json b/types/commondir/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/commondir/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/commonmark-react-renderer/tslint.json b/types/commonmark-react-renderer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/commonmark-react-renderer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/commonmark/tslint.json b/types/commonmark/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/commonmark/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/compact-timezone-list/tslint.json b/types/compact-timezone-list/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/compact-timezone-list/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/compare-func/tslint.json b/types/compare-func/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compare-func/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compare-function/tslint.json b/types/compare-function/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compare-function/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compare-version/tslint.json b/types/compare-version/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/compare-version/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/compare/tslint.json b/types/compare/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compare/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compass-vertical-rhythm/tslint.json b/types/compass-vertical-rhythm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compass-vertical-rhythm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/complex.js/tslint.json b/types/complex.js/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/complex.js/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/complex/tslint.json b/types/complex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/complex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/complexviewer/tslint.json b/types/complexviewer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/complexviewer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/component-emitter/tslint.json b/types/component-emitter/tslint.json deleted file mode 100644 index 5720c4ea7e549d..00000000000000 --- a/types/component-emitter/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "new-parens": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/compose-function/tslint.json b/types/compose-function/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/compose-function/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/compress.js/tslint.json b/types/compress.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compress.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compressible/tslint.json b/types/compressible/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compressible/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compression-next/tslint.json b/types/compression-next/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compression-next/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compression/tslint.json b/types/compression/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compression/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compute-argmax/tslint.json b/types/compute-argmax/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compute-argmax/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compute-gcd/tslint.json b/types/compute-gcd/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compute-gcd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compute-lcm/tslint.json b/types/compute-lcm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compute-lcm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compute-quantile/tslint.json b/types/compute-quantile/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compute-quantile/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/compute-stdev/tslint.json b/types/compute-stdev/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/compute-stdev/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/concat-map/tslint.json b/types/concat-map/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/concat-map/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/concat-stream/tslint.json b/types/concat-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/concat-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/concatjson/tslint.json b/types/concatjson/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/concatjson/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/concaveman/tslint.json b/types/concaveman/tslint.json deleted file mode 100644 index 7293dc4b5ae32b..00000000000000 --- a/types/concaveman/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/concurrency-limiter/.npmignore b/types/concurrency-limiter/.npmignore new file mode 100644 index 00000000000000..680c524577719f --- /dev/null +++ b/types/concurrency-limiter/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts \ No newline at end of file diff --git a/types/concurrency-limiter/index.d.ts b/types/concurrency-limiter/index.d.ts new file mode 100644 index 00000000000000..bfd14d808ec9e6 --- /dev/null +++ b/types/concurrency-limiter/index.d.ts @@ -0,0 +1,6 @@ +import Limiter = require("./limiter"); +/** + This library provides the ability to limit the number of asynchronous + concurrent tasks running. +*/ +export = Limiter; diff --git a/types/concurrency-limiter/limiter.d.ts b/types/concurrency-limiter/limiter.d.ts new file mode 100644 index 00000000000000..22731030ef20c8 --- /dev/null +++ b/types/concurrency-limiter/limiter.d.ts @@ -0,0 +1,43 @@ +/** + The concurrency limiter. + + It is instantiated providing the maximum number of async tasks that are + allowed to run concurrently. +*/ +declare class Limiter { + constructor(limit: number); + + /** + Request a slot for concurrent execution. The returned promise is only + resolved when a slot becomes available. The promise is never rejected. + This method is usually called before starting an async operation, like: + + await limiter.enter(); + await wsConnect(); + ... + wsClose(); + limiter.exit(); + + @returns A promise resolved when a slot is available. + */ + enter(): Promise; + + /** + Release a slot for concurrent execution. This method is usually called + after an async operation completes. + */ + exit(): void; + + /** + Execute the provided async function when a concurrent slot is available, + and release the slot when the function completes, returning its result. + The limiter is exited even in the case the function raises an exception. + + @async + @param func A function to be awaited when an async slot is available. + @returns The result returned by awaiting the provided function. + */ + run(func: () => PromiseLike | T): Promise; +} + +export = Limiter; diff --git a/types/concurrency-limiter/package.json b/types/concurrency-limiter/package.json new file mode 100644 index 00000000000000..55b369805db2b0 --- /dev/null +++ b/types/concurrency-limiter/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/concurrency-limiter", + "version": "0.1.9999", + "projects": [ + "https://github.com/juju/concurrency-limiter" + ], + "devDependencies": { + "@types/concurrency-limiter": "workspace:." + }, + "owners": [ + { + "name": "Eosellmay Li", + "githubUsername": "E0SelmY4V" + } + ] +} diff --git a/types/concurrency-limiter/test/concurrency-limiter-tests.ts b/types/concurrency-limiter/test/concurrency-limiter-tests.ts new file mode 100644 index 00000000000000..016a30445509a3 --- /dev/null +++ b/types/concurrency-limiter/test/concurrency-limiter-tests.ts @@ -0,0 +1,13 @@ +import Limiter = require("concurrency-limiter"); + +// @ts-expect-error +new Limiter(); +new Limiter(2); + +new Limiter(2).enter(); +new Limiter(2).exit(); +// @ts-expect-error +new Limiter(2).run(); +new Limiter(2).run(async () => "abc"); // $ExpectType Promise +new Limiter(2).run(async () => 123); // $ExpectType Promise +new Limiter(2).run(() => 123); // $ExpectType Promise diff --git a/types/concurrency-limiter/tsconfig.json b/types/concurrency-limiter/tsconfig.json new file mode 100644 index 00000000000000..c277d3e526fe72 --- /dev/null +++ b/types/concurrency-limiter/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "limiter.d.ts", + "test/concurrency-limiter-tests.ts" + ] +} diff --git a/types/conditional/tslint.json b/types/conditional/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conditional/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conductor-animate/index.d.ts b/types/conductor-animate/index.d.ts index ec77088dfc1dbd..75181dc81777b7 100644 --- a/types/conductor-animate/index.d.ts +++ b/types/conductor-animate/index.d.ts @@ -10,7 +10,7 @@ interface Config { interface AnimatedProps { additional?: object | undefined; - children?: React.ReactNode | React.ReactNodeArray | null | undefined; + children?: React.ReactNode | readonly React.ReactNode[] | null | undefined; id: string; } @@ -18,7 +18,7 @@ declare class Animated extends React.PureComponent {} interface ConductorProps { animations: Animations; - children: React.ReactNode | React.ReactNodeArray; + children: React.ReactNode | readonly React.ReactNode[]; config: { [K: string]: Config } | ((id: string, additional: object) => Config); } diff --git a/types/conductor-animate/tslint.json b/types/conductor-animate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conductor-animate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/confidence/tslint.json b/types/confidence/tslint.json deleted file mode 100644 index bae8e0a200a020..00000000000000 --- a/types/confidence/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "prefer-const": false - } -} diff --git a/types/config-yaml/tslint.json b/types/config-yaml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/config-yaml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/config/tslint.json b/types/config/tslint.json deleted file mode 100644 index 40d523194a7499..00000000000000 --- a/types/config/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/configs-overload/tslint.json b/types/configs-overload/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/configs-overload/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/configstore/tslint.json b/types/configstore/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/configstore/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/configurable/tslint.json b/types/configurable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/configurable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/confit/tslint.json b/types/confit/tslint.json deleted file mode 100644 index 9edb8d98b10059..00000000000000 --- a/types/confit/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/confusing-browser-globals/tslint.json b/types/confusing-browser-globals/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/confusing-browser-globals/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-azuretables/tslint.json b/types/connect-azuretables/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/connect-azuretables/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-busboy/tslint.json b/types/connect-busboy/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/connect-busboy/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/connect-datadog/tslint.json b/types/connect-datadog/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/connect-datadog/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-ensure-login/tslint.json b/types/connect-ensure-login/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/connect-ensure-login/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-flash/tslint.json b/types/connect-flash/tslint.json deleted file mode 100644 index 3874b9f86e0b53..00000000000000 --- a/types/connect-flash/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/connect-history-api-fallback-exclusions/tslint.json b/types/connect-history-api-fallback-exclusions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/connect-history-api-fallback-exclusions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-history-api-fallback/tslint.json b/types/connect-history-api-fallback/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/connect-history-api-fallback/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-livereload/tslint.json b/types/connect-livereload/tslint.json deleted file mode 100644 index 8948ae83a56bb8..00000000000000 --- a/types/connect-livereload/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/connect-memcached/tslint.json b/types/connect-memcached/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/connect-memcached/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-mongodb-session/tslint.json b/types/connect-mongodb-session/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/connect-mongodb-session/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/connect-pg-simple/tslint.json b/types/connect-pg-simple/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/connect-pg-simple/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-redis/tslint.json b/types/connect-redis/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/connect-redis/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/connect-sequence/tslint.json b/types/connect-sequence/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/connect-sequence/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/connect-slashes/tslint.json b/types/connect-slashes/tslint.json deleted file mode 100644 index 18d448e405363b..00000000000000 --- a/types/connect-slashes/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/connect-sqlite3/tslint.json b/types/connect-sqlite3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/connect-sqlite3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/connect-timeout/tslint.json b/types/connect-timeout/tslint.json deleted file mode 100644 index 7293dc4b5ae32b..00000000000000 --- a/types/connect-timeout/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/connect-trim-body/tslint.json b/types/connect-trim-body/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/connect-trim-body/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/connect/tslint.json b/types/connect/tslint.json deleted file mode 100644 index ce5141bd62bb8a..00000000000000 --- a/types/connect/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-void-expression": false, - "unified-signatures": false - } -} diff --git a/types/console-clear/tslint.json b/types/console-clear/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/console-clear/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/console-log-level/tslint.json b/types/console-log-level/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/console-log-level/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/console-log-tree/tslint.json b/types/console-log-tree/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/console-log-tree/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/console-ui/tslint.json b/types/console-ui/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/console-ui/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/consolidate/tslint.json b/types/consolidate/tslint.json deleted file mode 100644 index 461960e6b3517c..00000000000000 --- a/types/consolidate/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "await-promise": false, - "no-inferrable-types": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/consul/tslint.json b/types/consul/tslint.json deleted file mode 100644 index 6d312f686d6283..00000000000000 --- a/types/consul/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/consumable-stream/.npmignore b/types/consumable-stream/.npmignore index a1a47f74ce9f12..a5c5eebaff98f9 100644 --- a/types/consumable-stream/.npmignore +++ b/types/consumable-stream/.npmignore @@ -4,3 +4,4 @@ !**/*.d.mts !**/*.d.*.ts /v1/ +/v2/ diff --git a/types/consumable-stream/package.json b/types/consumable-stream/package.json index 2770f5f2e3b8fc..f4258610b410ed 100644 --- a/types/consumable-stream/package.json +++ b/types/consumable-stream/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/consumable-stream", - "version": "2.0.9999", + "version": "3.0.9999", "projects": [ "https://github.com/SocketCluster/consumable-stream" ], diff --git a/types/consumable-stream/tslint.json b/types/consumable-stream/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/consumable-stream/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/consumable-stream/v1/tslint.json b/types/consumable-stream/v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/consumable-stream/v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/consumable-stream/v2/.npmignore b/types/consumable-stream/v2/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/consumable-stream/v2/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/consumable-stream/v2/consumable-stream-tests.ts b/types/consumable-stream/v2/consumable-stream-tests.ts new file mode 100644 index 00000000000000..b11fc5a48bf733 --- /dev/null +++ b/types/consumable-stream/v2/consumable-stream-tests.ts @@ -0,0 +1,48 @@ +import ConsumableStream = require("consumable-stream"); + +// Simple, dummy implementation of the abstract class + +class DummyConsumer { + async next() { + return { done: true, value: "dummy" }; + } + + return() { + return {}; + } +} + +class DummyConsumableStream extends ConsumableStream { + createConsumer() { + return new DummyConsumer(); + } +} + +// Actual tests + +const consumableStream = new DummyConsumableStream(); + +// Consume data objects from consumableStream as they are written to the stream. +(async () => { + // tslint:disable-next-line: await-promise Bug in tslint: https://github.com/palantir/tslint/issues/3997 + for await (const data of consumableStream) { + // $ExpectType string + data; + console.log(data); + } +})(); + +// Consume only the next data object which is written to the stream. +(async () => { + // $ExpectType string + await consumableStream.once(); +})(); + +(async () => { + const result = await consumableStream.next(); + + if (!result.done) { + // $ExpectType string + result.value; + } +})(); diff --git a/types/consumable-stream/v2/index.d.ts b/types/consumable-stream/v2/index.d.ts new file mode 100644 index 00000000000000..8fc08561e38d32 --- /dev/null +++ b/types/consumable-stream/v2/index.d.ts @@ -0,0 +1,17 @@ +/// + +declare abstract class ConsumableStream implements AsyncIterator, AsyncIterable { + next(timeout?: number): Promise>; + once(timeout?: number): Promise; + abstract createConsumer(timeout?: number): ConsumableStream.Consumer; + [Symbol.asyncIterator](): AsyncIterator; +} + +export = ConsumableStream; + +declare namespace ConsumableStream { + interface Consumer { + next(): Promise>; + return(): void; + } +} diff --git a/types/consumable-stream/v2/package.json b/types/consumable-stream/v2/package.json new file mode 100644 index 00000000000000..2770f5f2e3b8fc --- /dev/null +++ b/types/consumable-stream/v2/package.json @@ -0,0 +1,24 @@ +{ + "private": true, + "name": "@types/consumable-stream", + "version": "2.0.9999", + "projects": [ + "https://github.com/SocketCluster/consumable-stream" + ], + "dependencies": { + "@types/node": "*" + }, + "devDependencies": { + "@types/consumable-stream": "workspace:." + }, + "owners": [ + { + "name": "Daniel Rose", + "githubUsername": "DanielRose" + }, + { + "name": "Nathan Bierema", + "githubUsername": "Methuselah96" + } + ] +} diff --git a/types/consumable-stream/v2/tsconfig.json b/types/consumable-stream/v2/tsconfig.json new file mode 100644 index 00000000000000..c4b4443c8fc984 --- /dev/null +++ b/types/consumable-stream/v2/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "esnext.asynciterable" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "consumable-stream-tests.ts" + ] +} diff --git a/types/consumer-data-standards/tslint.json b/types/consumer-data-standards/tslint.json deleted file mode 100644 index 562c056df91548..00000000000000 --- a/types/consumer-data-standards/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - - "rules": { - "no-const-enum": false, - "array-type": [false], - "max-line-length": [false] - } -} diff --git a/types/contained-periodic-values/tslint.json b/types/contained-periodic-values/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/contained-periodic-values/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/contains-path/tslint.json b/types/contains-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/contains-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/content-disposition/tslint.json b/types/content-disposition/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/content-disposition/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/content-range/tslint.json b/types/content-range/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/content-range/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/content-type/.eslintrc.json b/types/content-type/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/content-type/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/content-type/tslint.json b/types/content-type/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/content-type/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/contentful-resolve-response/tslint.json b/types/contentful-resolve-response/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/contentful-resolve-response/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/contextjs/.eslintrc.json b/types/contextjs/.eslintrc.json index 0cb2a3c3906217..b7be2eb1c01407 100644 --- a/types/contextjs/.eslintrc.json +++ b/types/contextjs/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/export-just-namespace": "off" + "@definitelytyped/export-just-namespace": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/contextjs/tslint.json b/types/contextjs/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/contextjs/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/continuation-local-storage/tslint.json b/types/continuation-local-storage/tslint.json deleted file mode 100644 index 908289540b8c9f..00000000000000 --- a/types/continuation-local-storage/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "one-variable-per-declaration": false, - "only-arrow-functions": false - } -} diff --git a/types/contract-proxy-kit/tslint.json b/types/contract-proxy-kit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/contract-proxy-kit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/contrast-color/tslint.json b/types/contrast-color/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/contrast-color/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-changelog-config-spec/tslint.json b/types/conventional-changelog-config-spec/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-changelog-config-spec/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-changelog-core/tslint.json b/types/conventional-changelog-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-changelog-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-changelog-preset-loader/ts4.9/tslint.json b/types/conventional-changelog-preset-loader/ts4.9/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-changelog-preset-loader/ts4.9/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-changelog-preset-loader/tslint.json b/types/conventional-changelog-preset-loader/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-changelog-preset-loader/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-changelog-writer/tslint.json b/types/conventional-changelog-writer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-changelog-writer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-changelog/tslint.json b/types/conventional-changelog/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-changelog/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-commits-detector/tslint.json b/types/conventional-commits-detector/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-commits-detector/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-commits-parser/ts4.9/tslint.json b/types/conventional-commits-parser/ts4.9/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-commits-parser/ts4.9/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-commits-parser/tslint.json b/types/conventional-commits-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-commits-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/conventional-recommended-bump/tslint.json b/types/conventional-recommended-bump/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/conventional-recommended-bump/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/convert-array-to-csv/tslint.json b/types/convert-array-to-csv/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/convert-array-to-csv/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/convert-excel-to-json/tslint.json b/types/convert-excel-to-json/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/convert-excel-to-json/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/convert-layout/tslint.json b/types/convert-layout/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/convert-layout/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/convert-source-map/tslint.json b/types/convert-source-map/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/convert-source-map/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/convert-string/tslint.json b/types/convert-string/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/convert-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/convert-units/tslint.json b/types/convert-units/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/convert-units/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/convict-format-with-validator/tslint.json b/types/convict-format-with-validator/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/convict-format-with-validator/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/convict/tslint.json b/types/convict/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/convict/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cookie-parser/tslint.json b/types/cookie-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cookie-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cookie-session/tslint.json b/types/cookie-session/tslint.json deleted file mode 100644 index dde7038ce08772..00000000000000 --- a/types/cookie-session/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/cookie-signature/tslint.json b/types/cookie-signature/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cookie-signature/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cookie/tslint.json b/types/cookie/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cookie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cookie_js/tslint.json b/types/cookie_js/tslint.json deleted file mode 100644 index 753f48713f12af..00000000000000 --- a/types/cookie_js/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "new-parens": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/cookiebot-sdk/tslint.json b/types/cookiebot-sdk/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cookiebot-sdk/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cookieclicker/tslint.json b/types/cookieclicker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cookieclicker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cookieconsent/tslint.json b/types/cookieconsent/tslint.json deleted file mode 100755 index 794cb4bf3e0782..00000000000000 --- a/types/cookieconsent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cookiejar/tslint.json b/types/cookiejar/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cookiejar/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cookies/tslint.json b/types/cookies/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cookies/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/copy-paste/tslint.json b/types/copy-paste/tslint.json deleted file mode 100644 index 53e2a6dbfb51ab..00000000000000 --- a/types/copy-paste/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "unified-signatures": false - } -} diff --git a/types/copy/tslint.json b/types/copy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/copy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/copyfiles/tslint.json b/types/copyfiles/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/copyfiles/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cordova-ionic/.eslintrc.json b/types/cordova-ionic/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/cordova-ionic/.eslintrc.json +++ b/types/cordova-ionic/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/cordova-ionic/tslint.json b/types/cordova-ionic/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/cordova-ionic/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/cordova-plugin-app-version/tslint.json b/types/cordova-plugin-app-version/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-app-version/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-background-mode/tslint.json b/types/cordova-plugin-background-mode/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-background-mode/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-badge/tslint.json b/types/cordova-plugin-badge/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cordova-plugin-badge/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cordova-plugin-bluetoothclassic-serial/tslint.json b/types/cordova-plugin-bluetoothclassic-serial/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-bluetoothclassic-serial/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-canvascamera/tslint.json b/types/cordova-plugin-canvascamera/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-canvascamera/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-device-name/tslint.json b/types/cordova-plugin-device-name/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/cordova-plugin-device-name/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/cordova-plugin-email-composer/tslint.json b/types/cordova-plugin-email-composer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-email-composer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-file-opener2/tslint.json b/types/cordova-plugin-file-opener2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cordova-plugin-file-opener2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cordova-plugin-ibeacon/.eslintrc.json b/types/cordova-plugin-ibeacon/.eslintrc.json index dac7dc1509e198..2c2f25520ea9c0 100644 --- a/types/cordova-plugin-ibeacon/.eslintrc.json +++ b/types/cordova-plugin-ibeacon/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-misused-new": "off" } } diff --git a/types/cordova-plugin-ibeacon/tslint.json b/types/cordova-plugin-ibeacon/tslint.json deleted file mode 100644 index 2f5b5eb9cb2e56..00000000000000 --- a/types/cordova-plugin-ibeacon/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-callback-wrapper": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/cordova-plugin-insomnia/tslint.json b/types/cordova-plugin-insomnia/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-insomnia/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-keyboard/tslint.json b/types/cordova-plugin-keyboard/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-keyboard/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-mapsforge/.eslintrc.json b/types/cordova-plugin-mapsforge/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/cordova-plugin-mapsforge/.eslintrc.json +++ b/types/cordova-plugin-mapsforge/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/cordova-plugin-mapsforge/tslint.json b/types/cordova-plugin-mapsforge/tslint.json deleted file mode 100644 index 2a07c5677dd595..00000000000000 --- a/types/cordova-plugin-mapsforge/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/cordova-plugin-ms-adal/tslint.json b/types/cordova-plugin-ms-adal/tslint.json deleted file mode 100644 index 1121daa0cd931e..00000000000000 --- a/types/cordova-plugin-ms-adal/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/cordova-plugin-native-keyboard/tslint.json b/types/cordova-plugin-native-keyboard/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cordova-plugin-native-keyboard/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cordova-plugin-ouralabs/tslint.json b/types/cordova-plugin-ouralabs/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/cordova-plugin-ouralabs/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/cordova-plugin-qrscanner/tslint.json b/types/cordova-plugin-qrscanner/tslint.json deleted file mode 100644 index 83bc630af61f72..00000000000000 --- a/types/cordova-plugin-qrscanner/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/cordova-plugin-safariviewcontroller/tslint.json b/types/cordova-plugin-safariviewcontroller/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-safariviewcontroller/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-spinner/tslint.json b/types/cordova-plugin-spinner/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-plugin-spinner/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova-plugin-websql/tslint.json b/types/cordova-plugin-websql/tslint.json deleted file mode 100644 index e88b996882ab7b..00000000000000 --- a/types/cordova-plugin-websql/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-conditional-assignment": false, - "no-var-keyword": false - } -} diff --git a/types/cordova-sqlite-storage/tslint.json b/types/cordova-sqlite-storage/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cordova-sqlite-storage/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cordova-universal-links-plugin/tslint.json b/types/cordova-universal-links-plugin/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cordova-universal-links-plugin/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cordova/tslint.json b/types/cordova/tslint.json deleted file mode 100644 index fc4d86f56f6c41..00000000000000 --- a/types/cordova/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/cordova_app_version_plugin/tslint.json b/types/cordova_app_version_plugin/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/cordova_app_version_plugin/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/cordovarduino/tslint.json b/types/cordovarduino/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/cordovarduino/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/core-js/tslint.json b/types/core-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/core-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/core-object/tslint.json b/types/core-object/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/core-object/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/core-util-is/tslint.json b/types/core-util-is/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/core-util-is/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cornerstone-core/tslint.json b/types/cornerstone-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cornerstone-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/correlation-id/tslint.json b/types/correlation-id/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/correlation-id/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cors/tslint.json b/types/cors/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/cors/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/cose-js/tslint.json b/types/cose-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cose-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cote/tslint.json b/types/cote/tslint.json deleted file mode 100644 index f1b5591ab0ae50..00000000000000 --- a/types/cote/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [["NeedsExportEquals", false]], - "mode": "code" - } - ] - } -} diff --git a/types/couchbase/tslint.json b/types/couchbase/tslint.json deleted file mode 100644 index 594f845cb86521..00000000000000 --- a/types/couchbase/tslint.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-for-in-array": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "unified-signatures": false - } -} diff --git a/types/countdown/tslint.json b/types/countdown/tslint.json deleted file mode 100644 index 599089d4011554..00000000000000 --- a/types/countdown/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "only-arrow-functions": false - } -} diff --git a/types/counterpart/tslint.json b/types/counterpart/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/counterpart/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/country-data/tslint.json b/types/country-data/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/country-data/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/country-flag-icons/tslint.json b/types/country-flag-icons/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/country-flag-icons/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/country-list-js/tslint.json b/types/country-list-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/country-list-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/country-list/tslint.json b/types/country-list/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/country-list/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/country-list/v1/tslint.json b/types/country-list/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/country-list/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/country-select-js/tslint.json b/types/country-select-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/country-select-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/country-telephone-data/tslint.json b/types/country-telephone-data/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/country-telephone-data/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/countryjs/tslint.json b/types/countryjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/countryjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/coverup/tslint.json b/types/coverup/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/coverup/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cpu-features/tslint.json b/types/cpu-features/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cpu-features/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cpx/tslint.json b/types/cpx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cpx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cqrs-domain/tslint.json b/types/cqrs-domain/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cqrs-domain/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/crack-json/.npmignore b/types/crack-json/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/crack-json/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/crack-json/crack-json-tests.ts b/types/crack-json/crack-json-tests.ts new file mode 100644 index 00000000000000..682f48fd041d40 --- /dev/null +++ b/types/crack-json/crack-json-tests.ts @@ -0,0 +1,26 @@ +import { extractJson } from "crack-json"; + +extractJson(""); // $ExpectType any +extractJson(`{"foo":"bar"}`); // $ExpectType any +extractJson(`...{"foo":"bar"}`); // $ExpectType any +// $ExpectType any +extractJson(`{"foo":"bar"}`, { + filter: (input: string) => { + return input.includes("foo"); + }, +}); +// $ExpectType any +extractJson(`{"foo":"bar"}`, { + parser: (input: string) => { + return JSON.parse(input); + }, +}); +// $ExpectType any +extractJson(`{"foo":"bar"}`, { + filter: (input: string) => { + return input.includes("foo"); + }, + parser: (input: string) => { + return JSON.parse(input); + }, +}); diff --git a/types/crack-json/index.d.ts b/types/crack-json/index.d.ts new file mode 100644 index 00000000000000..e2ef3342ca1e7b --- /dev/null +++ b/types/crack-json/index.d.ts @@ -0,0 +1,7 @@ +export function extractJson( + subject: string, + configuration?: { + filter?: (input: string) => boolean; + parser?: (input: string) => any; + }, +): any; diff --git a/types/crack-json/package.json b/types/crack-json/package.json new file mode 100644 index 00000000000000..58c245a687c335 --- /dev/null +++ b/types/crack-json/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/crack-json", + "version": "1.3.9999", + "projects": [ + "https://github.com/gajus/crack-json#readme" + ], + "devDependencies": { + "@types/crack-json": "workspace:." + }, + "owners": [ + { + "name": "Johannes Henning", + "githubUsername": "johenning" + } + ] +} diff --git a/types/crack-json/tsconfig.json b/types/crack-json/tsconfig.json new file mode 100644 index 00000000000000..bfd25bf8a97786 --- /dev/null +++ b/types/crack-json/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "crack-json-tests.ts" + ] +} diff --git a/types/craco__craco/tslint.json b/types/craco__craco/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/craco__craco/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cradle/tslint.json b/types/cradle/tslint.json deleted file mode 100644 index 057d4b307b434d..00000000000000 --- a/types/cradle/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "new-parens": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/crawler/tslint.json b/types/crawler/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/crawler/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/crc/tslint.json b/types/crc/tslint.json deleted file mode 100644 index a6a875f8701c24..00000000000000 --- a/types/crc/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { - "mode": "code", - "errors": [ - ["NoDefaultExport", false] - ] - }] - } -} diff --git a/types/crc32-stream/tslint.json b/types/crc32-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/crc32-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-cert/tslint.json b/types/create-cert/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-cert/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-error/tslint.json b/types/create-error/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/create-error/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/create-hash/tslint.json b/types/create-hash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-hmac/tslint.json b/types/create-hmac/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-hmac/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-html/tslint.json b/types/create-html/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-html/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-keyframe-animation/tslint.json b/types/create-keyframe-animation/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-keyframe-animation/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-react-class/create-react-class-tests.ts b/types/create-react-class/create-react-class-tests.ts index b5b1ae602e21d4..5ffa367d4efa68 100644 --- a/types/create-react-class/create-react-class-tests.ts +++ b/types/create-react-class/create-react-class-tests.ts @@ -21,7 +21,7 @@ const container: Element = document.createElement("div"); // Top-Level API // -------------------------------------------------------------------------- -const ClassicComponent: React.ClassicComponentClass = createReactClass({ +const ClassicComponent: createReactClass.ClassicComponentClass = createReactClass({ childContextTypes: {}, componentDidCatch(err, errorInfo) { const msg: string = err.message; @@ -53,7 +53,7 @@ const ClassicComponent: React.ClassicComponentClass = createReactClass, nextProps, nextState) { + shouldComponentUpdate(this: createReactClass.ClassicComponent, nextProps, nextState) { const newFoo: string = nextProps.foo; const newBar: number = nextState.bar; return newFoo !== this.props.foo && newBar !== this.state.bar; @@ -75,32 +75,20 @@ const ClassicComponent: React.ClassicComponentClass = createReactClass = createReactClass<{ text: string }>({ +const ClassicComponentNoState: createReactClass.ClassicComponentClass<{ text: string }> = createReactClass< + { text: string } +>({ render() { return DOM.div(this.props.text); }, }); -// React.createFactory -const classicFactory: React.ClassicFactory = React.createFactory(ClassicComponent); -const classicFactoryElement: React.ClassicElement = classicFactory(props); - -// React.createElement -const classicElement: React.ClassicElement = React.createElement(ClassicComponent, props); -const classicElementNullProps: React.ClassicElement<{}> = React.createElement(ClassicComponentNoProps, null); - -// React.cloneElement -const clonedClassicElement: React.ClassicElement = React.cloneElement(classicElement, props); - -// ReactDOM.render -const classicComponent: React.ClassicComponent = ReactDOM.render(classicElement, container); - // // React Components // -------------------------------------------------------------------------- @@ -113,6 +101,8 @@ const propTypes: React.ValidationMap | undefined = ClassicComponent.propT // Component API // -------------------------------------------------------------------------- +const classicComponent = new ClassicComponent({ foo: "bar" }); + // classic const isMounted: boolean = classicComponent.isMounted(); classicComponent.replaceState({ inputValue: "???", seconds: 60 }); diff --git a/types/create-react-class/index.d.ts b/types/create-react-class/index.d.ts index 3606bc6663133c..cb01adca51d720 100644 --- a/types/create-react-class/index.d.ts +++ b/types/create-react-class/index.d.ts @@ -1,7 +1,40 @@ -import { ClassicComponentClass, ComponentSpec } from "react"; +import { Component, ComponentClass, ComponentLifecycle, ReactNode, ValidationMap } from "react"; -declare namespace createReactClass {} -declare function createReactClass(spec: ComponentSpec): ClassicComponentClass

; +declare namespace createReactClass { + interface Mixin extends ComponentLifecycle { + mixins?: Array> | undefined; + statics?: { + [key: string]: any; + } | undefined; + + displayName?: string | undefined; + propTypes?: ValidationMap | undefined; + contextTypes?: ValidationMap | undefined; + childContextTypes?: ValidationMap | undefined; + + getDefaultProps?(): P; + getInitialState?(): S; + } + + interface ComponentSpec extends Mixin { + render(): ReactNode; + + [propertyName: string]: any; + } + interface ClassicComponent

extends Component { + replaceState(nextState: S, callback?: () => void): void; + isMounted(): boolean; + getInitialState?(): S; + } + + interface ClassicComponentClass

extends Omit, "new"> { + new(props: P, context?: any): ClassicComponent; + getDefaultProps?(): P; + } +} +declare function createReactClass( + spec: createReactClass.ComponentSpec, +): createReactClass.ClassicComponentClass

; export as namespace createReactClass; export = createReactClass; diff --git a/types/create-react-class/tslint.json b/types/create-react-class/tslint.json deleted file mode 100644 index 96eb6944687ef8..00000000000000 --- a/types/create-react-class/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false - } -} diff --git a/types/create-subscription/tslint.json b/types/create-subscription/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-subscription/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-test-server/tslint.json b/types/create-test-server/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-test-server/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-torrent/tslint.json b/types/create-torrent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-torrent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/create-xpub/tslint.json b/types/create-xpub/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/create-xpub/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/createjs-lib/.eslintrc.json b/types/createjs-lib/.eslintrc.json index 12dc0523ec6ea8..d0441fac2a22df 100644 --- a/types/createjs-lib/.eslintrc.json +++ b/types/createjs-lib/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/createjs-lib/tslint.json b/types/createjs-lib/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/createjs-lib/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/createjs/tslint.json b/types/createjs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/createjs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/creativebulma__bulma-tagsinput/tslint.json b/types/creativebulma__bulma-tagsinput/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/creativebulma__bulma-tagsinput/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/credential/tslint.json b/types/credential/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/credential/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/creditcardutils/tslint.json b/types/creditcardutils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/creditcardutils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/creditkey-js/tslint.json b/types/creditkey-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/creditkey-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/crimsonq/tslint.json b/types/crimsonq/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/crimsonq/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/critters-webpack-plugin/tslint.json b/types/critters-webpack-plugin/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/critters-webpack-plugin/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/crocks/tslint.json b/types/crocks/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/crocks/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cronitor/tslint.json b/types/cronitor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cronitor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/croppie/tslint.json b/types/croppie/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/croppie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cross-domain-utils/tslint.json b/types/cross-domain-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cross-domain-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cross-spawn/tslint.json b/types/cross-spawn/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cross-spawn/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cross-storage/tslint.json b/types/cross-storage/tslint.json deleted file mode 100644 index 926e4d3f011d79..00000000000000 --- a/types/cross-storage/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-void-expression": false - } -} diff --git a/types/cross-zip/tslint.json b/types/cross-zip/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cross-zip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/crossfilter/tslint.json b/types/crossfilter/tslint.json deleted file mode 100644 index e7b3157299e783..00000000000000 --- a/types/crossfilter/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/crossroads/tslint.json b/types/crossroads/tslint.json deleted file mode 100644 index bd823e23d85b9a..00000000000000 --- a/types/crossroads/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false - } -} diff --git a/types/crpc/tslint.json b/types/crpc/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/crpc/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/crumb/tslint.json b/types/crumb/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/crumb/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cryptex/tslint.json b/types/cryptex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cryptex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cryptiles/tslint.json b/types/cryptiles/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cryptiles/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/crypto-js/tslint.json b/types/crypto-js/tslint.json deleted file mode 100644 index 6bca596214f4cc..00000000000000 --- a/types/crypto-js/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "import-spacing": false, - "no-duplicate-variable": false, - "no-unnecessary-type-assertion": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/crypto-ld/tslint.json b/types/crypto-ld/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/crypto-ld/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/crypto-pouch/tslint.json b/types/crypto-pouch/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/crypto-pouch/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cryptojs/.eslintrc.json b/types/cryptojs/.eslintrc.json index 6b319d8c0c5386..96b377f13356d6 100644 --- a/types/cryptojs/.eslintrc.json +++ b/types/cryptojs/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/cryptojs/tslint.json b/types/cryptojs/tslint.json deleted file mode 100644 index 3cf6b910e61ae2..00000000000000 --- a/types/cryptojs/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/cryptr/tslint.json b/types/cryptr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cryptr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cson/tslint.json b/types/cson/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cson/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/csp-dev/tslint.json b/types/csp-dev/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/csp-dev/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/csp-hash-generator/tslint.json b/types/csp-hash-generator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/csp-hash-generator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/csp-html-webpack-plugin/tslint.json b/types/csp-html-webpack-plugin/tslint.json deleted file mode 100755 index 794cb4bf3e0782..00000000000000 --- a/types/csp-html-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/csprng/tslint.json b/types/csprng/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/csprng/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/css-declaration-sorter/tslint.json b/types/css-declaration-sorter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css-declaration-sorter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css-font-loading-module/.eslintrc.json b/types/css-font-loading-module/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/css-font-loading-module/.eslintrc.json +++ b/types/css-font-loading-module/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/css-font-loading-module/tslint.json b/types/css-font-loading-module/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/css-font-loading-module/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/css-generator/tslint.json b/types/css-generator/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/css-generator/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/css-global-variables/tslint.json b/types/css-global-variables/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css-global-variables/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css-mediaquery/tslint.json b/types/css-mediaquery/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css-mediaquery/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css-modules-loader-core/tslint.json b/types/css-modules-loader-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css-modules-loader-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css-modules-require-hook/tslint.json b/types/css-modules-require-hook/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/css-modules-require-hook/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/css-modules/.eslintrc.json b/types/css-modules/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/css-modules/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/css-modules/tslint.json b/types/css-modules/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/css-modules/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/css-selector-tokenizer/tslint.json b/types/css-selector-tokenizer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css-selector-tokenizer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css-to-react-native/tslint.json b/types/css-to-react-native/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css-to-react-native/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css-to-style/tslint.json b/types/css-to-style/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css-to-style/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css-tree/css-tree-tests.ts b/types/css-tree/css-tree-tests.ts index 62f466b98daa8b..2cf9b7dc0c64d9 100644 --- a/types/css-tree/css-tree-tests.ts +++ b/types/css-tree/css-tree-tests.ts @@ -16,6 +16,8 @@ csstree.walk(ast, {}); csstree.walk(ast, { enter(node, item, list) { + this.break; // $ExpectType symbol + this.skip; // $ExpectType symbol this.root; // $ExpectType CssNode this.stylesheet; // $ExpectType StyleSheet | null node; // $ExpectType ClassSelector @@ -24,6 +26,8 @@ csstree.walk(ast, { this.atrule; // $ExpectType Atrule | null }, leave(node, item, list) { + this.break; // $ExpectType symbol + this.skip; // $ExpectType symbol this.root; // $ExpectType CssNode this.stylesheet; // $ExpectType StyleSheet | null node; // $ExpectType ClassSelector @@ -35,6 +39,9 @@ csstree.walk(ast, { reverse: false, }); +csstree.walk.break; // $ExpectType symbol +csstree.walk.skip; // $ExpectType symbol + const findResult = csstree.find(ast, (node, item, list) => { node; // $ExpectType CssNode item; // $ExpectType ListItem diff --git a/types/css-tree/index.d.ts b/types/css-tree/index.d.ts index d68a48c9482041..4a653db295fd63 100644 --- a/types/css-tree/index.d.ts +++ b/types/css-tree/index.d.ts @@ -527,6 +527,18 @@ export interface GenerateOptions { export function generate(ast: CssNode, options?: GenerateOptions): string; export interface WalkContext { + /** + * Stops traversal. No visitor function will be invoked once this value is + * returned by a visitor. + */ + break: symbol; + /** + * Prevent the current node from being iterated. No visitor function will be + * invoked for its properties or children nodes; note that this value only + * has an effect for enter visitor as leave visitor invokes after iterating + * over all node's properties and children. + */ + skip: symbol; root: CssNode; stylesheet: StyleSheet | null; atrule: Atrule | null; @@ -601,7 +613,19 @@ export type WalkOptions = | WalkOptionsVisit | WalkOptionsNoVisit; -export function walk(ast: CssNode, options: EnterOrLeaveFn | WalkOptions): void; +export const walk: { + (ast: CssNode, options: EnterOrLeaveFn | WalkOptions): void; + /** + * Stops traversal. No visitor function will be invoked once this value is returned by a visitor. + */ + readonly break: symbol; + /** + * Prevent the current node from being iterated. No visitor function will be invoked for its properties or children + * nodes; note that this value only has an effect for enter visitor as leave visitor invokes after iterating over + * all node's properties and children. + */ + readonly skip: symbol; +}; export type FindFn = (this: WalkContext, node: CssNode, item: ListItem, list: List) => boolean; diff --git a/types/css-tree/tslint.json b/types/css-tree/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css-tree/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css.escape/tslint.json b/types/css.escape/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/css.escape/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/css/tslint.json b/types/css/tslint.json deleted file mode 100644 index 4ebe04302d0323..00000000000000 --- a/types/css/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/cssbeautify/tslint.json b/types/cssbeautify/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/cssbeautify/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/cssesc/tslint.json b/types/cssesc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cssesc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/csso/csso-tests.ts b/types/csso/csso-tests.ts index 9baf786c000de4..38c1cdfec4c0a9 100644 --- a/types/csso/csso-tests.ts +++ b/types/csso/csso-tests.ts @@ -56,6 +56,8 @@ syntax.compress( }, ).ast; // $ExpectType CssNode -syntax.parse(".b {font-weight: bold}"); // $ExpectType CssNode +const selector = syntax.parse(".b {font-weight: bold}"); // $ExpectType CssNode + +syntax.specificity(selector); // $ExpectType [a: number, b: number, c: number] version; // $ExpectType string diff --git a/types/csso/index.d.ts b/types/csso/index.d.ts index 4dd9d37f47683a..53eeeb5aad3895 100644 --- a/types/csso/index.d.ts +++ b/types/csso/index.d.ts @@ -21,6 +21,10 @@ export const syntax: typeof csstree & { * Does the main task – compress an AST. */ compress(ast: csstree.CssNode, options?: CompressOptions): { ast: csstree.CssNode }; + + // §16. Calculating a selector’s specificity + // https://www.w3.org/TR/selectors-4/#specificity-rules + specificity(simpleSelector: csstree.CssNode): [a: number, b: number, c: number]; }; export interface Result { diff --git a/types/csso/tslint.json b/types/csso/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/csso/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cssom/tslint.json b/types/cssom/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cssom/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cssstyle/tslint.json b/types/cssstyle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cssstyle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/csurf/tslint.json b/types/csurf/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/csurf/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/csv-write-stream/tslint.json b/types/csv-write-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/csv-write-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/csv2json/tslint.json b/types/csv2json/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/csv2json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/csvrow/tslint.json b/types/csvrow/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/csvrow/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cuint/tslint.json b/types/cuint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cuint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/culori/tslint.json b/types/culori/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/culori/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/currency-formatter/tslint.json b/types/currency-formatter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/currency-formatter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/current-git-branch/tslint.json b/types/current-git-branch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/current-git-branch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/curtainsjs/tslint.json b/types/curtainsjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/curtainsjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/custom-error-generator/tslint.json b/types/custom-error-generator/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/custom-error-generator/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/custom-functions-runtime/tslint.json b/types/custom-functions-runtime/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/custom-functions-runtime/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/customize-cra/tslint.json b/types/customize-cra/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/customize-cra/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cvss/tslint.json b/types/cvss/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cvss/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cwd/tslint.json b/types/cwd/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cwd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cwise-compiler/tslint.json b/types/cwise-compiler/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cwise-compiler/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cwise-parser/tslint.json b/types/cwise-parser/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cwise-parser/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cwise/tslint.json b/types/cwise/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cwise/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cxs/component/index.d.ts b/types/cxs/component/index.d.ts index 96a46ef54e9f5c..48be4e9036e3fc 100644 --- a/types/cxs/component/index.d.ts +++ b/types/cxs/component/index.d.ts @@ -3,14 +3,14 @@ import { CSSObject } from "../index"; type ApparentComponentProps< // eslint-disable-next-line @typescript-eslint/no-explicit-any - C extends keyof JSX.IntrinsicElements | React.JSXElementConstructor, -> = C extends React.JSXElementConstructor ? JSX.LibraryManagedAttributes + C extends keyof React.JSX.IntrinsicElements | React.JSXElementConstructor, +> = C extends React.JSXElementConstructor ? React.JSX.LibraryManagedAttributes : React.ComponentPropsWithRef; declare const cxsComponent: { < Component extends - | keyof JSX.IntrinsicElements + | keyof React.JSX.IntrinsicElements // eslint-disable-next-line @typescript-eslint/no-explicit-any | React.JSXElementConstructor, PropsType extends object & ApparentComponentProps, diff --git a/types/cxs/tslint.json b/types/cxs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cxs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cyberblast__config/tslint.json b/types/cyberblast__config/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/cyberblast__config/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/cyberblast__logger/tslint.json b/types/cyberblast__logger/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cyberblast__logger/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cyberblast__webserver/tslint.json b/types/cyberblast__webserver/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cyberblast__webserver/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cybozulabs-md5/.eslintrc.json b/types/cybozulabs-md5/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/cybozulabs-md5/.eslintrc.json +++ b/types/cybozulabs-md5/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/cybozulabs-md5/tslint.json b/types/cybozulabs-md5/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/cybozulabs-md5/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/cyclonedx/tslint.json b/types/cyclonedx/tslint.json deleted file mode 100644 index e600f55b207798..00000000000000 --- a/types/cyclonedx/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "linterOptions": { - "exclude": [ - "test/cyclonedx_v*-tests.ts" - ] - } -} diff --git a/types/cypress-cdp/tslint.json b/types/cypress-cdp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cypress-cdp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cypress-cucumber-preprocessor/tslint.json b/types/cypress-cucumber-preprocessor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cypress-cucumber-preprocessor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cypress-dark/tslint.json b/types/cypress-dark/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cypress-dark/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cypress-dotenv/tslint.json b/types/cypress-dotenv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cypress-dotenv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cypress-image-snapshot/tslint.json b/types/cypress-image-snapshot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cypress-image-snapshot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cypress__code-coverage/tslint.json b/types/cypress__code-coverage/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cypress__code-coverage/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cytoscape-avsdf/tslint.json b/types/cytoscape-avsdf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cytoscape-avsdf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cytoscape-canvas/tslint.json b/types/cytoscape-canvas/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cytoscape-canvas/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cytoscape-context-menus/tslint.json b/types/cytoscape-context-menus/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cytoscape-context-menus/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cytoscape-cxtmenu/tslint.json b/types/cytoscape-cxtmenu/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cytoscape-cxtmenu/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cytoscape-d3-force/tslint.json b/types/cytoscape-d3-force/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cytoscape-d3-force/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cytoscape-dagre/tslint.json b/types/cytoscape-dagre/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cytoscape-dagre/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cytoscape-edgehandles/tslint.json b/types/cytoscape-edgehandles/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cytoscape-edgehandles/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cytoscape-euler/tslint.json b/types/cytoscape-euler/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cytoscape-euler/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cytoscape-fcose/tslint.json b/types/cytoscape-fcose/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cytoscape-fcose/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/cytoscape-klay/tslint.json b/types/cytoscape-klay/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cytoscape-klay/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cytoscape-navigator/tslint.json b/types/cytoscape-navigator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/cytoscape-navigator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/cytoscape-popper/tslint.json b/types/cytoscape-popper/tslint.json deleted file mode 100644 index d53922ab74fc2a..00000000000000 --- a/types/cytoscape-popper/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-outside-dependencies": false - } -} diff --git a/types/cytoscape/tslint.json b/types/cytoscape/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/cytoscape/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d/tslint.json b/types/d/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d20/tslint.json b/types/d20/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d20/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-array/tslint.json b/types/d3-array/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-array/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-array/v1/tslint.json b/types/d3-array/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-array/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-array/v2/tslint.json b/types/d3-array/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-array/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-axis/tslint.json b/types/d3-axis/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-axis/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-axis/v1/tslint.json b/types/d3-axis/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-axis/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-axis/v2/tslint.json b/types/d3-axis/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-axis/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-box/tslint.json b/types/d3-box/tslint.json deleted file mode 100644 index 502a51d20e159c..00000000000000 --- a/types/d3-box/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [["NeedsExportEquals", false]], - "mode": "code" - } - ], - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/d3-brush/tslint.json b/types/d3-brush/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-brush/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-brush/v1/tslint.json b/types/d3-brush/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-brush/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-brush/v2/tslint.json b/types/d3-brush/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-brush/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-chord/tslint.json b/types/d3-chord/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-chord/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-chord/v1/tslint.json b/types/d3-chord/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-chord/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-chord/v2/tslint.json b/types/d3-chord/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-chord/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-cloud/tslint.json b/types/d3-cloud/tslint.json deleted file mode 100644 index 74bcd8109766b6..00000000000000 --- a/types/d3-cloud/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/d3-collection/tslint.json b/types/d3-collection/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-collection/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-color/tslint.json b/types/d3-color/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-color/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-color/v1/tslint.json b/types/d3-color/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-color/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-color/v2/tslint.json b/types/d3-color/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-color/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-contour/tslint.json b/types/d3-contour/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-contour/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-contour/v1/tslint.json b/types/d3-contour/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-contour/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-contour/v2/tslint.json b/types/d3-contour/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-contour/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-delaunay/tslint.json b/types/d3-delaunay/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-delaunay/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-delaunay/v5/tslint.json b/types/d3-delaunay/v5/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-delaunay/v5/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-dispatch/tslint.json b/types/d3-dispatch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-dispatch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-dispatch/v1/tslint.json b/types/d3-dispatch/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-dispatch/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-dispatch/v2/tslint.json b/types/d3-dispatch/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-dispatch/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-drag/tslint.json b/types/d3-drag/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-drag/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-drag/v1/tslint.json b/types/d3-drag/v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-drag/v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-drag/v2/tslint.json b/types/d3-drag/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-drag/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-dsv/tslint.json b/types/d3-dsv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-dsv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-dsv/v0/tslint.json b/types/d3-dsv/v0/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-dsv/v0/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-dsv/v1/tslint.json b/types/d3-dsv/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-dsv/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-dsv/v2/tslint.json b/types/d3-dsv/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-dsv/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-ease/tslint.json b/types/d3-ease/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-ease/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-ease/v1/tslint.json b/types/d3-ease/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-ease/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-ease/v2/tslint.json b/types/d3-ease/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-ease/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-fetch/tslint.json b/types/d3-fetch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-fetch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-fetch/v1/tslint.json b/types/d3-fetch/v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-fetch/v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-fetch/v2/tslint.json b/types/d3-fetch/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-fetch/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-flextree/tslint.json b/types/d3-flextree/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-flextree/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-force/tslint.json b/types/d3-force/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-force/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-force/v1/tslint.json b/types/d3-force/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-force/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-force/v2/tslint.json b/types/d3-force/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-force/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-format/tslint.json b/types/d3-format/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-format/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-format/v1/tslint.json b/types/d3-format/v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-format/v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-format/v2/tslint.json b/types/d3-format/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-format/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-geo/tslint.json b/types/d3-geo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-geo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-geo/v1/tslint.json b/types/d3-geo/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-geo/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-geo/v2/tslint.json b/types/d3-geo/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-geo/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-graphviz/tslint.json b/types/d3-graphviz/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-graphviz/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-hexbin/tslint.json b/types/d3-hexbin/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-hexbin/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-hierarchy/tslint.json b/types/d3-hierarchy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-hierarchy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-hierarchy/v1/tslint.json b/types/d3-hierarchy/v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-hierarchy/v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-hierarchy/v2/tslint.json b/types/d3-hierarchy/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-hierarchy/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-hsv/tslint.json b/types/d3-hsv/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-hsv/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-indirections/tslint.json b/types/d3-indirections/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-indirections/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-interpolate-path/tslint.json b/types/d3-interpolate-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-interpolate-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-interpolate/tslint.json b/types/d3-interpolate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-interpolate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-interpolate/v1/tslint.json b/types/d3-interpolate/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-interpolate/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-interpolate/v2/tslint.json b/types/d3-interpolate/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-interpolate/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-org-chart/tslint.json b/types/d3-org-chart/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-org-chart/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-org-chart/v2/tslint.json b/types/d3-org-chart/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-org-chart/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-path/tslint.json b/types/d3-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-path/v1/tslint.json b/types/d3-path/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-path/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-path/v2/tslint.json b/types/d3-path/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-path/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-polygon/tslint.json b/types/d3-polygon/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-polygon/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-polygon/v1/tslint.json b/types/d3-polygon/v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-polygon/v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-polygon/v2/tslint.json b/types/d3-polygon/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-polygon/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-quadtree/tslint.json b/types/d3-quadtree/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-quadtree/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-quadtree/v1/tslint.json b/types/d3-quadtree/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-quadtree/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-quadtree/v2/tslint.json b/types/d3-quadtree/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-quadtree/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-queue/tslint.json b/types/d3-queue/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-queue/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-random/tslint.json b/types/d3-random/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-random/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-random/v1/tslint.json b/types/d3-random/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-random/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-random/v2/tslint.json b/types/d3-random/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-random/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-request/tslint.json b/types/d3-request/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-request/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-require/tslint.json b/types/d3-require/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-require/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-sankey/tslint.json b/types/d3-sankey/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-sankey/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-scale-chromatic/tslint.json b/types/d3-scale-chromatic/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-scale-chromatic/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-scale-chromatic/v1/tslint.json b/types/d3-scale-chromatic/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-scale-chromatic/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-scale-chromatic/v2/tslint.json b/types/d3-scale-chromatic/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-scale-chromatic/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-scale/tslint.json b/types/d3-scale/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-scale/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-scale/v1/tslint.json b/types/d3-scale/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-scale/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-scale/v2/tslint.json b/types/d3-scale/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-scale/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-scale/v3/tslint.json b/types/d3-scale/v3/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-scale/v3/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-selection-multi/tslint.json b/types/d3-selection-multi/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-selection-multi/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-selection/tslint.json b/types/d3-selection/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-selection/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-selection/v1/tslint.json b/types/d3-selection/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-selection/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-selection/v2/tslint.json b/types/d3-selection/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-selection/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-shape/tslint.json b/types/d3-shape/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-shape/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-shape/v1/tslint.json b/types/d3-shape/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-shape/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-shape/v2/tslint.json b/types/d3-shape/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-shape/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-simple-slider/tslint.json b/types/d3-simple-slider/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-simple-slider/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-time-format/tslint.json b/types/d3-time-format/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-time-format/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-time-format/v2/tslint.json b/types/d3-time-format/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-time-format/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-time-format/v3/tslint.json b/types/d3-time-format/v3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-time-format/v3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-time/tslint.json b/types/d3-time/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-time/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-time/v1/tslint.json b/types/d3-time/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-time/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-time/v2/tslint.json b/types/d3-time/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-time/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-timer/tslint.json b/types/d3-timer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-timer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-timer/v1/tslint.json b/types/d3-timer/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-timer/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-timer/v2/tslint.json b/types/d3-timer/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-timer/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-tip/.eslintrc.json b/types/d3-tip/.eslintrc.json index b998f99b964396..c737de27eb73f5 100644 --- a/types/d3-tip/.eslintrc.json +++ b/types/d3-tip/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-unnecessary-generics": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/d3-tip/tslint.json b/types/d3-tip/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/d3-tip/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/d3-transition/tslint.json b/types/d3-transition/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-transition/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-transition/v1/tslint.json b/types/d3-transition/v1/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-transition/v1/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-transition/v2/tslint.json b/types/d3-transition/v2/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/d3-transition/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/d3-voronoi/tslint.json b/types/d3-voronoi/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-voronoi/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-zoom/tslint.json b/types/d3-zoom/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3-zoom/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3-zoom/v1/tslint.json b/types/d3-zoom/v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-zoom/v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3-zoom/v2/tslint.json b/types/d3-zoom/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/d3-zoom/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/d3.slider/.eslintrc.json b/types/d3.slider/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/d3.slider/.eslintrc.json +++ b/types/d3.slider/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/d3.slider/tslint.json b/types/d3.slider/tslint.json deleted file mode 100644 index 0d89b181db539b..00000000000000 --- a/types/d3.slider/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/d3/tslint.json b/types/d3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3/v3/tslint.json b/types/d3/v3/tslint.json deleted file mode 100644 index 9d61479864aafc..00000000000000 --- a/types/d3/v3/tslint.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "arrow-return-shorthand": false, - "no-duplicate-variable": false, - "no-mergeable-namespace": false, - "no-namespace": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "radix": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/d3/v4/tslint.json b/types/d3/v4/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3/v4/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3/v5/tslint.json b/types/d3/v5/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3/v5/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3/v6/tslint.json b/types/d3/v6/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3/v6/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3kit/tslint.json b/types/d3kit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/d3kit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/d3kit/v1/tslint.json b/types/d3kit/v1/tslint.json deleted file mode 100644 index 5e7685e40dfeba..00000000000000 --- a/types/d3kit/v1/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/d3pie/tslint.json b/types/d3pie/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/d3pie/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/dadata-api/tslint.json b/types/dadata-api/tslint.json deleted file mode 100644 index 4960dbc18e46e4..00000000000000 --- a/types/dadata-api/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "export-just-namespace": false - } -} diff --git a/types/dagre-d3/tslint.json b/types/dagre-d3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dagre-d3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dagre-layout/tslint.json b/types/dagre-layout/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dagre-layout/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dagre/tslint.json b/types/dagre/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dagre/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/damerau-levenshtein/tslint.json b/types/damerau-levenshtein/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/damerau-levenshtein/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/danish-ssn/tslint.json b/types/danish-ssn/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/danish-ssn/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dashdash/tslint.json b/types/dashdash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dashdash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dasherize/tslint.json b/types/dasherize/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dasherize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dashify/tslint.json b/types/dashify/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dashify/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dat.gui/tslint.json b/types/dat.gui/tslint.json deleted file mode 100644 index 1cb7fc51fc27c0..00000000000000 --- a/types/dat.gui/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-for-in-array": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/data-api-client/tslint.json b/types/data-api-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/data-api-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/data-driven/tslint.json b/types/data-driven/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/data-driven/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/data-urls/tslint.json b/types/data-urls/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/data-urls/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/datadog-metrics/tslint.json b/types/datadog-metrics/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datadog-metrics/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datadog-statsd-metrics-collector/tslint.json b/types/datadog-statsd-metrics-collector/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datadog-statsd-metrics-collector/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datadog-tracer/tslint.json b/types/datadog-tracer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datadog-tracer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datadog-winston/tslint.json b/types/datadog-winston/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datadog-winston/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dataframe-js/tslint.json b/types/dataframe-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dataframe-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/datatables.net-autofill/tslint.json b/types/datatables.net-autofill/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-autofill/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net-buttons/tslint.json b/types/datatables.net-buttons/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-buttons/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net-colreorder/tslint.json b/types/datatables.net-colreorder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-colreorder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net-fixedcolumns/tslint.json b/types/datatables.net-fixedcolumns/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-fixedcolumns/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net-fixedheader/tslint.json b/types/datatables.net-fixedheader/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-fixedheader/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net-keytable/tslint.json b/types/datatables.net-keytable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-keytable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net-rowgroup/tslint.json b/types/datatables.net-rowgroup/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-rowgroup/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net-rowreorder/tslint.json b/types/datatables.net-rowreorder/tslint.json deleted file mode 100644 index 2a955c47d9939a..00000000000000 --- a/types/datatables.net-rowreorder/tslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - } -} diff --git a/types/datatables.net-scroller/tslint.json b/types/datatables.net-scroller/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-scroller/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net-select/tslint.json b/types/datatables.net-select/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net-select/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/datatables.net/tslint.json b/types/datatables.net/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/datatables.net/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/date-arithmetic/tslint.json b/types/date-arithmetic/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/date-arithmetic/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/date-fp/tslint.json b/types/date-fp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/date-fp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/date-is-valid/tslint.json b/types/date-is-valid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/date-is-valid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/date-now/tslint.json b/types/date-now/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/date-now/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/date-range-array/tslint.json b/types/date-range-array/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/date-range-array/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/date-unit-ms/tslint.json b/types/date-unit-ms/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/date-unit-ms/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/date-utils/tslint.json b/types/date-utils/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/date-utils/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dateformat/tslint.json b/types/dateformat/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dateformat/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dateformat/v1/tslint.json b/types/dateformat/v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dateformat/v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/datejs/tslint.json b/types/datejs/tslint.json deleted file mode 100644 index f6adc4e44a837b..00000000000000 --- a/types/datejs/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/daterangepicker/tslint.json b/types/daterangepicker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/daterangepicker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/daum-postcode/tslint.json b/types/daum-postcode/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/daum-postcode/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dav/tslint.json b/types/dav/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dav/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dayjs-precise-range/tslint.json b/types/dayjs-precise-range/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dayjs-precise-range/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dayjs-recur/tslint.json b/types/dayjs-recur/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dayjs-recur/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/db-hafas-stations-autocomplete/tslint.json b/types/db-hafas-stations-autocomplete/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/db-hafas-stations-autocomplete/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/db-hafas-stations/tslint.json b/types/db-hafas-stations/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/db-hafas-stations/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/db-migrate-base/tslint.json b/types/db-migrate-base/tslint.json deleted file mode 100644 index 1347202d05c8ae..00000000000000 --- a/types/db-migrate-base/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-object-literal-type-assertion": false, - "prefer-const": false - } -} diff --git a/types/db-migrate-pg/tslint.json b/types/db-migrate-pg/tslint.json deleted file mode 100644 index 45d9d01d395e7e..00000000000000 --- a/types/db-migrate-pg/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false, - "prefer-const": false - } -} diff --git a/types/db-stations-autocomplete/tslint.json b/types/db-stations-autocomplete/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/db-stations-autocomplete/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/db-stations/tslint.json b/types/db-stations/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/db-stations/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/db.js/tslint.json b/types/db.js/tslint.json deleted file mode 100644 index b6adf2bf67145e..00000000000000 --- a/types/db.js/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/dbus/tslint.json b/types/dbus/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dbus/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dc/tslint.json b/types/dc/tslint.json deleted file mode 100644 index 7603818a4551f7..00000000000000 --- a/types/dc/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/dcp-client/tslint.json b/types/dcp-client/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dcp-client/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/deasync-promise/tslint.json b/types/deasync-promise/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deasync-promise/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deasync/tslint.json b/types/deasync/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/deasync/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/death/tslint.json b/types/death/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/death/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/debessmann/tslint.json b/types/debessmann/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/debessmann/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/debounce-promise/tslint.json b/types/debounce-promise/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/debounce-promise/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/debounce/tslint.json b/types/debounce/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/debounce/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/debug/tslint.json b/types/debug/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/debug/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/decay/tslint.json b/types/decay/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/decay/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/decode-dxt/tslint.json b/types/decode-dxt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/decode-dxt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/decode-entities/tslint.json b/types/decode-entities/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/decode-entities/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/decode-uri-component/tslint.json b/types/decode-uri-component/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/decode-uri-component/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/decomment/tslint.json b/types/decomment/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/decomment/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/decompress/tslint.json b/types/decompress/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/decompress/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/decorum/.eslintrc.json b/types/decorum/.eslintrc.json index dd00f5dd1d0123..b4eca871bd5df0 100644 --- a/types/decorum/.eslintrc.json +++ b/types/decorum/.eslintrc.json @@ -3,6 +3,7 @@ "@definitelytyped/dt-header": "off", "@definitelytyped/export-just-namespace": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@definitelytyped/no-duplicate-imports": "off", "@typescript-eslint/naming-convention": "off", diff --git a/types/decorum/tslint.json b/types/decorum/tslint.json deleted file mode 100644 index 02b5b829b12550..00000000000000 --- a/types/decorum/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "no-void-expression": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false - } -} diff --git a/types/dedent/tslint.json b/types/dedent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dedent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deep-diff/tslint.json b/types/deep-diff/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/deep-diff/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/deep-eql/tslint.json b/types/deep-eql/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deep-eql/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deep-equal-in-any-order/tslint.json b/types/deep-equal-in-any-order/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deep-equal-in-any-order/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deep-equal/tslint.json b/types/deep-equal/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/deep-equal/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/deep-extend/tslint.json b/types/deep-extend/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deep-extend/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deep-freeze-strict/tslint.json b/types/deep-freeze-strict/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deep-freeze-strict/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deep-freeze/.eslintrc.json b/types/deep-freeze/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/deep-freeze/.eslintrc.json +++ b/types/deep-freeze/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/deep-freeze/tslint.json b/types/deep-freeze/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/deep-freeze/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/deepai/tslint.json b/types/deepai/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deepai/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deezer-sdk/tslint.json b/types/deezer-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deezer-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/default-browser-id/.npmignore b/types/default-browser-id/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/default-browser-id/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/default-browser-id/default-browser-id-tests.ts b/types/default-browser-id/default-browser-id-tests.ts new file mode 100644 index 00000000000000..66f6ff3b3bfee1 --- /dev/null +++ b/types/default-browser-id/default-browser-id-tests.ts @@ -0,0 +1,10 @@ +import defaultBrowserId from "default-browser-id"; + +// $ExpectType Promise +defaultBrowserId(); + +// @ts-expect-error +defaultBrowserId(1); + +// @ts-expect-error +defaultBrowserId("1"); diff --git a/types/default-browser-id/index.d.ts b/types/default-browser-id/index.d.ts new file mode 100644 index 00000000000000..160c06ffeb7d2a --- /dev/null +++ b/types/default-browser-id/index.d.ts @@ -0,0 +1 @@ +export default function defaultBrowserId(): Promise; diff --git a/types/default-browser-id/package.json b/types/default-browser-id/package.json new file mode 100644 index 00000000000000..58593dc2b5bc3a --- /dev/null +++ b/types/default-browser-id/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/default-browser-id", + "version": "4.0.9999", + "projects": [ + "https://github.com/sindresorhus/default-browser-id#readme" + ], + "devDependencies": { + "@types/default-browser-id": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/default-browser-id/tsconfig.json b/types/default-browser-id/tsconfig.json new file mode 100644 index 00000000000000..366666725739ff --- /dev/null +++ b/types/default-browser-id/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "default-browser-id-tests.ts" + ] +} diff --git a/types/default-gateway/tslint.json b/types/default-gateway/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/default-gateway/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/default-user-agent/tslint.json b/types/default-user-agent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/default-user-agent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/defaults-deep/tslint.json b/types/defaults-deep/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/defaults-deep/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/defaults/tslint.json b/types/defaults/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/defaults/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/defer-promise/tslint.json b/types/defer-promise/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/defer-promise/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/define-properties/tslint.json b/types/define-properties/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/define-properties/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/defined/tslint.json b/types/defined/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/defined/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deflate-js/tslint.json b/types/deflate-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deflate-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/degit/tslint.json b/types/degit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/degit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deglob/tslint.json b/types/deglob/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/deglob/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/deindent/tslint.json b/types/deindent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deindent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deinterleave/tslint.json b/types/deinterleave/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deinterleave/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deku/tslint.json b/types/deku/tslint.json deleted file mode 100644 index 4b6f6f174274d6..00000000000000 --- a/types/deku/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/delaunator/tslint.json b/types/delaunator/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/delaunator/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/delegates/tslint.json b/types/delegates/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/delegates/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/delete-empty/tslint.json b/types/delete-empty/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/delete-empty/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deline/tslint.json b/types/deline/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deline/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/delowar__react-circle-progressbar/tslint.json b/types/delowar__react-circle-progressbar/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/delowar__react-circle-progressbar/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/delta-e/tslint.json b/types/delta-e/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/delta-e/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deluge/tslint.json b/types/deluge/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deluge/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/denodeify/tslint.json b/types/denodeify/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/denodeify/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/density-clustering/tslint.json b/types/density-clustering/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/density-clustering/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deoxxa-content-type/.eslintrc.json b/types/deoxxa-content-type/.eslintrc.json index e814d8fbd491d4..85b959fd198d9d 100644 --- a/types/deoxxa-content-type/.eslintrc.json +++ b/types/deoxxa-content-type/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/no-single-declare-module": "off" + "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/deoxxa-content-type/tslint.json b/types/deoxxa-content-type/tslint.json deleted file mode 100644 index 352822772455e6..00000000000000 --- a/types/deoxxa-content-type/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/depd/tslint.json b/types/depd/tslint.json deleted file mode 100644 index 96eb6944687ef8..00000000000000 --- a/types/depd/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false - } -} diff --git a/types/dependency-solver/tslint.json b/types/dependency-solver/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dependency-solver/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/deployjava/.eslintrc.json b/types/deployjava/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/deployjava/.eslintrc.json +++ b/types/deployjava/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/deployjava/tslint.json b/types/deployjava/tslint.json deleted file mode 100644 index 96bc04944ff25f..00000000000000 --- a/types/deployjava/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-inferrable-types": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/deprecate/tslint.json b/types/deprecate/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/deprecate/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/deps-sort/tslint.json b/types/deps-sort/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/deps-sort/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/derhuerst__cli-on-key/tslint.json b/types/derhuerst__cli-on-key/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/derhuerst__cli-on-key/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/desktop-service/tslint.json b/types/desktop-service/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/desktop-service/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/desmos/.eslintrc.json b/types/desmos/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/desmos/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/desmos/tslint.json b/types/desmos/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/desmos/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/destroy-on-hwm/tslint.json b/types/destroy-on-hwm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/destroy-on-hwm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/destroy/tslint.json b/types/destroy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/destroy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detect-character-encoding/tslint.json b/types/detect-character-encoding/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detect-character-encoding/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detect-emoji-support/tslint.json b/types/detect-emoji-support/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/detect-emoji-support/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/detect-file/.npmignore b/types/detect-file/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/detect-file/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/detect-file/detect-file-tests.ts b/types/detect-file/detect-file-tests.ts new file mode 100644 index 00000000000000..395a8d92b3b5e8 --- /dev/null +++ b/types/detect-file/detect-file-tests.ts @@ -0,0 +1,19 @@ +import detect = require("detect-file"); + +// $ExpectType string +detect("foo"); + +// $ExpectType string +detect("foo", { nocase: true }); + +// $ExpectType string +detect("foo", { nocase: false }); + +// @ts-expect-error +detect(1); + +// @ts-expect-error +detect("foo", { nocase: 1 }); + +// @ts-expect-error +detect("foo", { nocas: true }); diff --git a/types/detect-file/index.d.ts b/types/detect-file/index.d.ts new file mode 100644 index 00000000000000..ffc35b5d874b83 --- /dev/null +++ b/types/detect-file/index.d.ts @@ -0,0 +1,7 @@ +interface DetectOptions { + nocase?: boolean; +} + +declare function detect(filepath: string, options?: DetectOptions): string; + +export = detect; diff --git a/types/detect-file/package.json b/types/detect-file/package.json new file mode 100644 index 00000000000000..209846cfdeddd8 --- /dev/null +++ b/types/detect-file/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/detect-file", + "version": "1.0.9999", + "projects": [ + "https://github.com/doowb/detect-file" + ], + "devDependencies": { + "@types/detect-file": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/detect-file/tsconfig.json b/types/detect-file/tsconfig.json new file mode 100644 index 00000000000000..f367d65d244f38 --- /dev/null +++ b/types/detect-file/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "detect-file-tests.ts" + ] +} diff --git a/types/detect-hover/tslint.json b/types/detect-hover/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detect-hover/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detect-inapp/tslint.json b/types/detect-inapp/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/detect-inapp/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/detect-libc/tslint.json b/types/detect-libc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detect-libc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detect-node/tslint.json b/types/detect-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detect-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detect-pointer/tslint.json b/types/detect-pointer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detect-pointer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detect-port/tslint.json b/types/detect-port/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detect-port/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detect-touch-events/tslint.json b/types/detect-touch-events/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detect-touch-events/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detect-touch/tslint.json b/types/detect-touch/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/detect-touch/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/detective/tslint.json b/types/detective/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detective/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/detectos.js/tslint.json b/types/detectos.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/detectos.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dev-ip/tslint.json b/types/dev-ip/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dev-ip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/devexpress-aspnetcore-bootstrap/tslint.json b/types/devexpress-aspnetcore-bootstrap/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/devexpress-aspnetcore-bootstrap/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/devexpress-web/.eslintrc.json b/types/devexpress-web/.eslintrc.json index f978262240d923..76eef43735c718 100644 --- a/types/devexpress-web/.eslintrc.json +++ b/types/devexpress-web/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-any-union": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/prefer-namespace": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/devexpress-web/tslint.json b/types/devexpress-web/tslint.json deleted file mode 100644 index f3c0bc7cd26f78..00000000000000 --- a/types/devexpress-web/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-namespace": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false - } -} diff --git a/types/devexpress-web/v161/tslint.json b/types/devexpress-web/v161/tslint.json deleted file mode 100644 index 32f8100695a14e..00000000000000 --- a/types/devexpress-web/v161/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-namespace": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/devexpress-web/v162/tslint.json b/types/devexpress-web/v162/tslint.json deleted file mode 100644 index 32f8100695a14e..00000000000000 --- a/types/devexpress-web/v162/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-namespace": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/devexpress-web/v171/tslint.json b/types/devexpress-web/v171/tslint.json deleted file mode 100644 index 32f8100695a14e..00000000000000 --- a/types/devexpress-web/v171/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-namespace": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/devexpress-web/v172/tslint.json b/types/devexpress-web/v172/tslint.json deleted file mode 100644 index 32f8100695a14e..00000000000000 --- a/types/devexpress-web/v172/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-namespace": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/devexpress-web/v181/tslint.json b/types/devexpress-web/v181/tslint.json deleted file mode 100644 index 32f8100695a14e..00000000000000 --- a/types/devexpress-web/v181/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-namespace": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/devexpress-web/v182/tslint.json b/types/devexpress-web/v182/tslint.json deleted file mode 100644 index 32f8100695a14e..00000000000000 --- a/types/devexpress-web/v182/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-namespace": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/devexpress-web/v191/tslint.json b/types/devexpress-web/v191/tslint.json deleted file mode 100644 index 28a403c86f5955..00000000000000 --- a/types/devexpress-web/v191/tslint.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-namespace": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false - } -} diff --git a/types/devexpress-web/v192/tslint.json b/types/devexpress-web/v192/tslint.json deleted file mode 100644 index 28a403c86f5955..00000000000000 --- a/types/devexpress-web/v192/tslint.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-namespace": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false - } -} diff --git a/types/devexpress-web/v201/.eslintrc.json b/types/devexpress-web/v201/.eslintrc.json index f978262240d923..76eef43735c718 100644 --- a/types/devexpress-web/v201/.eslintrc.json +++ b/types/devexpress-web/v201/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-any-union": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/prefer-namespace": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/devexpress-web/v201/tslint.json b/types/devexpress-web/v201/tslint.json deleted file mode 100644 index f3c0bc7cd26f78..00000000000000 --- a/types/devexpress-web/v201/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-namespace": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false - } -} diff --git a/types/device-uuid/tslint.json b/types/device-uuid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/device-uuid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dexie-batch/tslint.json b/types/dexie-batch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dexie-batch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/df-visible/.eslintrc.json b/types/df-visible/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/df-visible/.eslintrc.json +++ b/types/df-visible/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/df-visible/tslint.json b/types/df-visible/tslint.json deleted file mode 100644 index 0e100dd72d86fe..00000000000000 --- a/types/df-visible/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false - } -} diff --git a/types/dhis2__ui-constants/tslint.json b/types/dhis2__ui-constants/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dhis2__ui-constants/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dhis2__ui-icons/tslint.json b/types/dhis2__ui-icons/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dhis2__ui-icons/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dhtmlxgantt/.eslintrc.json b/types/dhtmlxgantt/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/dhtmlxgantt/.eslintrc.json +++ b/types/dhtmlxgantt/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/dhtmlxgantt/tslint.json b/types/dhtmlxgantt/tslint.json deleted file mode 100644 index b84b62d9fd20e8..00000000000000 --- a/types/dhtmlxgantt/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/dhtmlxscheduler/.eslintrc.json b/types/dhtmlxscheduler/.eslintrc.json index a25a4ebc5a8858..8bbd364fd0262b 100644 --- a/types/dhtmlxscheduler/.eslintrc.json +++ b/types/dhtmlxscheduler/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/adjacent-overload-signatures": "off", "@typescript-eslint/ban-types": "off" } diff --git a/types/dhtmlxscheduler/tslint.json b/types/dhtmlxscheduler/tslint.json deleted file mode 100644 index d92d0a126da953..00000000000000 --- a/types/dhtmlxscheduler/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "eofline": false, - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/di-lite/tslint.json b/types/di-lite/tslint.json deleted file mode 100644 index 3925698b98d29a..00000000000000 --- a/types/di-lite/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-namespace": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/di/tslint.json b/types/di/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/di/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/diacritics/tslint.json b/types/diacritics/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/diacritics/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dialog-node/tslint.json b/types/dialog-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dialog-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dialogify-browser/tslint.json b/types/dialogify-browser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dialogify-browser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dicer/tslint.json b/types/dicer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dicer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/didyoumean/tslint.json b/types/didyoumean/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/didyoumean/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/diff-match-patch/tslint.json b/types/diff-match-patch/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/diff-match-patch/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/diff/index.d.ts b/types/diff/index.d.ts index d902ccef1aa438..d733328e812838 100644 --- a/types/diff/index.d.ts +++ b/types/diff/index.d.ts @@ -141,7 +141,7 @@ export interface Hunk { export interface BestPath { newPos: number; - componenets: Change[]; + components: Change[]; } export class Diff { diff --git a/types/diff/tslint.json b/types/diff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/diff/v3/tslint.json b/types/diff/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/diff/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/diff3/tslint.json b/types/diff3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/diff3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/diffable-html/tslint.json b/types/diffable-html/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/diffable-html/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/diffie-hellman/tslint.json b/types/diffie-hellman/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/diffie-hellman/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/difflib/tslint.json b/types/difflib/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/difflib/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/digibyte/tslint.json b/types/digibyte/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/digibyte/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/digital-goods-browser/tslint.json b/types/digital-goods-browser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/digital-goods-browser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/digital-link.js/tslint.json b/types/digital-link.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/digital-link.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dinero.js/tslint.json b/types/dinero.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dinero.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dingtalk-robot-sender/tslint.json b/types/dingtalk-robot-sender/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dingtalk-robot-sender/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dir-glob/tslint.json b/types/dir-glob/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dir-glob/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dir-resolve/package.json b/types/dir-resolve/package.json index 0662c53d0774cb..e2e11808fe0811 100644 --- a/types/dir-resolve/package.json +++ b/types/dir-resolve/package.json @@ -8,10 +8,5 @@ "devDependencies": { "@types/dir-resolve": "workspace:." }, - "owners": [ - { - "name": "Andy Hanson", - "githubUsername": "andy-ms" - } - ] + "owners": [] } diff --git a/types/dir-resolve/tslint.json b/types/dir-resolve/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dir-resolve/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dir-walker-gen/tslint.json b/types/dir-walker-gen/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dir-walker-gen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/director/tslint.json b/types/director/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/director/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dirname-regex/tslint.json b/types/dirname-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dirname-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dirty-chai/tslint.json b/types/dirty-chai/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dirty-chai/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/discontinuous-range/tslint.json b/types/discontinuous-range/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/discontinuous-range/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/discord-rich-presence/tslint.json b/types/discord-rich-presence/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/discord-rich-presence/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/discord-rpc/tslint.json b/types/discord-rpc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/discord-rpc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/discourse-sso/tslint.json b/types/discourse-sso/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/discourse-sso/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/diskspace/tslint.json b/types/diskspace/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/diskspace/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dispatchr/tslint.json b/types/dispatchr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dispatchr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/disposable-email-domains/tslint.json b/types/disposable-email-domains/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/disposable-email-domains/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/disposable-email/tslint.json b/types/disposable-email/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/disposable-email/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/disqusjs/tslint.json b/types/disqusjs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/disqusjs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/distributions-poisson-quantile/tslint.json b/types/distributions-poisson-quantile/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/distributions-poisson-quantile/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/distributions/tslint.json b/types/distributions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/distributions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/diva.js/tslint.json b/types/diva.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/diva.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/django-bananas/tslint.json b/types/django-bananas/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/django-bananas/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/djv/tslint.json b/types/djv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/djv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dkim-signer/tslint.json b/types/dkim-signer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dkim-signer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dlv/tslint.json b/types/dlv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dlv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dmx/tslint.json b/types/dmx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dmx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dns-packet/tslint.json b/types/dns-packet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dns-packet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dns-txt/tslint.json b/types/dns-txt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dns-txt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dns2/tslint.json b/types/dns2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dns2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dnssd/tslint.json b/types/dnssd/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dnssd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/do-not-zip/tslint.json b/types/do-not-zip/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/do-not-zip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/doccookies/.eslintrc.json b/types/doccookies/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/doccookies/.eslintrc.json +++ b/types/doccookies/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/doccookies/tslint.json b/types/doccookies/tslint.json deleted file mode 100644 index 9283595d43f0e3..00000000000000 --- a/types/doccookies/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/docdown/tslint.json b/types/docdown/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/docdown/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dock-spawn/.eslintrc.json b/types/dock-spawn/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/dock-spawn/.eslintrc.json +++ b/types/dock-spawn/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/dock-spawn/tslint.json b/types/dock-spawn/tslint.json deleted file mode 100644 index db2257d85aa97f..00000000000000 --- a/types/dock-spawn/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-var-keyword": false, - "npm-naming": false, - "one-variable-per-declaration": false - } -} diff --git a/types/docker-events/tslint.json b/types/docker-events/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/docker-events/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/docker-modem/tslint.json b/types/docker-modem/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/docker-modem/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dockerode/tslint.json b/types/dockerode/tslint.json deleted file mode 100644 index f296d8a1e094ba..00000000000000 --- a/types/dockerode/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "await-promise": false - } -} diff --git a/types/docopt/tslint.json b/types/docopt/tslint.json deleted file mode 100644 index 6000ad5ea2a112..00000000000000 --- a/types/docopt/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/doctrine/tslint.json b/types/doctrine/tslint.json deleted file mode 100644 index c5d34abd301a72..00000000000000 --- a/types/doctrine/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-inferrable-types": false - } -} diff --git a/types/document-ready/tslint.json b/types/document-ready/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/document-ready/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/documentdb-server/.eslintrc.json b/types/documentdb-server/.eslintrc.json index 156f3f22ccbb28..b8c893eed11a89 100644 --- a/types/documentdb-server/.eslintrc.json +++ b/types/documentdb-server/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-unnecessary-generics": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/adjacent-overload-signatures": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/documentdb-server/tslint.json b/types/documentdb-server/tslint.json deleted file mode 100644 index cd2427b80d5938..00000000000000 --- a/types/documentdb-server/tslint.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-inferrable-types": false, - "no-redundant-jsdoc-2": false, - "no-string-throw": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/documentdb-session/tslint.json b/types/documentdb-session/tslint.json deleted file mode 100644 index 25db4cd3ec5bfd..00000000000000 --- a/types/documentdb-session/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-irregular-whitespace": false - } -} diff --git a/types/documentdb/tslint.json b/types/documentdb/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/documentdb/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/docusign-esign/tslint.json b/types/docusign-esign/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/docusign-esign/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dog-statsy/tslint.json b/types/dog-statsy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dog-statsy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dogapi/tslint.json b/types/dogapi/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dogapi/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/doge-seed/tslint.json b/types/doge-seed/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/doge-seed/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/doi-regex/tslint.json b/types/doi-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/doi-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dojo/tslint.json b/types/dojo/tslint.json deleted file mode 100644 index 3f55c3ecefefdd..00000000000000 --- a/types/dojo/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/dom-background-sync/tslint.json b/types/dom-background-sync/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-background-sync/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-chromium-installation-events/tslint.json b/types/dom-chromium-installation-events/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-chromium-installation-events/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-close-watcher/tslint.json b/types/dom-close-watcher/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-close-watcher/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-css/tslint.json b/types/dom-css/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-css/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-inputevent/tslint.json b/types/dom-inputevent/tslint.json deleted file mode 100644 index 8ae04c18cdd63b..00000000000000 --- a/types/dom-inputevent/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-boolean-literal-compare": false - } -} diff --git a/types/dom-matches/tslint.json b/types/dom-matches/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-matches/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-mediacapture-record/ts4.8/tslint.json b/types/dom-mediacapture-record/ts4.8/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dom-mediacapture-record/ts4.8/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dom-mediacapture-record/ts5.0/tslint.json b/types/dom-mediacapture-record/ts5.0/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dom-mediacapture-record/ts5.0/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dom-mediacapture-record/tslint.json b/types/dom-mediacapture-record/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dom-mediacapture-record/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dom-mediacapture-transform/tslint.json b/types/dom-mediacapture-transform/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-mediacapture-transform/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-navigation-preload/tslint.json b/types/dom-navigation-preload/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-navigation-preload/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-navigation/tslint.json b/types/dom-navigation/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-navigation/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-parser/tslint.json b/types/dom-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-screen-wake-lock/tslint.json b/types/dom-screen-wake-lock/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dom-screen-wake-lock/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dom-serial/tslint.json b/types/dom-serial/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-serial/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-speech-recognition/tslint.json b/types/dom-speech-recognition/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-speech-recognition/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-to-image/tslint.json b/types/dom-to-image/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dom-to-image/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dom-trust-token/tslint.json b/types/dom-trust-token/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-trust-token/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-view-transitions/tslint.json b/types/dom-view-transitions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-view-transitions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom-webcodecs/tslint.json b/types/dom-webcodecs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dom-webcodecs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dom4/tslint.json b/types/dom4/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/dom4/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/domexception/tslint.json b/types/domexception/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/domexception/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/domhandler/tslint.json b/types/domhandler/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/domhandler/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/domo/tslint.json b/types/domo/tslint.json deleted file mode 100644 index db8ebb752c1482..00000000000000 --- a/types/domo/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/dompurify/tslint.json b/types/dompurify/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/dompurify/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/domready/tslint.json b/types/domready/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/domready/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/domtagger/tslint.json b/types/domtagger/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/domtagger/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/domurl/tslint.json b/types/domurl/tslint.json deleted file mode 100644 index 40d523194a7499..00000000000000 --- a/types/domurl/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/domutils/tslint.json b/types/domutils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/domutils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/donna/tslint.json b/types/donna/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/donna/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/dookie/tslint.json b/types/dookie/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dookie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dos2unix/tslint.json b/types/dos2unix/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dos2unix/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dot-object/tslint.json b/types/dot-object/tslint.json deleted file mode 100644 index 926ecb47e4f9e1..00000000000000 --- a/types/dot-object/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false - } -} diff --git a/types/dot-prop-immutable/tslint.json b/types/dot-prop-immutable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dot-prop-immutable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dot/tslint.json b/types/dot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotdir-regex/tslint.json b/types/dotdir-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotdir-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotdotdot/tslint.json b/types/dotdotdot/tslint.json deleted file mode 100644 index 137644205aa45c..00000000000000 --- a/types/dotdotdot/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/dotenv-defaults/tslint.json b/types/dotenv-defaults/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotenv-defaults/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotenv-flow/tslint.json b/types/dotenv-flow/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotenv-flow/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotenv-flow/v2/tslint.json b/types/dotenv-flow/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotenv-flow/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotenv-load/tslint.json b/types/dotenv-load/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotenv-load/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotenv-parse-variables/tslint.json b/types/dotenv-parse-variables/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotenv-parse-variables/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotenv-safe/tslint.json b/types/dotenv-safe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotenv-safe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotenv-webpack/tslint.json b/types/dotenv-webpack/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotenv-webpack/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dotfile-regex/tslint.json b/types/dotfile-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dotfile-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dottie/tslint.json b/types/dottie/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dottie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/double-ended-queue/tslint.json b/types/double-ended-queue/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/double-ended-queue/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/double-hmac/tslint.json b/types/double-hmac/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/double-hmac/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/double-utils/tslint.json b/types/double-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/double-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/doublearray/tslint.json b/types/doublearray/tslint.json deleted file mode 100644 index 49a35d1b3b9505..00000000000000 --- a/types/doublearray/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/doubleclick-gpt/tslint.json b/types/doubleclick-gpt/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/doubleclick-gpt/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/download/tslint.json b/types/download/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/download/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/downloadjs/tslint.json b/types/downloadjs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/downloadjs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/downscale/tslint.json b/types/downscale/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/downscale/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dplayer/tslint.json b/types/dplayer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dplayer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/draco3d/tslint.json b/types/draco3d/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/draco3d/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/draco3dgltf/tslint.json b/types/draco3dgltf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/draco3dgltf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/draft-convert/tslint.json b/types/draft-convert/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/draft-convert/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/draft-js/draft-js-tests.tsx b/types/draft-js/draft-js-tests.tsx index 9916273f687652..aab5b954b5d278 100644 --- a/types/draft-js/draft-js-tests.tsx +++ b/types/draft-js/draft-js-tests.tsx @@ -1,6 +1,5 @@ import * as Immutable from "immutable"; import * as React from "react"; -import * as ReactDOM from "react-dom"; import { CompositeDecorator, @@ -380,11 +379,6 @@ const CodeBlockTypeControl = (props: { editorState: EditorState; onToggle: (bloc } }; -ReactDOM.render( - , - document.getElementById("target"), -); - const editorState = EditorState.createEmpty(); const selection = editorState.getSelection(); diff --git a/types/draft-js/package.json b/types/draft-js/package.json index 07e9117db32eeb..b5a50f2fee0fff 100644 --- a/types/draft-js/package.json +++ b/types/draft-js/package.json @@ -10,8 +10,7 @@ "immutable": "~3.7.4" }, "devDependencies": { - "@types/draft-js": "workspace:.", - "@types/react-dom": "*" + "@types/draft-js": "workspace:." }, "owners": [ { diff --git a/types/draft-js/tslint.json b/types/draft-js/tslint.json deleted file mode 100644 index 454dbc491867d8..00000000000000 --- a/types/draft-js/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-conditional-assignment": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "prefer-const": false, - "unified-signatures": false, - "use-default-type-parameter": false - } -} diff --git a/types/draftjs-to-html/tslint.json b/types/draftjs-to-html/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/draftjs-to-html/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/drag-controls/tslint.json b/types/drag-controls/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/drag-controls/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/drag-timetable/tslint.json b/types/drag-timetable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/drag-timetable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/draggabilly/tslint.json b/types/draggabilly/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/draggabilly/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/dragscroll/tslint.json b/types/dragscroll/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dragscroll/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dragselect/tslint.json b/types/dragselect/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dragselect/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dragster/tslint.json b/types/dragster/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dragster/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dragula/tslint.json b/types/dragula/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dragula/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dragula/v2/tslint.json b/types/dragula/v2/tslint.json deleted file mode 100644 index 9dbebc888fc87c..00000000000000 --- a/types/dragula/v2/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/drawflow/drawflow-tests.ts b/types/drawflow/drawflow-tests.ts index d931cd7bcedeec..b3939f5e99bd28 100644 --- a/types/drawflow/drawflow-tests.ts +++ b/types/drawflow/drawflow-tests.ts @@ -5,3 +5,7 @@ new Drawflow(element); // $ExpectType string | number new Drawflow(element).addNode("test", 1, 2, 50, 75, "class", null, "html", false); + +new Drawflow(element).nodeId; + +new Drawflow(element).node_selected; diff --git a/types/drawflow/index.d.ts b/types/drawflow/index.d.ts index 80e65338f775cf..48c421d544b25c 100644 --- a/types/drawflow/index.d.ts +++ b/types/drawflow/index.d.ts @@ -3,6 +3,44 @@ export default class Drawflow { constructor(element: HTMLElement, render?: object, parent?: object); + + /** + * @default {} + */ + events: Record void> }>; + + /** + * @required + */ + container: HTMLElement; + + /** + * @default 1 + */ + nodeId: number; + + /** + * @default null + */ + ele_selected: HTMLElement | null; + + /** + * @default null + */ + node_selected: HTMLElement | null; + + /** + * Drag nodes on click inputs + * @default false + */ + drag: boolean; + + /** + * @param eventName + * @param detail + */ + dispatch: (eventName: string, detail: any) => void; + /** * Active reroute * @default false @@ -39,12 +77,42 @@ export default class Drawflow { */ reroute_width: number; + /** + * flag for drawflow drag point + */ + drag_point: boolean; + + /** + * flag for drawflow editor canvas selected + */ + editor_selected: boolean; + + /** + * flag for drawflow connnection line + */ + connection: boolean; + + /** + * connection element + */ + connection_ele: HTMLElement | null; + + /** + * selected connection + */ + connection_selected: HTMLElement | null; + /** * Width of line * @default 5 */ line_path: number; + /** + * first clicked element + */ + first_click: HTMLElement | null; + /** * Force the first input to drop the connection on top of the node * @default false @@ -103,6 +171,45 @@ export default class Drawflow { */ canvas_y: number; + /** + * focused x coordinate + */ + pos_x: number; + + /** + * original x coordinate + */ + pos_x_start: number; + + /** + * focused x coordinate + */ + pos_y: number; + + /** + * original x coordinate + */ + pos_y_start: number; + + /** + * mouse x coordinate + */ + mouse_x: number; + /** + * mouse y coordinate + */ + mouse_y: number; + + /** + * mobile event cache list + */ + evCache: any[]; + + /** + * the diff between previous handlers and current + */ + prevDiff: number; + /** * Graph data object */ @@ -119,6 +226,26 @@ export default class Drawflow { */ precanvas: HTMLElement; + /** + * The drawflow parent element + */ + parent: object; + + /** + * registered nodes for reuse. + */ + noderegister: object; + + /** + * user defined renderer, for example vue + */ + render: object; + + /** + * module name + */ + module: string; + start(): void; load(): any; diff --git a/types/drawflow/tslint.json b/types/drawflow/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/drawflow/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/drift-zoom/tslint.json b/types/drift-zoom/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/drift-zoom/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/driftless/tslint.json b/types/driftless/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/driftless/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/drivelist/tslint.json b/types/drivelist/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/drivelist/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dropbox-chooser/.eslintrc.json b/types/dropbox-chooser/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/dropbox-chooser/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/dropbox-chooser/tslint.json b/types/dropbox-chooser/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/dropbox-chooser/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/dropboxjs/.eslintrc.json b/types/dropboxjs/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/dropboxjs/.eslintrc.json +++ b/types/dropboxjs/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/dropboxjs/tslint.json b/types/dropboxjs/tslint.json deleted file mode 100644 index 07bfb7e7074738..00000000000000 --- a/types/dropboxjs/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/dropkickjs/tslint.json b/types/dropkickjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dropkickjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dropzone/tslint.json b/types/dropzone/tslint.json deleted file mode 100644 index 35d7c3f48d75f3..00000000000000 --- a/types/dropzone/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/dropzone/v4/tslint.json b/types/dropzone/v4/tslint.json deleted file mode 100644 index 34eedd83ac191d..00000000000000 --- a/types/dropzone/v4/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/drupal-attribute/tslint.json b/types/drupal-attribute/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/drupal-attribute/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ds18b20/tslint.json b/types/ds18b20/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ds18b20/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dsv/tslint.json b/types/dsv/tslint.json deleted file mode 100644 index 521ad764e90ac4..00000000000000 --- a/types/dsv/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/dts-bundle/tslint.json b/types/dts-bundle/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/dts-bundle/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/dts-generator/tslint.json b/types/dts-generator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dts-generator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dtype/tslint.json b/types/dtype/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dtype/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/du/tslint.json b/types/du/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/du/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/duckduckgo-images-api/tslint.json b/types/duckduckgo-images-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/duckduckgo-images-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dumb-passwords/tslint.json b/types/dumb-passwords/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dumb-passwords/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/duo_web_sdk/.eslintrc.json b/types/duo_web_sdk/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/duo_web_sdk/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/duo_web_sdk/tslint.json b/types/duo_web_sdk/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/duo_web_sdk/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/duosecurity__duo_web/tslint.json b/types/duosecurity__duo_web/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/duosecurity__duo_web/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/duplex-to/tslint.json b/types/duplex-to/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/duplex-to/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/duplexer2/tslint.json b/types/duplexer2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/duplexer2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/duplexer3/tslint.json b/types/duplexer3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/duplexer3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/duplexify/tslint.json b/types/duplexify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/duplexify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/duplicate-package-checker-webpack-plugin/tslint.json b/types/duplicate-package-checker-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/duplicate-package-checker-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/durandal/tslint.json b/types/durandal/tslint.json deleted file mode 100644 index 5e21797399dac6..00000000000000 --- a/types/durandal/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/durandal/v1/tslint.json b/types/durandal/v1/tslint.json deleted file mode 100644 index 8716e930b2ba99..00000000000000 --- a/types/durandal/v1/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/dush/tslint.json b/types/dush/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dush/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dustjs-linkedin/tslint.json b/types/dustjs-linkedin/tslint.json deleted file mode 100644 index 941926d7419e7e..00000000000000 --- a/types/dustjs-linkedin/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/dv/tslint.json b/types/dv/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/dv/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/dvtng-jss/.eslintrc.json b/types/dvtng-jss/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/dvtng-jss/.eslintrc.json +++ b/types/dvtng-jss/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/dvtng-jss/tslint.json b/types/dvtng-jss/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/dvtng-jss/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/dw-bxslider-4/.eslintrc.json b/types/dw-bxslider-4/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/dw-bxslider-4/.eslintrc.json +++ b/types/dw-bxslider-4/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/dw-bxslider-4/tslint.json b/types/dw-bxslider-4/tslint.json deleted file mode 100644 index 3ad6383945645f..00000000000000 --- a/types/dw-bxslider-4/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/dwt/tslint.json b/types/dwt/tslint.json deleted file mode 100644 index 2ccd0eb957de51..00000000000000 --- a/types/dwt/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "only-arrow-functions": false - } -} diff --git a/types/dwt/v12/tslint.json b/types/dwt/v12/tslint.json deleted file mode 100644 index c4a3607e007e0f..00000000000000 --- a/types/dwt/v12/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "only-arrow-functions": false - } -} diff --git a/types/dwt/v13/tslint.json b/types/dwt/v13/tslint.json deleted file mode 100644 index c4a3607e007e0f..00000000000000 --- a/types/dwt/v13/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "only-arrow-functions": false - } -} diff --git a/types/dwt/v14/tslint.json b/types/dwt/v14/tslint.json deleted file mode 100644 index 2ccd0eb957de51..00000000000000 --- a/types/dwt/v14/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "only-arrow-functions": false - } -} diff --git a/types/dxf/tslint.json b/types/dxf/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/dxf/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/dygraphs/tslint.json b/types/dygraphs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dygraphs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dymo-label-framework/.eslintrc.json b/types/dymo-label-framework/.eslintrc.json index c47b3f50daa904..d35573b5b1c72b 100644 --- a/types/dymo-label-framework/.eslintrc.json +++ b/types/dymo-label-framework/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off" } } diff --git a/types/dymo-label-framework/tslint.json b/types/dymo-label-framework/tslint.json deleted file mode 100644 index 775548cf344d83..00000000000000 --- a/types/dymo-label-framework/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "triple-equals": false - } -} diff --git a/types/dynamic-time-warping/tslint.json b/types/dynamic-time-warping/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dynamic-time-warping/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dynamodb-localhost/tslint.json b/types/dynamodb-localhost/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dynamodb-localhost/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dynamodb-lock-client/tslint.json b/types/dynamodb-lock-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dynamodb-lock-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dynamodb/tslint.json b/types/dynamodb/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dynamodb/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dynatable/.eslintrc.json b/types/dynatable/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/dynatable/.eslintrc.json +++ b/types/dynatable/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/dynatable/tslint.json b/types/dynatable/tslint.json deleted file mode 100644 index 09db4064a4b2f6..00000000000000 --- a/types/dynatable/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/dynatrace/tslint.json b/types/dynatrace/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dynatrace/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dynmap/tslint.json b/types/dynmap/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/dynmap/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/dynogels/tslint.json b/types/dynogels/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/dynogels/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/each/tslint.json b/types/each/tslint.json deleted file mode 100644 index c860071028b871..00000000000000 --- a/types/each/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/earcut/tslint.json b/types/earcut/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/earcut/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/easeljs/tslint.json b/types/easeljs/tslint.json deleted file mode 100644 index fae60ae5370253..00000000000000 --- a/types/easeljs/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/eases/tslint.json b/types/eases/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/eases/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/easy-api-request/tslint.json b/types/easy-api-request/tslint.json deleted file mode 100644 index 3874b9f86e0b53..00000000000000 --- a/types/easy-api-request/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/easy-jsend/tslint.json b/types/easy-jsend/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/easy-jsend/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/easy-rbac/tslint.json b/types/easy-rbac/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/easy-rbac/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/easy-session/tslint.json b/types/easy-session/tslint.json deleted file mode 100644 index 3874b9f86e0b53..00000000000000 --- a/types/easy-session/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/easy-soap-request/tslint.json b/types/easy-soap-request/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/easy-soap-request/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/easy-speech/tslint.json b/types/easy-speech/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/easy-speech/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/easy-xapi-utils/tslint.json b/types/easy-xapi-utils/tslint.json deleted file mode 100644 index f7eeea0e56d4e1..00000000000000 --- a/types/easy-xapi-utils/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/easy-xapi/tslint.json b/types/easy-xapi/tslint.json deleted file mode 100644 index f7eeea0e56d4e1..00000000000000 --- a/types/easy-xapi/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/easycaptchajs/tslint.json b/types/easycaptchajs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/easycaptchajs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/easydate/tslint.json b/types/easydate/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/easydate/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ebay-oauth-nodejs-client/tslint.json b/types/ebay-oauth-nodejs-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ebay-oauth-nodejs-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ebml/tslint.json b/types/ebml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ebml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ebongarde-root/tslint.json b/types/ebongarde-root/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ebongarde-root/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eccrypto/tslint.json b/types/eccrypto/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eccrypto/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ecef-projector/tslint.json b/types/ecef-projector/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ecef-projector/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/echarts/tslint.json b/types/echarts/tslint.json deleted file mode 100644 index 5fba7d34600563..00000000000000 --- a/types/echarts/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-irregular-whitespace": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false - } -} diff --git a/types/ecma-proposal-math-extensions/tslint.json b/types/ecma-proposal-math-extensions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ecma-proposal-math-extensions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ecore/tslint.json b/types/ecore/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ecore/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ecurve/tslint.json b/types/ecurve/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ecurve/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ed25519/tslint.json b/types/ed25519/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ed25519/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ed2curve/tslint.json b/types/ed2curve/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ed2curve/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/edit-json-file/tslint.json b/types/edit-json-file/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/edit-json-file/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/editor-info/tslint.json b/types/editor-info/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/editor-info/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/editorjs__header/tslint.json b/types/editorjs__header/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/editorjs__header/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/edmonds-blossom/tslint.json b/types/edmonds-blossom/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/edmonds-blossom/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/edtr-io__mathquill/tslint.json b/types/edtr-io__mathquill/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/edtr-io__mathquill/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/edx__new-relic-source-map-webpack-plugin/tslint.json b/types/edx__new-relic-source-map-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/edx__new-relic-source-map-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ee-first/tslint.json b/types/ee-first/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ee-first/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eetase/tslint.json b/types/eetase/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/eetase/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/eetase/v3/tslint.json b/types/eetase/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/eetase/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/eff-diceware-passphrase/tslint.json b/types/eff-diceware-passphrase/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eff-diceware-passphrase/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/effective-domain-name-parser/tslint.json b/types/effective-domain-name-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/effective-domain-name-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/egg.js/tslint.json b/types/egg.js/tslint.json deleted file mode 100644 index 2224f3843ac69f..00000000000000 --- a/types/egg.js/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/eins-modal/tslint.json b/types/eins-modal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eins-modal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ej.web.all/tslint.json b/types/ej.web.all/tslint.json deleted file mode 100644 index 7cc9f10b634a1f..00000000000000 --- a/types/ej.web.all/tslint.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-mergeable-namespace": false, - "no-namespace": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "radix": false, - "triple-equals": false - } -} diff --git a/types/ejs-locals/tslint.json b/types/ejs-locals/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/ejs-locals/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/ejs/tslint.json b/types/ejs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ejs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ejson/tslint.json b/types/ejson/tslint.json deleted file mode 100644 index 0fa19ba9f91612..00000000000000 --- a/types/ejson/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-inferrable-types": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/elastic.js/tslint.json b/types/elastic.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/elastic.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/elastic__maki/tslint.json b/types/elastic__maki/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/elastic__maki/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/elasticlunr/tslint.json b/types/elasticlunr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/elasticlunr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/elasticlunrjs/tslint.json b/types/elasticlunrjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/elasticlunrjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/elasticsearch/tslint.json b/types/elasticsearch/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/elasticsearch/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/electron-devtools-installer/tslint.json b/types/electron-devtools-installer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/electron-devtools-installer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/electron-installer-dmg/tslint.json b/types/electron-installer-dmg/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/electron-installer-dmg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/electron-json-storage/tslint.json b/types/electron-json-storage/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/electron-json-storage/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/electron-load-devtool/tslint.json b/types/electron-load-devtool/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/electron-load-devtool/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/electron-localshortcut/tslint.json b/types/electron-localshortcut/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/electron-localshortcut/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/electron-positioner/tslint.json b/types/electron-positioner/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/electron-positioner/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/electron-progressbar/tslint.json b/types/electron-progressbar/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/electron-progressbar/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/electron-prompt/tslint.json b/types/electron-prompt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/electron-prompt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/electron-spellchecker/tslint.json b/types/electron-spellchecker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/electron-spellchecker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/electron-squirrel-startup/tslint.json b/types/electron-squirrel-startup/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/electron-squirrel-startup/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/element-closest/tslint.json b/types/element-closest/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/element-closest/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/element-resize-detector/tslint.json b/types/element-resize-detector/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/element-resize-detector/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/element-resize-event/tslint.json b/types/element-resize-event/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/element-resize-event/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/element-size/tslint.json b/types/element-size/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/element-size/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/elementary-circuits-directed-graph/tslint.json b/types/elementary-circuits-directed-graph/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/elementary-circuits-directed-graph/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/elementtree/tslint.json b/types/elementtree/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/elementtree/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/elgamal/tslint.json b/types/elgamal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/elgamal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ellipsize/tslint.json b/types/ellipsize/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ellipsize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/elliptic/tslint.json b/types/elliptic/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/elliptic/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/elm/.eslintrc.json b/types/elm/.eslintrc.json index 0075181ee4f2f3..0ebb8df7a60887 100644 --- a/types/elm/.eslintrc.json +++ b/types/elm/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off" } diff --git a/types/elm/tslint.json b/types/elm/tslint.json deleted file mode 100644 index e861fa072dcefc..00000000000000 --- a/types/elm/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false - } -} diff --git a/types/elo-rank/tslint.json b/types/elo-rank/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/elo-rank/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/elv/tslint.json b/types/elv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/elv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/email-check/tslint.json b/types/email-check/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/email-check/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/email-prompt/tslint.json b/types/email-prompt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/email-prompt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/email-reply-parser/tslint.json b/types/email-reply-parser/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/email-reply-parser/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/email-templates/tslint.json b/types/email-templates/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/email-templates/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/emailjs-mime-codec/tslint.json b/types/emailjs-mime-codec/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/emailjs-mime-codec/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/emartech__cls-adapter/tslint.json b/types/emartech__cls-adapter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/emartech__cls-adapter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ember-changeset-validations/tslint.json b/types/ember-changeset-validations/tslint.json deleted file mode 100644 index 7e23a97417ec58..00000000000000 --- a/types/ember-changeset-validations/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "code", - "errors": [ - [ - "NoDefaultExport", - false - ] - ] - } - ] - } -} diff --git a/types/ember-cli-fastboot/tslint.json b/types/ember-cli-fastboot/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember-cli-fastboot/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember-data/tslint.json b/types/ember-data/tslint.json deleted file mode 100644 index 0f8f3ac2b9a00f..00000000000000 --- a/types/ember-data/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-return-await": false, - "only-arrow-functions": false, - "prefer-const": false, - "npm-naming": [ - true, - { - "mode": "code", - "errors": [ - [ - "NoDefaultExport", - false - ] - ] - } - ] - } -} diff --git a/types/ember-data/v2/tslint.json b/types/ember-data/v2/tslint.json deleted file mode 100644 index 21a82b90c48841..00000000000000 --- a/types/ember-data/v2/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-return-await": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/ember-data/v3/tslint.json b/types/ember-data/v3/tslint.json deleted file mode 100644 index 0f8f3ac2b9a00f..00000000000000 --- a/types/ember-data/v3/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-return-await": false, - "only-arrow-functions": false, - "prefer-const": false, - "npm-naming": [ - true, - { - "mode": "code", - "errors": [ - [ - "NoDefaultExport", - false - ] - ] - } - ] - } -} diff --git a/types/ember-data__adapter/tslint.json b/types/ember-data__adapter/tslint.json deleted file mode 100644 index d53e5722d08b66..00000000000000 --- a/types/ember-data__adapter/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ], - "prefer-const": false - } -} diff --git a/types/ember-data__adapter/v3/tslint.json b/types/ember-data__adapter/v3/tslint.json deleted file mode 100644 index d53e5722d08b66..00000000000000 --- a/types/ember-data__adapter/v3/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ], - "prefer-const": false - } -} diff --git a/types/ember-data__model/tslint.json b/types/ember-data__model/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/ember-data__model/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/ember-data__model/v3/tslint.json b/types/ember-data__model/v3/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/ember-data__model/v3/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/ember-data__serializer/tslint.json b/types/ember-data__serializer/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/ember-data__serializer/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/ember-data__serializer/v3/tslint.json b/types/ember-data__serializer/v3/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/ember-data__serializer/v3/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/ember-data__store/tslint.json b/types/ember-data__store/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/ember-data__store/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/ember-data__store/v3/tslint.json b/types/ember-data__store/v3/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/ember-data__store/v3/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/ember-feature-flags/tslint.json b/types/ember-feature-flags/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember-feature-flags/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember-feature-flags/v3/tslint.json b/types/ember-feature-flags/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember-feature-flags/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember-mocha/tslint.json b/types/ember-mocha/tslint.json deleted file mode 100644 index aabd199eda41c7..00000000000000 --- a/types/ember-mocha/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/ember-modal-dialog/tslint.json b/types/ember-modal-dialog/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember-modal-dialog/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember-modal-dialog/v2/tslint.json b/types/ember-modal-dialog/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember-modal-dialog/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember-modal-service/tslint.json b/types/ember-modal-service/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ember-modal-service/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ember-task-scheduler/tslint.json b/types/ember-task-scheduler/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ember-task-scheduler/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ember-test-helpers/.eslintrc.json b/types/ember-test-helpers/.eslintrc.json index d4b4143db59043..a1cc6469029690 100644 --- a/types/ember-test-helpers/.eslintrc.json +++ b/types/ember-test-helpers/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/no-declare-current-package": "off", + "@definitelytyped/npm-naming": "off", "no-duplicate-imports": "off" } } diff --git a/types/ember-test-helpers/tslint.json b/types/ember-test-helpers/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/ember-test-helpers/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/ember-test-helpers/v0/tslint.json b/types/ember-test-helpers/v0/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember-test-helpers/v0/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember-testing-helpers/.eslintrc.json b/types/ember-testing-helpers/.eslintrc.json index 59d00d648a54de..404e6392df6d19 100644 --- a/types/ember-testing-helpers/.eslintrc.json +++ b/types/ember-testing-helpers/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-unnecessary-generics": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/ember-testing-helpers/tslint.json b/types/ember-testing-helpers/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/ember-testing-helpers/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/ember-useragent/tslint.json b/types/ember-useragent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ember-useragent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ember/.eslintrc.json b/types/ember/.eslintrc.json index 9b6fd3e0f09a7d..3accbf9293bc8c 100644 --- a/types/ember/.eslintrc.json +++ b/types/ember/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/no-single-element-tuple-type": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/ember/test/array.ts b/types/ember/test/array.ts index fdd29ada50861f..f0b20a301dd37c 100755 --- a/types/ember/test/array.ts +++ b/types/ember/test/array.ts @@ -1,7 +1,7 @@ import Ember from "ember"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = Ember.Object & { name: string; isHappy: boolean }; const Person = Ember.Object.extend({ name: "", isHappy: false, @@ -13,7 +13,7 @@ const people = Ember.A([ ]); assertType(people.get("length")); -assertType(people.get("lastObject")); +assertType(people.get("lastObject")); assertType(people.isAny("isHappy")); // @ts-expect-error assertType(people.isAny("isHappy", "false")); @@ -22,7 +22,7 @@ assertType>(people.filterBy("isHappy")); assertType>(people.rejectBy("isHappy")); assertType>(people.filter(person => person.get("name") === "Yehuda")); assertType(people.get("[]")); -assertType(people.get("[]").get("firstObject")); +assertType(people.get("[]").get("firstObject")); assertType>(people.mapBy("isHappy")); assertType(people.mapBy("name.length")); diff --git a/types/ember/test/ember-tests.ts b/types/ember/test/ember-tests.ts index beae9e206e7e7f..41bf9fce49e8c1 100755 --- a/types/ember/test/ember-tests.ts +++ b/types/ember/test/ember-tests.ts @@ -139,7 +139,7 @@ const people2 = Ember.A([ Person3.create({ name: "Yehuda", isHappy: true }), Person3.create({ name: "Majd", isHappy: false }), ]); -const isHappy = (person: typeof Person3.prototype): boolean => { +const isHappy = (person: Ember.Object & { name: string; isHappy: boolean }): boolean => { return !!person.get("isHappy"); }; people2.every(isHappy); diff --git a/types/ember/test/extend.ts b/types/ember/test/extend.ts index e5d8a975d2a062..a609bf5c59b796 100755 --- a/types/ember/test/extend.ts +++ b/types/ember/test/extend.ts @@ -13,9 +13,6 @@ const Person = Ember.Object.extend({ }, }); -assertType(Person.prototype.firstName); -assertType<() => string>(Person.prototype.getFullName); - const person = Person.create({ firstName: "Joe", lastName: "Blow", diff --git a/types/ember/test/reopen.ts b/types/ember/test/reopen.ts index 8bb9eb2472b9bf..ad504ffdeaab5d 100755 --- a/types/ember/test/reopen.ts +++ b/types/ember/test/reopen.ts @@ -1,7 +1,7 @@ import Ember from "ember"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = { name: string; sayHello(): void } & Ember.Object; const Person = Ember.Object.extend({ name: "", sayHello() { @@ -9,7 +9,9 @@ const Person = Ember.Object.extend({ }, }); -assertType(Person.reopen()); +assertType< + Readonly & { new(properties?: object | undefined): Person } +>(Person.reopen()); assertType(Person.create().name); Person.create().sayHello(); // $ExpectType void @@ -29,7 +31,6 @@ assertType(Person2.species); const tom = Person2.create({ name: "Tom Dale", }); - // @ts-expect-error const badTom = Person2.create({ name: 99 }); diff --git a/types/ember/tslint.json b/types/ember/tslint.json deleted file mode 100755 index 585e9a1d59b3ba..00000000000000 --- a/types/ember/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/ember/v1/tslint.json b/types/ember/v1/tslint.json deleted file mode 100644 index 9f00ba365f8cc3..00000000000000 --- a/types/ember/v1/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/ember/v2/test/array.ts b/types/ember/v2/test/array.ts index 39cd954c439207..3b9c03c522fa52 100755 --- a/types/ember/v2/test/array.ts +++ b/types/ember/v2/test/array.ts @@ -1,7 +1,7 @@ import Ember from "ember"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = Ember.Object & { name: string; isHappy: boolean }; const Person = Ember.Object.extend({ name: "", isHappy: false, @@ -13,14 +13,14 @@ const people = Ember.A([ ]); assertType(people.get("length")); -assertType(people.get("lastObject")); +assertType(people.get("lastObject")); assertType(people.isAny("isHappy")); assertType(people.isAny("isHappy", "false")); assertType>(people.filterBy("isHappy")); assertType>(people.rejectBy("isHappy")); assertType>(people.filter(person => person.get("name") === "Yehuda")); assertType(people.get("[]")); -assertType(people.get("[]").get("firstObject")); +assertType(people.get("[]").get("firstObject")); assertType>(people.mapBy("isHappy")); assertType(people.mapBy("name.length")); diff --git a/types/ember/v2/test/ember-tests.ts b/types/ember/v2/test/ember-tests.ts index 07fb4203476f58..3d9ae307d9115c 100755 --- a/types/ember/v2/test/ember-tests.ts +++ b/types/ember/v2/test/ember-tests.ts @@ -125,7 +125,7 @@ const people2 = Ember.A([ Person3.create({ name: "Yehuda", isHappy: true }), Person3.create({ name: "Majd", isHappy: false }), ]); -const isHappy = (person: typeof Person3.prototype): boolean => { +const isHappy = (person: Ember.Object & { name: string; isHappy: boolean }): boolean => { return !!person.get("isHappy"); }; people2.every(isHappy); diff --git a/types/ember/v2/test/extend.ts b/types/ember/v2/test/extend.ts index 346610d94a23a5..b07f6db68e08d3 100755 --- a/types/ember/v2/test/extend.ts +++ b/types/ember/v2/test/extend.ts @@ -13,9 +13,6 @@ const Person = Ember.Object.extend({ }, }); -assertType(Person.prototype.firstName); -assertType<() => string>(Person.prototype.getFullName); - const person = Person.create({ firstName: "Joe", lastName: "Blow", diff --git a/types/ember/v2/test/reopen.ts b/types/ember/v2/test/reopen.ts index 1f76b5f1f66d52..020842a95c02d2 100755 --- a/types/ember/v2/test/reopen.ts +++ b/types/ember/v2/test/reopen.ts @@ -1,7 +1,7 @@ import Ember from "ember"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = Ember.Object & { name: string; sayHello(): void }; const Person = Ember.Object.extend({ name: "", sayHello() { @@ -9,7 +9,7 @@ const Person = Ember.Object.extend({ }, }); -assertType(Person.reopen()); +assertType & { new(properties?: object | undefined): Person }>(Person.reopen()); assertType(Person.create().name); // eslint-disable-next-line @typescript-eslint/no-invalid-void-type diff --git a/types/ember/v2/tslint.json b/types/ember/v2/tslint.json deleted file mode 100755 index 84913b8c5bd213..00000000000000 --- a/types/ember/v2/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-void-expression": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/ember/v3/.eslintrc.json b/types/ember/v3/.eslintrc.json index 9b6fd3e0f09a7d..3accbf9293bc8c 100644 --- a/types/ember/v3/.eslintrc.json +++ b/types/ember/v3/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/no-single-element-tuple-type": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/ember/v3/test/array.ts b/types/ember/v3/test/array.ts index 98c8e2c4720469..945bf7f9b01677 100755 --- a/types/ember/v3/test/array.ts +++ b/types/ember/v3/test/array.ts @@ -1,7 +1,7 @@ import Ember from "ember"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = Ember.Object & { name: string; isHappy: boolean }; const Person = Ember.Object.extend({ name: "", isHappy: false, @@ -13,14 +13,14 @@ const people = Ember.A([ ]); assertType(people.get("length")); -assertType(people.get("lastObject")); +assertType(people.get("lastObject")); assertType(people.isAny("isHappy")); assertType(people.isAny("isHappy", "false")); assertType>(people.filterBy("isHappy")); assertType>(people.rejectBy("isHappy")); assertType>(people.filter(person => person.get("name") === "Yehuda")); assertType(people.get("[]")); -assertType(people.get("[]").get("firstObject")); +assertType(people.get("[]").get("firstObject")); assertType>(people.mapBy("isHappy")); assertType(people.mapBy("name.length")); diff --git a/types/ember/v3/test/ember-tests.ts b/types/ember/v3/test/ember-tests.ts index 9fc8a85ee666fd..54fafeff87d07f 100755 --- a/types/ember/v3/test/ember-tests.ts +++ b/types/ember/v3/test/ember-tests.ts @@ -125,7 +125,7 @@ const people2 = Ember.A([ Person3.create({ name: "Yehuda", isHappy: true }), Person3.create({ name: "Majd", isHappy: false }), ]); -const isHappy = (person: typeof Person3.prototype): boolean => { +const isHappy = (person: Ember.Object & { name: string; isHappy: boolean }): boolean => { return !!person.get("isHappy"); }; people2.every(isHappy); diff --git a/types/ember/v3/test/extend.ts b/types/ember/v3/test/extend.ts index 346610d94a23a5..b07f6db68e08d3 100755 --- a/types/ember/v3/test/extend.ts +++ b/types/ember/v3/test/extend.ts @@ -13,9 +13,6 @@ const Person = Ember.Object.extend({ }, }); -assertType(Person.prototype.firstName); -assertType<() => string>(Person.prototype.getFullName); - const person = Person.create({ firstName: "Joe", lastName: "Blow", diff --git a/types/ember/v3/test/reopen.ts b/types/ember/v3/test/reopen.ts index 3cc6d3d848e723..426be63a499ba4 100755 --- a/types/ember/v3/test/reopen.ts +++ b/types/ember/v3/test/reopen.ts @@ -1,7 +1,7 @@ import Ember from "ember"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = Ember.Object & { name: string; sayHello(): void }; const Person = Ember.Object.extend({ name: "", sayHello() { @@ -9,7 +9,7 @@ const Person = Ember.Object.extend({ }, }); -assertType(Person.reopen()); +assertType & { new(properties?: object | undefined): Person }>(Person.reopen()); assertType(Person.create().name); Person.create().sayHello(); // $ExpectType void diff --git a/types/ember/v3/tslint.json b/types/ember/v3/tslint.json deleted file mode 100755 index 585e9a1d59b3ba..00000000000000 --- a/types/ember/v3/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/ember__application/tslint.json b/types/ember__application/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__application/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__application/v3/tslint.json b/types/ember__application/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__application/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__array/test/array.ts b/types/ember__array/test/array.ts index 053b0b2bb1fd12..3507df39322137 100755 --- a/types/ember__array/test/array.ts +++ b/types/ember__array/test/array.ts @@ -3,7 +3,7 @@ import MutableArray from "@ember/array/mutable"; import EmberObject from "@ember/object"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = EmberObject & { name: string; isHappy: boolean }; const Person = EmberObject.extend({ name: "", isHappy: false, @@ -12,8 +12,8 @@ const Person = EmberObject.extend({ const people = A([Person.create({ name: "Yehuda", isHappy: true }), Person.create({ name: "Majd", isHappy: false })]); assertType(people.get("length")); -assertType(people.get("lastObject")); -assertType(people.get("firstObject")); +assertType(people.get("lastObject")); +assertType(people.get("firstObject")); assertType(people.isAny("isHappy")); assertType(people.isAny("isHappy", false)); // @ts-expect-error @@ -30,7 +30,7 @@ const persons5: Person[] = people.filter(person => person.get("name") === "Yehud const persons6: MutableArray = people.filter(person => person.get("name") === "Yehuda"); assertType(people.get("[]")); -assertType(people.get("[]").get("firstObject")); +assertType(people.get("[]").get("firstObject")); assertType(people.mapBy("isHappy")); assertType(people.mapBy("name.length")); diff --git a/types/ember__array/tslint.json b/types/ember__array/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__array/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__array/v3/test/array.ts b/types/ember__array/v3/test/array.ts index c209abbd664639..826415811087d3 100755 --- a/types/ember__array/v3/test/array.ts +++ b/types/ember__array/v3/test/array.ts @@ -3,7 +3,7 @@ import MutableArray from "@ember/array/mutable"; import EmberObject from "@ember/object"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = EmberObject & { name: string; isHappy: boolean }; const Person = EmberObject.extend({ name: "", isHappy: false, @@ -12,8 +12,8 @@ const Person = EmberObject.extend({ const people = A([Person.create({ name: "Yehuda", isHappy: true }), Person.create({ name: "Majd", isHappy: false })]); assertType(people.get("length")); -assertType(people.get("lastObject")); -assertType(people.get("firstObject")); +assertType(people.get("lastObject")); +assertType(people.get("firstObject")); assertType(people.isAny("isHappy")); assertType(people.isAny("isHappy", "false")); @@ -25,7 +25,7 @@ const persons5: Person[] = people.filter(person => person.get("name") === "Yehud const persons6: MutableArray = people.filter(person => person.get("name") === "Yehuda"); assertType(people.get("[]")); -assertType(people.get("[]").get("firstObject")); // $ExpectType any +assertType(people.get("[]").get("firstObject")); // $ExpectType Person | undefined assertType(people.mapBy("isHappy")); // $ExpectType boolean[] assertType(people.mapBy("name.length")); diff --git a/types/ember__array/v3/tslint.json b/types/ember__array/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__array/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__component/tslint.json b/types/ember__component/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__component/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__component/v3/tslint.json b/types/ember__component/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__component/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__controller/tslint.json b/types/ember__controller/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__controller/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__controller/v3/tslint.json b/types/ember__controller/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__controller/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__debug/tslint.json b/types/ember__debug/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__debug/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__debug/v3/tslint.json b/types/ember__debug/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__debug/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__destroyable/tslint.json b/types/ember__destroyable/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__destroyable/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__destroyable/v3/tslint.json b/types/ember__destroyable/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__destroyable/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__engine/tslint.json b/types/ember__engine/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__engine/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__engine/v3/tslint.json b/types/ember__engine/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__engine/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__error/tslint.json b/types/ember__error/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__error/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__error/v3/tslint.json b/types/ember__error/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__error/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__helper/tslint.json b/types/ember__helper/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ember__helper/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ember__modifier/tslint.json b/types/ember__modifier/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ember__modifier/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ember__object/test/extend.ts b/types/ember__object/test/extend.ts index fd9cce57eb90a0..067eea2ed6437f 100644 --- a/types/ember__object/test/extend.ts +++ b/types/ember__object/test/extend.ts @@ -13,9 +13,6 @@ const Person = EmberObject.extend({ }, }); -assertType(Person.prototype.firstName); -assertType<() => string>(Person.prototype.getFullName); - const person = Person.create({ firstName: "Joe", lastName: "Blow", diff --git a/types/ember__object/test/reopen.ts b/types/ember__object/test/reopen.ts index 5e0d231ba86576..614c9ddd1af00e 100644 --- a/types/ember__object/test/reopen.ts +++ b/types/ember__object/test/reopen.ts @@ -2,7 +2,7 @@ import EmberObject from "@ember/object"; import Mixin from "@ember/object/mixin"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = EmberObject & { name: string; sayHello(): void }; const Person = EmberObject.extend({ name: "", sayHello() { @@ -10,7 +10,7 @@ const Person = EmberObject.extend({ }, }); -assertType(Person.reopen()); +assertType & { new(properties?: object | undefined): Person }>(Person.reopen()); assertType(Person.create().name); // tslint:disable-next-line no-void-expression diff --git a/types/ember__object/tslint.json b/types/ember__object/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__object/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__object/v3/test/extend.ts b/types/ember__object/v3/test/extend.ts index 009e8853523335..77cd9a4592f0ad 100644 --- a/types/ember__object/v3/test/extend.ts +++ b/types/ember__object/v3/test/extend.ts @@ -13,9 +13,6 @@ const Person = EmberObject.extend({ }, }); -assertType(Person.prototype.firstName); -assertType<() => string>(Person.prototype.getFullName); - const person = Person.create({ firstName: "Joe", lastName: "Blow", diff --git a/types/ember__object/v3/test/reopen.ts b/types/ember__object/v3/test/reopen.ts index 5e0d231ba86576..614c9ddd1af00e 100644 --- a/types/ember__object/v3/test/reopen.ts +++ b/types/ember__object/v3/test/reopen.ts @@ -2,7 +2,7 @@ import EmberObject from "@ember/object"; import Mixin from "@ember/object/mixin"; import { assertType } from "./lib/assert"; -type Person = typeof Person.prototype; +type Person = EmberObject & { name: string; sayHello(): void }; const Person = EmberObject.extend({ name: "", sayHello() { @@ -10,7 +10,7 @@ const Person = EmberObject.extend({ }, }); -assertType(Person.reopen()); +assertType & { new(properties?: object | undefined): Person }>(Person.reopen()); assertType(Person.create().name); // tslint:disable-next-line no-void-expression diff --git a/types/ember__object/v3/tslint.json b/types/ember__object/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__object/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__ordered-set/tslint.json b/types/ember__ordered-set/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/ember__ordered-set/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/ember__ordered-set/v3/tslint.json b/types/ember__ordered-set/v3/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/ember__ordered-set/v3/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/ember__owner/tslint.json b/types/ember__owner/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ember__owner/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ember__polyfills/tslint.json b/types/ember__polyfills/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__polyfills/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__polyfills/v3/tslint.json b/types/ember__polyfills/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__polyfills/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__routing/tslint.json b/types/ember__routing/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__routing/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__routing/v3/tslint.json b/types/ember__routing/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__routing/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__runloop/tslint.json b/types/ember__runloop/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__runloop/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__runloop/v3/tslint.json b/types/ember__runloop/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__runloop/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__service/tslint.json b/types/ember__service/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__service/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__service/v3/tslint.json b/types/ember__service/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__service/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__string/tslint.json b/types/ember__string/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__string/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__string/v2/tslint.json b/types/ember__string/v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__string/v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__template/tslint.json b/types/ember__template/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__template/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__template/v3/tslint.json b/types/ember__template/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__template/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__test/tslint.json b/types/ember__test/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__test/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__test/v3/tslint.json b/types/ember__test/v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ember__test/v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ember__utils/tslint.json b/types/ember__utils/tslint.json deleted file mode 100644 index 587dbcf010830e..00000000000000 --- a/types/ember__utils/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/ember__utils/v3/tslint.json b/types/ember__utils/v3/tslint.json deleted file mode 100644 index 587dbcf010830e..00000000000000 --- a/types/ember__utils/v3/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/emilbayes__capped-array/tslint.json b/types/emilbayes__capped-array/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/emilbayes__capped-array/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/emissary/tslint.json b/types/emissary/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/emissary/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/emmetio__implicit-tag/tslint.json b/types/emmetio__implicit-tag/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/emmetio__implicit-tag/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/emoji-flags/tslint.json b/types/emoji-flags/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/emoji-flags/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/emoji-js/tslint.json b/types/emoji-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/emoji-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/emoji-mart/dist-es/utils/shared-props.d.ts b/types/emoji-mart/dist-es/utils/shared-props.d.ts index 65a086487451e1..2de5e4d9a8fb05 100644 --- a/types/emoji-mart/dist-es/utils/shared-props.d.ts +++ b/types/emoji-mart/dist-es/utils/shared-props.d.ts @@ -2,6 +2,8 @@ import React = require("react"); import { CustomEmoji, EmojiData, EmojiSkin } from "./emoji-index/nimble-emoji-index"; +import { JSX } from "react"; + export type BackgroundImageFn = (set: EmojiSet, sheetSize: EmojiSheetSize) => string; export type EmojiSet = "apple" | "google" | "twitter" | "emojione" | "messenger" | "facebook"; export type EmojiSheetSize = 16 | 20 | 32 | 64; diff --git a/types/emoji-mart/tslint.json b/types/emoji-mart/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/emoji-mart/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/emoji-strip/tslint.json b/types/emoji-strip/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/emoji-strip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/emojione/tslint.json b/types/emojione/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/emojione/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/empower-core/tslint.json b/types/empower-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/empower-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/empower/tslint.json b/types/empower/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/empower/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/empty-dir/tslint.json b/types/empty-dir/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/empty-dir/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/emscripten/.eslintrc.json b/types/emscripten/.eslintrc.json index fbde7d1bc5a75b..b3141b3e2fe6e7 100644 --- a/types/emscripten/.eslintrc.json +++ b/types/emscripten/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/emscripten/tslint.json b/types/emscripten/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/emscripten/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/enamdict/tslint.json b/types/enamdict/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/enamdict/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/encodeurl/tslint.json b/types/encodeurl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/encodeurl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/encoding-down/tslint.json b/types/encoding-down/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/encoding-down/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/encoding-japanese/tslint.json b/types/encoding-japanese/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/encoding-japanese/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/end-of-stream/tslint.json b/types/end-of-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/end-of-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/engine-check/.eslintrc.json b/types/engine-check/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/engine-check/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/engine-check/tslint.json b/types/engine-check/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/engine-check/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/engine.io-client/tslint.json b/types/engine.io-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/engine.io-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/engine.io/tslint.json b/types/engine.io/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/engine.io/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/enigma.js/tslint.json b/types/enigma.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/enigma.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/enquire.js/tslint.json b/types/enquire.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/enquire.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ent/tslint.json b/types/ent/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ent/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/entropy-string/tslint.json b/types/entropy-string/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/entropy-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/entropy__winston-elasticsearch-apm/tslint.json b/types/entropy__winston-elasticsearch-apm/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/entropy__winston-elasticsearch-apm/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/env-ci/tslint.json b/types/env-ci/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/env-ci/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/env-to-object/tslint.json b/types/env-to-object/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/env-to-object/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/envhandlebars/tslint.json b/types/envhandlebars/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/envhandlebars/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/envify/tslint.json b/types/envify/tslint.json deleted file mode 100644 index bc40d8671b4c20..00000000000000 --- a/types/envify/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "one-variable-per-declaration": false, - "prefer-const": false - } -} diff --git a/types/envinfo/tslint.json b/types/envinfo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/envinfo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/enzyme-adapter-react-15.4/tslint.json b/types/enzyme-adapter-react-15.4/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/enzyme-adapter-react-15.4/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/enzyme-adapter-react-15/tslint.json b/types/enzyme-adapter-react-15/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/enzyme-adapter-react-15/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/enzyme-adapter-react-16/tslint.json b/types/enzyme-adapter-react-16/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/enzyme-adapter-react-16/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/enzyme-async-helpers/tslint.json b/types/enzyme-async-helpers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/enzyme-async-helpers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/enzyme-react-intl/tslint.json b/types/enzyme-react-intl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/enzyme-react-intl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/enzyme-redux/tslint.json b/types/enzyme-redux/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/enzyme-redux/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/enzyme-to-json/tslint.json b/types/enzyme-to-json/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/enzyme-to-json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/enzyme/index.d.ts b/types/enzyme/index.d.ts index c7836f33f6a14f..7c300258f20452 100644 --- a/types/enzyme/index.d.ts +++ b/types/enzyme/index.d.ts @@ -2,6 +2,7 @@ import { AllHTMLAttributes as ReactHTMLAttributes, Component, + JSX, ReactElement, SVGAttributes as ReactSVGAttributes, } from "react"; @@ -89,7 +90,7 @@ export interface CommonWrapper

> { invoke< K extends NonNullable< { - [K in keyof P]: P[K] extends ((...arg: any[]) => void) | undefined ? K : never; + [K in keyof P]-?: P[K] extends ((...arg: any[]) => void) | undefined ? K : never; }[keyof P] >, >( diff --git a/types/enzyme/tslint.json b/types/enzyme/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/enzyme/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/eonasdan-bootstrap-datetimepicker/tslint.json b/types/eonasdan-bootstrap-datetimepicker/tslint.json deleted file mode 100644 index 1d8e076d637147..00000000000000 --- a/types/eonasdan-bootstrap-datetimepicker/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-const-enum": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/epcis2.js/tslint.json b/types/epcis2.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/epcis2.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/epiceditor/tslint.json b/types/epiceditor/tslint.json deleted file mode 100644 index 206c5ac9b1af99..00000000000000 --- a/types/epiceditor/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/epilogue/tslint.json b/types/epilogue/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/epilogue/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/epub-gen/tslint.json b/types/epub-gen/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/epub-gen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/epub/tslint.json b/types/epub/tslint.json deleted file mode 100644 index 0b230fd6c89e0a..00000000000000 --- a/types/epub/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/eq.js/tslint.json b/types/eq.js/tslint.json deleted file mode 100644 index bc7a01009889d5..00000000000000 --- a/types/eq.js/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false - } -} diff --git a/types/eris-sharder/tslint.json b/types/eris-sharder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eris-sharder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/err/tslint.json b/types/err/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/err/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/error-cause/tslint.json b/types/error-cause/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/error-cause/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/error-subclass/tslint.json b/types/error-subclass/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/error-subclass/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/errorhandler/tslint.json b/types/errorhandler/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/errorhandler/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es-abstract/tslint.json b/types/es-abstract/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es-abstract/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es-aggregate-error/tslint.json b/types/es-aggregate-error/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es-aggregate-error/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es-feature-detection/tslint.json b/types/es-feature-detection/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es-feature-detection/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es-get-iterator/tslint.json b/types/es-get-iterator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es-get-iterator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es-to-primitive/tslint.json b/types/es-to-primitive/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es-to-primitive/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es-value-fixtures/tslint.json b/types/es-value-fixtures/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es-value-fixtures/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es6-collections/tslint.json b/types/es6-collections/tslint.json deleted file mode 100644 index 35d7c3f48d75f3..00000000000000 --- a/types/es6-collections/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/es6-promisify/tslint.json b/types/es6-promisify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es6-promisify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es6-set-proptypes/tslint.json b/types/es6-set-proptypes/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es6-set-proptypes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/es6-shim/tslint.json b/types/es6-shim/tslint.json deleted file mode 100644 index 5a91c157731bff..00000000000000 --- a/types/es6-shim/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-object-spread": false, - "unified-signatures": false - } -} diff --git a/types/es6-weak-map/.eslintrc.json b/types/es6-weak-map/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/es6-weak-map/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/es6-weak-map/tslint.json b/types/es6-weak-map/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/es6-weak-map/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/es6template/tslint.json b/types/es6template/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/es6template/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/esbuild-copy-static-files/tslint.json b/types/esbuild-copy-static-files/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/esbuild-copy-static-files/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/esbuild-plugin-import-map/tslint.json b/types/esbuild-plugin-import-map/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/esbuild-plugin-import-map/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/esbuild-vue/tslint.json b/types/esbuild-vue/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/esbuild-vue/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/esc-pos-encoder/tslint.json b/types/esc-pos-encoder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/esc-pos-encoder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/escape-html/tslint.json b/types/escape-html/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/escape-html/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/escape-latex/tslint.json b/types/escape-latex/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/escape-latex/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/escape-regexp/tslint.json b/types/escape-regexp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/escape-regexp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/escodegen/tslint.json b/types/escodegen/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/escodegen/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/escpos/tslint.json b/types/escpos/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/escpos/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/eseb__request-state/tslint.json b/types/eseb__request-state/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eseb__request-state/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint-ast-utils/tslint.json b/types/eslint-ast-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint-ast-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint-config-prettier/tslint.json b/types/eslint-config-prettier/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint-config-prettier/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint-plugin-markdown/tslint.json b/types/eslint-plugin-markdown/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint-plugin-markdown/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint-plugin-prettier/tslint.json b/types/eslint-plugin-prettier/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint-plugin-prettier/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint-scope/tslint.json b/types/eslint-scope/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint-scope/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint-utils/tslint.json b/types/eslint-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint/eslint-tests.ts b/types/eslint/eslint-tests.ts index 3fb3914af6f0c8..6bc0a5e8851f7e 100644 --- a/types/eslint/eslint-tests.ts +++ b/types/eslint/eslint-tests.ts @@ -750,7 +750,18 @@ linterWithFlatConfig.verify(SOURCE, [{ languageOptions: { ecmaVersion: "latest" linterWithFlatConfig.verify(SOURCE, [{ languageOptions: { ecmaVersion: 6 } }], "test.js"); linterWithFlatConfig.verify( SOURCE, - [{ languageOptions: { ecmaVersion: 6 } }], + [{ + languageOptions: { + ecmaVersion: 6, + globals: { + true: true, + false: false, + foo: "readonly", + bar: "writable", + baz: "off", + }, + }, + }], "test.js", ); @@ -941,6 +952,7 @@ let eslintConfig: Linter.Config; eslintConfig = { rules: { "capitalized-comments": [2, "always", { ignorePattern: "const|let" }], + "no-promise-executor-return": [2, { allowVoid: true }], "sort-keys": [2, "asc", { allowLineSeparatedGroups: true }], }, overrides: [{ @@ -1084,6 +1096,24 @@ ruleTester.run("simple-valid-test", rule, { // @ts-expect-error // Must be an array ((): Linter.FlatConfig => ({ ignores: "abc" })); +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: "error" } })); +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: "warn" } })); +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: "off" } })); +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: 2 } })); +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: 1 } })); +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: 0 } })); +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: true } })); +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: false } })); + +// @ts-expect-error +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: "on" } })); + +// @ts-expect-error +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: 3 } })); + +// @ts-expect-error +((): Linter.FlatConfig => ({ linterOptions: { reportUnusedDisableDirectives: null } })); + // The following _should_ be an error, but we can't enforce on consumers // as it requires exactOptionalPropertyTypes: true // (): Linter.FlatConfig => ({ files: undefined }); diff --git a/types/eslint/index.d.ts b/types/eslint/index.d.ts index 80e57b81546330..75ae420e38148c 100644 --- a/types/eslint/index.d.ts +++ b/types/eslint/index.d.ts @@ -1270,10 +1270,10 @@ export namespace Linter { noInlineConfig?: boolean; /** - * A boolean value indicating if unused disable directives should be + * A severity value indicating if and how unused disable directives should be * tracked and reported. */ - reportUnusedDisableDirectives?: boolean; + reportUnusedDisableDirectives?: Severity | StringSeverity | boolean; }; /** @@ -1335,8 +1335,12 @@ export class ESLint { export namespace ESLint { type ConfigData = Omit, "$schema">; + interface Globals { + [name: string]: boolean | "writable" | "readonly" | "off"; + } + interface Environment { - globals?: { [name: string]: boolean } | undefined; + globals?: Globals | undefined; parserOptions?: Linter.ParserOptions | undefined; } diff --git a/types/eslint/package.json b/types/eslint/package.json index 63acfbfdab9d99..48254a0254901a 100644 --- a/types/eslint/package.json +++ b/types/eslint/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/eslint", - "version": "8.44.9999", + "version": "8.56.9999", "projects": [ "https://eslint.org" ], diff --git a/types/eslint/rules/possible-errors.d.ts b/types/eslint/rules/possible-errors.d.ts index 8716ba484eb9eb..0f3b66b6213d34 100644 --- a/types/eslint/rules/possible-errors.d.ts +++ b/types/eslint/rules/possible-errors.d.ts @@ -355,6 +355,21 @@ export interface PossibleErrors extends Linter.RulesRecord { */ "no-obj-calls": Linter.RuleEntry<[]>; + /** + * Rule to disallow returning values from Promise executor functions. + * + * @since 7.3.0 + * @see https://eslint.org/docs/rules/no-promise-executor-return + */ + "no-promise-executor-return": Linter.RuleEntry<[ + { + /** + * @default false + */ + allowVoid?: boolean; + }, + ]>; + /** * Rule to disallow use of `Object.prototypes` builtins directly. * diff --git a/types/eslint/tslint.json b/types/eslint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint__eslintrc/tslint.json b/types/eslint__eslintrc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint__eslintrc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eslint__js/tslint.json b/types/eslint__js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eslint__js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/esm/tslint.json b/types/esm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/esm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/esprima-walk/tslint.json b/types/esprima-walk/tslint.json deleted file mode 100644 index 7293dc4b5ae32b..00000000000000 --- a/types/esprima-walk/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/esprima/tslint.json b/types/esprima/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/esprima/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/esprima/v2/tslint.json b/types/esprima/v2/tslint.json deleted file mode 100644 index 6000ad5ea2a112..00000000000000 --- a/types/esprima/v2/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/espruino/.eslintrc.json b/types/espruino/.eslintrc.json index 2421d37ce83cbd..a0d818c65177c0 100644 --- a/types/espruino/.eslintrc.json +++ b/types/espruino/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off", "@typescript-eslint/no-misused-new": "off", "@typescript-eslint/ban-types": "off" diff --git a/types/espruino/tslint.json b/types/espruino/tslint.json deleted file mode 100644 index db322cfff76ea0..00000000000000 --- a/types/espruino/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/esquery/tslint.json b/types/esquery/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/esquery/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/esrever/tslint.json b/types/esrever/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/esrever/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/esri-leaflet-geocoder/tslint.json b/types/esri-leaflet-geocoder/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/esri-leaflet-geocoder/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/esri-leaflet/tslint.json b/types/esri-leaflet/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/esri-leaflet/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/esri-leaflet/v2/tslint.json b/types/esri-leaflet/v2/tslint.json deleted file mode 100644 index c1806eec64e0be..00000000000000 --- a/types/esri-leaflet/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false - } -} diff --git a/types/estimate/tslint.json b/types/estimate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/estimate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/estimated-read-time/tslint.json b/types/estimated-read-time/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/estimated-read-time/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/estraverse/tslint.json b/types/estraverse/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/estraverse/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/estree-jsx/.eslintrc.json b/types/estree-jsx/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/estree-jsx/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/estree-jsx/tslint.json b/types/estree-jsx/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/estree-jsx/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/estree/tslint.json b/types/estree/tslint.json deleted file mode 100644 index 18d448e405363b..00000000000000 --- a/types/estree/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/esutils/tslint.json b/types/esutils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/esutils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/etag/tslint.json b/types/etag/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/etag/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eth-lightwallet/tslint.json b/types/eth-lightwallet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eth-lightwallet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eth-sig-util/tslint.json b/types/eth-sig-util/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eth-sig-util/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eth-url-parser/tslint.json b/types/eth-url-parser/tslint.json deleted file mode 100644 index 339c816fb4d8d0..00000000000000 --- a/types/eth-url-parser/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "code", - "errors": [ - ["NeedsExportEquals", false] - ] - } - ] - } -} diff --git a/types/ethereum-blockies/tslint.json b/types/ethereum-blockies/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ethereum-blockies/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ethereum-checksum-address/tslint.json b/types/ethereum-checksum-address/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ethereum-checksum-address/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ethereum-protocol/tslint.json b/types/ethereum-protocol/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ethereum-protocol/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ethereumjs-abi/tslint.json b/types/ethereumjs-abi/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/ethereumjs-abi/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/etherport-client/tslint.json b/types/etherport-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/etherport-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ethjs-signer/tslint.json b/types/ethjs-signer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ethjs-signer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ethjs-util/tslint.json b/types/ethjs-util/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ethjs-util/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/euclidean-distance/tslint.json b/types/euclidean-distance/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/euclidean-distance/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/euclidean-rhythms/tslint.json b/types/euclidean-rhythms/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/euclidean-rhythms/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/eureka-js-client/tslint.json b/types/eureka-js-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eureka-js-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/evaluatex/tslint.json b/types/evaluatex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/evaluatex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/evaporate/tslint.json b/types/evaporate/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/evaporate/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/event-emitter-es6/tslint.json b/types/event-emitter-es6/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/event-emitter-es6/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/event-emitter/tslint.json b/types/event-emitter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/event-emitter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/event-hooks-webpack-plugin/tslint.json b/types/event-hooks-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/event-hooks-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/event-kit/tslint.json b/types/event-kit/tslint.json deleted file mode 100644 index f2a138d850d412..00000000000000 --- a/types/event-kit/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-any": true - } -} diff --git a/types/event-loop-lag/tslint.json b/types/event-loop-lag/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/event-loop-lag/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/event-source-polyfill/tslint.json b/types/event-source-polyfill/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/event-source-polyfill/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/event-stream/tslint.json b/types/event-stream/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/event-stream/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/event-to-promise/tslint.json b/types/event-to-promise/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/event-to-promise/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/events.once/tslint.json b/types/events.once/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/events.once/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/events/tslint.json b/types/events/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/events/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/eventsource/.eslintrc.json b/types/eventsource/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/eventsource/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/eventsource/tslint.json b/types/eventsource/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/eventsource/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/evernote/tslint.json b/types/evernote/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/evernote/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ewma/tslint.json b/types/ewma/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ewma/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/exaroton/tslint.json b/types/exaroton/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/exaroton/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/excel-column-name/tslint.json b/types/excel-column-name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/excel-column-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/excel-style-dataformatter/tslint.json b/types/excel-style-dataformatter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/excel-style-dataformatter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/exchange-rates-api/tslint.json b/types/exchange-rates-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/exchange-rates-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/exenv/tslint.json b/types/exenv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/exenv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/exif/tslint.json b/types/exif/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/exif/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/exit/tslint.json b/types/exit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/exit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/exorcist/tslint.json b/types/exorcist/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/exorcist/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/expand-tilde/tslint.json b/types/expand-tilde/tslint.json deleted file mode 100644 index 94c7d46258c018..00000000000000 --- a/types/expand-tilde/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false - } -} diff --git a/types/expect-puppeteer/tslint.json b/types/expect-puppeteer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/expect-puppeteer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/expect.js/tslint.json b/types/expect.js/tslint.json deleted file mode 100644 index 7c75b241fa89fb..00000000000000 --- a/types/expect.js/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/expectations/tslint.json b/types/expectations/tslint.json deleted file mode 100644 index bc40d8671b4c20..00000000000000 --- a/types/expectations/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "one-variable-per-declaration": false, - "prefer-const": false - } -} diff --git a/types/expired-storage/tslint.json b/types/expired-storage/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/expired-storage/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/expired/tslint.json b/types/expired/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/expired/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/expirymanager/tslint.json b/types/expirymanager/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/expirymanager/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/expo-mixpanel-analytics/tslint.json b/types/expo-mixpanel-analytics/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/expo-mixpanel-analytics/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/expo__status-bar-height/tslint.json b/types/expo__status-bar-height/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/expo__status-bar-height/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-actuator/tslint.json b/types/express-actuator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-actuator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-as-promise/.npmignore b/types/express-as-promise/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/express-as-promise/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/express-as-promise/express-as-promise-tests.ts b/types/express-as-promise/express-as-promise-tests.ts new file mode 100644 index 00000000000000..7725f2278f3396 --- /dev/null +++ b/types/express-as-promise/express-as-promise-tests.ts @@ -0,0 +1,33 @@ +import ExpressAsPromise = require("express-as-promise"); +import withServer = require("express-as-promise/withServer"); +import { RequestHandler } from "express"; + +async function testStaticFunc() { + await withServer(async server => { + const myMiddleware: RequestHandler = {}; + server.app.use(myMiddleware); + + // $ExpectType string + const url = await server.listen(); + + // $ExpectType Response + const res = await fetch(url); + }); +} + +async function testClass() { + const server = new ExpressAsPromise(); + + server.app.get("/", (req, res) => { + res.send("Hello World!"); + }); + + // starts the listener and writes the base URL to the console + await server.listen(); + + // $ExpectType Response + const response = await server.fetch("/"); + + // ...then stop the server + await server.stop(); +} diff --git a/types/express-as-promise/index.d.ts b/types/express-as-promise/index.d.ts new file mode 100644 index 00000000000000..301554efebbd1e --- /dev/null +++ b/types/express-as-promise/index.d.ts @@ -0,0 +1,19 @@ +import { Express } from "express"; +import { Server } from "http"; + +declare class ExpressAsPromise { + server: Server | null; + app: Express; + + get host(): string; + get port(): string; + get url(): string; + + listen(port?: number, host?: string): Promise; + stop(): Promise; + fetch(pathname: string, options?: RequestInit): Promise; + + static withServer(callback: (server: ExpressAsPromise) => Promise): Promise; +} + +export = ExpressAsPromise; diff --git a/types/express-as-promise/package.json b/types/express-as-promise/package.json new file mode 100644 index 00000000000000..0aeffdf0301d00 --- /dev/null +++ b/types/express-as-promise/package.json @@ -0,0 +1,24 @@ +{ + "private": true, + "name": "@types/express-as-promise", + "version": "1.2.9999", + "projects": [ + "https://github.com/bergos/express-as-promise" + ], + "dependencies": { + "@types/express": "*" + }, + "devDependencies": { + "@types/express-as-promise": "workspace:." + }, + "owners": [ + { + "name": "Tomasz Pluskiewicz", + "githubUsername": "tpluscode" + }, + { + "name": "Ludovic Muller", + "githubUsername": "ludovicm67" + } + ] +} diff --git a/types/express-as-promise/tsconfig.json b/types/express-as-promise/tsconfig.json new file mode 100644 index 00000000000000..3a9d94cea5e776 --- /dev/null +++ b/types/express-as-promise/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "DOM" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "withServer.d.ts", + "express-as-promise-tests.ts" + ] +} diff --git a/types/express-as-promise/withServer.d.ts b/types/express-as-promise/withServer.d.ts new file mode 100644 index 00000000000000..ecc739bfd2a34d --- /dev/null +++ b/types/express-as-promise/withServer.d.ts @@ -0,0 +1,5 @@ +import ExpressAsPromise = require("./index"); + +declare function withServer(callback: (server: ExpressAsPromise) => Promise): Promise; + +export = withServer; diff --git a/types/express-async-wrap/tslint.json b/types/express-async-wrap/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-async-wrap/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-boom/tslint.json b/types/express-boom/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/express-boom/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/express-brute-memcached/tslint.json b/types/express-brute-memcached/tslint.json deleted file mode 100644 index 98b68e5c331b9f..00000000000000 --- a/types/express-brute-memcached/tslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [["NeedsExportEquals", false]], - "mode": "code" - } - ], - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/express-brute-mongo/tslint.json b/types/express-brute-mongo/tslint.json deleted file mode 100644 index fce5eccdb06ede..00000000000000 --- a/types/express-brute-mongo/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false - } -} diff --git a/types/express-brute-redis/tslint.json b/types/express-brute-redis/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-brute-redis/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-brute/tslint.json b/types/express-brute/tslint.json deleted file mode 100644 index 7293dc4b5ae32b..00000000000000 --- a/types/express-brute/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/express-bunyan-logger/tslint.json b/types/express-bunyan-logger/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-bunyan-logger/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-busboy/tslint.json b/types/express-busboy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-busboy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-cache-response-directive/tslint.json b/types/express-cache-response-directive/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-cache-response-directive/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-cluster/tslint.json b/types/express-cluster/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-cluster/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-conditional-middleware/tslint.json b/types/express-conditional-middleware/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-conditional-middleware/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-correlation-id/tslint.json b/types/express-correlation-id/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-correlation-id/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-debug/tslint.json b/types/express-debug/tslint.json deleted file mode 100644 index f7eeea0e56d4e1..00000000000000 --- a/types/express-debug/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/express-delay-header/tslint.json b/types/express-delay-header/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-delay-header/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-domain-middleware/tslint.json b/types/express-domain-middleware/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/express-domain-middleware/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/express-ejs-layouts/tslint.json b/types/express-ejs-layouts/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/express-ejs-layouts/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/express-enforces-ssl/tslint.json b/types/express-enforces-ssl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-enforces-ssl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-fileupload/tslint.json b/types/express-fileupload/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-fileupload/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-flash-2/tslint.json b/types/express-flash-2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-flash-2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-flash-notification/tslint.json b/types/express-flash-notification/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-flash-notification/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-flash/tslint.json b/types/express-flash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-flash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-form-data/tslint.json b/types/express-form-data/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-form-data/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-formidable/tslint.json b/types/express-formidable/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/express-formidable/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/express-healthcheck/tslint.json b/types/express-healthcheck/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-healthcheck/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-http-proxy/tslint.json b/types/express-http-proxy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-http-proxy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-jsonschema/tslint.json b/types/express-jsonschema/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-jsonschema/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-legacy-expires/tslint.json b/types/express-legacy-expires/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-legacy-expires/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-less/tslint.json b/types/express-less/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/express-less/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/express-list-endpoints/tslint.json b/types/express-list-endpoints/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/express-list-endpoints/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/express-locale/tslint.json b/types/express-locale/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-locale/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-minify/tslint.json b/types/express-minify/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/express-minify/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/express-multipart-file-parser/tslint.json b/types/express-multipart-file-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-multipart-file-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-mung/tslint.json b/types/express-mung/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/express-mung/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/express-myconnection/tslint.json b/types/express-myconnection/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/express-myconnection/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/express-mysql-session/tslint.json b/types/express-mysql-session/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-mysql-session/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-ntlm/tslint.json b/types/express-ntlm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-ntlm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-oauth-server/tslint.json b/types/express-oauth-server/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-oauth-server/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-paginate/tslint.json b/types/express-paginate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-paginate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-partials/tslint.json b/types/express-partials/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/express-partials/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/express-pino-logger/tslint.json b/types/express-pino-logger/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-pino-logger/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-preconditions/tslint.json b/types/express-preconditions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-preconditions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-processimage/tslint.json b/types/express-processimage/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-processimage/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-prometheus-middleware/tslint.json b/types/express-prometheus-middleware/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-prometheus-middleware/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-redis-cache/tslint.json b/types/express-redis-cache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-redis-cache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-requests-logger/tslint.json b/types/express-requests-logger/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-requests-logger/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-route-fs/tslint.json b/types/express-route-fs/tslint.json deleted file mode 100644 index 1121daa0cd931e..00000000000000 --- a/types/express-route-fs/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/express-routemap/tslint.json b/types/express-routemap/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-routemap/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-routes-versioning/tslint.json b/types/express-routes-versioning/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-routes-versioning/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-sanitized/tslint.json b/types/express-sanitized/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-sanitized/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-serve-static-core/.eslintrc.json b/types/express-serve-static-core/.eslintrc.json index 7cb0a6457407b1..fbf7446cec0677 100644 --- a/types/express-serve-static-core/.eslintrc.json +++ b/types/express-serve-static-core/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/express-serve-static-core/tslint.json b/types/express-serve-static-core/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/express-serve-static-core/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/express-session/tslint.json b/types/express-session/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-session/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-simple-locale/tslint.json b/types/express-simple-locale/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-simple-locale/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-sitemap-xml/tslint.json b/types/express-sitemap-xml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-sitemap-xml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-slow-down/tslint.json b/types/express-slow-down/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-slow-down/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-socket.io-session/tslint.json b/types/express-socket.io-session/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-socket.io-session/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-sslify/tslint.json b/types/express-sslify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-sslify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-status-monitor/tslint.json b/types/express-status-monitor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-status-monitor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-to-koa/tslint.json b/types/express-to-koa/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-to-koa/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-ua-middleware/tslint.json b/types/express-ua-middleware/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-ua-middleware/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-useragent/tslint.json b/types/express-useragent/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/express-useragent/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/express-useragent/v0/tslint.json b/types/express-useragent/v0/tslint.json deleted file mode 100644 index 0146d9b21d2ebe..00000000000000 --- a/types/express-useragent/v0/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-type-assertion": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/express-version-request/tslint.json b/types/express-version-request/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/express-version-request/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/express-version-route/tslint.json b/types/express-version-route/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/express-version-route/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/express-wechat-access/.eslintrc.json b/types/express-wechat-access/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/express-wechat-access/.eslintrc.json +++ b/types/express-wechat-access/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/express-wechat-access/tslint.json b/types/express-wechat-access/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/express-wechat-access/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/express-ws-routes/tslint.json b/types/express-ws-routes/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/express-ws-routes/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/express-ws/tslint.json b/types/express-ws/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-ws/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express-xml-bodyparser/tslint.json b/types/express-xml-bodyparser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/express-xml-bodyparser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/express/tslint.json b/types/express/tslint.json deleted file mode 100644 index 3bacd2cecf715e..00000000000000 --- a/types/express/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-namespace": false, - "no-var-keyword": false - } -} diff --git a/types/extend/tslint.json b/types/extend/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extend/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/extensible-duck/tslint.json b/types/extensible-duck/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extensible-duck/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/extenso/tslint.json b/types/extenso/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extenso/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/extjs/.eslintrc.json b/types/extjs/.eslintrc.json index 6052192c14f4e7..d15a11db6c67a6 100644 --- a/types/extjs/.eslintrc.json +++ b/types/extjs/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/extjs/tslint.json b/types/extjs/tslint.json deleted file mode 100644 index 06bd485f9edddd..00000000000000 --- a/types/extjs/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-mergeable-namespace": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "prefer-const": false - } -} diff --git a/types/extra-watch-webpack-plugin/tslint.json b/types/extra-watch-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extra-watch-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/extract-colors/tslint.json b/types/extract-colors/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extract-colors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/extract-domain/tslint.json b/types/extract-domain/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extract-domain/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/extract-files/extract-files-tests.ts b/types/extract-files/extract-files-tests.ts index 899013a0b7dc49..47589c98eb7182 100644 --- a/types/extract-files/extract-files-tests.ts +++ b/types/extract-files/extract-files-tests.ts @@ -1,8 +1,5 @@ -import { extractFiles, ReactNativeFile, ReactNativeFileOptions } from "extract-files"; - -const options: ReactNativeFileOptions = { name: "", type: "", uri: "" }; - -new ReactNativeFile(options); +import extractFiles from "extract-files/extractFiles.mjs"; +import isExtractableFile from "extract-files/isExtractableFile.mjs"; interface StreamLike { pipe: () => void; @@ -12,6 +9,6 @@ interface StreamLike { const isStreamLike = (value: any): value is StreamLike => value !== null && typeof value === "object" && typeof value.pipe === "function"; -extractFiles({}, "", isStreamLike); +extractFiles({}, isStreamLike, ""); -extractFiles({}); +extractFiles({}, isExtractableFile); diff --git a/types/extract-files/extractFiles.d.mts b/types/extract-files/extractFiles.d.mts new file mode 100644 index 00000000000000..74250aad6665ab --- /dev/null +++ b/types/extract-files/extractFiles.d.mts @@ -0,0 +1,15 @@ +export default function extractFiles( + value: unknown, + isExtractable: (value: unknown) => value is Extractable, + path?: string, + ...args: any[] +): Extraction; + +export type isExtractableFile = typeof import("./isExtractableFile.mjs").default; + +export interface Extraction { + clone: unknown; + files: Map; +} + +export type ObjectPath = string; diff --git a/types/extract-files/index.d.ts b/types/extract-files/index.d.ts index 669c6e09ad6908..74a0043c64b73f 100644 --- a/types/extract-files/index.d.ts +++ b/types/extract-files/index.d.ts @@ -1,26 +1,4 @@ -export interface ReactNativeFileOptions { - uri: string; - type?: string | undefined; - name?: string | undefined; -} - -export class ReactNativeFile { - uri: string; - type?: string | undefined; - name?: string | undefined; - - constructor(options: ReactNativeFileOptions); -} - -export type ExtractableFile = File | Blob | ReactNativeFile; - -export function isExtractableFile(value: any): value is ExtractableFile; - -export function extractFiles( - value: any, - path?: string, - isExtractableFile?: (value: any) => value is TFile, -): { - clone: any; - files: Map; -}; +// Despite not having any definitions, this file must exist on DefinitelyTyped. +// Currently, the tooling assumes that this file exists and performs extra lints, +// as well as using it to figure out where things are. +export {}; diff --git a/types/extract-files/isExtractableFile.d.mts b/types/extract-files/isExtractableFile.d.mts new file mode 100644 index 00000000000000..1ae9c3ac816697 --- /dev/null +++ b/types/extract-files/isExtractableFile.d.mts @@ -0,0 +1,3 @@ +export default function isExtractableFile(value: unknown): value is ExtractableFile; + +export type ExtractableFile = File | Blob; diff --git a/types/extract-files/package.json b/types/extract-files/package.json index 268ae032b0d863..77dcf66c74e041 100644 --- a/types/extract-files/package.json +++ b/types/extract-files/package.json @@ -1,10 +1,19 @@ { "private": true, "name": "@types/extract-files", - "version": "8.1.9999", + "version": "13.0.9999", "projects": [ "https://github.com/jaydenseric/extract-files#readme" ], + "exports": { + "./extractFiles.mjs": { + "types": "./extractFiles.d.mts" + }, + "./isExtractableFile.mjs": { + "types": "./isExtractableFile.d.mts" + }, + "./package.json": "./package.json" + }, "devDependencies": { "@types/extract-files": "workspace:." }, diff --git a/types/extract-files/tsconfig.json b/types/extract-files/tsconfig.json index 174b4a8304e138..8a888194aaa5f8 100644 --- a/types/extract-files/tsconfig.json +++ b/types/extract-files/tsconfig.json @@ -15,6 +15,8 @@ }, "files": [ "index.d.ts", + "extractFiles.d.mts", + "isExtractableFile.d.mts", "extract-files-tests.ts" ] } diff --git a/types/extract-files/tslint.json b/types/extract-files/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extract-files/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/extract-text-webpack-plugin/tslint.json b/types/extract-text-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extract-text-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/extsprintf/tslint.json b/types/extsprintf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/extsprintf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/eyes/tslint.json b/types/eyes/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/eyes/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/eyevinn-iaf/tslint.json b/types/eyevinn-iaf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/eyevinn-iaf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ez-plus/tslint.json b/types/ez-plus/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ez-plus/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/f1/tslint.json b/types/f1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/f1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fabric/tslint.json b/types/fabric/tslint.json deleted file mode 100644 index f5297fb569dffc..00000000000000 --- a/types/fabric/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "unified-signatures": false - } -} diff --git a/types/facebook-instant-games/.eslintrc.json b/types/facebook-instant-games/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/facebook-instant-games/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/facebook-instant-games/tslint.json b/types/facebook-instant-games/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/facebook-instant-games/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/facebook-js-sdk/.eslintrc.json b/types/facebook-js-sdk/.eslintrc.json index 0ef1734492af0c..b9029d4f2d6fe5 100644 --- a/types/facebook-js-sdk/.eslintrc.json +++ b/types/facebook-js-sdk/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/no-unnecessary-generics": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/facebook-js-sdk/tslint.json b/types/facebook-js-sdk/tslint.json deleted file mode 100644 index 03f4042ad09a28..00000000000000 --- a/types/facebook-js-sdk/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/facebook-locales/tslint.json b/types/facebook-locales/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/facebook-locales/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/facebook-nodejs-business-sdk/tslint.json b/types/facebook-nodejs-business-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/facebook-nodejs-business-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/facebook-pixel/.eslintrc.json b/types/facebook-pixel/.eslintrc.json index 5882680ad57e8a..4559bd4a8869d4 100644 --- a/types/facebook-pixel/.eslintrc.json +++ b/types/facebook-pixel/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/prefer-namespace": "off" } } diff --git a/types/facebook-pixel/tslint.json b/types/facebook-pixel/tslint.json deleted file mode 100644 index 2f6bef3df3322d..00000000000000 --- a/types/facebook-pixel/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/facepaint/tslint.json b/types/facepaint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/facepaint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/factory-girl-objection-adapter/package.json b/types/factory-girl-objection-adapter/package.json index 4570a526297d13..53472deeab5416 100644 --- a/types/factory-girl-objection-adapter/package.json +++ b/types/factory-girl-objection-adapter/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/factory-girl-objection-adapter", - "version": "5.0.9999", + "version": "1.0.9999", "projects": [ "https://github.com/smooth-code/factory-girl-objection-adapter" ], diff --git a/types/factory-girl-objection-adapter/tslint.json b/types/factory-girl-objection-adapter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/factory-girl-objection-adapter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/factory-girl/tslint.json b/types/factory-girl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/factory-girl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fail-on-errors-webpack-plugin/tslint.json b/types/fail-on-errors-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fail-on-errors-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fake-diff/tslint.json b/types/fake-diff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fake-diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fake-lodash-pure-js/tslint.json b/types/fake-lodash-pure-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fake-lodash-pure-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fake-useragent/tslint.json b/types/fake-useragent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fake-useragent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/falafel/tslint.json b/types/falafel/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/falafel/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/falcor-express/tslint.json b/types/falcor-express/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/falcor-express/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/falcor-http-datasource/tslint.json b/types/falcor-http-datasource/tslint.json deleted file mode 100644 index fbc55d52271014..00000000000000 --- a/types/falcor-http-datasource/tslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/falcor-json-graph/tslint.json b/types/falcor-json-graph/tslint.json deleted file mode 100644 index 8c5aa77e6abb4a..00000000000000 --- a/types/falcor-json-graph/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/falcor-router/tslint.json b/types/falcor-router/tslint.json deleted file mode 100644 index 5b900510f2b338..00000000000000 --- a/types/falcor-router/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false - } -} diff --git a/types/falcor/tslint.json b/types/falcor/tslint.json deleted file mode 100644 index f1b5591ab0ae50..00000000000000 --- a/types/falcor/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [["NeedsExportEquals", false]], - "mode": "code" - } - ] - } -} diff --git a/types/famous/tslint.json b/types/famous/tslint.json deleted file mode 100644 index 6b5d1c496d63b2..00000000000000 --- a/types/famous/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false - } -} diff --git a/types/fancade-editor/tslint.json b/types/fancade-editor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fancade-editor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fancy-log/tslint.json b/types/fancy-log/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fancy-log/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fancybox/tslint.json b/types/fancybox/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fancybox/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/farbtastic/.eslintrc.json b/types/farbtastic/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/farbtastic/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/farbtastic/tslint.json b/types/farbtastic/tslint.json deleted file mode 100644 index b216ac508cfae1..00000000000000 --- a/types/farbtastic/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/fast-als/tslint.json b/types/fast-als/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fast-als/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fast-astar/tslint.json b/types/fast-astar/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fast-astar/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fast-chunk-string/tslint.json b/types/fast-chunk-string/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-chunk-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-crc32c/tslint.json b/types/fast-crc32c/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-crc32c/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-fifo/tslint.json b/types/fast-fifo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-fifo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-html-parser/tslint.json b/types/fast-html-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-html-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-isnumeric/tslint.json b/types/fast-isnumeric/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-isnumeric/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-levenshtein/tslint.json b/types/fast-levenshtein/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/fast-levenshtein/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/fast-list/tslint.json b/types/fast-list/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fast-list/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fast-memory-cache/tslint.json b/types/fast-memory-cache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-memory-cache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-password-entropy/tslint.json b/types/fast-password-entropy/tslint.json deleted file mode 100755 index 794cb4bf3e0782..00000000000000 --- a/types/fast-password-entropy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-ratelimit/tslint.json b/types/fast-ratelimit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-ratelimit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-redact/tslint.json b/types/fast-redact/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-redact/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-shuffle/tslint.json b/types/fast-shuffle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-shuffle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast-stats/tslint.json b/types/fast-stats/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/fast-stats/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/fast-text-encoding/tslint.json b/types/fast-text-encoding/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast-text-encoding/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast64/tslint.json b/types/fast64/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast64/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fast9/tslint.json b/types/fast9/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fast9/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fastbitset/tslint.json b/types/fastbitset/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fastbitset/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fastclick/tslint.json b/types/fastclick/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/fastclick/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/fastestsmallesttextencoderdecoder/tslint.json b/types/fastestsmallesttextencoderdecoder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fastestsmallesttextencoderdecoder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/favico.js/tslint.json b/types/favico.js/tslint.json deleted file mode 100644 index 5969b866225fc8..00000000000000 --- a/types/favico.js/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/fb-watchman/tslint.json b/types/fb-watchman/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fb-watchman/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fbdl-core/tslint.json b/types/fbdl-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fbdl-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fbemitter/tslint.json b/types/fbemitter/tslint.json deleted file mode 100644 index 75606c70e86392..00000000000000 --- a/types/fbemitter/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/fbjs/tslint.json b/types/fbjs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fbjs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fbt/index.d.ts b/types/fbt/index.d.ts index 6b321a437b9df4..e5d228c9730558 100644 --- a/types/fbt/index.d.ts +++ b/types/fbt/index.d.ts @@ -269,7 +269,7 @@ export interface FbtProps extends FbtOptions { desc: string; } -declare global { +declare module "react" { namespace JSX { type PropsWithChildren

= P & { children?: React.ReactNode | undefined }; type PropsWithStringChild

= P & { children?: string | string[] | undefined }; diff --git a/types/fbt/tslint.json b/types/fbt/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fbt/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fcostarodrigo__walk/tslint.json b/types/fcostarodrigo__walk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fcostarodrigo__walk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/feather-icons/tslint.json b/types/feather-icons/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/feather-icons/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/feather-route-matcher/tslint.json b/types/feather-route-matcher/tslint.json deleted file mode 100644 index 9dc6bf2450052b..00000000000000 --- a/types/feather-route-matcher/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "name-only" - } - ] - } -} diff --git a/types/featherlight/.eslintrc.json b/types/featherlight/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/featherlight/.eslintrc.json +++ b/types/featherlight/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/featherlight/tslint.json b/types/featherlight/tslint.json deleted file mode 100644 index 9da869b2d00ed6..00000000000000 --- a/types/featherlight/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "new-parens": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/feathersjs__authentication-client/tslint.json b/types/feathersjs__authentication-client/tslint.json deleted file mode 100644 index 292d3b3428908d..00000000000000 --- a/types/feathersjs__authentication-client/tslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - }, - "strict-export-declare-modifiers": false -} diff --git a/types/feathersjs__authentication-jwt/tslint.json b/types/feathersjs__authentication-jwt/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__authentication-jwt/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__authentication-local/tslint.json b/types/feathersjs__authentication-local/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__authentication-local/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__authentication-oauth1/tslint.json b/types/feathersjs__authentication-oauth1/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__authentication-oauth1/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__authentication-oauth2/tslint.json b/types/feathersjs__authentication-oauth2/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__authentication-oauth2/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__authentication/tslint.json b/types/feathersjs__authentication/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__authentication/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__configuration/tslint.json b/types/feathersjs__configuration/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__configuration/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__errors/tslint.json b/types/feathersjs__errors/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/feathersjs__errors/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/feathersjs__express/tslint.json b/types/feathersjs__express/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__express/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__feathers/tslint.json b/types/feathersjs__feathers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/feathersjs__feathers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/feathersjs__primus-client/tslint.json b/types/feathersjs__primus-client/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__primus-client/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__primus/tslint.json b/types/feathersjs__primus/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__primus/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__rest-client/tslint.json b/types/feathersjs__rest-client/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__rest-client/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__socket-commons/tslint.json b/types/feathersjs__socket-commons/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__socket-commons/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__socketio-client/tslint.json b/types/feathersjs__socketio-client/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/feathersjs__socketio-client/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/feathersjs__socketio/tslint.json b/types/feathersjs__socketio/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/feathersjs__socketio/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/feedparser/tslint.json b/types/feedparser/tslint.json deleted file mode 100644 index 321eec3d5c8850..00000000000000 --- a/types/feedparser/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-conditional-assignment": false - } -} diff --git a/types/feflow__cli/tslint.json b/types/feflow__cli/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/feflow__cli/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fernet/tslint.json b/types/fernet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fernet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fetch-headers/tslint.json b/types/fetch-headers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fetch-headers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fetch-meta-tags/tslint.json b/types/fetch-meta-tags/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fetch-meta-tags/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fetch-mock/tslint.json b/types/fetch-mock/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fetch-mock/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fetch-mock/v6/tslint.json b/types/fetch-mock/v6/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fetch-mock/v6/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fetch.io/tslint.json b/types/fetch.io/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/fetch.io/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/ffbinaries/tslint.json b/types/ffbinaries/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ffbinaries/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ffi-napi/tslint.json b/types/ffi-napi/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ffi-napi/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ffi/.eslintrc.json b/types/ffi/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/ffi/.eslintrc.json +++ b/types/ffi/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/ffi/tslint.json b/types/ffi/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/ffi/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/ffmpeg-concat/tslint.json b/types/ffmpeg-concat/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ffmpeg-concat/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ffmpeg-installer__ffmpeg/tslint.json b/types/ffmpeg-installer__ffmpeg/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ffmpeg-installer__ffmpeg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ffmpeg-static/tslint.json b/types/ffmpeg-static/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ffmpeg-static/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ffmpeg.js/tslint.json b/types/ffmpeg.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ffmpeg.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ffmpeg/.eslintrc.json b/types/ffmpeg/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/ffmpeg/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/ffmpeg/tslint.json b/types/ffmpeg/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/ffmpeg/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/ffmpeg__libav-core/tslint.json b/types/ffmpeg__libav-core/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ffmpeg__libav-core/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ffprobe-static/tslint.json b/types/ffprobe-static/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ffprobe-static/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ffprobe/tslint.json b/types/ffprobe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ffprobe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fg-loadcss/tslint.json b/types/fg-loadcss/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fg-loadcss/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fhir-js-client/tslint.json b/types/fhir-js-client/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fhir-js-client/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fhir/.eslintrc.json b/types/fhir/.eslintrc.json index 4d648c6ccfc2a2..3df3fe1814c270 100644 --- a/types/fhir/.eslintrc.json +++ b/types/fhir/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/prefer-namespace": "off", "@typescript-eslint/no-empty-interface": "off" } diff --git a/types/fhir/tslint.json b/types/fhir/tslint.json deleted file mode 100644 index 0913fb37e87d0c..00000000000000 --- a/types/fhir/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-invalid-template-strings": false, - "no-irregular-whitespace": false, - "npm-naming": false - } -} diff --git a/types/fibers/tslint.json b/types/fibers/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fibers/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fibjs/.eslintrc.json b/types/fibjs/.eslintrc.json index d8095d3d6fc218..4361c7400575d5 100644 --- a/types/fibjs/.eslintrc.json +++ b/types/fibjs/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/strict-export-declare-modifiers": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/prefer-namespace": "off" } diff --git a/types/fibjs/tslint.json b/types/fibjs/tslint.json deleted file mode 100644 index 9283595d43f0e3..00000000000000 --- a/types/fibjs/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/field/tslint.json b/types/field/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/field/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/figlet/tslint.json b/types/figlet/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/figlet/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/figma/.eslintrc.json b/types/figma/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/figma/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/figma/tslint.json b/types/figma/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/figma/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/file-entry-cache/tslint.json b/types/file-entry-cache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/file-entry-cache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/file-exists/tslint.json b/types/file-exists/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/file-exists/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/file-fetch/tslint.json b/types/file-fetch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/file-fetch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/file-loader/tslint.json b/types/file-loader/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/file-loader/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/file-manager/tslint.json b/types/file-manager/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/file-manager/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/file-saver-es/tslint.json b/types/file-saver-es/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/file-saver-es/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/file-saver/tslint.json b/types/file-saver/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/file-saver/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/file-size/tslint.json b/types/file-size/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/file-size/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/filemaker-webviewer/tslint.json b/types/filemaker-webviewer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/filemaker-webviewer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/filesize-parser/tslint.json b/types/filesize-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/filesize-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/filestack-react/tslint.json b/types/filestack-react/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/filestack-react/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/filesystem/tslint.json b/types/filesystem/tslint.json deleted file mode 100644 index a5704b736a95e8..00000000000000 --- a/types/filesystem/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false - } -} diff --git a/types/filewriter/.eslintrc.json b/types/filewriter/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/filewriter/.eslintrc.json +++ b/types/filewriter/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/filewriter/tslint.json b/types/filewriter/tslint.json deleted file mode 100644 index 352822772455e6..00000000000000 --- a/types/filewriter/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/filing-cabinet/tslint.json b/types/filing-cabinet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/filing-cabinet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fill-pdf/tslint.json b/types/fill-pdf/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/fill-pdf/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/fill-range/tslint.json b/types/fill-range/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fill-range/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/filter-css/tslint.json b/types/filter-css/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/filter-css/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/final-form-focus/tslint.json b/types/final-form-focus/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/final-form-focus/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/final-form-set-field-data/tslint.json b/types/final-form-set-field-data/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/final-form-set-field-data/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/final-form-set-field-touched/tslint.json b/types/final-form-set-field-touched/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/final-form-set-field-touched/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/finalhandler/tslint.json b/types/finalhandler/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/finalhandler/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/finch/.eslintrc.json b/types/finch/.eslintrc.json index 39233e1b130c38..2b105821edf1f6 100644 --- a/types/finch/.eslintrc.json +++ b/types/finch/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-declare-current-package": "off", - "@definitelytyped/no-single-declare-module": "off" + "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/finch/tslint.json b/types/finch/tslint.json deleted file mode 100644 index 5382196945b531..00000000000000 --- a/types/finch/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-void-expression": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/find-config/tslint.json b/types/find-config/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-config/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-down/tslint.json b/types/find-down/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-down/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-duplicated-property-keys/tslint.json b/types/find-duplicated-property-keys/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-duplicated-property-keys/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-exec/tslint.json b/types/find-exec/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-exec/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-imports/tslint.json b/types/find-imports/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-imports/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-in-files/tslint.json b/types/find-in-files/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-in-files/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-node-modules/tslint.json b/types/find-node-modules/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-node-modules/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-package-json/tslint.json b/types/find-package-json/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-package-json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-parent-dir/tslint.json b/types/find-parent-dir/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/find-parent-dir/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/find-pkg-dir/tslint.json b/types/find-pkg-dir/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-pkg-dir/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-project-root/tslint.json b/types/find-project-root/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/find-project-root/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/find-remove/tslint.json b/types/find-remove/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-remove/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-replace/tslint.json b/types/find-replace/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-replace/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-root/tslint.json b/types/find-root/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/find-root/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/find-test-names/tslint.json b/types/find-test-names/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-test-names/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find-unused-sass-variables/tslint.json b/types/find-unused-sass-variables/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find-unused-sass-variables/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/find/tslint.json b/types/find/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/find/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/findandreplacedomtext/tslint.json b/types/findandreplacedomtext/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/findandreplacedomtext/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/findup-sync/tslint.json b/types/findup-sync/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/findup-sync/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fined/tslint.json b/types/fined/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fined/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fingerpose/.npmignore b/types/fingerpose/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/fingerpose/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/fingerpose/fingerpose-tests.ts b/types/fingerpose/fingerpose-tests.ts new file mode 100644 index 00000000000000..85ea5c6bee4e01 --- /dev/null +++ b/types/fingerpose/fingerpose-tests.ts @@ -0,0 +1,60 @@ +import { Finger, FingerCurl, FingerDirection, GestureDescription, GestureEstimator, Gestures } from "fingerpose"; + +function assert(condition: boolean, message: string) { +} + +const customGesture = new GestureDescription("CustomGesture"); +customGesture.addCurl(Finger.Index, FingerCurl.HalfCurl); +customGesture.addDirection(Finger.Index, FingerDirection.HorizontalRight); + +const customCurls = [FingerCurl.HalfCurl, FingerCurl.NoCurl]; +const customDirections = [FingerDirection.HorizontalRight, FingerDirection.VerticalUp]; + +const customMatchScore = customGesture.matchAgainst(customCurls, customDirections); +assert(customMatchScore > 0.5, "Custom gesture matching failed"); + +const estimator = new GestureEstimator([customGesture]); + +const points = [ + { + x: 0, + y: 0, + z: 0, + }, + { + x: 1, + y: 1, + z: 1, + }, + { + x: 2, + y: 2, + z: 2, + }, +]; + +const { gestures, poseData } = estimator.estimate(points, 7); + +assert(gestures.length === 1, "Estimator failed to detect custom gesture"); +assert(gestures[0].name === "CustomGesture", "Estimator failed to detect custom gesture"); +assert(poseData.length === 1, "Estimator failed to detect custom gesture"); + +// Add tests for poseData +assert(poseData[0][0] === "Thumb", "Incorrect finger name in poseData"); +assert(poseData[0][1] === "No Curl", "Incorrect finger curl in poseData"); +assert(poseData[0][2] === "Vertical Up", "Incorrect finger direction in poseData"); + +const victoryGesture = Gestures.VictoryGesture; +const thumbsUpGesture = Gestures.ThumbsUpGesture; + +const victoryCurls = [FingerCurl.NoCurl, FingerCurl.FullCurl]; +const victoryDirections = [FingerDirection.VerticalUp, FingerDirection.HorizontalRight]; + +const victoryMatchScore = victoryGesture.matchAgainst(victoryCurls, victoryDirections); +assert(victoryMatchScore > 0.8, "Victory gesture matching failed"); + +const thumbsUpCurls = [FingerCurl.HalfCurl, FingerCurl.FullCurl]; +const thumbsUpDirections = [FingerDirection.VerticalUp, FingerDirection.HorizontalLeft]; + +const thumbsUpMatchScore = thumbsUpGesture.matchAgainst(thumbsUpCurls, thumbsUpDirections); +assert(thumbsUpMatchScore > 0.8, "Thumbs-up gesture matching failed"); diff --git a/types/fingerpose/index.d.ts b/types/fingerpose/index.d.ts new file mode 100644 index 00000000000000..46a4855d001c59 --- /dev/null +++ b/types/fingerpose/index.d.ts @@ -0,0 +1,122 @@ +export const Finger: { + Thumb: 0; + Index: 1; + Middle: 2; + Ring: 3; + Pinky: 4; + + all: [0, 1, 2, 3, 4]; + + nameMapping: { + 0: "Thumb"; + 1: "Index"; + 2: "Middle"; + 3: "Ring"; + 4: "Pinky"; + }; + + pointsMapping: { + 0: [[0, 1], [1, 2], [2, 3], [3, 4]]; + 1: [[0, 5], [5, 6], [6, 7], [7, 8]]; + 2: [[0, 9], [9, 10], [10, 11], [11, 12]]; + 3: [[0, 13], [13, 14], [14, 15], [15, 16]]; + 4: [[0, 17], [17, 18], [18, 19], [19, 20]]; + }; + + getName(value: number): string | false; + getPoints(value: number): number[][] | false; +}; + +export const FingerCurl: { + NoCurl: 0; + HalfCurl: 1; + FullCurl: 2; + + nameMapping: { + 0: "No Curl"; + 1: "Half Curl"; + 2: "Full Curl"; + }; + + getName(value: number): string | false; +}; + +export const FingerDirection: { + VerticalUp: 0; + VerticalDown: 1; + HorizontalLeft: 2; + HorizontalRight: 3; + DiagonalUpRight: 4; + DiagonalUpLeft: 5; + DiagonalDownRight: 6; + DiagonalDownLeft: 7; + + nameMapping: { + 0: "Vertical Up"; + 1: "Vertical Down"; + 2: "Horizontal Left"; + 3: "Horizontal Right"; + 4: "Diagonal Up Right"; + 5: "Diagonal Up Left"; + 6: "Diagonal Down Right"; + 7: "Diagonal Down Left"; + }; + + getName(value: number): string | false; +}; + +export class GestureDescription { + constructor(name: string); + + addCurl(finger: number, curl: number, contrib?: number): void; + + addDirection( + finger: number, + position: number, + contrib?: number, + ): void; + + matchAgainst( + detectedCurls: number[], + detectedDirections: number[], + ): number; +} + +interface GestureEstimate { + name: string; + score: number; +} + +interface Keypoint3D { + x: number; + y: number; + z: number; +} + +export class GestureEstimator { + constructor( + knownGestures: GestureDescription[], + estimatorOptions?: { + HALF_CURL_START_LIMIT?: number; + NO_CURL_START_LIMIT?: number; + DISTANCE_VOTE_POWER?: number; + SINGLE_ANGLE_VOTE_POWER?: number; + TOTAL_ANGLE_VOTE_POWER?: number; + }, + ); + + estimate( + keypoints3D: Keypoint3D[], + minScore: number, + ): { + poseData: Array<[name: string, curl: string, direction: string]>; + gestures: GestureEstimate[]; + }; +} + +export const Gestures: { + VictoryGesture: GestureDescription; + ThumbsUpGesture: GestureDescription; +}; + +export {}; diff --git a/types/fingerpose/package.json b/types/fingerpose/package.json new file mode 100644 index 00000000000000..a96db73bf33ec5 --- /dev/null +++ b/types/fingerpose/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/fingerpose", + "version": "0.1.9999", + "projects": [ + "https://github.com/andypotato/fingerpose#readme" + ], + "devDependencies": { + "@types/fingerpose": "workspace:." + }, + "owners": [ + { + "name": "Ethan L", + "githubUsername": "EthanL06" + } + ] +} diff --git a/types/fingerpose/tsconfig.json b/types/fingerpose/tsconfig.json new file mode 100644 index 00000000000000..4573a339b691c1 --- /dev/null +++ b/types/fingerpose/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "fingerpose-tests.ts" + ] +} diff --git a/types/firebase-client/tslint.json b/types/firebase-client/tslint.json deleted file mode 100644 index 3874b9f86e0b53..00000000000000 --- a/types/firebase-client/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/firebase-token-generator/tslint.json b/types/firebase-token-generator/tslint.json deleted file mode 100644 index c2e5a74d2a0191..00000000000000 --- a/types/firebase-token-generator/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "prefer-template": false - } -} diff --git a/types/firebird/tslint.json b/types/firebird/tslint.json deleted file mode 100644 index 7adc6d1a1b0d0a..00000000000000 --- a/types/firebird/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-boolean-literal-compare": false, - "unified-signatures": false - } -} diff --git a/types/firefox-webext-browser/tslint.json b/types/firefox-webext-browser/tslint.json deleted file mode 100644 index 3eef9303ff3c91..00000000000000 --- a/types/firefox-webext-browser/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-unnecessary-qualifier": false, - "unified-signatures": false - } -} diff --git a/types/firefox/tslint.json b/types/firefox/tslint.json deleted file mode 100644 index d777a75c84e88e..00000000000000 --- a/types/firefox/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-template": false - } -} diff --git a/types/firemonkey-browser/tslint.json b/types/firemonkey-browser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/firemonkey-browser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fireo/tslint.json b/types/fireo/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fireo/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/firmata/tslint.json b/types/firmata/tslint.json deleted file mode 100644 index be47b06470c664..00000000000000 --- a/types/firmata/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false - } -} diff --git a/types/first-mate/tslint.json b/types/first-mate/tslint.json deleted file mode 100644 index f2a138d850d412..00000000000000 --- a/types/first-mate/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-any": true - } -} diff --git a/types/firstline/tslint.json b/types/firstline/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/firstline/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fitbit-asap/tslint.json b/types/fitbit-asap/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fitbit-asap/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fitbit-weather/tslint.json b/types/fitbit-weather/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fitbit-weather/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fitfont/tslint.json b/types/fitfont/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fitfont/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fitvids/tslint.json b/types/fitvids/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fitvids/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fixed-data-table-2/package.json b/types/fixed-data-table-2/package.json index 66a8cc1c965c61..eda6b9a2d34be4 100644 --- a/types/fixed-data-table-2/package.json +++ b/types/fixed-data-table-2/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/fixed-data-table-2", - "version": "0.8.9999", + "version": "1.0.9999", "projects": [ "https://github.com/schrodinger/fixed-data-table-2", "http://schrodinger.github.io/fixed-data-table-2" diff --git a/types/fixed-data-table-2/tslint.json b/types/fixed-data-table-2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fixed-data-table-2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fixed-data-table/tslint.json b/types/fixed-data-table/tslint.json deleted file mode 100644 index adcb42922587db..00000000000000 --- a/types/fixed-data-table/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-var-keyword": false - } -} diff --git a/types/flagged-respawn/tslint.json b/types/flagged-respawn/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flagged-respawn/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flake-idgen/tslint.json b/types/flake-idgen/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/flake-idgen/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/flashpoint-launcher/package.json b/types/flashpoint-launcher/package.json index cd58e88e5f228d..626a0e2baf1f83 100644 --- a/types/flashpoint-launcher/package.json +++ b/types/flashpoint-launcher/package.json @@ -14,10 +14,6 @@ { "name": "Colin Berry", "githubUsername": "colin969" - }, - { - "name": "Joel Puig Rubio", - "githubUsername": "XXLuigiMario" } ] } diff --git a/types/flashpoint-launcher/tslint.json b/types/flashpoint-launcher/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flashpoint-launcher/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flat-cache/tslint.json b/types/flat-cache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flat-cache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flat-tree/tslint.json b/types/flat-tree/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flat-tree/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flat/tslint.json b/types/flat/tslint.json deleted file mode 100644 index d001bac96a7485..00000000000000 --- a/types/flat/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-namespace": false, - "prefer-const": false - } -} diff --git a/types/flatbuffers/tslint.json b/types/flatbuffers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flatbuffers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flatry/tslint.json b/types/flatry/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flatry/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fleximap/tslint.json b/types/fleximap/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fleximap/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/flexmonster/tslint.json b/types/flexmonster/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/flexmonster/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/flexsearch/tslint.json b/types/flexsearch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flexsearch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flexslider/tslint.json b/types/flexslider/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flexslider/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flickity/tslint.json b/types/flickity/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/flickity/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/flight/.eslintrc.json b/types/flight/.eslintrc.json index 12dc0523ec6ea8..d0441fac2a22df 100644 --- a/types/flight/.eslintrc.json +++ b/types/flight/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/flight/tslint.json b/types/flight/tslint.json deleted file mode 100644 index 462da812035db1..00000000000000 --- a/types/flight/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/flightplan/tslint.json b/types/flightplan/tslint.json deleted file mode 100644 index a0215d34e32c71..00000000000000 --- a/types/flightplan/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/flipsnap/tslint.json b/types/flipsnap/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/flipsnap/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/float-equal/tslint.json b/types/float-equal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/float-equal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/float-regex/tslint.json b/types/float-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/float-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/floreal/tslint.json b/types/floreal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/floreal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flot/tslint.json b/types/flot/tslint.json deleted file mode 100644 index 816f7b059ce7c9..00000000000000 --- a/types/flot/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "unified-signatures": false - } -} diff --git a/types/flowdoc/tslint.json b/types/flowdoc/tslint.json deleted file mode 100644 index 96eb6944687ef8..00000000000000 --- a/types/flowdoc/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false - } -} diff --git a/types/flowjs/.eslintrc.json b/types/flowjs/.eslintrc.json index 79ee5b5a1a5836..01ad6d65a9c9e6 100644 --- a/types/flowjs/.eslintrc.json +++ b/types/flowjs/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/no-single-element-tuple-type": "off" + "@definitelytyped/no-single-element-tuple-type": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/flowjs/tslint.json b/types/flowjs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/flowjs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/flowjs__flow.js/tslint.json b/types/flowjs__flow.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/flowjs__flow.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/floyd-steinberg/tslint.json b/types/floyd-steinberg/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/floyd-steinberg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fluent-ffmpeg/tslint.json b/types/fluent-ffmpeg/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fluent-ffmpeg/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fluent-langneg/tslint.json b/types/fluent-langneg/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fluent-langneg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fluent-react/fluent-react-tests.tsx b/types/fluent-react/fluent-react-tests.tsx index 9fef506b3b9e0b..409544ebbb3088 100644 --- a/types/fluent-react/fluent-react-tests.tsx +++ b/types/fluent-react/fluent-react-tests.tsx @@ -1,6 +1,5 @@ import { FluentBundle, ftl } from "fluent"; import { GetString, LocalizationProvider, Localized, withLocalization } from "fluent-react"; -import * as ReactDOM from "react-dom"; // Localized examples: const Test = () => ( @@ -18,12 +17,9 @@ function* generateBundles(currentLocales: string[]) { } } -ReactDOM.render( - -

- , - document.getElementById("root"), -); + +
+; // withLocalization examples: interface Props { diff --git a/types/fluent-react/package.json b/types/fluent-react/package.json index 04224ed8e75cf7..7e17834c6e3f50 100644 --- a/types/fluent-react/package.json +++ b/types/fluent-react/package.json @@ -11,8 +11,7 @@ "csstype": "^3.0.2" }, "devDependencies": { - "@types/fluent-react": "workspace:.", - "@types/react-dom": "*" + "@types/fluent-react": "workspace:." }, "owners": [ { diff --git a/types/fluent-react/tslint.json b/types/fluent-react/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fluent-react/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fluent-reveal-effect/tslint.json b/types/fluent-reveal-effect/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fluent-reveal-effect/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fluent/tslint.json b/types/fluent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fluent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flush-write-stream/tslint.json b/types/flush-write-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flush-write-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flushable/tslint.json b/types/flushable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flushable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flutterwave-node/tslint.json b/types/flutterwave-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/flutterwave-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/flux/tslint.json b/types/flux/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/flux/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fluxible-addons-react/tslint.json b/types/fluxible-addons-react/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fluxible-addons-react/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fluxible-router/tslint.json b/types/fluxible-router/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fluxible-router/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fluxible/tslint.json b/types/fluxible/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/fluxible/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/fluxxor/tslint.json b/types/fluxxor/tslint.json deleted file mode 100644 index 2d37f306fa3ea5..00000000000000 --- a/types/fluxxor/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-void-expression": false, - "prefer-const": false - } -} diff --git a/types/fm-websync/.eslintrc.json b/types/fm-websync/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/fm-websync/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/fm-websync/tslint.json b/types/fm-websync/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fm-websync/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fnando__sparkline/tslint.json b/types/fnando__sparkline/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fnando__sparkline/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fnv-lite/tslint.json b/types/fnv-lite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fnv-lite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fnv-plus/tslint.json b/types/fnv-plus/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fnv-plus/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/focus-within/tslint.json b/types/focus-within/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/focus-within/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fold-to-ascii/tslint.json b/types/fold-to-ascii/tslint.json deleted file mode 100644 index 951e02501e2b5a..00000000000000 --- a/types/fold-to-ascii/tslint.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] } -} diff --git a/types/folder-hash/tslint.json b/types/folder-hash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/folder-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/folder-walker/tslint.json b/types/folder-walker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/folder-walker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/foldify/tslint.json b/types/foldify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/foldify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/follow-redirects/tslint.json b/types/follow-redirects/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/follow-redirects/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/font-carrier/tslint.json b/types/font-carrier/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/font-carrier/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fontagon/tslint.json b/types/fontagon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fontagon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fontfaceobserver/tslint.json b/types/fontfaceobserver/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/fontfaceobserver/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/fontkit/tslint.json b/types/fontkit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fontkit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fontmin/tslint.json b/types/fontmin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fontmin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fontoxml/.eslintrc.json b/types/fontoxml/.eslintrc.json index d6a98828561f5a..2322ccc9f0e158 100644 --- a/types/fontoxml/.eslintrc.json +++ b/types/fontoxml/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off" } } diff --git a/types/fontoxml/tslint.json b/types/fontoxml/tslint.json deleted file mode 100644 index d54f866589e880..00000000000000 --- a/types/fontoxml/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false - } -} diff --git a/types/for-each/tslint.json b/types/for-each/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/for-each/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/foreach/tslint.json b/types/foreach/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/foreach/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/foreground-child/tslint.json b/types/foreground-child/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/foreground-child/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/forest-express-mongoose/tslint.json b/types/forest-express-mongoose/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/forest-express-mongoose/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/forest-express-sequelize/tslint.json b/types/forest-express-sequelize/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/forest-express-sequelize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/forever-agent/tslint.json b/types/forever-agent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/forever-agent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/forever-monitor/tslint.json b/types/forever-monitor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/forever-monitor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/forge-apis/tslint.json b/types/forge-apis/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/forge-apis/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/forge-viewer/tslint.json b/types/forge-viewer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/forge-viewer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/form-serialize/tslint.json b/types/form-serialize/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/form-serialize/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/form-serializer/tslint.json b/types/form-serializer/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/form-serializer/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/format-duration/tslint.json b/types/format-duration/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/format-duration/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/format-io/tslint.json b/types/format-io/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/format-io/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/format-link-header/tslint.json b/types/format-link-header/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/format-link-header/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/format-thousands/tslint.json b/types/format-thousands/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/format-thousands/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/format-unicorn/tslint.json b/types/format-unicorn/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/format-unicorn/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/format-util/tslint.json b/types/format-util/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/format-util/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/formatcoords/tslint.json b/types/formatcoords/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/formatcoords/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/formdata/tslint.json b/types/formdata/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/formdata/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/formidable/tslint.json b/types/formidable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/formidable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/formidable/v1/tslint.json b/types/formidable/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/formidable/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/formol/tslint.json b/types/formol/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/formol/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/forms/tslint.json b/types/forms/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/forms/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/formulon/tslint.json b/types/formulon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/formulon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/forwarded/tslint.json b/types/forwarded/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/forwarded/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fossil-delta/tslint.json b/types/fossil-delta/tslint.json deleted file mode 100644 index 6000ad5ea2a112..00000000000000 --- a/types/fossil-delta/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/foundation-datepicker/tslint.json b/types/foundation-datepicker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/foundation-datepicker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/foundation/.eslintrc.json b/types/foundation/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/foundation/.eslintrc.json +++ b/types/foundation/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/foundation/tslint.json b/types/foundation/tslint.json deleted file mode 100644 index 6931066ce2c625..00000000000000 --- a/types/foundation/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/fparser/tslint.json b/types/fparser/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fparser/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fps/tslint.json b/types/fps/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fps/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fpsmeter/tslint.json b/types/fpsmeter/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fpsmeter/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fragmented-store/tslint.json b/types/fragmented-store/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fragmented-store/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/franc/tslint.json b/types/franc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/franc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/frappe-gantt/tslint.json b/types/frappe-gantt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/frappe-gantt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/frctl__fractal/tslint.json b/types/frctl__fractal/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/frctl__fractal/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/frecency/tslint.json b/types/frecency/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/frecency/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/freedom/tslint.json b/types/freedom/tslint.json deleted file mode 100644 index fde56b8578e609..00000000000000 --- a/types/freedom/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/freeport/tslint.json b/types/freeport/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/freeport/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fresh-tabula-js/tslint.json b/types/fresh-tabula-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fresh-tabula-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fresh/tslint.json b/types/fresh/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fresh/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/freshy/tslint.json b/types/freshy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/freshy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/frida-gum/tslint.json b/types/frida-gum/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/frida-gum/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/friendly-errors-webpack-plugin/.eslintrc.json b/types/friendly-errors-webpack-plugin/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/friendly-errors-webpack-plugin/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/friendly-errors-webpack-plugin/tslint.json b/types/friendly-errors-webpack-plugin/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/friendly-errors-webpack-plugin/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/friendly-words/tslint.json b/types/friendly-words/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/friendly-words/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/frisby/tslint.json b/types/frisby/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/frisby/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/frisby/v0/tslint.json b/types/frisby/v0/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/frisby/v0/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/from/tslint.json b/types/from/tslint.json deleted file mode 100644 index 5969b866225fc8..00000000000000 --- a/types/from/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/from2/tslint.json b/types/from2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/from2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fromjs/tslint.json b/types/fromjs/tslint.json deleted file mode 100644 index f33944dd6b5cf8..00000000000000 --- a/types/fromjs/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ], - "only-arrow-functions": false, - "prefer-template": false - } -} diff --git a/types/fs-cson/tslint.json b/types/fs-cson/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fs-cson/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fs-ext/tslint.json b/types/fs-ext/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/fs-ext/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/fs-extra-promise-es6/tslint.json b/types/fs-extra-promise-es6/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fs-extra-promise-es6/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fs-extra-promise/tslint.json b/types/fs-extra-promise/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fs-extra-promise/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fs-extra/tslint.json b/types/fs-extra/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fs-extra/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fs-extra/v4/tslint.json b/types/fs-extra/v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fs-extra/v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fs-extra/v8/tslint.json b/types/fs-extra/v8/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fs-extra/v8/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fs-finder/tslint.json b/types/fs-finder/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/fs-finder/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/fs-minipass/tslint.json b/types/fs-minipass/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fs-minipass/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fs-mock/tslint.json b/types/fs-mock/tslint.json deleted file mode 100644 index f6adc4e44a837b..00000000000000 --- a/types/fs-mock/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/fs-plus/tslint.json b/types/fs-plus/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fs-plus/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fs-readdir-recursive/tslint.json b/types/fs-readdir-recursive/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fs-readdir-recursive/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fs-readfile-promise/tslint.json b/types/fs-readfile-promise/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fs-readfile-promise/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fscreen/tslint.json b/types/fscreen/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fscreen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fslightbox-react/index.d.ts b/types/fslightbox-react/index.d.ts index 0f45935808210f..e5f6970e287ecf 100644 --- a/types/fslightbox-react/index.d.ts +++ b/types/fslightbox-react/index.d.ts @@ -21,10 +21,10 @@ export interface CustomToolbarButtonProps extends Required { export interface FsLightboxProps { toggler: boolean; - sources?: Array | undefined; + sources?: Array | undefined; // captions - captions?: Array | undefined; // pro feature + captions?: Array | undefined; // pro feature // custom attributes customAttributes?: Array<{ [key: string]: string } | null> | undefined; @@ -51,7 +51,7 @@ export interface FsLightboxProps { // thumbs thumbs?: Array | undefined; // pro feature - thumbsIcons?: Array | undefined; // pro feature + thumbsIcons?: Array | undefined; // pro feature // animations initialAnimation?: string | undefined; // pro feature diff --git a/types/fslightbox-react/tslint.json b/types/fslightbox-react/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fslightbox-react/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ft-poller/tslint.json b/types/ft-poller/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ft-poller/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ftdomdelegate/tslint.json b/types/ftdomdelegate/tslint.json deleted file mode 100644 index 3874b9f86e0b53..00000000000000 --- a/types/ftdomdelegate/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/ftp/tslint.json b/types/ftp/tslint.json deleted file mode 100644 index 7c75b241fa89fb..00000000000000 --- a/types/ftp/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/ftpd/tslint.json b/types/ftpd/tslint.json deleted file mode 100644 index 50cbd835abe7b4..00000000000000 --- a/types/ftpd/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false, - "no-inferrable-types": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/ftps/tslint.json b/types/ftps/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ftps/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fullpage.js/tslint.json b/types/fullpage.js/tslint.json deleted file mode 100644 index c443aedc7513fa..00000000000000 --- a/types/fullpage.js/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/function-bind/tslint.json b/types/function-bind/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/function-bind/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/function.prototype.name/tslint.json b/types/function.prototype.name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/function.prototype.name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/functional-red-black-tree/tslint.json b/types/functional-red-black-tree/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/functional-red-black-tree/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/functions-have-names/tslint.json b/types/functions-have-names/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/functions-have-names/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fundamental-react/lib/List/List.d.ts b/types/fundamental-react/lib/List/List.d.ts index 90e1e4acdfee60..1f7caa2ef62a82 100644 --- a/types/fundamental-react/lib/List/List.d.ts +++ b/types/fundamental-react/lib/List/List.d.ts @@ -12,8 +12,8 @@ export type ListProps = { navigation?: boolean | undefined; partialNavigation?: boolean | undefined; selectable?: boolean | undefined; - footer?: string | JSX.Element | undefined; - header?: string | JSX.Element | undefined; + footer?: string | React.JSX.Element | undefined; + header?: string | React.JSX.Element | undefined; } & React.HTMLAttributes; export interface ListFooterProps { diff --git a/types/fundamental-react/lib/Select/Select.d.ts b/types/fundamental-react/lib/Select/Select.d.ts index b7fd942ebe0f58..cabe6fd0901703 100644 --- a/types/fundamental-react/lib/Select/Select.d.ts +++ b/types/fundamental-react/lib/Select/Select.d.ts @@ -43,8 +43,10 @@ export interface SelectProps { ref?: React.Ref | undefined; } -declare const Select: ((props: SelectProps & { selectedKey?: T }) => JSX.Element) & { - displayName: "Select"; -}; +declare const Select: + & ((props: SelectProps & { selectedKey?: T }) => React.JSX.Element) + & { + displayName: "Select"; + }; export default Select; diff --git a/types/fundamental-react/tslint.json b/types/fundamental-react/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fundamental-react/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/furigana-markdown-it/tslint.json b/types/furigana-markdown-it/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/furigana-markdown-it/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fusebit__add-on-sdk/tslint.json b/types/fusebit__add-on-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fusebit__add-on-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fusebit__oauth-connector/tslint.json b/types/fusebit__oauth-connector/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fusebit__oauth-connector/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fuzzaldrin-plus/tslint.json b/types/fuzzaldrin-plus/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/fuzzaldrin-plus/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/fuzzaldrin/tslint.json b/types/fuzzaldrin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fuzzaldrin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fuzzy-finder/tslint.json b/types/fuzzy-finder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fuzzy-finder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fuzzy-search/tslint.json b/types/fuzzy-search/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fuzzy-search/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fuzzysearch-highlight/tslint.json b/types/fuzzysearch-highlight/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fuzzysearch-highlight/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fuzzysearch/tslint.json b/types/fuzzysearch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fuzzysearch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fuzzyset.js/tslint.json b/types/fuzzyset.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fuzzyset.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fuzzyset/tslint.json b/types/fuzzyset/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/fuzzyset/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/fxjs/tslint.json b/types/fxjs/tslint.json deleted file mode 100644 index fd21cc0f04f541..00000000000000 --- a/types/fxjs/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "ban-types": true, - "callable-types": true, - "no-redundant-jsdoc": true, - "prefer-method-signature": true - } -} diff --git a/types/fxn/tslint.json b/types/fxn/tslint.json deleted file mode 100644 index fce5eccdb06ede..00000000000000 --- a/types/fxn/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false - } -} diff --git a/types/gae.channel.api/.eslintrc.json b/types/gae.channel.api/.eslintrc.json index 12dc0523ec6ea8..d0441fac2a22df 100644 --- a/types/gae.channel.api/.eslintrc.json +++ b/types/gae.channel.api/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/gae.channel.api/tslint.json b/types/gae.channel.api/tslint.json deleted file mode 100644 index 1eced2dea419e5..00000000000000 --- a/types/gae.channel.api/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/gamedig/tslint.json b/types/gamedig/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gamedig/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gamepad/tslint.json b/types/gamepad/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gamepad/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gamequery/.eslintrc.json b/types/gamequery/.eslintrc.json index 1c9d5a0a19e541..26f043ddd6165f 100644 --- a/types/gamequery/.eslintrc.json +++ b/types/gamequery/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-misused-new": "off" } } diff --git a/types/gamequery/tslint.json b/types/gamequery/tslint.json deleted file mode 100644 index b80ec880447146..00000000000000 --- a/types/gamequery/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/gandi-livedns/.eslintrc.json b/types/gandi-livedns/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/gandi-livedns/.eslintrc.json +++ b/types/gandi-livedns/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/gandi-livedns/tslint.json b/types/gandi-livedns/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/gandi-livedns/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/gapi.analytics/.eslintrc.json b/types/gapi.analytics/.eslintrc.json index 808d7efa936b6d..8f0f45319cfc98 100644 --- a/types/gapi.analytics/.eslintrc.json +++ b/types/gapi.analytics/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/gapi.analytics/tslint.json b/types/gapi.analytics/tslint.json deleted file mode 100644 index 10f1970cabe4b1..00000000000000 --- a/types/gapi.analytics/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/gapi.auth2/tslint.json b/types/gapi.auth2/tslint.json deleted file mode 100644 index 53be931499333c..00000000000000 --- a/types/gapi.auth2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false - } -} diff --git a/types/gapi.calendar/.eslintrc.json b/types/gapi.calendar/.eslintrc.json index 17972908a92cbb..b92c373804faa0 100644 --- a/types/gapi.calendar/.eslintrc.json +++ b/types/gapi.calendar/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/gapi.calendar/tslint.json b/types/gapi.calendar/tslint.json deleted file mode 100644 index d853b94ec52981..00000000000000 --- a/types/gapi.calendar/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false - } -} diff --git a/types/gapi.client.abusiveexperiencereport-v1/.eslintrc.json b/types/gapi.client.abusiveexperiencereport-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.abusiveexperiencereport-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.abusiveexperiencereport-v1/tslint.json b/types/gapi.client.abusiveexperiencereport-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.abusiveexperiencereport-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.acceleratedmobilepageurl-v1/.eslintrc.json b/types/gapi.client.acceleratedmobilepageurl-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.acceleratedmobilepageurl-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.acceleratedmobilepageurl-v1/tslint.json b/types/gapi.client.acceleratedmobilepageurl-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.acceleratedmobilepageurl-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.accessapproval-v1/.eslintrc.json b/types/gapi.client.accessapproval-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.accessapproval-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.accessapproval-v1/tslint.json b/types/gapi.client.accessapproval-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.accessapproval-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.accesscontextmanager-v1/.eslintrc.json b/types/gapi.client.accesscontextmanager-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.accesscontextmanager-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.accesscontextmanager-v1/tslint.json b/types/gapi.client.accesscontextmanager-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.accesscontextmanager-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.accesscontextmanager-v1beta/.eslintrc.json b/types/gapi.client.accesscontextmanager-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.accesscontextmanager-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.accesscontextmanager-v1beta/tslint.json b/types/gapi.client.accesscontextmanager-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.accesscontextmanager-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.acmedns-v1/.eslintrc.json b/types/gapi.client.acmedns-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.acmedns-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.acmedns-v1/tslint.json b/types/gapi.client.acmedns-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.acmedns-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.adexchangebuyer2-v2beta1/.eslintrc.json b/types/gapi.client.adexchangebuyer2-v2beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.adexchangebuyer2-v2beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.adexchangebuyer2-v2beta1/tslint.json b/types/gapi.client.adexchangebuyer2-v2beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.adexchangebuyer2-v2beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.adexperiencereport-v1/.eslintrc.json b/types/gapi.client.adexperiencereport-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.adexperiencereport-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.adexperiencereport-v1/tslint.json b/types/gapi.client.adexperiencereport-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.adexperiencereport-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.admin-datatransfer_v1/.eslintrc.json b/types/gapi.client.admin-datatransfer_v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.admin-datatransfer_v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.admin-datatransfer_v1/tslint.json b/types/gapi.client.admin-datatransfer_v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.admin-datatransfer_v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.admin-directory_v1/.eslintrc.json b/types/gapi.client.admin-directory_v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.admin-directory_v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.admin-directory_v1/tslint.json b/types/gapi.client.admin-directory_v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.admin-directory_v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.admin-reports_v1/.eslintrc.json b/types/gapi.client.admin-reports_v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.admin-reports_v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.admin-reports_v1/tslint.json b/types/gapi.client.admin-reports_v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.admin-reports_v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.admob-v1/.eslintrc.json b/types/gapi.client.admob-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.admob-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.admob-v1/tslint.json b/types/gapi.client.admob-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.admob-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.admob-v1beta/.eslintrc.json b/types/gapi.client.admob-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.admob-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.admob-v1beta/tslint.json b/types/gapi.client.admob-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.admob-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.adsense-v2/.eslintrc.json b/types/gapi.client.adsense-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.adsense-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.adsense-v2/tslint.json b/types/gapi.client.adsense-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.adsense-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.adsensehost-v4.1/.eslintrc.json b/types/gapi.client.adsensehost-v4.1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.adsensehost-v4.1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.adsensehost-v4.1/tslint.json b/types/gapi.client.adsensehost-v4.1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.adsensehost-v4.1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.advisorynotifications-v1/.eslintrc.json b/types/gapi.client.advisorynotifications-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.advisorynotifications-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.advisorynotifications-v1/tslint.json b/types/gapi.client.advisorynotifications-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.advisorynotifications-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.alertcenter-v1beta1/.eslintrc.json b/types/gapi.client.alertcenter-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.alertcenter-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.alertcenter-v1beta1/tslint.json b/types/gapi.client.alertcenter-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.alertcenter-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.analytics-v3/.eslintrc.json b/types/gapi.client.analytics-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.analytics-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.analytics-v3/tslint.json b/types/gapi.client.analytics-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.analytics-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.analyticsadmin-v1alpha/.eslintrc.json b/types/gapi.client.analyticsadmin-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.analyticsadmin-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.analyticsadmin-v1alpha/tslint.json b/types/gapi.client.analyticsadmin-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.analyticsadmin-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.analyticsadmin-v1beta/.eslintrc.json b/types/gapi.client.analyticsadmin-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.analyticsadmin-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.analyticsadmin-v1beta/tslint.json b/types/gapi.client.analyticsadmin-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.analyticsadmin-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.analyticsdata-v1beta/.eslintrc.json b/types/gapi.client.analyticsdata-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.analyticsdata-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.analyticsdata-v1beta/tslint.json b/types/gapi.client.analyticsdata-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.analyticsdata-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.analyticshub-v1/.eslintrc.json b/types/gapi.client.analyticshub-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.analyticshub-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.analyticshub-v1/tslint.json b/types/gapi.client.analyticshub-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.analyticshub-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.analyticshub-v1beta1/.eslintrc.json b/types/gapi.client.analyticshub-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.analyticshub-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.analyticshub-v1beta1/tslint.json b/types/gapi.client.analyticshub-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.analyticshub-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.analyticsreporting-v4/.eslintrc.json b/types/gapi.client.analyticsreporting-v4/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.analyticsreporting-v4/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.analyticsreporting-v4/tslint.json b/types/gapi.client.analyticsreporting-v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.analyticsreporting-v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.androiddeviceprovisioning-v1/.eslintrc.json b/types/gapi.client.androiddeviceprovisioning-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.androiddeviceprovisioning-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.androiddeviceprovisioning-v1/tslint.json b/types/gapi.client.androiddeviceprovisioning-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.androiddeviceprovisioning-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.androidenterprise-v1/.eslintrc.json b/types/gapi.client.androidenterprise-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.androidenterprise-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.androidenterprise-v1/tslint.json b/types/gapi.client.androidenterprise-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.androidenterprise-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.androidmanagement-v1/.eslintrc.json b/types/gapi.client.androidmanagement-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.androidmanagement-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.androidmanagement-v1/tslint.json b/types/gapi.client.androidmanagement-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.androidmanagement-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.androidpublisher-v3/.eslintrc.json b/types/gapi.client.androidpublisher-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.androidpublisher-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.androidpublisher-v3/tslint.json b/types/gapi.client.androidpublisher-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.androidpublisher-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.apigateway-v1/.eslintrc.json b/types/gapi.client.apigateway-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.apigateway-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.apigateway-v1/tslint.json b/types/gapi.client.apigateway-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.apigateway-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.apigateway-v1beta/.eslintrc.json b/types/gapi.client.apigateway-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.apigateway-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.apigateway-v1beta/tslint.json b/types/gapi.client.apigateway-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.apigateway-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.apigeeregistry-v1/.eslintrc.json b/types/gapi.client.apigeeregistry-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.apigeeregistry-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.apigeeregistry-v1/tslint.json b/types/gapi.client.apigeeregistry-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.apigeeregistry-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.apikeys-v2/.eslintrc.json b/types/gapi.client.apikeys-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.apikeys-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.apikeys-v2/tslint.json b/types/gapi.client.apikeys-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.apikeys-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.appengine-v1/.eslintrc.json b/types/gapi.client.appengine-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.appengine-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.appengine-v1/tslint.json b/types/gapi.client.appengine-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.appengine-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.appengine-v1alpha/.eslintrc.json b/types/gapi.client.appengine-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.appengine-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.appengine-v1alpha/tslint.json b/types/gapi.client.appengine-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.appengine-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.appengine-v1beta/.eslintrc.json b/types/gapi.client.appengine-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.appengine-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.appengine-v1beta/tslint.json b/types/gapi.client.appengine-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.appengine-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.area120tables-v1alpha1/.eslintrc.json b/types/gapi.client.area120tables-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.area120tables-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.area120tables-v1alpha1/tslint.json b/types/gapi.client.area120tables-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.area120tables-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.artifactregistry-v1/.eslintrc.json b/types/gapi.client.artifactregistry-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.artifactregistry-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.artifactregistry-v1/tslint.json b/types/gapi.client.artifactregistry-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.artifactregistry-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.artifactregistry-v1beta1/.eslintrc.json b/types/gapi.client.artifactregistry-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.artifactregistry-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.artifactregistry-v1beta1/tslint.json b/types/gapi.client.artifactregistry-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.artifactregistry-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.artifactregistry-v1beta2/.eslintrc.json b/types/gapi.client.artifactregistry-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.artifactregistry-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.artifactregistry-v1beta2/tslint.json b/types/gapi.client.artifactregistry-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.artifactregistry-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.assuredworkloads-v1/.eslintrc.json b/types/gapi.client.assuredworkloads-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.assuredworkloads-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.assuredworkloads-v1/tslint.json b/types/gapi.client.assuredworkloads-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.assuredworkloads-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.assuredworkloads-v1beta1/.eslintrc.json b/types/gapi.client.assuredworkloads-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.assuredworkloads-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.assuredworkloads-v1beta1/tslint.json b/types/gapi.client.assuredworkloads-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.assuredworkloads-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.authorizedbuyersmarketplace-v1/.eslintrc.json b/types/gapi.client.authorizedbuyersmarketplace-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.authorizedbuyersmarketplace-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.authorizedbuyersmarketplace-v1/tslint.json b/types/gapi.client.authorizedbuyersmarketplace-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.authorizedbuyersmarketplace-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.baremetalsolution-v2/.eslintrc.json b/types/gapi.client.baremetalsolution-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.baremetalsolution-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.baremetalsolution-v2/tslint.json b/types/gapi.client.baremetalsolution-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.baremetalsolution-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.batch-v1/.eslintrc.json b/types/gapi.client.batch-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.batch-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.batch-v1/tslint.json b/types/gapi.client.batch-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.batch-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.beyondcorp-v1/.eslintrc.json b/types/gapi.client.beyondcorp-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.beyondcorp-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.beyondcorp-v1/tslint.json b/types/gapi.client.beyondcorp-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.beyondcorp-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.beyondcorp-v1alpha/.eslintrc.json b/types/gapi.client.beyondcorp-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.beyondcorp-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.beyondcorp-v1alpha/tslint.json b/types/gapi.client.beyondcorp-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.beyondcorp-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.bigquery-v2/.eslintrc.json b/types/gapi.client.bigquery-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.bigquery-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.bigquery-v2/tslint.json b/types/gapi.client.bigquery-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.bigquery-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.bigqueryconnection-v1beta1/.eslintrc.json b/types/gapi.client.bigqueryconnection-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.bigqueryconnection-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.bigqueryconnection-v1beta1/tslint.json b/types/gapi.client.bigqueryconnection-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.bigqueryconnection-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.bigquerydatatransfer-v1/.eslintrc.json b/types/gapi.client.bigquerydatatransfer-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.bigquerydatatransfer-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.bigquerydatatransfer-v1/tslint.json b/types/gapi.client.bigquerydatatransfer-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.bigquerydatatransfer-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.bigqueryreservation-v1/.eslintrc.json b/types/gapi.client.bigqueryreservation-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.bigqueryreservation-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.bigqueryreservation-v1/tslint.json b/types/gapi.client.bigqueryreservation-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.bigqueryreservation-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.bigtableadmin-v2/.eslintrc.json b/types/gapi.client.bigtableadmin-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.bigtableadmin-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.bigtableadmin-v2/tslint.json b/types/gapi.client.bigtableadmin-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.bigtableadmin-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.billingbudgets-v1/.eslintrc.json b/types/gapi.client.billingbudgets-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.billingbudgets-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.billingbudgets-v1/tslint.json b/types/gapi.client.billingbudgets-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.billingbudgets-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.billingbudgets-v1beta1/.eslintrc.json b/types/gapi.client.billingbudgets-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.billingbudgets-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.billingbudgets-v1beta1/tslint.json b/types/gapi.client.billingbudgets-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.billingbudgets-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.binaryauthorization-v1/.eslintrc.json b/types/gapi.client.binaryauthorization-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.binaryauthorization-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.binaryauthorization-v1/tslint.json b/types/gapi.client.binaryauthorization-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.binaryauthorization-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.binaryauthorization-v1beta1/.eslintrc.json b/types/gapi.client.binaryauthorization-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.binaryauthorization-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.binaryauthorization-v1beta1/tslint.json b/types/gapi.client.binaryauthorization-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.binaryauthorization-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.blogger-v2/.eslintrc.json b/types/gapi.client.blogger-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.blogger-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.blogger-v2/tslint.json b/types/gapi.client.blogger-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.blogger-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.blogger-v3/.eslintrc.json b/types/gapi.client.blogger-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.blogger-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.blogger-v3/tslint.json b/types/gapi.client.blogger-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.blogger-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.books-v1/.eslintrc.json b/types/gapi.client.books-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.books-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.books-v1/tslint.json b/types/gapi.client.books-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.books-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.businessprofileperformance-v1/.eslintrc.json b/types/gapi.client.businessprofileperformance-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.businessprofileperformance-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.businessprofileperformance-v1/tslint.json b/types/gapi.client.businessprofileperformance-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.businessprofileperformance-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.calendar-v3/.eslintrc.json b/types/gapi.client.calendar-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.calendar-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.calendar-v3/tslint.json b/types/gapi.client.calendar-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.calendar-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.certificatemanager-v1/.eslintrc.json b/types/gapi.client.certificatemanager-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.certificatemanager-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.certificatemanager-v1/tslint.json b/types/gapi.client.certificatemanager-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.certificatemanager-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.chat-v1/.eslintrc.json b/types/gapi.client.chat-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.chat-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.chat-v1/tslint.json b/types/gapi.client.chat-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.chat-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.chromemanagement-v1/.eslintrc.json b/types/gapi.client.chromemanagement-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.chromemanagement-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.chromemanagement-v1/tslint.json b/types/gapi.client.chromemanagement-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.chromemanagement-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.chromepolicy-v1/.eslintrc.json b/types/gapi.client.chromepolicy-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.chromepolicy-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.chromepolicy-v1/tslint.json b/types/gapi.client.chromepolicy-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.chromepolicy-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.chromeuxreport-v1/.eslintrc.json b/types/gapi.client.chromeuxreport-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.chromeuxreport-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.chromeuxreport-v1/tslint.json b/types/gapi.client.chromeuxreport-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.chromeuxreport-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.civicinfo-v2/.eslintrc.json b/types/gapi.client.civicinfo-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.civicinfo-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.civicinfo-v2/tslint.json b/types/gapi.client.civicinfo-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.civicinfo-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.classroom-v1/.eslintrc.json b/types/gapi.client.classroom-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.classroom-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.classroom-v1/tslint.json b/types/gapi.client.classroom-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.classroom-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudasset-v1/.eslintrc.json b/types/gapi.client.cloudasset-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudasset-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudasset-v1/tslint.json b/types/gapi.client.cloudasset-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudasset-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudasset-v1beta1/.eslintrc.json b/types/gapi.client.cloudasset-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudasset-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudasset-v1beta1/tslint.json b/types/gapi.client.cloudasset-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudasset-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudasset-v1p1beta1/.eslintrc.json b/types/gapi.client.cloudasset-v1p1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudasset-v1p1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudasset-v1p1beta1/tslint.json b/types/gapi.client.cloudasset-v1p1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudasset-v1p1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudasset-v1p5beta1/.eslintrc.json b/types/gapi.client.cloudasset-v1p5beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudasset-v1p5beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudasset-v1p5beta1/tslint.json b/types/gapi.client.cloudasset-v1p5beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudasset-v1p5beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudasset-v1p7beta1/.eslintrc.json b/types/gapi.client.cloudasset-v1p7beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudasset-v1p7beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudasset-v1p7beta1/tslint.json b/types/gapi.client.cloudasset-v1p7beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudasset-v1p7beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudbilling-v1/.eslintrc.json b/types/gapi.client.cloudbilling-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudbilling-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudbilling-v1/tslint.json b/types/gapi.client.cloudbilling-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudbilling-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudbilling-v1beta/.eslintrc.json b/types/gapi.client.cloudbilling-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudbilling-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudbilling-v1beta/tslint.json b/types/gapi.client.cloudbilling-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudbilling-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudbuild-v1/.eslintrc.json b/types/gapi.client.cloudbuild-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudbuild-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudbuild-v1/tslint.json b/types/gapi.client.cloudbuild-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudbuild-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudchannel-v1/.eslintrc.json b/types/gapi.client.cloudchannel-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudchannel-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudchannel-v1/tslint.json b/types/gapi.client.cloudchannel-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudchannel-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.clouddeploy-v1/.eslintrc.json b/types/gapi.client.clouddeploy-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.clouddeploy-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.clouddeploy-v1/tslint.json b/types/gapi.client.clouddeploy-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.clouddeploy-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.clouderrorreporting-v1beta1/.eslintrc.json b/types/gapi.client.clouderrorreporting-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.clouderrorreporting-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.clouderrorreporting-v1beta1/tslint.json b/types/gapi.client.clouderrorreporting-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.clouderrorreporting-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudfunctions-v1/.eslintrc.json b/types/gapi.client.cloudfunctions-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudfunctions-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudfunctions-v1/tslint.json b/types/gapi.client.cloudfunctions-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudfunctions-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudfunctions-v2/.eslintrc.json b/types/gapi.client.cloudfunctions-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudfunctions-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudfunctions-v2/tslint.json b/types/gapi.client.cloudfunctions-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudfunctions-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudfunctions-v2alpha/.eslintrc.json b/types/gapi.client.cloudfunctions-v2alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudfunctions-v2alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudfunctions-v2alpha/tslint.json b/types/gapi.client.cloudfunctions-v2alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudfunctions-v2alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudfunctions-v2beta/.eslintrc.json b/types/gapi.client.cloudfunctions-v2beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudfunctions-v2beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudfunctions-v2beta/tslint.json b/types/gapi.client.cloudfunctions-v2beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudfunctions-v2beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudidentity-v1/.eslintrc.json b/types/gapi.client.cloudidentity-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudidentity-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudidentity-v1/tslint.json b/types/gapi.client.cloudidentity-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudidentity-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudidentity-v1beta1/.eslintrc.json b/types/gapi.client.cloudidentity-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudidentity-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudidentity-v1beta1/tslint.json b/types/gapi.client.cloudidentity-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudidentity-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudiot-v1/.eslintrc.json b/types/gapi.client.cloudiot-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudiot-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudiot-v1/tslint.json b/types/gapi.client.cloudiot-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudiot-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudkms-v1/.eslintrc.json b/types/gapi.client.cloudkms-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudkms-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudkms-v1/tslint.json b/types/gapi.client.cloudkms-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudkms-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudprofiler-v2/.eslintrc.json b/types/gapi.client.cloudprofiler-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudprofiler-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudprofiler-v2/tslint.json b/types/gapi.client.cloudprofiler-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudprofiler-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudresourcemanager-v1/.eslintrc.json b/types/gapi.client.cloudresourcemanager-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudresourcemanager-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudresourcemanager-v1/tslint.json b/types/gapi.client.cloudresourcemanager-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudresourcemanager-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudresourcemanager-v1beta1/.eslintrc.json b/types/gapi.client.cloudresourcemanager-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudresourcemanager-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudresourcemanager-v1beta1/tslint.json b/types/gapi.client.cloudresourcemanager-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudresourcemanager-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudresourcemanager-v2/.eslintrc.json b/types/gapi.client.cloudresourcemanager-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudresourcemanager-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudresourcemanager-v2/tslint.json b/types/gapi.client.cloudresourcemanager-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudresourcemanager-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudresourcemanager-v2beta1/.eslintrc.json b/types/gapi.client.cloudresourcemanager-v2beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudresourcemanager-v2beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudresourcemanager-v2beta1/tslint.json b/types/gapi.client.cloudresourcemanager-v2beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudresourcemanager-v2beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudresourcemanager-v3/.eslintrc.json b/types/gapi.client.cloudresourcemanager-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudresourcemanager-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudresourcemanager-v3/tslint.json b/types/gapi.client.cloudresourcemanager-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudresourcemanager-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudscheduler-v1/.eslintrc.json b/types/gapi.client.cloudscheduler-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudscheduler-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudscheduler-v1/tslint.json b/types/gapi.client.cloudscheduler-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudscheduler-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudscheduler-v1beta1/.eslintrc.json b/types/gapi.client.cloudscheduler-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudscheduler-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudscheduler-v1beta1/tslint.json b/types/gapi.client.cloudscheduler-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudscheduler-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudsearch-v1/.eslintrc.json b/types/gapi.client.cloudsearch-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudsearch-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudsearch-v1/tslint.json b/types/gapi.client.cloudsearch-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudsearch-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudshell-v1/.eslintrc.json b/types/gapi.client.cloudshell-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudshell-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudshell-v1/tslint.json b/types/gapi.client.cloudshell-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudshell-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudsupport-v2beta/.eslintrc.json b/types/gapi.client.cloudsupport-v2beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudsupport-v2beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudsupport-v2beta/tslint.json b/types/gapi.client.cloudsupport-v2beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudsupport-v2beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudtasks-v2/.eslintrc.json b/types/gapi.client.cloudtasks-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudtasks-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudtasks-v2/tslint.json b/types/gapi.client.cloudtasks-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudtasks-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudtasks-v2beta2/.eslintrc.json b/types/gapi.client.cloudtasks-v2beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudtasks-v2beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudtasks-v2beta2/tslint.json b/types/gapi.client.cloudtasks-v2beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudtasks-v2beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudtasks-v2beta3/.eslintrc.json b/types/gapi.client.cloudtasks-v2beta3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudtasks-v2beta3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudtasks-v2beta3/tslint.json b/types/gapi.client.cloudtasks-v2beta3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudtasks-v2beta3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudtrace-v1/.eslintrc.json b/types/gapi.client.cloudtrace-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudtrace-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudtrace-v1/tslint.json b/types/gapi.client.cloudtrace-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudtrace-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudtrace-v2/.eslintrc.json b/types/gapi.client.cloudtrace-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudtrace-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudtrace-v2/tslint.json b/types/gapi.client.cloudtrace-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudtrace-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.cloudtrace-v2beta1/.eslintrc.json b/types/gapi.client.cloudtrace-v2beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.cloudtrace-v2beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.cloudtrace-v2beta1/tslint.json b/types/gapi.client.cloudtrace-v2beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.cloudtrace-v2beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.composer-v1/.eslintrc.json b/types/gapi.client.composer-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.composer-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.composer-v1/tslint.json b/types/gapi.client.composer-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.composer-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.composer-v1beta1/.eslintrc.json b/types/gapi.client.composer-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.composer-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.composer-v1beta1/tslint.json b/types/gapi.client.composer-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.composer-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.compute-alpha/.eslintrc.json b/types/gapi.client.compute-alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.compute-alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.compute-alpha/tslint.json b/types/gapi.client.compute-alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.compute-alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.compute-beta/.eslintrc.json b/types/gapi.client.compute-beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.compute-beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.compute-beta/tslint.json b/types/gapi.client.compute-beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.compute-beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.compute-v1/.eslintrc.json b/types/gapi.client.compute-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.compute-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.compute-v1/tslint.json b/types/gapi.client.compute-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.compute-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.connectors-v1/.eslintrc.json b/types/gapi.client.connectors-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.connectors-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.connectors-v1/tslint.json b/types/gapi.client.connectors-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.connectors-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.connectors-v2/.eslintrc.json b/types/gapi.client.connectors-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.connectors-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.connectors-v2/tslint.json b/types/gapi.client.connectors-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.connectors-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.contactcenteraiplatform-v1alpha1/.eslintrc.json b/types/gapi.client.contactcenteraiplatform-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.contactcenteraiplatform-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.contactcenteraiplatform-v1alpha1/tslint.json b/types/gapi.client.contactcenteraiplatform-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.contactcenteraiplatform-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.contactcenterinsights-v1/.eslintrc.json b/types/gapi.client.contactcenterinsights-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.contactcenterinsights-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.contactcenterinsights-v1/tslint.json b/types/gapi.client.contactcenterinsights-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.contactcenterinsights-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.container-v1/.eslintrc.json b/types/gapi.client.container-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.container-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.container-v1/tslint.json b/types/gapi.client.container-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.container-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.container-v1beta1/.eslintrc.json b/types/gapi.client.container-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.container-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.container-v1beta1/tslint.json b/types/gapi.client.container-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.container-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.containeranalysis-v1/.eslintrc.json b/types/gapi.client.containeranalysis-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.containeranalysis-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.containeranalysis-v1/tslint.json b/types/gapi.client.containeranalysis-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.containeranalysis-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.containeranalysis-v1alpha1/.eslintrc.json b/types/gapi.client.containeranalysis-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.containeranalysis-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.containeranalysis-v1alpha1/tslint.json b/types/gapi.client.containeranalysis-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.containeranalysis-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.containeranalysis-v1beta1/.eslintrc.json b/types/gapi.client.containeranalysis-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.containeranalysis-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.containeranalysis-v1beta1/tslint.json b/types/gapi.client.containeranalysis-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.containeranalysis-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.content-v2.1/.eslintrc.json b/types/gapi.client.content-v2.1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.content-v2.1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.content-v2.1/tslint.json b/types/gapi.client.content-v2.1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.content-v2.1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.contentwarehouse-v1/.eslintrc.json b/types/gapi.client.contentwarehouse-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.contentwarehouse-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.contentwarehouse-v1/tslint.json b/types/gapi.client.contentwarehouse-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.contentwarehouse-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.customsearch-v1/.eslintrc.json b/types/gapi.client.customsearch-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.customsearch-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.customsearch-v1/tslint.json b/types/gapi.client.customsearch-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.customsearch-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datacatalog-v1/.eslintrc.json b/types/gapi.client.datacatalog-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datacatalog-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datacatalog-v1/tslint.json b/types/gapi.client.datacatalog-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datacatalog-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datacatalog-v1beta1/.eslintrc.json b/types/gapi.client.datacatalog-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datacatalog-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datacatalog-v1beta1/tslint.json b/types/gapi.client.datacatalog-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datacatalog-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dataflow-v1b3/.eslintrc.json b/types/gapi.client.dataflow-v1b3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dataflow-v1b3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dataflow-v1b3/tslint.json b/types/gapi.client.dataflow-v1b3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dataflow-v1b3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dataform-v1beta1/.eslintrc.json b/types/gapi.client.dataform-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dataform-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dataform-v1beta1/tslint.json b/types/gapi.client.dataform-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dataform-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datafusion-v1/.eslintrc.json b/types/gapi.client.datafusion-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datafusion-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datafusion-v1/tslint.json b/types/gapi.client.datafusion-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datafusion-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datafusion-v1beta1/.eslintrc.json b/types/gapi.client.datafusion-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datafusion-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datafusion-v1beta1/tslint.json b/types/gapi.client.datafusion-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datafusion-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datalabeling-v1beta1/.eslintrc.json b/types/gapi.client.datalabeling-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datalabeling-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datalabeling-v1beta1/tslint.json b/types/gapi.client.datalabeling-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datalabeling-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datalineage-v1/.eslintrc.json b/types/gapi.client.datalineage-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datalineage-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datalineage-v1/tslint.json b/types/gapi.client.datalineage-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datalineage-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datamigration-v1/.eslintrc.json b/types/gapi.client.datamigration-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datamigration-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datamigration-v1/tslint.json b/types/gapi.client.datamigration-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datamigration-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datamigration-v1beta1/.eslintrc.json b/types/gapi.client.datamigration-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datamigration-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datamigration-v1beta1/tslint.json b/types/gapi.client.datamigration-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datamigration-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datapipelines-v1/.eslintrc.json b/types/gapi.client.datapipelines-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datapipelines-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datapipelines-v1/tslint.json b/types/gapi.client.datapipelines-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datapipelines-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dataplex-v1/.eslintrc.json b/types/gapi.client.dataplex-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dataplex-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dataplex-v1/tslint.json b/types/gapi.client.dataplex-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dataplex-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dataproc-v1/.eslintrc.json b/types/gapi.client.dataproc-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dataproc-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dataproc-v1/tslint.json b/types/gapi.client.dataproc-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dataproc-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datastore-v1/.eslintrc.json b/types/gapi.client.datastore-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datastore-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datastore-v1/tslint.json b/types/gapi.client.datastore-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datastore-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datastore-v1beta1/.eslintrc.json b/types/gapi.client.datastore-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datastore-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datastore-v1beta1/tslint.json b/types/gapi.client.datastore-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datastore-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datastore-v1beta3/.eslintrc.json b/types/gapi.client.datastore-v1beta3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datastore-v1beta3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datastore-v1beta3/tslint.json b/types/gapi.client.datastore-v1beta3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datastore-v1beta3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datastream-v1/.eslintrc.json b/types/gapi.client.datastream-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datastream-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datastream-v1/tslint.json b/types/gapi.client.datastream-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datastream-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.datastream-v1alpha1/.eslintrc.json b/types/gapi.client.datastream-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.datastream-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.datastream-v1alpha1/tslint.json b/types/gapi.client.datastream-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.datastream-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.deploymentmanager-alpha/.eslintrc.json b/types/gapi.client.deploymentmanager-alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.deploymentmanager-alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.deploymentmanager-alpha/tslint.json b/types/gapi.client.deploymentmanager-alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.deploymentmanager-alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.deploymentmanager-v2/.eslintrc.json b/types/gapi.client.deploymentmanager-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.deploymentmanager-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.deploymentmanager-v2/tslint.json b/types/gapi.client.deploymentmanager-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.deploymentmanager-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.deploymentmanager-v2beta/.eslintrc.json b/types/gapi.client.deploymentmanager-v2beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.deploymentmanager-v2beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.deploymentmanager-v2beta/tslint.json b/types/gapi.client.deploymentmanager-v2beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.deploymentmanager-v2beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dfareporting-v3.5/.eslintrc.json b/types/gapi.client.dfareporting-v3.5/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dfareporting-v3.5/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dfareporting-v3.5/tslint.json b/types/gapi.client.dfareporting-v3.5/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dfareporting-v3.5/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dfareporting-v4/.eslintrc.json b/types/gapi.client.dfareporting-v4/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dfareporting-v4/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dfareporting-v4/tslint.json b/types/gapi.client.dfareporting-v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dfareporting-v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dialogflow-v2/.eslintrc.json b/types/gapi.client.dialogflow-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dialogflow-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dialogflow-v2/tslint.json b/types/gapi.client.dialogflow-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dialogflow-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dialogflow-v2beta1/.eslintrc.json b/types/gapi.client.dialogflow-v2beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dialogflow-v2beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dialogflow-v2beta1/tslint.json b/types/gapi.client.dialogflow-v2beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dialogflow-v2beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dialogflow-v3/.eslintrc.json b/types/gapi.client.dialogflow-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dialogflow-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dialogflow-v3/tslint.json b/types/gapi.client.dialogflow-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dialogflow-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dialogflow-v3beta1/.eslintrc.json b/types/gapi.client.dialogflow-v3beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dialogflow-v3beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dialogflow-v3beta1/tslint.json b/types/gapi.client.dialogflow-v3beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dialogflow-v3beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.digitalassetlinks-v1/.eslintrc.json b/types/gapi.client.digitalassetlinks-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.digitalassetlinks-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.digitalassetlinks-v1/tslint.json b/types/gapi.client.digitalassetlinks-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.digitalassetlinks-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.discovery-v1/.eslintrc.json b/types/gapi.client.discovery-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.discovery-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.discovery-v1/tslint.json b/types/gapi.client.discovery-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.discovery-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.discoveryengine-v1alpha/.eslintrc.json b/types/gapi.client.discoveryengine-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.discoveryengine-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.discoveryengine-v1alpha/tslint.json b/types/gapi.client.discoveryengine-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.discoveryengine-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.discoveryengine-v1beta/.eslintrc.json b/types/gapi.client.discoveryengine-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.discoveryengine-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.discoveryengine-v1beta/tslint.json b/types/gapi.client.discoveryengine-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.discoveryengine-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.displayvideo-v1/.eslintrc.json b/types/gapi.client.displayvideo-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.displayvideo-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.displayvideo-v1/tslint.json b/types/gapi.client.displayvideo-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.displayvideo-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.displayvideo-v2/.eslintrc.json b/types/gapi.client.displayvideo-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.displayvideo-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.displayvideo-v2/tslint.json b/types/gapi.client.displayvideo-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.displayvideo-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dlp-v2/.eslintrc.json b/types/gapi.client.dlp-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dlp-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dlp-v2/tslint.json b/types/gapi.client.dlp-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dlp-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dns-v1/.eslintrc.json b/types/gapi.client.dns-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dns-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dns-v1/tslint.json b/types/gapi.client.dns-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dns-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.dns-v1beta2/.eslintrc.json b/types/gapi.client.dns-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.dns-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.dns-v1beta2/tslint.json b/types/gapi.client.dns-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.dns-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.docs-v1/.eslintrc.json b/types/gapi.client.docs-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.docs-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.docs-v1/tslint.json b/types/gapi.client.docs-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.docs-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.documentai-v1/.eslintrc.json b/types/gapi.client.documentai-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.documentai-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.documentai-v1/tslint.json b/types/gapi.client.documentai-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.documentai-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.documentai-v1beta2/.eslintrc.json b/types/gapi.client.documentai-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.documentai-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.documentai-v1beta2/tslint.json b/types/gapi.client.documentai-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.documentai-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.documentai-v1beta3/.eslintrc.json b/types/gapi.client.documentai-v1beta3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.documentai-v1beta3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.documentai-v1beta3/tslint.json b/types/gapi.client.documentai-v1beta3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.documentai-v1beta3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.domains-v1/.eslintrc.json b/types/gapi.client.domains-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.domains-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.domains-v1/tslint.json b/types/gapi.client.domains-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.domains-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.domains-v1alpha2/.eslintrc.json b/types/gapi.client.domains-v1alpha2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.domains-v1alpha2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.domains-v1alpha2/tslint.json b/types/gapi.client.domains-v1alpha2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.domains-v1alpha2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.domains-v1beta1/.eslintrc.json b/types/gapi.client.domains-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.domains-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.domains-v1beta1/tslint.json b/types/gapi.client.domains-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.domains-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.domainsrdap-v1/.eslintrc.json b/types/gapi.client.domainsrdap-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.domainsrdap-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.domainsrdap-v1/tslint.json b/types/gapi.client.domainsrdap-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.domainsrdap-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.doubleclickbidmanager-v1.1/.eslintrc.json b/types/gapi.client.doubleclickbidmanager-v1.1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.doubleclickbidmanager-v1.1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.doubleclickbidmanager-v1.1/tslint.json b/types/gapi.client.doubleclickbidmanager-v1.1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.doubleclickbidmanager-v1.1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.doubleclickbidmanager-v2/.eslintrc.json b/types/gapi.client.doubleclickbidmanager-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.doubleclickbidmanager-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.doubleclickbidmanager-v2/tslint.json b/types/gapi.client.doubleclickbidmanager-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.doubleclickbidmanager-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.doubleclicksearch-v2/.eslintrc.json b/types/gapi.client.doubleclicksearch-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.doubleclicksearch-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.doubleclicksearch-v2/tslint.json b/types/gapi.client.doubleclicksearch-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.doubleclicksearch-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.drive-v2/.eslintrc.json b/types/gapi.client.drive-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.drive-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.drive-v2/tslint.json b/types/gapi.client.drive-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.drive-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.drive-v3/.eslintrc.json b/types/gapi.client.drive-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.drive-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.drive-v3/tslint.json b/types/gapi.client.drive-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.drive-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.driveactivity-v2/.eslintrc.json b/types/gapi.client.driveactivity-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.driveactivity-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.driveactivity-v2/tslint.json b/types/gapi.client.driveactivity-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.driveactivity-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.drivelabels-v2/.eslintrc.json b/types/gapi.client.drivelabels-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.drivelabels-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.drivelabels-v2/tslint.json b/types/gapi.client.drivelabels-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.drivelabels-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.drivelabels-v2beta/.eslintrc.json b/types/gapi.client.drivelabels-v2beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.drivelabels-v2beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.drivelabels-v2beta/tslint.json b/types/gapi.client.drivelabels-v2beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.drivelabels-v2beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.essentialcontacts-v1/.eslintrc.json b/types/gapi.client.essentialcontacts-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.essentialcontacts-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.essentialcontacts-v1/tslint.json b/types/gapi.client.essentialcontacts-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.essentialcontacts-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.eventarc-v1/.eslintrc.json b/types/gapi.client.eventarc-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.eventarc-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.eventarc-v1/tslint.json b/types/gapi.client.eventarc-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.eventarc-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.eventarc-v1beta1/.eslintrc.json b/types/gapi.client.eventarc-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.eventarc-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.eventarc-v1beta1/tslint.json b/types/gapi.client.eventarc-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.eventarc-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.factchecktools-v1alpha1/.eslintrc.json b/types/gapi.client.factchecktools-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.factchecktools-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.factchecktools-v1alpha1/tslint.json b/types/gapi.client.factchecktools-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.factchecktools-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.fcm-v1/.eslintrc.json b/types/gapi.client.fcm-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.fcm-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.fcm-v1/tslint.json b/types/gapi.client.fcm-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.fcm-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.fcmdata-v1beta1/.eslintrc.json b/types/gapi.client.fcmdata-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.fcmdata-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.fcmdata-v1beta1/tslint.json b/types/gapi.client.fcmdata-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.fcmdata-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.file-v1/.eslintrc.json b/types/gapi.client.file-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.file-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.file-v1/tslint.json b/types/gapi.client.file-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.file-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.file-v1beta1/.eslintrc.json b/types/gapi.client.file-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.file-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.file-v1beta1/tslint.json b/types/gapi.client.file-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.file-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebase-v1beta1/.eslintrc.json b/types/gapi.client.firebase-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebase-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebase-v1beta1/tslint.json b/types/gapi.client.firebase-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebase-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebaseappcheck-v1/.eslintrc.json b/types/gapi.client.firebaseappcheck-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebaseappcheck-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebaseappcheck-v1/tslint.json b/types/gapi.client.firebaseappcheck-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebaseappcheck-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebaseappcheck-v1beta/.eslintrc.json b/types/gapi.client.firebaseappcheck-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebaseappcheck-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebaseappcheck-v1beta/tslint.json b/types/gapi.client.firebaseappcheck-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebaseappcheck-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebaseappdistribution-v1/.eslintrc.json b/types/gapi.client.firebaseappdistribution-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebaseappdistribution-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebaseappdistribution-v1/tslint.json b/types/gapi.client.firebaseappdistribution-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebaseappdistribution-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebasedatabase-v1beta/.eslintrc.json b/types/gapi.client.firebasedatabase-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebasedatabase-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebasedatabase-v1beta/tslint.json b/types/gapi.client.firebasedatabase-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebasedatabase-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebasedynamiclinks-v1/.eslintrc.json b/types/gapi.client.firebasedynamiclinks-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebasedynamiclinks-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebasedynamiclinks-v1/tslint.json b/types/gapi.client.firebasedynamiclinks-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebasedynamiclinks-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebasehosting-v1/.eslintrc.json b/types/gapi.client.firebasehosting-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebasehosting-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebasehosting-v1/tslint.json b/types/gapi.client.firebasehosting-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebasehosting-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebasehosting-v1beta1/.eslintrc.json b/types/gapi.client.firebasehosting-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebasehosting-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebasehosting-v1beta1/tslint.json b/types/gapi.client.firebasehosting-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebasehosting-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebaseml-v1/.eslintrc.json b/types/gapi.client.firebaseml-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebaseml-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebaseml-v1/tslint.json b/types/gapi.client.firebaseml-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebaseml-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebaseml-v1beta2/.eslintrc.json b/types/gapi.client.firebaseml-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebaseml-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebaseml-v1beta2/tslint.json b/types/gapi.client.firebaseml-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebaseml-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebaserules-v1/.eslintrc.json b/types/gapi.client.firebaserules-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebaserules-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebaserules-v1/tslint.json b/types/gapi.client.firebaserules-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebaserules-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firebasestorage-v1beta/.eslintrc.json b/types/gapi.client.firebasestorage-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firebasestorage-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firebasestorage-v1beta/tslint.json b/types/gapi.client.firebasestorage-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firebasestorage-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firestore-v1/.eslintrc.json b/types/gapi.client.firestore-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firestore-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firestore-v1/tslint.json b/types/gapi.client.firestore-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firestore-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firestore-v1beta1/.eslintrc.json b/types/gapi.client.firestore-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firestore-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firestore-v1beta1/tslint.json b/types/gapi.client.firestore-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firestore-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.firestore-v1beta2/.eslintrc.json b/types/gapi.client.firestore-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.firestore-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.firestore-v1beta2/tslint.json b/types/gapi.client.firestore-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.firestore-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.fitness-v1/.eslintrc.json b/types/gapi.client.fitness-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.fitness-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.fitness-v1/tslint.json b/types/gapi.client.fitness-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.fitness-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.forms-v1/.eslintrc.json b/types/gapi.client.forms-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.forms-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.forms-v1/tslint.json b/types/gapi.client.forms-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.forms-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.games-v1/.eslintrc.json b/types/gapi.client.games-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.games-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.games-v1/tslint.json b/types/gapi.client.games-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.games-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.games_configuration-v1configuration/.eslintrc.json b/types/gapi.client.games_configuration-v1configuration/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.games_configuration-v1configuration/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.games_configuration-v1configuration/tslint.json b/types/gapi.client.games_configuration-v1configuration/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.games_configuration-v1configuration/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.games_management-v1management/.eslintrc.json b/types/gapi.client.games_management-v1management/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.games_management-v1management/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.games_management-v1management/tslint.json b/types/gapi.client.games_management-v1management/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.games_management-v1management/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gameservices-v1/.eslintrc.json b/types/gapi.client.gameservices-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gameservices-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gameservices-v1/tslint.json b/types/gapi.client.gameservices-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gameservices-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gameservices-v1beta/.eslintrc.json b/types/gapi.client.gameservices-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gameservices-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gameservices-v1beta/tslint.json b/types/gapi.client.gameservices-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gameservices-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.genomics-v2alpha1/.eslintrc.json b/types/gapi.client.genomics-v2alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.genomics-v2alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.genomics-v2alpha1/tslint.json b/types/gapi.client.genomics-v2alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.genomics-v2alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gkebackup-v1/.eslintrc.json b/types/gapi.client.gkebackup-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gkebackup-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gkebackup-v1/tslint.json b/types/gapi.client.gkebackup-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gkebackup-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gkehub-v1/.eslintrc.json b/types/gapi.client.gkehub-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gkehub-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gkehub-v1/tslint.json b/types/gapi.client.gkehub-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gkehub-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gkehub-v1alpha/.eslintrc.json b/types/gapi.client.gkehub-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gkehub-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gkehub-v1alpha/tslint.json b/types/gapi.client.gkehub-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gkehub-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gkehub-v1alpha2/.eslintrc.json b/types/gapi.client.gkehub-v1alpha2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gkehub-v1alpha2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gkehub-v1alpha2/tslint.json b/types/gapi.client.gkehub-v1alpha2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gkehub-v1alpha2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gkehub-v1beta/.eslintrc.json b/types/gapi.client.gkehub-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gkehub-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gkehub-v1beta/tslint.json b/types/gapi.client.gkehub-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gkehub-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gkehub-v1beta1/.eslintrc.json b/types/gapi.client.gkehub-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gkehub-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gkehub-v1beta1/tslint.json b/types/gapi.client.gkehub-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gkehub-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gkehub-v2alpha/.eslintrc.json b/types/gapi.client.gkehub-v2alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gkehub-v2alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gkehub-v2alpha/tslint.json b/types/gapi.client.gkehub-v2alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gkehub-v2alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gmail-v1/.eslintrc.json b/types/gapi.client.gmail-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gmail-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gmail-v1/tslint.json b/types/gapi.client.gmail-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gmail-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gmailpostmastertools-v1/.eslintrc.json b/types/gapi.client.gmailpostmastertools-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gmailpostmastertools-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gmailpostmastertools-v1/tslint.json b/types/gapi.client.gmailpostmastertools-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gmailpostmastertools-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.gmailpostmastertools-v1beta1/.eslintrc.json b/types/gapi.client.gmailpostmastertools-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.gmailpostmastertools-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.gmailpostmastertools-v1beta1/tslint.json b/types/gapi.client.gmailpostmastertools-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.gmailpostmastertools-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v10/.eslintrc.json b/types/gapi.client.googleads-v10/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v10/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v10/tslint.json b/types/gapi.client.googleads-v10/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v10/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v11/.eslintrc.json b/types/gapi.client.googleads-v11/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v11/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v11/tslint.json b/types/gapi.client.googleads-v11/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v11/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v12/.eslintrc.json b/types/gapi.client.googleads-v12/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v12/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v12/tslint.json b/types/gapi.client.googleads-v12/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v12/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v13/.eslintrc.json b/types/gapi.client.googleads-v13/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v13/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v13/tslint.json b/types/gapi.client.googleads-v13/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v13/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v4/.eslintrc.json b/types/gapi.client.googleads-v4/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v4/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v4/tslint.json b/types/gapi.client.googleads-v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v5/.eslintrc.json b/types/gapi.client.googleads-v5/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v5/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v5/tslint.json b/types/gapi.client.googleads-v5/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v5/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v6/.eslintrc.json b/types/gapi.client.googleads-v6/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v6/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v6/tslint.json b/types/gapi.client.googleads-v6/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v6/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v7/.eslintrc.json b/types/gapi.client.googleads-v7/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v7/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v7/tslint.json b/types/gapi.client.googleads-v7/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v7/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v8/.eslintrc.json b/types/gapi.client.googleads-v8/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v8/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v8/tslint.json b/types/gapi.client.googleads-v8/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v8/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.googleads-v9/.eslintrc.json b/types/gapi.client.googleads-v9/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.googleads-v9/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.googleads-v9/tslint.json b/types/gapi.client.googleads-v9/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.googleads-v9/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.groupsmigration-v1/.eslintrc.json b/types/gapi.client.groupsmigration-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.groupsmigration-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.groupsmigration-v1/tslint.json b/types/gapi.client.groupsmigration-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.groupsmigration-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.groupssettings-v1/.eslintrc.json b/types/gapi.client.groupssettings-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.groupssettings-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.groupssettings-v1/tslint.json b/types/gapi.client.groupssettings-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.groupssettings-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.healthcare-v1/.eslintrc.json b/types/gapi.client.healthcare-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.healthcare-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.healthcare-v1/tslint.json b/types/gapi.client.healthcare-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.healthcare-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.healthcare-v1beta1/.eslintrc.json b/types/gapi.client.healthcare-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.healthcare-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.healthcare-v1beta1/tslint.json b/types/gapi.client.healthcare-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.healthcare-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.homegraph-v1/.eslintrc.json b/types/gapi.client.homegraph-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.homegraph-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.homegraph-v1/tslint.json b/types/gapi.client.homegraph-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.homegraph-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.iam-v1/.eslintrc.json b/types/gapi.client.iam-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.iam-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.iam-v1/tslint.json b/types/gapi.client.iam-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.iam-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.iam-v2/.eslintrc.json b/types/gapi.client.iam-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.iam-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.iam-v2/tslint.json b/types/gapi.client.iam-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.iam-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.iam-v2beta/.eslintrc.json b/types/gapi.client.iam-v2beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.iam-v2beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.iam-v2beta/tslint.json b/types/gapi.client.iam-v2beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.iam-v2beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.iamcredentials-v1/.eslintrc.json b/types/gapi.client.iamcredentials-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.iamcredentials-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.iamcredentials-v1/tslint.json b/types/gapi.client.iamcredentials-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.iamcredentials-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.iap-v1/.eslintrc.json b/types/gapi.client.iap-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.iap-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.iap-v1/tslint.json b/types/gapi.client.iap-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.iap-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.iap-v1beta1/.eslintrc.json b/types/gapi.client.iap-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.iap-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.iap-v1beta1/tslint.json b/types/gapi.client.iap-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.iap-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.identitytoolkit-v1/.eslintrc.json b/types/gapi.client.identitytoolkit-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.identitytoolkit-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.identitytoolkit-v1/tslint.json b/types/gapi.client.identitytoolkit-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.identitytoolkit-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.identitytoolkit-v2/.eslintrc.json b/types/gapi.client.identitytoolkit-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.identitytoolkit-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.identitytoolkit-v2/tslint.json b/types/gapi.client.identitytoolkit-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.identitytoolkit-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.identitytoolkit-v3/.eslintrc.json b/types/gapi.client.identitytoolkit-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.identitytoolkit-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.identitytoolkit-v3/tslint.json b/types/gapi.client.identitytoolkit-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.identitytoolkit-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.ids-v1/.eslintrc.json b/types/gapi.client.ids-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.ids-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.ids-v1/tslint.json b/types/gapi.client.ids-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.ids-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.indexing-v3/.eslintrc.json b/types/gapi.client.indexing-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.indexing-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.indexing-v3/tslint.json b/types/gapi.client.indexing-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.indexing-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.integrations-v1alpha/.eslintrc.json b/types/gapi.client.integrations-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.integrations-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.integrations-v1alpha/tslint.json b/types/gapi.client.integrations-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.integrations-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.jobs-v3/.eslintrc.json b/types/gapi.client.jobs-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.jobs-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.jobs-v3/tslint.json b/types/gapi.client.jobs-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.jobs-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.jobs-v3p1beta1/.eslintrc.json b/types/gapi.client.jobs-v3p1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.jobs-v3p1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.jobs-v3p1beta1/tslint.json b/types/gapi.client.jobs-v3p1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.jobs-v3p1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.jobs-v4/.eslintrc.json b/types/gapi.client.jobs-v4/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.jobs-v4/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.jobs-v4/tslint.json b/types/gapi.client.jobs-v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.jobs-v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.keep-v1/.eslintrc.json b/types/gapi.client.keep-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.keep-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.keep-v1/tslint.json b/types/gapi.client.keep-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.keep-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.kgsearch-v1/.eslintrc.json b/types/gapi.client.kgsearch-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.kgsearch-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.kgsearch-v1/tslint.json b/types/gapi.client.kgsearch-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.kgsearch-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.kmsinventory-v1/.eslintrc.json b/types/gapi.client.kmsinventory-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.kmsinventory-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.kmsinventory-v1/tslint.json b/types/gapi.client.kmsinventory-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.kmsinventory-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.language-v1/.eslintrc.json b/types/gapi.client.language-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.language-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.language-v1/tslint.json b/types/gapi.client.language-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.language-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.language-v1beta2/.eslintrc.json b/types/gapi.client.language-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.language-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.language-v1beta2/tslint.json b/types/gapi.client.language-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.language-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.libraryagent-v1/.eslintrc.json b/types/gapi.client.libraryagent-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.libraryagent-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.libraryagent-v1/tslint.json b/types/gapi.client.libraryagent-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.libraryagent-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.licensing-v1/.eslintrc.json b/types/gapi.client.licensing-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.licensing-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.licensing-v1/tslint.json b/types/gapi.client.licensing-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.licensing-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.lifesciences-v2beta/.eslintrc.json b/types/gapi.client.lifesciences-v2beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.lifesciences-v2beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.lifesciences-v2beta/tslint.json b/types/gapi.client.lifesciences-v2beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.lifesciences-v2beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.localservices-v1/.eslintrc.json b/types/gapi.client.localservices-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.localservices-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.localservices-v1/tslint.json b/types/gapi.client.localservices-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.localservices-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.logging-v2/.eslintrc.json b/types/gapi.client.logging-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.logging-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.logging-v2/tslint.json b/types/gapi.client.logging-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.logging-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.managedidentities-v1/.eslintrc.json b/types/gapi.client.managedidentities-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.managedidentities-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.managedidentities-v1/tslint.json b/types/gapi.client.managedidentities-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.managedidentities-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.managedidentities-v1alpha1/.eslintrc.json b/types/gapi.client.managedidentities-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.managedidentities-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.managedidentities-v1alpha1/tslint.json b/types/gapi.client.managedidentities-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.managedidentities-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.managedidentities-v1beta1/.eslintrc.json b/types/gapi.client.managedidentities-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.managedidentities-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.managedidentities-v1beta1/tslint.json b/types/gapi.client.managedidentities-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.managedidentities-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.manufacturers-v1/.eslintrc.json b/types/gapi.client.manufacturers-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.manufacturers-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.manufacturers-v1/tslint.json b/types/gapi.client.manufacturers-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.manufacturers-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.memcache-v1/.eslintrc.json b/types/gapi.client.memcache-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.memcache-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.memcache-v1/tslint.json b/types/gapi.client.memcache-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.memcache-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.memcache-v1beta2/.eslintrc.json b/types/gapi.client.memcache-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.memcache-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.memcache-v1beta2/tslint.json b/types/gapi.client.memcache-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.memcache-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.metastore-v1/.eslintrc.json b/types/gapi.client.metastore-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.metastore-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.metastore-v1/tslint.json b/types/gapi.client.metastore-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.metastore-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.metastore-v1alpha/.eslintrc.json b/types/gapi.client.metastore-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.metastore-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.metastore-v1alpha/tslint.json b/types/gapi.client.metastore-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.metastore-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.metastore-v1beta/.eslintrc.json b/types/gapi.client.metastore-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.metastore-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.metastore-v1beta/tslint.json b/types/gapi.client.metastore-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.metastore-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.migrationcenter-v1alpha1/.eslintrc.json b/types/gapi.client.migrationcenter-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.migrationcenter-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.migrationcenter-v1alpha1/tslint.json b/types/gapi.client.migrationcenter-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.migrationcenter-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.ml-v1/.eslintrc.json b/types/gapi.client.ml-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.ml-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.ml-v1/tslint.json b/types/gapi.client.ml-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.ml-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.monitoring-v1/.eslintrc.json b/types/gapi.client.monitoring-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.monitoring-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.monitoring-v1/tslint.json b/types/gapi.client.monitoring-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.monitoring-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.monitoring-v3/.eslintrc.json b/types/gapi.client.monitoring-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.monitoring-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.monitoring-v3/tslint.json b/types/gapi.client.monitoring-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.monitoring-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.mybusinessaccountmanagement-v1/.eslintrc.json b/types/gapi.client.mybusinessaccountmanagement-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.mybusinessaccountmanagement-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.mybusinessaccountmanagement-v1/tslint.json b/types/gapi.client.mybusinessaccountmanagement-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.mybusinessaccountmanagement-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.mybusinessbusinesscalls-v1/.eslintrc.json b/types/gapi.client.mybusinessbusinesscalls-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.mybusinessbusinesscalls-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.mybusinessbusinesscalls-v1/tslint.json b/types/gapi.client.mybusinessbusinesscalls-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.mybusinessbusinesscalls-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.mybusinessbusinessinformation-v1/.eslintrc.json b/types/gapi.client.mybusinessbusinessinformation-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.mybusinessbusinessinformation-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.mybusinessbusinessinformation-v1/tslint.json b/types/gapi.client.mybusinessbusinessinformation-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.mybusinessbusinessinformation-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.mybusinesslodging-v1/.eslintrc.json b/types/gapi.client.mybusinesslodging-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.mybusinesslodging-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.mybusinesslodging-v1/tslint.json b/types/gapi.client.mybusinesslodging-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.mybusinesslodging-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.mybusinessnotifications-v1/.eslintrc.json b/types/gapi.client.mybusinessnotifications-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.mybusinessnotifications-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.mybusinessnotifications-v1/tslint.json b/types/gapi.client.mybusinessnotifications-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.mybusinessnotifications-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.mybusinessplaceactions-v1/.eslintrc.json b/types/gapi.client.mybusinessplaceactions-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.mybusinessplaceactions-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.mybusinessplaceactions-v1/tslint.json b/types/gapi.client.mybusinessplaceactions-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.mybusinessplaceactions-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.mybusinessqanda-v1/.eslintrc.json b/types/gapi.client.mybusinessqanda-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.mybusinessqanda-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.mybusinessqanda-v1/tslint.json b/types/gapi.client.mybusinessqanda-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.mybusinessqanda-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.mybusinessverifications-v1/.eslintrc.json b/types/gapi.client.mybusinessverifications-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.mybusinessverifications-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.mybusinessverifications-v1/tslint.json b/types/gapi.client.mybusinessverifications-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.mybusinessverifications-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.networkconnectivity-v1/.eslintrc.json b/types/gapi.client.networkconnectivity-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.networkconnectivity-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.networkconnectivity-v1/tslint.json b/types/gapi.client.networkconnectivity-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.networkconnectivity-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.networkconnectivity-v1alpha1/.eslintrc.json b/types/gapi.client.networkconnectivity-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.networkconnectivity-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.networkconnectivity-v1alpha1/tslint.json b/types/gapi.client.networkconnectivity-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.networkconnectivity-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.networkmanagement-v1/.eslintrc.json b/types/gapi.client.networkmanagement-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.networkmanagement-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.networkmanagement-v1/tslint.json b/types/gapi.client.networkmanagement-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.networkmanagement-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.networkmanagement-v1beta1/.eslintrc.json b/types/gapi.client.networkmanagement-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.networkmanagement-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.networkmanagement-v1beta1/tslint.json b/types/gapi.client.networkmanagement-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.networkmanagement-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.networksecurity-v1/.eslintrc.json b/types/gapi.client.networksecurity-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.networksecurity-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.networksecurity-v1/tslint.json b/types/gapi.client.networksecurity-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.networksecurity-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.networksecurity-v1beta1/.eslintrc.json b/types/gapi.client.networksecurity-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.networksecurity-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.networksecurity-v1beta1/tslint.json b/types/gapi.client.networksecurity-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.networksecurity-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.networkservices-v1/.eslintrc.json b/types/gapi.client.networkservices-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.networkservices-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.networkservices-v1/tslint.json b/types/gapi.client.networkservices-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.networkservices-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.networkservices-v1beta1/.eslintrc.json b/types/gapi.client.networkservices-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.networkservices-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.networkservices-v1beta1/tslint.json b/types/gapi.client.networkservices-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.networkservices-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.notebooks-v1/.eslintrc.json b/types/gapi.client.notebooks-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.notebooks-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.notebooks-v1/tslint.json b/types/gapi.client.notebooks-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.notebooks-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.notebooks-v2/.eslintrc.json b/types/gapi.client.notebooks-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.notebooks-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.notebooks-v2/tslint.json b/types/gapi.client.notebooks-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.notebooks-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.oauth2-v2/.eslintrc.json b/types/gapi.client.oauth2-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.oauth2-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.oauth2-v2/tslint.json b/types/gapi.client.oauth2-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.oauth2-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.ondemandscanning-v1/.eslintrc.json b/types/gapi.client.ondemandscanning-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.ondemandscanning-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.ondemandscanning-v1/tslint.json b/types/gapi.client.ondemandscanning-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.ondemandscanning-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.ondemandscanning-v1beta1/.eslintrc.json b/types/gapi.client.ondemandscanning-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.ondemandscanning-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.ondemandscanning-v1beta1/tslint.json b/types/gapi.client.ondemandscanning-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.ondemandscanning-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.orgpolicy-v2/.eslintrc.json b/types/gapi.client.orgpolicy-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.orgpolicy-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.orgpolicy-v2/tslint.json b/types/gapi.client.orgpolicy-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.orgpolicy-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.osconfig-v1/.eslintrc.json b/types/gapi.client.osconfig-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.osconfig-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.osconfig-v1/tslint.json b/types/gapi.client.osconfig-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.osconfig-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.osconfig-v1alpha/.eslintrc.json b/types/gapi.client.osconfig-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.osconfig-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.osconfig-v1alpha/tslint.json b/types/gapi.client.osconfig-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.osconfig-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.osconfig-v1beta/.eslintrc.json b/types/gapi.client.osconfig-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.osconfig-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.osconfig-v1beta/tslint.json b/types/gapi.client.osconfig-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.osconfig-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.oslogin-v1/.eslintrc.json b/types/gapi.client.oslogin-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.oslogin-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.oslogin-v1/tslint.json b/types/gapi.client.oslogin-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.oslogin-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.oslogin-v1alpha/.eslintrc.json b/types/gapi.client.oslogin-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.oslogin-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.oslogin-v1alpha/tslint.json b/types/gapi.client.oslogin-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.oslogin-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.oslogin-v1beta/.eslintrc.json b/types/gapi.client.oslogin-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.oslogin-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.oslogin-v1beta/tslint.json b/types/gapi.client.oslogin-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.oslogin-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.pagespeedonline-v5/.eslintrc.json b/types/gapi.client.pagespeedonline-v5/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.pagespeedonline-v5/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.pagespeedonline-v5/tslint.json b/types/gapi.client.pagespeedonline-v5/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.pagespeedonline-v5/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.paymentsresellersubscription-v1/.eslintrc.json b/types/gapi.client.paymentsresellersubscription-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.paymentsresellersubscription-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.paymentsresellersubscription-v1/tslint.json b/types/gapi.client.paymentsresellersubscription-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.paymentsresellersubscription-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.people-v1/.eslintrc.json b/types/gapi.client.people-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.people-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.people-v1/tslint.json b/types/gapi.client.people-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.people-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.playcustomapp-v1/.eslintrc.json b/types/gapi.client.playcustomapp-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.playcustomapp-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.playcustomapp-v1/tslint.json b/types/gapi.client.playcustomapp-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.playcustomapp-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.playdeveloperreporting-v1alpha1/.eslintrc.json b/types/gapi.client.playdeveloperreporting-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.playdeveloperreporting-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.playdeveloperreporting-v1alpha1/tslint.json b/types/gapi.client.playdeveloperreporting-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.playdeveloperreporting-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.playdeveloperreporting-v1beta1/.eslintrc.json b/types/gapi.client.playdeveloperreporting-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.playdeveloperreporting-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.playdeveloperreporting-v1beta1/tslint.json b/types/gapi.client.playdeveloperreporting-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.playdeveloperreporting-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.playintegrity-v1/.eslintrc.json b/types/gapi.client.playintegrity-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.playintegrity-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.playintegrity-v1/tslint.json b/types/gapi.client.playintegrity-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.playintegrity-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.policyanalyzer-v1/.eslintrc.json b/types/gapi.client.policyanalyzer-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.policyanalyzer-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.policyanalyzer-v1/tslint.json b/types/gapi.client.policyanalyzer-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.policyanalyzer-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.policyanalyzer-v1beta1/.eslintrc.json b/types/gapi.client.policyanalyzer-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.policyanalyzer-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.policyanalyzer-v1beta1/tslint.json b/types/gapi.client.policyanalyzer-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.policyanalyzer-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.policysimulator-v1/.eslintrc.json b/types/gapi.client.policysimulator-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.policysimulator-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.policysimulator-v1/tslint.json b/types/gapi.client.policysimulator-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.policysimulator-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.policysimulator-v1alpha/.eslintrc.json b/types/gapi.client.policysimulator-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.policysimulator-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.policysimulator-v1alpha/tslint.json b/types/gapi.client.policysimulator-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.policysimulator-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.policysimulator-v1beta/.eslintrc.json b/types/gapi.client.policysimulator-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.policysimulator-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.policysimulator-v1beta/tslint.json b/types/gapi.client.policysimulator-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.policysimulator-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.policytroubleshooter-v1/.eslintrc.json b/types/gapi.client.policytroubleshooter-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.policytroubleshooter-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.policytroubleshooter-v1/tslint.json b/types/gapi.client.policytroubleshooter-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.policytroubleshooter-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.policytroubleshooter-v1beta/.eslintrc.json b/types/gapi.client.policytroubleshooter-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.policytroubleshooter-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.policytroubleshooter-v1beta/tslint.json b/types/gapi.client.policytroubleshooter-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.policytroubleshooter-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.poly-v1/.eslintrc.json b/types/gapi.client.poly-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.poly-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.poly-v1/tslint.json b/types/gapi.client.poly-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.poly-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.privateca-v1/.eslintrc.json b/types/gapi.client.privateca-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.privateca-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.privateca-v1/tslint.json b/types/gapi.client.privateca-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.privateca-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.privateca-v1beta1/.eslintrc.json b/types/gapi.client.privateca-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.privateca-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.privateca-v1beta1/tslint.json b/types/gapi.client.privateca-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.privateca-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.prod_tt_sasportal-v1alpha1/.eslintrc.json b/types/gapi.client.prod_tt_sasportal-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.prod_tt_sasportal-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.prod_tt_sasportal-v1alpha1/tslint.json b/types/gapi.client.prod_tt_sasportal-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.prod_tt_sasportal-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.publicca-v1alpha1/.eslintrc.json b/types/gapi.client.publicca-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.publicca-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.publicca-v1alpha1/tslint.json b/types/gapi.client.publicca-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.publicca-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.publicca-v1beta1/.eslintrc.json b/types/gapi.client.publicca-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.publicca-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.publicca-v1beta1/tslint.json b/types/gapi.client.publicca-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.publicca-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.pubsub-v1/.eslintrc.json b/types/gapi.client.pubsub-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.pubsub-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.pubsub-v1/tslint.json b/types/gapi.client.pubsub-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.pubsub-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.pubsub-v1beta1a/.eslintrc.json b/types/gapi.client.pubsub-v1beta1a/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.pubsub-v1beta1a/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.pubsub-v1beta1a/tslint.json b/types/gapi.client.pubsub-v1beta1a/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.pubsub-v1beta1a/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.pubsub-v1beta2/.eslintrc.json b/types/gapi.client.pubsub-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.pubsub-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.pubsub-v1beta2/tslint.json b/types/gapi.client.pubsub-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.pubsub-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.pubsublite-v1/.eslintrc.json b/types/gapi.client.pubsublite-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.pubsublite-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.pubsublite-v1/tslint.json b/types/gapi.client.pubsublite-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.pubsublite-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.readerrevenuesubscriptionlinking-v1/.eslintrc.json b/types/gapi.client.readerrevenuesubscriptionlinking-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.readerrevenuesubscriptionlinking-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.readerrevenuesubscriptionlinking-v1/tslint.json b/types/gapi.client.readerrevenuesubscriptionlinking-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.readerrevenuesubscriptionlinking-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.realtimebidding-v1/.eslintrc.json b/types/gapi.client.realtimebidding-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.realtimebidding-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.realtimebidding-v1/tslint.json b/types/gapi.client.realtimebidding-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.realtimebidding-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.realtimebidding-v1alpha/.eslintrc.json b/types/gapi.client.realtimebidding-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.realtimebidding-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.realtimebidding-v1alpha/tslint.json b/types/gapi.client.realtimebidding-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.realtimebidding-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.recaptchaenterprise-v1/.eslintrc.json b/types/gapi.client.recaptchaenterprise-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.recaptchaenterprise-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.recaptchaenterprise-v1/tslint.json b/types/gapi.client.recaptchaenterprise-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.recaptchaenterprise-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.recommendationengine-v1beta1/.eslintrc.json b/types/gapi.client.recommendationengine-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.recommendationengine-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.recommendationengine-v1beta1/tslint.json b/types/gapi.client.recommendationengine-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.recommendationengine-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.recommender-v1/.eslintrc.json b/types/gapi.client.recommender-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.recommender-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.recommender-v1/tslint.json b/types/gapi.client.recommender-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.recommender-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.recommender-v1beta1/.eslintrc.json b/types/gapi.client.recommender-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.recommender-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.recommender-v1beta1/tslint.json b/types/gapi.client.recommender-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.recommender-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.redis-v1/.eslintrc.json b/types/gapi.client.redis-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.redis-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.redis-v1/tslint.json b/types/gapi.client.redis-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.redis-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.redis-v1beta1/.eslintrc.json b/types/gapi.client.redis-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.redis-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.redis-v1beta1/tslint.json b/types/gapi.client.redis-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.redis-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.reseller-v1/.eslintrc.json b/types/gapi.client.reseller-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.reseller-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.reseller-v1/tslint.json b/types/gapi.client.reseller-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.reseller-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.resourcesettings-v1/.eslintrc.json b/types/gapi.client.resourcesettings-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.resourcesettings-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.resourcesettings-v1/tslint.json b/types/gapi.client.resourcesettings-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.resourcesettings-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.retail-v2/.eslintrc.json b/types/gapi.client.retail-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.retail-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.retail-v2/tslint.json b/types/gapi.client.retail-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.retail-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.retail-v2alpha/.eslintrc.json b/types/gapi.client.retail-v2alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.retail-v2alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.retail-v2alpha/tslint.json b/types/gapi.client.retail-v2alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.retail-v2alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.retail-v2beta/.eslintrc.json b/types/gapi.client.retail-v2beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.retail-v2beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.retail-v2beta/tslint.json b/types/gapi.client.retail-v2beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.retail-v2beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.run-v1/.eslintrc.json b/types/gapi.client.run-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.run-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.run-v1/tslint.json b/types/gapi.client.run-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.run-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.run-v2/.eslintrc.json b/types/gapi.client.run-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.run-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.run-v2/tslint.json b/types/gapi.client.run-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.run-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.runtimeconfig-v1/.eslintrc.json b/types/gapi.client.runtimeconfig-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.runtimeconfig-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.runtimeconfig-v1/tslint.json b/types/gapi.client.runtimeconfig-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.runtimeconfig-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.runtimeconfig-v1beta1/.eslintrc.json b/types/gapi.client.runtimeconfig-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.runtimeconfig-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.runtimeconfig-v1beta1/tslint.json b/types/gapi.client.runtimeconfig-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.runtimeconfig-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.safebrowsing-v4/.eslintrc.json b/types/gapi.client.safebrowsing-v4/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.safebrowsing-v4/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.safebrowsing-v4/tslint.json b/types/gapi.client.safebrowsing-v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.safebrowsing-v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.sasportal-v1alpha1/.eslintrc.json b/types/gapi.client.sasportal-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.sasportal-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.sasportal-v1alpha1/tslint.json b/types/gapi.client.sasportal-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.sasportal-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.script-v1/.eslintrc.json b/types/gapi.client.script-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.script-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.script-v1/tslint.json b/types/gapi.client.script-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.script-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.searchads360-v0/.eslintrc.json b/types/gapi.client.searchads360-v0/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.searchads360-v0/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.searchads360-v0/tslint.json b/types/gapi.client.searchads360-v0/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.searchads360-v0/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.searchconsole-v1/.eslintrc.json b/types/gapi.client.searchconsole-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.searchconsole-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.searchconsole-v1/tslint.json b/types/gapi.client.searchconsole-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.searchconsole-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.secretmanager-v1/.eslintrc.json b/types/gapi.client.secretmanager-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.secretmanager-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.secretmanager-v1/tslint.json b/types/gapi.client.secretmanager-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.secretmanager-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.secretmanager-v1beta1/.eslintrc.json b/types/gapi.client.secretmanager-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.secretmanager-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.secretmanager-v1beta1/tslint.json b/types/gapi.client.secretmanager-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.secretmanager-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.securitycenter-v1/.eslintrc.json b/types/gapi.client.securitycenter-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.securitycenter-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.securitycenter-v1/tslint.json b/types/gapi.client.securitycenter-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.securitycenter-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.securitycenter-v1beta1/.eslintrc.json b/types/gapi.client.securitycenter-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.securitycenter-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.securitycenter-v1beta1/tslint.json b/types/gapi.client.securitycenter-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.securitycenter-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.securitycenter-v1beta2/.eslintrc.json b/types/gapi.client.securitycenter-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.securitycenter-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.securitycenter-v1beta2/tslint.json b/types/gapi.client.securitycenter-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.securitycenter-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.serviceconsumermanagement-v1/.eslintrc.json b/types/gapi.client.serviceconsumermanagement-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.serviceconsumermanagement-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.serviceconsumermanagement-v1/tslint.json b/types/gapi.client.serviceconsumermanagement-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.serviceconsumermanagement-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.serviceconsumermanagement-v1beta1/.eslintrc.json b/types/gapi.client.serviceconsumermanagement-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.serviceconsumermanagement-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.serviceconsumermanagement-v1beta1/tslint.json b/types/gapi.client.serviceconsumermanagement-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.serviceconsumermanagement-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.servicecontrol-v1/.eslintrc.json b/types/gapi.client.servicecontrol-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.servicecontrol-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.servicecontrol-v1/tslint.json b/types/gapi.client.servicecontrol-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.servicecontrol-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.servicecontrol-v2/.eslintrc.json b/types/gapi.client.servicecontrol-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.servicecontrol-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.servicecontrol-v2/tslint.json b/types/gapi.client.servicecontrol-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.servicecontrol-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.servicedirectory-v1/.eslintrc.json b/types/gapi.client.servicedirectory-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.servicedirectory-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.servicedirectory-v1/tslint.json b/types/gapi.client.servicedirectory-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.servicedirectory-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.servicedirectory-v1beta1/.eslintrc.json b/types/gapi.client.servicedirectory-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.servicedirectory-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.servicedirectory-v1beta1/tslint.json b/types/gapi.client.servicedirectory-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.servicedirectory-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.servicemanagement-v1/.eslintrc.json b/types/gapi.client.servicemanagement-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.servicemanagement-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.servicemanagement-v1/tslint.json b/types/gapi.client.servicemanagement-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.servicemanagement-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.servicenetworking-v1/.eslintrc.json b/types/gapi.client.servicenetworking-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.servicenetworking-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.servicenetworking-v1/tslint.json b/types/gapi.client.servicenetworking-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.servicenetworking-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.servicenetworking-v1beta/.eslintrc.json b/types/gapi.client.servicenetworking-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.servicenetworking-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.servicenetworking-v1beta/tslint.json b/types/gapi.client.servicenetworking-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.servicenetworking-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.serviceusage-v1/.eslintrc.json b/types/gapi.client.serviceusage-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.serviceusage-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.serviceusage-v1/tslint.json b/types/gapi.client.serviceusage-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.serviceusage-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.serviceusage-v1beta1/.eslintrc.json b/types/gapi.client.serviceusage-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.serviceusage-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.serviceusage-v1beta1/tslint.json b/types/gapi.client.serviceusage-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.serviceusage-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.sheets-v4/.eslintrc.json b/types/gapi.client.sheets-v4/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.sheets-v4/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.sheets-v4/tslint.json b/types/gapi.client.sheets-v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.sheets-v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.site_verification-v1/.eslintrc.json b/types/gapi.client.site_verification-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.site_verification-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.site_verification-v1/tslint.json b/types/gapi.client.site_verification-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.site_verification-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.slides-v1/.eslintrc.json b/types/gapi.client.slides-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.slides-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.slides-v1/tslint.json b/types/gapi.client.slides-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.slides-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.smartdevicemanagement-v1/.eslintrc.json b/types/gapi.client.smartdevicemanagement-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.smartdevicemanagement-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.smartdevicemanagement-v1/tslint.json b/types/gapi.client.smartdevicemanagement-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.smartdevicemanagement-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.sourcerepo-v1/.eslintrc.json b/types/gapi.client.sourcerepo-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.sourcerepo-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.sourcerepo-v1/tslint.json b/types/gapi.client.sourcerepo-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.sourcerepo-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.spanner-v1/.eslintrc.json b/types/gapi.client.spanner-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.spanner-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.spanner-v1/tslint.json b/types/gapi.client.spanner-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.spanner-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.speech-v1/.eslintrc.json b/types/gapi.client.speech-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.speech-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.speech-v1/tslint.json b/types/gapi.client.speech-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.speech-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.speech-v1p1beta1/.eslintrc.json b/types/gapi.client.speech-v1p1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.speech-v1p1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.speech-v1p1beta1/tslint.json b/types/gapi.client.speech-v1p1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.speech-v1p1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.sqladmin-v1/.eslintrc.json b/types/gapi.client.sqladmin-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.sqladmin-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.sqladmin-v1/tslint.json b/types/gapi.client.sqladmin-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.sqladmin-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.sqladmin-v1beta4/.eslintrc.json b/types/gapi.client.sqladmin-v1beta4/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.sqladmin-v1beta4/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.sqladmin-v1beta4/tslint.json b/types/gapi.client.sqladmin-v1beta4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.sqladmin-v1beta4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.storage-v1/.eslintrc.json b/types/gapi.client.storage-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.storage-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.storage-v1/tslint.json b/types/gapi.client.storage-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.storage-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.storagetransfer-v1/.eslintrc.json b/types/gapi.client.storagetransfer-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.storagetransfer-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.storagetransfer-v1/tslint.json b/types/gapi.client.storagetransfer-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.storagetransfer-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.streetviewpublish-v1/.eslintrc.json b/types/gapi.client.streetviewpublish-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.streetviewpublish-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.streetviewpublish-v1/tslint.json b/types/gapi.client.streetviewpublish-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.streetviewpublish-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.sts-v1/.eslintrc.json b/types/gapi.client.sts-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.sts-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.sts-v1/tslint.json b/types/gapi.client.sts-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.sts-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.sts-v1beta/.eslintrc.json b/types/gapi.client.sts-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.sts-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.sts-v1beta/tslint.json b/types/gapi.client.sts-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.sts-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.tagmanager-v1/.eslintrc.json b/types/gapi.client.tagmanager-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.tagmanager-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.tagmanager-v1/tslint.json b/types/gapi.client.tagmanager-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.tagmanager-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.tagmanager-v2/.eslintrc.json b/types/gapi.client.tagmanager-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.tagmanager-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.tagmanager-v2/tslint.json b/types/gapi.client.tagmanager-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.tagmanager-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.tasks-v1/.eslintrc.json b/types/gapi.client.tasks-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.tasks-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.tasks-v1/tslint.json b/types/gapi.client.tasks-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.tasks-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.testing-v1/.eslintrc.json b/types/gapi.client.testing-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.testing-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.testing-v1/tslint.json b/types/gapi.client.testing-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.testing-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.texttospeech-v1/.eslintrc.json b/types/gapi.client.texttospeech-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.texttospeech-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.texttospeech-v1/tslint.json b/types/gapi.client.texttospeech-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.texttospeech-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.texttospeech-v1beta1/.eslintrc.json b/types/gapi.client.texttospeech-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.texttospeech-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.texttospeech-v1beta1/tslint.json b/types/gapi.client.texttospeech-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.texttospeech-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.toolresults-v1beta3/.eslintrc.json b/types/gapi.client.toolresults-v1beta3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.toolresults-v1beta3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.toolresults-v1beta3/tslint.json b/types/gapi.client.toolresults-v1beta3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.toolresults-v1beta3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.tpu-v1/.eslintrc.json b/types/gapi.client.tpu-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.tpu-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.tpu-v1/tslint.json b/types/gapi.client.tpu-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.tpu-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.tpu-v1alpha1/.eslintrc.json b/types/gapi.client.tpu-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.tpu-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.tpu-v1alpha1/tslint.json b/types/gapi.client.tpu-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.tpu-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.tpu-v2/.eslintrc.json b/types/gapi.client.tpu-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.tpu-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.tpu-v2/tslint.json b/types/gapi.client.tpu-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.tpu-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.tpu-v2alpha1/.eslintrc.json b/types/gapi.client.tpu-v2alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.tpu-v2alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.tpu-v2alpha1/tslint.json b/types/gapi.client.tpu-v2alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.tpu-v2alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.trafficdirector-v2/.eslintrc.json b/types/gapi.client.trafficdirector-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.trafficdirector-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.trafficdirector-v2/tslint.json b/types/gapi.client.trafficdirector-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.trafficdirector-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.transcoder-v1/.eslintrc.json b/types/gapi.client.transcoder-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.transcoder-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.transcoder-v1/tslint.json b/types/gapi.client.transcoder-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.transcoder-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.translate-v2/.eslintrc.json b/types/gapi.client.translate-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.translate-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.translate-v2/tslint.json b/types/gapi.client.translate-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.translate-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.translate-v3/.eslintrc.json b/types/gapi.client.translate-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.translate-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.translate-v3/tslint.json b/types/gapi.client.translate-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.translate-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.translate-v3beta1/.eslintrc.json b/types/gapi.client.translate-v3beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.translate-v3beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.translate-v3beta1/tslint.json b/types/gapi.client.translate-v3beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.translate-v3beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.travelimpactmodel-v1/.eslintrc.json b/types/gapi.client.travelimpactmodel-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.travelimpactmodel-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.travelimpactmodel-v1/tslint.json b/types/gapi.client.travelimpactmodel-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.travelimpactmodel-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.vault-v1/.eslintrc.json b/types/gapi.client.vault-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.vault-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.vault-v1/tslint.json b/types/gapi.client.vault-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.vault-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.verifiedaccess-v1/.eslintrc.json b/types/gapi.client.verifiedaccess-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.verifiedaccess-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.verifiedaccess-v1/tslint.json b/types/gapi.client.verifiedaccess-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.verifiedaccess-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.verifiedaccess-v2/.eslintrc.json b/types/gapi.client.verifiedaccess-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.verifiedaccess-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.verifiedaccess-v2/tslint.json b/types/gapi.client.verifiedaccess-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.verifiedaccess-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.versionhistory-v1/.eslintrc.json b/types/gapi.client.versionhistory-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.versionhistory-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.versionhistory-v1/tslint.json b/types/gapi.client.versionhistory-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.versionhistory-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.videointelligence-v1/.eslintrc.json b/types/gapi.client.videointelligence-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.videointelligence-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.videointelligence-v1/tslint.json b/types/gapi.client.videointelligence-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.videointelligence-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.videointelligence-v1beta2/.eslintrc.json b/types/gapi.client.videointelligence-v1beta2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.videointelligence-v1beta2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.videointelligence-v1beta2/tslint.json b/types/gapi.client.videointelligence-v1beta2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.videointelligence-v1beta2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.videointelligence-v1p1beta1/.eslintrc.json b/types/gapi.client.videointelligence-v1p1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.videointelligence-v1p1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.videointelligence-v1p1beta1/tslint.json b/types/gapi.client.videointelligence-v1p1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.videointelligence-v1p1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.videointelligence-v1p2beta1/.eslintrc.json b/types/gapi.client.videointelligence-v1p2beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.videointelligence-v1p2beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.videointelligence-v1p2beta1/tslint.json b/types/gapi.client.videointelligence-v1p2beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.videointelligence-v1p2beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.videointelligence-v1p3beta1/.eslintrc.json b/types/gapi.client.videointelligence-v1p3beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.videointelligence-v1p3beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.videointelligence-v1p3beta1/tslint.json b/types/gapi.client.videointelligence-v1p3beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.videointelligence-v1p3beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.vision-v1/.eslintrc.json b/types/gapi.client.vision-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.vision-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.vision-v1/tslint.json b/types/gapi.client.vision-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.vision-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.vision-v1p1beta1/.eslintrc.json b/types/gapi.client.vision-v1p1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.vision-v1p1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.vision-v1p1beta1/tslint.json b/types/gapi.client.vision-v1p1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.vision-v1p1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.vision-v1p2beta1/.eslintrc.json b/types/gapi.client.vision-v1p2beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.vision-v1p2beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.vision-v1p2beta1/tslint.json b/types/gapi.client.vision-v1p2beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.vision-v1p2beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.vmmigration-v1/.eslintrc.json b/types/gapi.client.vmmigration-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.vmmigration-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.vmmigration-v1/tslint.json b/types/gapi.client.vmmigration-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.vmmigration-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.vmmigration-v1alpha1/.eslintrc.json b/types/gapi.client.vmmigration-v1alpha1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.vmmigration-v1alpha1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.vmmigration-v1alpha1/tslint.json b/types/gapi.client.vmmigration-v1alpha1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.vmmigration-v1alpha1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.vpcaccess-v1/.eslintrc.json b/types/gapi.client.vpcaccess-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.vpcaccess-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.vpcaccess-v1/tslint.json b/types/gapi.client.vpcaccess-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.vpcaccess-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.vpcaccess-v1beta1/.eslintrc.json b/types/gapi.client.vpcaccess-v1beta1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.vpcaccess-v1beta1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.vpcaccess-v1beta1/tslint.json b/types/gapi.client.vpcaccess-v1beta1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.vpcaccess-v1beta1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.webfonts-v1/.eslintrc.json b/types/gapi.client.webfonts-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.webfonts-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.webfonts-v1/tslint.json b/types/gapi.client.webfonts-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.webfonts-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.webrisk-v1/.eslintrc.json b/types/gapi.client.webrisk-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.webrisk-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.webrisk-v1/tslint.json b/types/gapi.client.webrisk-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.webrisk-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.websecurityscanner-v1/.eslintrc.json b/types/gapi.client.websecurityscanner-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.websecurityscanner-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.websecurityscanner-v1/tslint.json b/types/gapi.client.websecurityscanner-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.websecurityscanner-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.websecurityscanner-v1alpha/.eslintrc.json b/types/gapi.client.websecurityscanner-v1alpha/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.websecurityscanner-v1alpha/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.websecurityscanner-v1alpha/tslint.json b/types/gapi.client.websecurityscanner-v1alpha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.websecurityscanner-v1alpha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.websecurityscanner-v1beta/.eslintrc.json b/types/gapi.client.websecurityscanner-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.websecurityscanner-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.websecurityscanner-v1beta/tslint.json b/types/gapi.client.websecurityscanner-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.websecurityscanner-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.workflowexecutions-v1/.eslintrc.json b/types/gapi.client.workflowexecutions-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.workflowexecutions-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.workflowexecutions-v1/tslint.json b/types/gapi.client.workflowexecutions-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.workflowexecutions-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.workflowexecutions-v1beta/.eslintrc.json b/types/gapi.client.workflowexecutions-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.workflowexecutions-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.workflowexecutions-v1beta/tslint.json b/types/gapi.client.workflowexecutions-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.workflowexecutions-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.workflows-v1/.eslintrc.json b/types/gapi.client.workflows-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.workflows-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.workflows-v1/tslint.json b/types/gapi.client.workflows-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.workflows-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.workflows-v1beta/.eslintrc.json b/types/gapi.client.workflows-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.workflows-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.workflows-v1beta/tslint.json b/types/gapi.client.workflows-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.workflows-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.workloadmanager-v1/.eslintrc.json b/types/gapi.client.workloadmanager-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.workloadmanager-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.workloadmanager-v1/tslint.json b/types/gapi.client.workloadmanager-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.workloadmanager-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.workstations-v1beta/.eslintrc.json b/types/gapi.client.workstations-v1beta/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.workstations-v1beta/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.workstations-v1beta/tslint.json b/types/gapi.client.workstations-v1beta/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.workstations-v1beta/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.youtube-v3/.eslintrc.json b/types/gapi.client.youtube-v3/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.youtube-v3/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.youtube-v3/tslint.json b/types/gapi.client.youtube-v3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.youtube-v3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.youtube_analytics-v2/.eslintrc.json b/types/gapi.client.youtube_analytics-v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.youtube_analytics-v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.youtube_analytics-v2/tslint.json b/types/gapi.client.youtube_analytics-v2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.youtube_analytics-v2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client.youtubereporting-v1/.eslintrc.json b/types/gapi.client.youtubereporting-v1/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gapi.client.youtubereporting-v1/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gapi.client.youtubereporting-v1/tslint.json b/types/gapi.client.youtubereporting-v1/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client.youtubereporting-v1/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.client/tslint.json b/types/gapi.client/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gapi.client/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gapi.drive/.eslintrc.json b/types/gapi.drive/.eslintrc.json index 812eedc260dd4f..d31edba7d96660 100644 --- a/types/gapi.drive/.eslintrc.json +++ b/types/gapi.drive/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/prefer-namespace": "off" } } diff --git a/types/gapi.drive/tslint.json b/types/gapi.drive/tslint.json deleted file mode 100644 index 5ce677ae3d8542..00000000000000 --- a/types/gapi.drive/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false - } -} diff --git a/types/gapi.pagespeedonline/.eslintrc.json b/types/gapi.pagespeedonline/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/gapi.pagespeedonline/.eslintrc.json +++ b/types/gapi.pagespeedonline/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/gapi.pagespeedonline/tslint.json b/types/gapi.pagespeedonline/tslint.json deleted file mode 100644 index 2656628c35a922..00000000000000 --- a/types/gapi.pagespeedonline/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "npm-naming": false - } -} diff --git a/types/gapi.people/.eslintrc.json b/types/gapi.people/.eslintrc.json index 17972908a92cbb..b92c373804faa0 100644 --- a/types/gapi.people/.eslintrc.json +++ b/types/gapi.people/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/gapi.people/tslint.json b/types/gapi.people/tslint.json deleted file mode 100644 index a4197f5be00105..00000000000000 --- a/types/gapi.people/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false - } -} diff --git a/types/gapi.plus/.eslintrc.json b/types/gapi.plus/.eslintrc.json index 5805df8e2413ed..753efa7ab611cf 100644 --- a/types/gapi.plus/.eslintrc.json +++ b/types/gapi.plus/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/gapi.plus/tslint.json b/types/gapi.plus/tslint.json deleted file mode 100644 index efe19d9dab0e59..00000000000000 --- a/types/gapi.plus/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/gapi.translate/.eslintrc.json b/types/gapi.translate/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/gapi.translate/.eslintrc.json +++ b/types/gapi.translate/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/gapi.translate/tslint.json b/types/gapi.translate/tslint.json deleted file mode 100644 index 2656628c35a922..00000000000000 --- a/types/gapi.translate/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "npm-naming": false - } -} diff --git a/types/gapi.urlshortener/.eslintrc.json b/types/gapi.urlshortener/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/gapi.urlshortener/.eslintrc.json +++ b/types/gapi.urlshortener/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/gapi.urlshortener/tslint.json b/types/gapi.urlshortener/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/gapi.urlshortener/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/gapi.youtube/.eslintrc.json b/types/gapi.youtube/.eslintrc.json index 5805df8e2413ed..753efa7ab611cf 100644 --- a/types/gapi.youtube/.eslintrc.json +++ b/types/gapi.youtube/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/gapi.youtube/tslint.json b/types/gapi.youtube/tslint.json deleted file mode 100644 index 7a46210e04c568..00000000000000 --- a/types/gapi.youtube/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "npm-naming": false - } -} diff --git a/types/gapi.youtubeanalytics/.eslintrc.json b/types/gapi.youtubeanalytics/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/gapi.youtubeanalytics/.eslintrc.json +++ b/types/gapi.youtubeanalytics/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/gapi.youtubeanalytics/tslint.json b/types/gapi.youtubeanalytics/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/gapi.youtubeanalytics/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/gapi/tslint.json b/types/gapi/tslint.json deleted file mode 100644 index 9550bded6f3e14..00000000000000 --- a/types/gapi/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-redundant-undefined": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/gatsby-plugin-breakpoints/tslint.json b/types/gatsby-plugin-breakpoints/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gatsby-plugin-breakpoints/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gatsby-transformer-remark/tslint.json b/types/gatsby-transformer-remark/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gatsby-transformer-remark/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gatsbyjs__reach-router/gatsbyjs__reach-router-tests.tsx b/types/gatsbyjs__reach-router/gatsbyjs__reach-router-tests.tsx index d525ea547e3a64..09e43d3fc6cbba 100644 --- a/types/gatsbyjs__reach-router/gatsbyjs__reach-router-tests.tsx +++ b/types/gatsbyjs__reach-router/gatsbyjs__reach-router-tests.tsx @@ -10,7 +10,6 @@ import { useParams, } from "@gatsbyjs/reach-router"; import * as React from "react"; -import { render } from "react-dom"; interface DashParams { id: string; @@ -49,51 +48,48 @@ const UseParamsCheck = (props: RouteComponentProps) => { return
{params.value}
; }; -render( - - - - - - - + + - - - - - + + + + + + + + + + - - + + - - {context => ( - <> -
hostname is {context.location.hostname}
- - )} -
- - {context => ( - <> -
hostname is {context.location.hostname}
- - )} -
-
, - document.getElementById("app-root"), -); + + {context => ( + <> +
hostname is {context.location.hostname}
+ + )} +
+ + {context => ( + <> +
hostname is {context.location.hostname}
+ + )} +
+
; const handleRef = (el: HTMLAnchorElement) => { el.focus(); }; -render(, document.getElementById("app-root")); -render(, document.getElementById("app-root")); +; +; const refObject: React.RefObject = { current: null }; -render(, document.getElementById("app-root")); -render(, document.getElementById("app-root")); +; +; -const elem: JSX.Element = state={5} to="./foo">Click me!; +const elem: React.JSX.Element = state={5} to="./foo">Click me!; diff --git a/types/gatsbyjs__reach-router/package.json b/types/gatsbyjs__reach-router/package.json index 45171089c1d5ef..e4c5dd145dee65 100644 --- a/types/gatsbyjs__reach-router/package.json +++ b/types/gatsbyjs__reach-router/package.json @@ -10,8 +10,7 @@ "@types/react": "*" }, "devDependencies": { - "@types/gatsbyjs__reach-router": "workspace:.", - "@types/react-dom": "*" + "@types/gatsbyjs__reach-router": "workspace:." }, "owners": [ { diff --git a/types/gatsbyjs__reach-router/tslint.json b/types/gatsbyjs__reach-router/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gatsbyjs__reach-router/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gauge/tslint.json b/types/gauge/tslint.json deleted file mode 100755 index 794cb4bf3e0782..00000000000000 --- a/types/gauge/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gaugejs/.eslintrc.json b/types/gaugejs/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gaugejs/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gaugejs/tslint.json b/types/gaugejs/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/gaugejs/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/gaussian-elimination/tslint.json b/types/gaussian-elimination/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gaussian-elimination/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gaussian/tslint.json b/types/gaussian/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gaussian/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gaze/tslint.json b/types/gaze/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gaze/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gbk.js/tslint.json b/types/gbk.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gbk.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gc-profiler/tslint.json b/types/gc-profiler/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gc-profiler/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gc-stats/tslint.json b/types/gc-stats/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gc-stats/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gdal/tslint.json b/types/gdal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gdal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geakstr__sass-inline-svg/tslint.json b/types/geakstr__sass-inline-svg/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/geakstr__sass-inline-svg/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/geetest/tslint.json b/types/geetest/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geetest/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gematriya/tslint.json b/types/gematriya/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gematriya/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/generate-changelog/tslint.json b/types/generate-changelog/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/generate-changelog/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/generate-ctrl-c-event/tslint.json b/types/generate-ctrl-c-event/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/generate-ctrl-c-event/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/generate-feed/tslint.json b/types/generate-feed/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/generate-feed/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/generate-json-webpack-plugin/tslint.json b/types/generate-json-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/generate-json-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/generic-functions/tslint.json b/types/generic-functions/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/generic-functions/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/gensync/tslint.json b/types/gensync/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gensync/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gently/tslint.json b/types/gently/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/gently/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/genyus__country-code/tslint.json b/types/genyus__country-code/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/genyus__country-code/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geobuf/tslint.json b/types/geobuf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geobuf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geodesy/tslint.json b/types/geodesy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geodesy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geoflatbush/tslint.json b/types/geoflatbush/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geoflatbush/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geoip-country/tslint.json b/types/geoip-country/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/geoip-country/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/geoip-lite/tslint.json b/types/geoip-lite/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/geoip-lite/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/geojson-equality/tslint.json b/types/geojson-equality/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geojson-equality/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geojson-validation/tslint.json b/types/geojson-validation/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geojson-validation/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geojson-vt/geojson-vt-tests.ts b/types/geojson-vt/geojson-vt-tests.ts index 58d1ad8516424d..727bb2d3fc3d2c 100644 --- a/types/geojson-vt/geojson-vt-tests.ts +++ b/types/geojson-vt/geojson-vt-tests.ts @@ -45,6 +45,9 @@ const GeoJsonVTOptions: geojsonvt.Options = { indexMaxPoints: 100000, // max number of points per tile in the index }; +GeoJsonVTOptions.lineMetrics; // $ExpectType boolean | undefined +GeoJsonVTOptions.generateId; // $ExpectType boolean | undefined + const gjv = geojsonvt(GeoJSONData, GeoJsonVTOptions); gjv; // $ExpectType GeoJSONVT gjv.options; // $ExpectType Options diff --git a/types/geojson-vt/index.d.ts b/types/geojson-vt/index.d.ts index f442b9190235e5..92a4fa9b22ca2d 100644 --- a/types/geojson-vt/index.d.ts +++ b/types/geojson-vt/index.d.ts @@ -13,11 +13,11 @@ declare namespace geojsonvt { /** logging level (0 to disable, 1 or 2) */ debug?: 0 | 1 | 2; /** whether to enable line metrics tracking for LineString/MultiLineString features */ - lineMetrics?: false; + lineMetrics?: boolean; /** name of a feature property to promote to feature.id. Cannot be used with `generateId` */ promoteId?: null | string; /** whether to generate feature ids. Cannot be used with `promoteId` */ - generateId?: false; + generateId?: boolean; /** max zoom in the initial tile index */ indexMaxZoom?: number; /** max number of points per tile in the index */ diff --git a/types/geojson-vt/tslint.json b/types/geojson-vt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geojson-vt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geojson/tslint.json b/types/geojson/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geojson/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geojson2osm/tslint.json b/types/geojson2osm/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/geojson2osm/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/geokdbush/tslint.json b/types/geokdbush/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geokdbush/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geolite2/tslint.json b/types/geolite2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geolite2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geometric/tslint.json b/types/geometric/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geometric/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geometry-dom/.eslintrc.json b/types/geometry-dom/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/geometry-dom/.eslintrc.json +++ b/types/geometry-dom/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/geometry-dom/tslint.json b/types/geometry-dom/tslint.json deleted file mode 100644 index 8ddaaa70bed1d2..00000000000000 --- a/types/geometry-dom/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/geopattern/tslint.json b/types/geopattern/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geopattern/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/geopoint/tslint.json b/types/geopoint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/geopoint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gestalt-datepicker/tslint.json b/types/gestalt-datepicker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gestalt-datepicker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gestalt/tslint.json b/types/gestalt/tslint.json deleted file mode 100644 index b733d280c678e3..00000000000000 --- a/types/gestalt/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-undefined": false - } -} diff --git a/types/get-certain/tslint.json b/types/get-certain/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-certain/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-changelog-lib/tslint.json b/types/get-changelog-lib/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-changelog-lib/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-emoji/tslint.json b/types/get-emoji/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-emoji/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-folder-size/tslint.json b/types/get-folder-size/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-folder-size/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-func-name/tslint.json b/types/get-func-name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-func-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-image-colors/tslint.json b/types/get-image-colors/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-image-colors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-installed-path/tslint.json b/types/get-installed-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-installed-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-intrinsic/tslint.json b/types/get-intrinsic/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-intrinsic/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-node-dimensions/tslint.json b/types/get-node-dimensions/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-node-dimensions/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-params/tslint.json b/types/get-params/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-params/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-pixels/tslint.json b/types/get-pixels/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-pixels/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-res/tslint.json b/types/get-res/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-res/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-sass-vars/tslint.json b/types/get-sass-vars/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-sass-vars/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-size/tslint.json b/types/get-size/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-size/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-ssl-certificate/tslint.json b/types/get-ssl-certificate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-ssl-certificate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/get-symbol-description/.npmignore b/types/get-symbol-description/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/get-symbol-description/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/get-symbol-description/get-symbol-description-tests.ts b/types/get-symbol-description/get-symbol-description-tests.ts new file mode 100644 index 00000000000000..a263473033855f --- /dev/null +++ b/types/get-symbol-description/get-symbol-description-tests.ts @@ -0,0 +1,13 @@ +import getSymbolDescription = require("get-symbol-description"); + +// $ExpectType string | undefined +getSymbolDescription(Symbol("foo")); + +// $ExpectType string | undefined +getSymbolDescription(Symbol()); + +// $ExpectType string | undefined +getSymbolDescription(Symbol.iterator); + +// @ts-expect-error +getSymbolDescription(1); diff --git a/types/get-symbol-description/index.d.ts b/types/get-symbol-description/index.d.ts new file mode 100644 index 00000000000000..c1982dfc634b87 --- /dev/null +++ b/types/get-symbol-description/index.d.ts @@ -0,0 +1,3 @@ +declare function getSymbolDescription(symbol: symbol): string | undefined; + +export = getSymbolDescription; diff --git a/types/get-symbol-description/package.json b/types/get-symbol-description/package.json new file mode 100644 index 00000000000000..b12c4ca8eff69e --- /dev/null +++ b/types/get-symbol-description/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/get-symbol-description", + "version": "1.0.9999", + "projects": [ + "https://github.com/inspect-js/get-symbol-description#readme" + ], + "devDependencies": { + "@types/get-symbol-description": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/get-symbol-description/tsconfig.json b/types/get-symbol-description/tsconfig.json new file mode 100644 index 00000000000000..9457706c026a36 --- /dev/null +++ b/types/get-symbol-description/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "get-symbol-description-tests.ts" + ] +} diff --git a/types/get-value/tslint.json b/types/get-value/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/get-value/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/getenv/tslint.json b/types/getenv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/getenv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/getos/tslint.json b/types/getos/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/getos/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/getpass/tslint.json b/types/getpass/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/getpass/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gettext-parser/tslint.json b/types/gettext-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gettext-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gettext.js/tslint.json b/types/gettext.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gettext.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gfc/tslint.json b/types/gfc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gfc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gh-pages/gh-pages-tests.ts b/types/gh-pages/gh-pages-tests.ts index 52d14e8e6924a7..bf52d9ec1ed215 100644 --- a/types/gh-pages/gh-pages-tests.ts +++ b/types/gh-pages/gh-pages-tests.ts @@ -8,6 +8,8 @@ const callback = (err: any) => {}; ghpages.publish(dir, callback); ghpages.publish(dir, emptyOptions, callback); ghpages.publish("dist", { history: false }, callback); +ghpages.publish("dist", { nojekyll: true }, callback); +ghpages.publish("dist", { cname: "custom-domain.com" }, callback); ghpages.publish( "dist", { diff --git a/types/gh-pages/index.d.ts b/types/gh-pages/index.d.ts index 73163495ebd6cb..cbf44d432486b8 100644 --- a/types/gh-pages/index.d.ts +++ b/types/gh-pages/index.d.ts @@ -18,6 +18,7 @@ export interface PublishOptions { beforeAdd?: ((git: Git) => Promise) | null | undefined; add?: boolean | undefined; branch?: string | undefined; + cname?: string | undefined; dest?: string | undefined; dotfiles?: boolean | undefined; git?: string | undefined; @@ -27,6 +28,8 @@ export interface PublishOptions { */ history?: boolean | undefined; message?: string | undefined; + /** @default false */ + nojekyll?: boolean | undefined; only?: string | undefined; push?: boolean | undefined; remote?: string | undefined; diff --git a/types/gh-pages/package.json b/types/gh-pages/package.json index bc5788de8b6381..47417d3cde29da 100644 --- a/types/gh-pages/package.json +++ b/types/gh-pages/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/gh-pages", - "version": "5.0.9999", + "version": "6.1.9999", "projects": [ "https://github.com/tschaub/gh-pages" ], diff --git a/types/gh-pages/tslint.json b/types/gh-pages/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gh-pages/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ghauth/tslint.json b/types/ghauth/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ghauth/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ghost-storage-base/tslint.json b/types/ghost-storage-base/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ghost-storage-base/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gif-encoder/tslint.json b/types/gif-encoder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gif-encoder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gif.js/tslint.json b/types/gif.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gif.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gifencoder/tslint.json b/types/gifencoder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gifencoder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gifffer/tslint.json b/types/gifffer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gifffer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gifsicle/tslint.json b/types/gifsicle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gifsicle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gijgo/tslint.json b/types/gijgo/tslint.json deleted file mode 100644 index 3e0688523aebca..00000000000000 --- a/types/gijgo/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false - } -} diff --git a/types/giphy-api/tslint.json b/types/giphy-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/giphy-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/giraffe/tslint.json b/types/giraffe/tslint.json deleted file mode 100644 index 8510931f287c0f..00000000000000 --- a/types/giraffe/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "new-parens": false, - "no-var-keyword": false - } -} diff --git a/types/git-add-remote/tslint.json b/types/git-add-remote/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-add-remote/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-branch-is/tslint.json b/types/git-branch-is/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-branch-is/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-branch/tslint.json b/types/git-branch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-branch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-clone/tslint.json b/types/git-clone/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-clone/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-config-path/tslint.json b/types/git-config-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-config-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-config/tslint.json b/types/git-config/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/git-config/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/git-diff-parser/tslint.json b/types/git-diff-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-diff-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-diff/tslint.json b/types/git-diff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-http-backend/tslint.json b/types/git-http-backend/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-http-backend/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-init/tslint.json b/types/git-init/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-init/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-log-parser/tslint.json b/types/git-log-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-log-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-raw-commits/tslint.json b/types/git-raw-commits/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-raw-commits/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-repo-name/tslint.json b/types/git-repo-name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-repo-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-rev-sync/tslint.json b/types/git-rev-sync/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-rev-sync/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-rev/tslint.json b/types/git-rev/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-rev/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-revision-webpack-plugin/tslint.json b/types/git-revision-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-revision-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-root-dir/tslint.json b/types/git-root-dir/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-root-dir/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-semver-tags/git-semver-tags-tests.ts b/types/git-semver-tags/git-semver-tags-tests.ts index d2e6c77ad9de43..128da839cdf403 100644 --- a/types/git-semver-tags/git-semver-tags-tests.ts +++ b/types/git-semver-tags/git-semver-tags-tests.ts @@ -1,25 +1,24 @@ import * as gitSemverTags from "git-semver-tags"; -declare const callback: gitSemverTags.Callback; declare const options: gitSemverTags.Options; -// $ExpectType void -gitSemverTags(callback); +// $ExpectType Promise +gitSemverTags(); -gitSemverTags({ tagPrefix: "skip/", skipUnstable: true }, (err, tags) => { - if (err) { - // - } -}); +// $ExpectType Promise +gitSemverTags(options); -// $ExpectType void -gitSemverTags(options, callback); +// @ts-expect-error +gitSemverTags({ ...options, foo: "bar" }); // @ts-expect-error -gitSemverTags(); +gitSemverTags({ ...options, lernaTags: "not a boolean" }); // @ts-expect-error -gitSemverTags(options); +gitSemverTags({ ...options, package: 123 }); + +// @ts-expect-error +gitSemverTags({ ...options, tagPrefix: 123 }); // @ts-expect-error -gitSemverTags(callback, options); +gitSemverTags({ ...options, skipUnstable: "not a boolean" }); diff --git a/types/git-semver-tags/index.d.ts b/types/git-semver-tags/index.d.ts index 569e4bd9c0bce5..4364a18a9698b7 100644 --- a/types/git-semver-tags/index.d.ts +++ b/types/git-semver-tags/index.d.ts @@ -1,12 +1,9 @@ /** * Get all git semver tags of your repository in reverse chronological order */ -declare function gitSemverTags(options: gitSemverTags.Options, callback: gitSemverTags.Callback): void; -declare function gitSemverTags(callback: gitSemverTags.Callback): void; +declare function gitSemverTags(options?: gitSemverTags.Options): Promise; declare namespace gitSemverTags { - type Callback = (error: any, tags: string[]) => void; - interface Options { /** * Extract lerna style tags (`foo-package@2.0.0`) from the git history, rather diff --git a/types/git-semver-tags/package.json b/types/git-semver-tags/package.json index cd50950c22b98f..7b066c26c159bf 100644 --- a/types/git-semver-tags/package.json +++ b/types/git-semver-tags/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/git-semver-tags", - "version": "4.1.9999", + "version": "7.0.9999", "projects": [ "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/git-semver-tags#readme" ], diff --git a/types/git-semver-tags/tslint.json b/types/git-semver-tags/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-semver-tags/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-state/tslint.json b/types/git-state/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-state/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-up/tslint.json b/types/git-up/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-up/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-url-parse/tslint.json b/types/git-url-parse/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-url-parse/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-user-email/tslint.json b/types/git-user-email/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-user-email/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-user-name/tslint.json b/types/git-user-name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-user-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git-username/tslint.json b/types/git-username/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/git-username/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/git/tslint.json b/types/git/tslint.json deleted file mode 100644 index 1a3e4e31ac0b42..00000000000000 --- a/types/git/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/gitana/tslint.json b/types/gitana/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gitana/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gitconfiglocal/tslint.json b/types/gitconfiglocal/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gitconfiglocal/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/github-label-sync/tslint.json b/types/github-label-sync/tslint.json deleted file mode 100644 index c70cb40b054845..00000000000000 --- a/types/github-label-sync/tslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - // This package sets module.exports = function, but then sets module.exports.default = object. Following the advice from the CI logs, I'm editing the rule behavior. - "npm-naming": [ - true, - { - "mode": "code", - "errors": [ - [ - "NeedsExportEquals", - false - ] - ] - } - ] - } -} diff --git a/types/github-url-from-git/tslint.json b/types/github-url-from-git/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/github-url-from-git/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/github-url-to-object/tslint.json b/types/github-url-to-object/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/github-url-to-object/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/github-username-regex/tslint.json b/types/github-username-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/github-username-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gitignore-parser/tslint.json b/types/gitignore-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gitignore-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/giusto__ink-router/index.d.ts b/types/giusto__ink-router/index.d.ts index 1c482d12bd35b1..12cfe77c746503 100644 --- a/types/giusto__ink-router/index.d.ts +++ b/types/giusto__ink-router/index.d.ts @@ -1,5 +1,5 @@ import { History, Location } from "history"; -import { Component, ComponentType, ReactNode } from "react"; +import { Component, ComponentType, JSX, ReactNode } from "react"; export interface RouterProps { children: NonNullable; diff --git a/types/giusto__ink-router/tslint.json b/types/giusto__ink-router/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/giusto__ink-router/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gl-fbo/tslint.json b/types/gl-fbo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gl-fbo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gl-react-dom/gl-react-dom-tests.tsx b/types/gl-react-dom/gl-react-dom-tests.tsx index 8069f87f523b2d..a90ae6dcedf97d 100644 --- a/types/gl-react-dom/gl-react-dom-tests.tsx +++ b/types/gl-react-dom/gl-react-dom-tests.tsx @@ -1,7 +1,6 @@ import { GLSL, Node, Shaders } from "gl-react"; import { Surface } from "gl-react-dom"; import * as React from "react"; -import * as ReactDOM from "react-dom"; const shaders = Shaders.create({ Test: { @@ -24,4 +23,3 @@ const App = () => ( const element = document.createElement("div"); document.body.appendChild(element); -ReactDOM.render(, element); diff --git a/types/gl-react-dom/package.json b/types/gl-react-dom/package.json index 450bed6e88f4a8..6729ee2edb7797 100644 --- a/types/gl-react-dom/package.json +++ b/types/gl-react-dom/package.json @@ -10,8 +10,7 @@ "@types/react": "*" }, "devDependencies": { - "@types/gl-react-dom": "workspace:.", - "@types/react-dom": "*" + "@types/gl-react-dom": "workspace:." }, "owners": [ { diff --git a/types/gl-react-dom/tslint.json b/types/gl-react-dom/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-react-dom/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-react-expo/gl-react-expo-tests.tsx b/types/gl-react-expo/gl-react-expo-tests.tsx index e2b73512516e9f..395cb0f89f9b24 100644 --- a/types/gl-react-expo/gl-react-expo-tests.tsx +++ b/types/gl-react-expo/gl-react-expo-tests.tsx @@ -1,7 +1,6 @@ import { GLSL, Node, Shaders } from "gl-react"; import { Surface } from "gl-react-expo"; import * as React from "react"; -import * as ReactDOM from "react-dom"; const shaders = Shaders.create({ Test: { @@ -21,7 +20,3 @@ const App = () => (
); - -const element = document.createElement("div"); -document.body.appendChild(element); -ReactDOM.render(, element); diff --git a/types/gl-react-expo/package.json b/types/gl-react-expo/package.json index 433810933e0ee1..0fe0ac452671f6 100644 --- a/types/gl-react-expo/package.json +++ b/types/gl-react-expo/package.json @@ -10,8 +10,7 @@ "@types/react": "*" }, "devDependencies": { - "@types/gl-react-expo": "workspace:.", - "@types/react-dom": "*" + "@types/gl-react-expo": "workspace:." }, "owners": [ { diff --git a/types/gl-react-expo/tslint.json b/types/gl-react-expo/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-react-expo/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-react-headless/gl-react-headless-tests.tsx b/types/gl-react-headless/gl-react-headless-tests.tsx index 1d843925980cac..f5bd04670b51ef 100644 --- a/types/gl-react-headless/gl-react-headless-tests.tsx +++ b/types/gl-react-headless/gl-react-headless-tests.tsx @@ -1,7 +1,6 @@ import { GLSL, Node, Shaders } from "gl-react"; import { Surface } from "gl-react-headless"; import * as React from "react"; -import * as ReactDOM from "react-dom"; const shaders = Shaders.create({ Test: { @@ -24,4 +23,3 @@ const App = () => ( const element = document.createElement("div"); document.body.appendChild(element); -ReactDOM.render(, element); diff --git a/types/gl-react-headless/package.json b/types/gl-react-headless/package.json index eaba3590f78a85..fafe3d6e03f7f4 100644 --- a/types/gl-react-headless/package.json +++ b/types/gl-react-headless/package.json @@ -10,8 +10,7 @@ "@types/react": "*" }, "devDependencies": { - "@types/gl-react-headless": "workspace:.", - "@types/react-dom": "*" + "@types/gl-react-headless": "workspace:." }, "owners": [ { diff --git a/types/gl-react-headless/tslint.json b/types/gl-react-headless/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-react-headless/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-react-image/gl-react-image-tests.tsx b/types/gl-react-image/gl-react-image-tests.tsx index 014c36c7560f22..9c9ba2c07dba21 100644 --- a/types/gl-react-image/gl-react-image-tests.tsx +++ b/types/gl-react-image/gl-react-image-tests.tsx @@ -1,6 +1,5 @@ import GLImage from "gl-react-image"; import * as React from "react"; -import * as ReactDOM from "react-dom"; const App = () => (
@@ -15,4 +14,3 @@ const App = () => ( const element = document.createElement("div"); document.body.appendChild(element); -ReactDOM.render(, element); diff --git a/types/gl-react-image/package.json b/types/gl-react-image/package.json index f02bb478cb5d7d..a9f47c10435dfd 100644 --- a/types/gl-react-image/package.json +++ b/types/gl-react-image/package.json @@ -9,8 +9,7 @@ "@types/react": "*" }, "devDependencies": { - "@types/gl-react-image": "workspace:.", - "@types/react-dom": "*" + "@types/gl-react-image": "workspace:." }, "owners": [ { diff --git a/types/gl-react-image/tslint.json b/types/gl-react-image/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gl-react-image/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gl-react-native/gl-react-native-tests.tsx b/types/gl-react-native/gl-react-native-tests.tsx index f7f19e933fd2db..d77c85a576f2b5 100644 --- a/types/gl-react-native/gl-react-native-tests.tsx +++ b/types/gl-react-native/gl-react-native-tests.tsx @@ -1,7 +1,6 @@ import { GLSL, Node, Shaders } from "gl-react"; import { Surface } from "gl-react-native"; import * as React from "react"; -import * as ReactDOM from "react-dom"; const shaders = Shaders.create({ Test: { @@ -24,4 +23,3 @@ const App = () => ( const element = document.createElement("div"); document.body.appendChild(element); -ReactDOM.render(, element); diff --git a/types/gl-react-native/package.json b/types/gl-react-native/package.json index 4e0e253d201fdd..6c9900f42b93a8 100644 --- a/types/gl-react-native/package.json +++ b/types/gl-react-native/package.json @@ -11,8 +11,7 @@ "@types/react": "*" }, "devDependencies": { - "@types/gl-react-native": "workspace:.", - "@types/react-dom": "*" + "@types/gl-react-native": "workspace:." }, "owners": [ { diff --git a/types/gl-react-native/tslint.json b/types/gl-react-native/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-react-native/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-react/tslint.json b/types/gl-react/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-react/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-shader/tslint.json b/types/gl-shader/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-shader/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-texture2d/tslint.json b/types/gl-texture2d/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-texture2d/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-vec2/tslint.json b/types/gl-vec2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-vec2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-vec3/tslint.json b/types/gl-vec3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-vec3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl-vec4/tslint.json b/types/gl-vec4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gl-vec4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gl/tslint.json b/types/gl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gldatepicker/.eslintrc.json b/types/gldatepicker/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/gldatepicker/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/gldatepicker/tslint.json b/types/gldatepicker/tslint.json deleted file mode 100644 index d38c6e89278dc7..00000000000000 --- a/types/gldatepicker/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-template": false - } -} diff --git a/types/glidejs/.eslintrc.json b/types/glidejs/.eslintrc.json index c9780e77c3bdf5..f70fc73619a6c2 100644 --- a/types/glidejs/.eslintrc.json +++ b/types/glidejs/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/glidejs/tslint.json b/types/glidejs/tslint.json deleted file mode 100644 index 75f909c8c67cc7..00000000000000 --- a/types/glidejs/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/glidejs__glide/tslint.json b/types/glidejs__glide/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/glidejs__glide/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/glider-js/tslint.json b/types/glider-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/glider-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/glob-base/tslint.json b/types/glob-base/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/glob-base/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/glob-expand/tslint.json b/types/glob-expand/tslint.json deleted file mode 100644 index e861fa072dcefc..00000000000000 --- a/types/glob-expand/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false - } -} diff --git a/types/glob-parent/tslint.json b/types/glob-parent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/glob-parent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/glob-stream/tslint.json b/types/glob-stream/tslint.json deleted file mode 100644 index f6adc4e44a837b..00000000000000 --- a/types/glob-stream/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/glob-to-regexp/tslint.json b/types/glob-to-regexp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/glob-to-regexp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/glob-watcher/tslint.json b/types/glob-watcher/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/glob-watcher/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/global-agent/tslint.json b/types/global-agent/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/global-agent/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/global-cache/tslint.json b/types/global-cache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/global-cache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/global-modules-path/tslint.json b/types/global-modules-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/global-modules-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/global-modules/tslint.json b/types/global-modules/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/global-modules/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/global-npm/tslint.json b/types/global-npm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/global-npm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/global-paths/tslint.json b/types/global-paths/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/global-paths/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/global-prefix/tslint.json b/types/global-prefix/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/global-prefix/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/global-tunnel-ng/tslint.json b/types/global-tunnel-ng/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/global-tunnel-ng/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/globalize-compiler/tslint.json b/types/globalize-compiler/tslint.json deleted file mode 100644 index 94c7d46258c018..00000000000000 --- a/types/globalize-compiler/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false - } -} diff --git a/types/globalize/tslint.json b/types/globalize/tslint.json deleted file mode 100644 index 7eef900d0ba4f7..00000000000000 --- a/types/globalize/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "unified-signatures": false - } -} diff --git a/types/globaloffensive/tslint.json b/types/globaloffensive/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/globaloffensive/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/globalthis/tslint.json b/types/globalthis/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/globalthis/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/globalyzer/tslint.json b/types/globalyzer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/globalyzer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/globjoin/tslint.json b/types/globjoin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/globjoin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/globrex/tslint.json b/types/globrex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/globrex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/globule/tslint.json b/types/globule/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/globule/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/glossy/tslint.json b/types/glossy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/glossy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/glue/tslint.json b/types/glue/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/glue/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/glue/v4/tslint.json b/types/glue/v4/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/glue/v4/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/glur/tslint.json b/types/glur/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/glur/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gm/tslint.json b/types/gm/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gm/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/go/.eslintrc.json b/types/go/.eslintrc.json index 0daa56a637f665..ba4d7ea27528c4 100644 --- a/types/go/.eslintrc.json +++ b/types/go/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/export-just-namespace": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/go/tslint.json b/types/go/tslint.json deleted file mode 100644 index 3f4c6cac38fba0..00000000000000 --- a/types/go/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-inferrable-types": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/golang-wasm-exec/tslint.json b/types/golang-wasm-exec/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/golang-wasm-exec/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/good-storage/tslint.json b/types/good-storage/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/good-storage/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google-ads-scripts/.eslintrc.json b/types/google-ads-scripts/.eslintrc.json index 0f7b7412939420..efd71c1a6c0e5f 100644 --- a/types/google-ads-scripts/.eslintrc.json +++ b/types/google-ads-scripts/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/google-ads-scripts/tslint.json b/types/google-ads-scripts/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/google-ads-scripts/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/google-adwords-scripts/tslint.json b/types/google-adwords-scripts/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google-adwords-scripts/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google-apps-script-oauth2/tslint.json b/types/google-apps-script-oauth2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google-apps-script-oauth2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google-apps-script/tslint.json b/types/google-apps-script/tslint.json deleted file mode 100644 index 02f2e09d6ed208..00000000000000 --- a/types/google-apps-script/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-unnecessary-qualifier": false, - "unified-signatures": false - } -} diff --git a/types/google-closure-compiler/tslint.json b/types/google-closure-compiler/tslint.json deleted file mode 100644 index b7484db51b7cc7..00000000000000 --- a/types/google-closure-compiler/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": [ - true, - { - "errors": [["NeedsExportEquals", false]], - "mode": "code" - } - ], - "prefer-const": false - } -} diff --git a/types/google-cloud__datastore/tslint.json b/types/google-cloud__datastore/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/google-cloud__datastore/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/google-cloud__kms/tslint.json b/types/google-cloud__kms/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/google-cloud__kms/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/google-ddns/tslint.json b/types/google-ddns/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google-ddns/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google-drive-realtime-api/.eslintrc.json b/types/google-drive-realtime-api/.eslintrc.json index d255e414409ddf..8606d1dff59c93 100644 --- a/types/google-drive-realtime-api/.eslintrc.json +++ b/types/google-drive-realtime-api/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/explicit-member-accessibility": "off", diff --git a/types/google-drive-realtime-api/tslint.json b/types/google-drive-realtime-api/tslint.json deleted file mode 100644 index 807318965db8f9..00000000000000 --- a/types/google-drive-realtime-api/tslint.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-mergeable-namespace": false, - "no-namespace": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/google-earth/.eslintrc.json b/types/google-earth/.eslintrc.json index 12dc0523ec6ea8..d0441fac2a22df 100644 --- a/types/google-earth/.eslintrc.json +++ b/types/google-earth/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/google-earth/tslint.json b/types/google-earth/tslint.json deleted file mode 100644 index 10f1970cabe4b1..00000000000000 --- a/types/google-earth/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/google-fonts/tslint.json b/types/google-fonts/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google-fonts/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google-images/tslint.json b/types/google-images/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google-images/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google-libphonenumber/.eslintrc.json b/types/google-libphonenumber/.eslintrc.json index aeef0304146290..17c54d8cd5e921 100644 --- a/types/google-libphonenumber/.eslintrc.json +++ b/types/google-libphonenumber/.eslintrc.json @@ -4,6 +4,7 @@ "@definitelytyped/no-declare-current-package": "off", "@definitelytyped/strict-export-declare-modifiers": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/prefer-namespace": "off" } } diff --git a/types/google-libphonenumber/tslint.json b/types/google-libphonenumber/tslint.json deleted file mode 100644 index 352822772455e6..00000000000000 --- a/types/google-libphonenumber/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/google-map-react/tslint.json b/types/google-map-react/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google-map-react/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google-maps/tslint.json b/types/google-maps/tslint.json deleted file mode 100644 index c723a1e67d1f03..00000000000000 --- a/types/google-maps/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/google-one-tap/.eslintrc.json b/types/google-one-tap/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/google-one-tap/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/google-one-tap/tslint.json b/types/google-one-tap/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/google-one-tap/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/google-polyline/tslint.json b/types/google-polyline/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google-polyline/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google-protobuf/tslint.json b/types/google-protobuf/tslint.json deleted file mode 100644 index 9ca73c289cd5be..00000000000000 --- a/types/google-protobuf/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "new-parens": false - } -} diff --git a/types/google-publisher-tag/google-publisher-tag-tests.ts b/types/google-publisher-tag/google-publisher-tag-tests.ts index 7a7c96dc325e27..7994bc154e6eb4 100644 --- a/types/google-publisher-tag/google-publisher-tag-tests.ts +++ b/types/google-publisher-tag/google-publisher-tag-tests.ts @@ -1,5 +1,5 @@ -// Tests for Google Publisher Tag 1.20231113 -// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/e904db603410e07c604306b4c5982830c00abef1 +// Tests for Google Publisher Tag 1.20231211 +// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/e9b791a4a49d911e5e04660c08dcd2039978813c // Test for googletag.cmd function test_googletag_cmd() { diff --git a/types/google-publisher-tag/index.d.ts b/types/google-publisher-tag/index.d.ts index f228f51cd1e085..bd630a0af074ff 100644 --- a/types/google-publisher-tag/index.d.ts +++ b/types/google-publisher-tag/index.d.ts @@ -1699,6 +1699,10 @@ declare namespace googletag { INTERSTITIAL, /** Rewarded format. */ REWARDED, + /** Left side rail format. */ + LEFT_SIDE_RAIL, + /** Right side rail format. */ + RIGHT_SIDE_RAIL, } /** diff --git a/types/google-publisher-tag/package.json b/types/google-publisher-tag/package.json index 7bea89a1370c37..70d938b9a65890 100644 --- a/types/google-publisher-tag/package.json +++ b/types/google-publisher-tag/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/google-publisher-tag", - "version": "1.20231113.9999", + "version": "1.20231211.9999", "nonNpm": true, "nonNpmDescription": "Google Publisher Tag", "projects": [ diff --git a/types/google-publisher-tag/tslint.json b/types/google-publisher-tag/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/google-publisher-tag/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/google-translate-api/tslint.json b/types/google-translate-api/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google-translate-api/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google.accounts/tslint.json b/types/google.accounts/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/google.accounts/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/google.analytics/.eslintrc.json b/types/google.analytics/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/google.analytics/.eslintrc.json +++ b/types/google.analytics/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/google.analytics/tslint.json b/types/google.analytics/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/google.analytics/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/google.feeds/.eslintrc.json b/types/google.feeds/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/google.feeds/.eslintrc.json +++ b/types/google.feeds/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/google.feeds/tslint.json b/types/google.feeds/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/google.feeds/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/google.fonts/tslint.json b/types/google.fonts/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/google.fonts/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/google.geolocation/.eslintrc.json b/types/google.geolocation/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/google.geolocation/.eslintrc.json +++ b/types/google.geolocation/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/google.geolocation/tslint.json b/types/google.geolocation/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/google.geolocation/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/google.maps/tslint.json b/types/google.maps/tslint.json deleted file mode 100644 index 606646e7164924..00000000000000 --- a/types/google.maps/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false, - "use-default-type-parameter": false, - "no-mergeable-namespace": false - } -} diff --git a/types/google.picker/tslint.json b/types/google.picker/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/google.picker/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/google.script.client-side/tslint.json b/types/google.script.client-side/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/google.script.client-side/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/google.visualization/.eslintrc.json b/types/google.visualization/.eslintrc.json index 12dc0523ec6ea8..d0441fac2a22df 100644 --- a/types/google.visualization/.eslintrc.json +++ b/types/google.visualization/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/google.visualization/tslint.json b/types/google.visualization/tslint.json deleted file mode 100644 index e5aa660e1056c4..00000000000000 --- a/types/google.visualization/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/google__maps/tslint.json b/types/google__maps/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/google__maps/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/googlefc/tslint.json b/types/googlefc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/googlefc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/googlemaps.infobubble/.eslintrc.json b/types/googlemaps.infobubble/.eslintrc.json index 5805df8e2413ed..753efa7ab611cf 100644 --- a/types/googlemaps.infobubble/.eslintrc.json +++ b/types/googlemaps.infobubble/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/googlemaps.infobubble/tslint.json b/types/googlemaps.infobubble/tslint.json deleted file mode 100644 index 14f445de3aefad..00000000000000 --- a/types/googlemaps.infobubble/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/googlepay/tslint.json b/types/googlepay/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/googlepay/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/googletag/googletag-tests.ts b/types/googletag/googletag-tests.ts index c03607de405771..81189b05d6a360 100644 --- a/types/googletag/googletag-tests.ts +++ b/types/googletag/googletag-tests.ts @@ -1,788 +1,946 @@ -// Use examples from https://developers.google.cn/publisher-tag/reference +/** + * Test for {@link googletag} + */ +function test_googletag() { + // + window.googletag = window.googletag || { cmd: [] }; + googletag.cmd.push(() => { + // GPT API can be called safely. + }); +} -// Load the GPT library by adding the following to the of the HTML document. -// -// -window.googletag = window.googletag || { cmd: [] }; +/** + * Test for {@link googletag.apiReady} + */ +function test_googletag_apiReady() { + if (window.googletag && googletag.apiReady) { + // GPT API can be called safely. + } +} -// DEMO 1 -// -// DEMO 2 -googletag.cmd.push(() => { - googletag.defineSlot("/1234567/sports", [160, 600]).addService(googletag.pubads()); -}); +/** + * Test for {@link googletag.secureSignalProviders} + */ +function test_googletag_secureSignalProviders() { + window.googletag = window.googletag || { cmd: [], secureSignalProviders: [] }; + window.googletag.secureSignalProviders.push({ + id: "collector123", + collectorFunction: () => { + return Promise.resolve("signal"); + }, + }); +} -googletag.cmd.push(function testThis() { - console.log(this.googletag); -}); +/** + * Test for {@link googletag.defineOutOfPageSlot} + */ +function test_googletag_defineOutOfPageSlot() { + // Define a custom out-of-page ad slot. + googletag.defineOutOfPageSlot("/1234567/sports", "div"); + // Define a GPT managed web interstitial ad slot. + googletag.defineOutOfPageSlot("/1234567/sports", googletag.enums.OutOfPageFormat.INTERSTITIAL); +} -// DEMO 3 -// Define a custom out-of-page ad slot. -googletag.defineOutOfPageSlot("/1234567/sports", "div-1"); +/** + * Test for {@link googletag.defineSlot} + */ +function test_googletag_defineSlot() { + googletag.defineSlot("/1234567/sports", [728, 90], "div"); +} -// Define a GPT managed web interstitial ad slot. -googletag.defineOutOfPageSlot("/1234567/sports", googletag.enums.OutOfPageFormat.INTERSTITIAL); +/** + * Test for {@link googletag.destroySlots} + */ +function test_googletag_destroySlots() { + // The calls to construct an ad and display contents. + const slot1 = googletag.defineSlot("/1234567/sports", [728, 90], "div-1")!; + googletag.display("div-1"); + const slot2 = googletag.defineSlot("/1234567/news", [160, 600], "div-2")!; + googletag.display("div-2"); + // This call to destroy only slot1. + googletag.destroySlots([slot1]); + // This call to destroy both slot1 and slot2. + googletag.destroySlots([slot1, slot2]); + // This call to destroy all slots. + googletag.destroySlots(); +} -// DEMO 4 -googletag.defineSlot("/1234567/sports", [728, 90], "div-1"); +/** + * Test for {@link googletag.display} + */ +function test_googletag_display() { + //
+ googletag.cmd.push(() => { + googletag.display("div"); + }); +} -// DEMO 5 -// The calls to construct an ad and display contents. -let slot1: googletag.Slot; -let slot2: googletag.Slot; -let slot3: googletag.Slot | null; +/** + * Test for {@link googletag.openConsole} + */ +function test_googletag_openConsole() { + // Calling with div ID. + googletag.openConsole("div"); + // Calling without div ID. + googletag.openConsole(); +} -slot1 = googletag.defineSlot("/1234567/sports", [728, 90]); -slot2 = googletag.defineSlot("/1234567/news", [160, 600]); -slot3 = googletag.defineSlot("/1234567/weather", [160, 600], "div-3"); +/** + * Test for {@link googletag.setAdIframeTitle} + */ +function test_googletag_setAdIframeTitle() { + googletag.setAdIframeTitle("title"); +} -// This call to destroy only slot1. -googletag.destroySlots([slot1]); +/** + * Test for {@link googletag.CommandArray.push} + */ +function test_googletag_CommandArray_push() { + googletag.cmd.push(() => { + googletag.defineSlot("/1234567/sports", [160, 600])!.addService(googletag.pubads()); + }); +} -// This call to destroy both slot1 and slot2. -googletag.destroySlots([slot1, slot2]); +/** + * Test for {@link googletag.CompanionAdsService.setRefreshUnfilledSlots} + */ +function test_googletag_CompanionAdsService_setRefreshUnfilledSlots() { + googletag.companionAds().setRefreshUnfilledSlots(true); +} -// This call to destroy all slots. -googletag.destroySlots(); +/** + * Test for {@link googletag.PrivacySettingsConfig.trafficSource} + */ +function test_googletag_PrivacySettingsConfig_trafficSource() { + // Indicate requests represent organic traffic. + googletag.pubads().setPrivacySettings({ + trafficSource: googletag.enums.TrafficSource.ORGANIC, + }); + // Indicate requests represent purchased traffic. + googletag.pubads().setPrivacySettings({ + trafficSource: googletag.enums.TrafficSource.PURCHASED, + }); +} -// DEMO 6 -//
-// -//
+ const slot2 = googletag.defineSlot("/1234567/news", [160, 600], "div-2")!; + googletag.display("div-2"); + // This call to clear only slot1. + googletag.pubads().clear([slot1]); + // This call to clear both slot1 and slot2. + googletag.pubads().clear([slot1, slot2]); + // This call to clear all slots. + googletag.pubads().clear(); +} -// DEMO 7 -// Calling with div id -googletag.openConsole("div-1"); +/** + * Test for {@link googletag.PubAdsService.clearCategoryExclusions} + */ +function test_googletag_PubAdsService_clearCategoryExclusions() { + // Set category exclusion to exclude ads with 'AirlineAd' labels. + googletag.pubads().setCategoryExclusion("AirlineAd"); + // Make ad requests. No ad with 'AirlineAd' label will be returned. + // Clear category exclusions so all ads can be returned. + googletag.pubads().clearCategoryExclusions(); + // Make ad requests. Any ad can be returned. +} -// Calling without div id -googletag.openConsole(); +/** + * Test for {@link googletag.PubAdsService.clearTargeting} + */ +function test_googletag_PubAdsService_clearTargeting() { + googletag.pubads().setTargeting("interests", "sports"); + googletag.pubads().setTargeting("colors", "blue"); + googletag.pubads().setTargeting("fruits", "apple"); + googletag.pubads().clearTargeting("interests"); + // Targeting 'colors' and 'fruits' are still present, while 'interests' was cleared. + googletag.pubads().clearTargeting(); + // All targeting has been cleared. +} -// DEMO 8 -googletag.setAdIframeTitle("title"); +/** + * Test for {@link googletag.PubAdsService.display} + */ +function test_googletag_PubAdsService_display() { + googletag.pubads().display("/1234567/sports", [728, 90], "div"); +} -// DEMO 9 -googletag.cmd.push(() => { - googletag.defineSlot("/1234567/sports", [160, 600]).addService(googletag.pubads()); -}); +/** + * Test for {@link googletag.PubAdsService.enableLazyLoad} + */ +function test_googletag_PubAdsService_enableLazyLoad() { + googletag.pubads().enableLazyLoad({ + // Fetch slots within 5 viewports. + fetchMarginPercent: 500, + // Render slots within 2 viewports. + renderMarginPercent: 200, + // Double the above values on mobile. + mobileScaling: 2.0, + }); +} -// DEMO 10 -googletag.companionAds().setRefreshUnfilledSlots(true); +/** + * Test for {@link googletag.PubAdsService.get} + */ +function test_googletag_PubAdsService_get() { + googletag.pubads().set("adsense_background_color", "#FFFFFF"); + googletag.pubads().get("adsense_background_color"); + // Returns '#FFFFFF' +} -// DEMO 11 -let slot: googletag.Slot | null | undefined; +/** + * Test for {@link googletag.PubAdsService.getAttributeKeys} + */ +function test_googletag_PubAdsService_getAttributeKeys() { + googletag.pubads().set("adsense_background_color", "#FFFFFF"); + googletag.pubads().set("adsense_border_color", "#AABBCC"); + googletag.pubads().getAttributeKeys(); + // Returns ['adsense_background_color', 'adsense_border_color'] +} -// DEMO 12 +/** + * Test for {@link googletag.PubAdsService.getTargeting} + */ +function test_googletag_PubAdsService_getTargeting() { + googletag.pubads().setTargeting("interests", "sports"); + googletag.pubads().getTargeting("interests"); + // Returns ['sports'] + googletag.pubads().getTargeting("age"); + // Returns [] (empty array) +} -// This call to clear only slot1. -googletag.pubads().clear([slot1]); +/** + * Test for {@link googletag.PubAdsService.getTargetingKeys} + */ +function test_googletag_PubAdsService_getTargetingKeys() { + googletag.pubads().setTargeting("interests", "sports"); + googletag.pubads().setTargeting("colors", "blue"); + googletag.pubads().getTargetingKeys(); + // Returns ['interests', 'colors'] +} -// This call to clear both slot1 and slot2. -googletag.pubads().clear([slot1, slot2]); +/** + * Test for {@link googletag.PubAdsService.refresh} + */ +function test_googletag_PubAdsService_refresh() { + const slot1 = googletag.defineSlot("/1234567/sports", [728, 90], "div-1")!; + googletag.display("div-1"); + const slot2 = googletag.defineSlot("/1234567/news", [160, 600], "div-2")!; + googletag.display("div-2"); + // This call to refresh fetches a new ad for slot1 only. + googletag.pubads().refresh([slot1]); + // This call to refresh fetches a new ad for both slot1 and slot2. + googletag.pubads().refresh([slot1, slot2]); + // This call to refresh fetches a new ad for each slot. + googletag.pubads().refresh(); + // This call to refresh fetches a new ad for slot1, without changing + // the correlator. + googletag.pubads().refresh([slot1], { changeCorrelator: false }); + // This call to refresh fetches a new ad for each slot, without + // changing the correlator. + googletag.pubads().refresh(null, { changeCorrelator: false }); +} -// This call to clear all slots. -googletag.pubads().clear(); +/** + * Test for {@link googletag.PubAdsService.set} + */ +function test_googletag_PubAdsService_set() { + googletag.pubads().set("adsense_background_color", "#FFFFFF"); +} -// DEMO 13 -// Set category exclusion to exclude ads with 'AirlineAd' labels. -googletag.pubads().setCategoryExclusion("AirlineAd"); +/** + * Test for {@link googletag.PubAdsService.setCategoryExclusion} + */ +function test_googletag_PubAdsService_setCategoryExclusion() { + // Label = AirlineAd. + googletag.pubads().setCategoryExclusion("AirlineAd"); +} -// Make ad requests. No ad with 'AirlineAd' label will be returned. +/** + * Test for {@link googletag.PubAdsService.setCentering} + */ +function test_googletag_PubAdsService_setCentering() { + // Make ads centered. + googletag.pubads().setCentering(true); +} -// Clear category exclusions so all ads can be returned. -googletag.pubads().clearCategoryExclusions(); +/** + * Test for {@link googletag.PubAdsService.setForceSafeFrame} + */ +function test_googletag_PubAdsService_setForceSafeFrame() { + googletag.pubads().setForceSafeFrame(true); + // The following slot will be opted-out of the page-level force + // SafeFrame instruction. + googletag + .defineSlot("/1234567/sports", [160, 600], "div-1")! + .setForceSafeFrame(false) + .addService(googletag.pubads()); + // The following slot will have SafeFrame forced. + googletag.defineSlot("/1234567/news", [160, 600], "div-2")!.addService(googletag.pubads()); + googletag.display("div-1"); + googletag.display("div-2"); +} -// Make ad requests. Any ad can be returned. +/** + * Test for {@link googletag.PubAdsService.setLocation} + */ +function test_googletag_PubAdsService_setLocation() { + // Postal code: + googletag.pubads().setLocation("10001,US"); +} -// DEMO 14 -googletag.pubads().setTargeting("interests", "sports"); -googletag.pubads().setTargeting("colors", "blue"); -googletag.pubads().setTargeting("fruits", "apple"); +/** + * Test for {@link googletag.PubAdsService.setPrivacySettings} + */ +function test_googletag_PubAdsService_setPrivacySettings() { + googletag.pubads().setPrivacySettings({ + restrictDataProcessing: true, + }); + // Set multiple privacy settings at the same time. + googletag.pubads().setPrivacySettings({ + childDirectedTreatment: true, + underAgeOfConsent: true, + }); + // Clear the configuration for childDirectedTreatment. + googletag.pubads().setPrivacySettings({ + childDirectedTreatment: null, + }); +} -googletag.pubads().clearTargeting("interests"); -// Targeting 'colors' and 'fruits' are still present, while 'interests' was -// cleared. +/** + * Test for {@link googletag.PubAdsService.setPublisherProvidedId} + */ +function test_googletag_PubAdsService_setPublisherProvidedId() { + googletag.pubads().setPublisherProvidedId("12JD92JD8078S8J29SDOAKC0EF230337"); +} -googletag.pubads().clearTargeting(); -// All targeting has been cleared. +/** + * Test for {@link googletag.PubAdsService.setSafeFrameConfig} + */ +function test_googletag_PubAdsService_setSafeFrameConfig() { + googletag.pubads().setForceSafeFrame(true); + const pageConfig = { + allowOverlayExpansion: true, + allowPushExpansion: true, + sandbox: true, + }; + const slotConfig = { allowOverlayExpansion: false }; + googletag.pubads().setSafeFrameConfig(pageConfig); + // The following slot will not allow for expansion by overlay. + googletag + .defineSlot("/1234567/sports", [160, 600], "div-1")! + .setSafeFrameConfig(slotConfig) + .addService(googletag.pubads()); + // The following slot will inherit the page level settings, and hence + // would allow for expansion by overlay. + googletag.defineSlot("/1234567/news", [160, 600], "div-2")!.addService(googletag.pubads()); + googletag.display("div-1"); + googletag.display("div-2"); +} -// DEMO 15 -googletag.pubads().display("/1234567/sports", [728, 90], "div-1"); +/** + * Test for {@link googletag.PubAdsService.setTargeting} + */ +function test_googletag_PubAdsService_setTargeting() { + // Example with a single value for a key. + googletag.pubads().setTargeting("interests", "sports"); + // Example with multiple values for a key inside in an array. + googletag.pubads().setTargeting("interests", ["sports", "music"]); +} -// DEMO 16 -// A) Enable with defaults. -googletag.pubads().enableLazyLoad(); -// B) Enable without lazy fetching. Additional calls override previous ones. -googletag.pubads().enableLazyLoad({ fetchMarginPercent: -1 }); -// C) Enable lazy loading with... -googletag.pubads().enableLazyLoad({ - fetchMarginPercent: 500, // Fetch slots within 5 viewports. - renderMarginPercent: 200, // Render slots within 2 viewports. - mobileScaling: 2.0, // Double the above values on mobile. -}); +/** + * Test for {@link googletag.PubAdsService.updateCorrelator} + */ +function test_googletag_PubAdsService_updateCorrelator() { + // Assume that the correlator is currently 12345. All ad requests made + // by this page will currently use that value. + // Replace the current correlator with a new correlator. + googletag.pubads().updateCorrelator(); + // The correlator will now be a new randomly selected value, different + // from 12345. All subsequent ad requests made by this page will use + // the new value. +} -// DEMO 17 -googletag.pubads().set("adsense_background_color", "#FFFFFF"); -let color = googletag.pubads().get("adsense_background_color"); -// color == '#FFFFFF'. +/** + * Test for {@link googletag.Service.addEventListener} + */ +function test_googletag_Service_addEventListener() { + // 1. Adding an event listener for the PubAdsService. + googletag.pubads().addEventListener("slotOnload", (event) => { + console.log("Slot has been loaded:"); + console.log(event); + }); + // 2. Adding an event listener with slot specific logic. + // Listeners operate at service level, which means that you cannot add + // a listener for an event for a specific slot only. You can, however, + // programmatically filter a listener to respond only to a certain ad + // slot, using this pattern: + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("slotOnload", (event) => { + if (event.slot === targetSlot) { + // Slot specific logic. + } + }); +} -// DEMO 18 -googletag.pubads().set("adsense_background_color", "#FFFFFF"); -googletag.pubads().set("adsense_border_color", "#AABBCC"); -let keys = googletag.pubads().getAttributeKeys(); -// Keys are ['adsense_background_color', 'adsense_border_color']. +/** + * Test for {@link googletag.Service.removeEventListener} + */ +function test_googletag_Service_removeEventListener() { + googletag.cmd.push(() => { + // Define a new ad slot. + googletag.defineSlot("/6355419/Travel", [728, 90], "div-for-slot")!.addService(googletag.pubads()); + // Define a new function that removes itself via removeEventListener + // after the impressionViewable event fires. + const onViewableListener = (event: googletag.events.ImpressionViewableEvent) => { + googletag.pubads().removeEventListener("impressionViewable", onViewableListener); + setTimeout(() => { + googletag.pubads().refresh([event.slot]); + }, 30000); + }; + // Add onViewableListener as a listener for impressionViewable events. + googletag.pubads().addEventListener("impressionViewable", onViewableListener); + googletag.enableServices(); + }); +} -// DEMO 19 -googletag.pubads().setTargeting("interests", "sports"); +/** + * Test for {@link googletag.SizeMappingBuilder.addSize} + */ +function test_googletag_SizeMappingBuilder_addSize() { + // Mapping 1 + googletag + .sizeMapping() + .addSize([1024, 768], [970, 250]) + .addSize([980, 690], [728, 90]) + .addSize([640, 480], "fluid") + .addSize([0, 0], [88, 31]) // All viewports < 640x480 + .build(); + // Mapping 2 + googletag + .sizeMapping() + .addSize([1024, 768], [970, 250]) + .addSize([980, 690], []) + .addSize([640, 480], [120, 60]) + .addSize([0, 0], []) + .build(); + // Mapping 2 will not show any ads for the following viewport sizes: + // [1024, 768] > size >= [980, 690] and + // [640, 480] > size >= [0, 0] +} -let param = googletag.pubads().getTargeting("interests"); -// param is ['sports'] +/** + * Test for {@link googletag.Slot.addService} + */ +function test_googletag_Slot_addService() { + googletag.defineSlot("/1234567/sports", [160, 600])!.addService(googletag.pubads()); +} -param = googletag.pubads().getTargeting("age"); -// param is [] (empty array) +/** + * Test for {@link googletag.Slot.clearCategoryExclusions} + */ +function test_googletag_Slot_clearCategoryExclusions() { + // Set category exclusion to exclude ads with 'AirlineAd' labels. + const slot = googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .setCategoryExclusion("AirlineAd") + .addService(googletag.pubads()); + // Make an ad request. No ad with 'AirlineAd' label will be returned + // for the slot. + // Clear category exclusions so all ads can be returned. + slot.clearCategoryExclusions(); + // Make an ad request. Any ad can be returned for the slot. +} -// DEMO 20 -googletag.pubads().setTargeting("interests", "sports"); -googletag.pubads().setTargeting("colors", "blue"); +/** + * Test for {@link googletag.Slot.clearTargeting} + */ +function test_googletag_Slot_clearTargeting() { + const slot = googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .setTargeting("allow_expandable", "true") + .setTargeting("interests", ["sports", "music"]) + .setTargeting("color", "red") + .addService(googletag.pubads()); + slot.clearTargeting("color"); + // Targeting 'allow_expandable' and 'interests' are still present, + // while 'color' was cleared. + slot.clearTargeting(); + // All targeting has been cleared. +} -keys = googletag.pubads().getTargetingKeys(); -// keys are ['interests', 'colors']. +/** + * Test for {@link googletag.Slot.defineSizeMapping} + */ +function test_googletag_Slot_defineSizeMapping() { + const slot = googletag.defineSlot("/1234567/sports", [160, 600], "div")!.addService(googletag.pubads()); + const mapping = googletag + .sizeMapping() + .addSize([100, 100], [88, 31]) + .addSize( + [320, 400], + [ + [320, 50], + [300, 50], + ], + ) + .build(); + slot.defineSizeMapping(mapping); +} -// DEMO 21 +/** + * Test for {@link googletag.Slot.get} + */ +function test_googletag_Slot_get() { + const slot = googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .set("adsense_background_color", "#FFFFFF") + .addService(googletag.pubads()); + slot.get("adsense_background_color"); + // Returns '#FFFFFF' +} -// This call to refresh fetches a new ad for slot1 only. -googletag.pubads().refresh([slot1]); +/** + * Test for {@link googletag.Slot.getAdUnitPath} + */ +function test_googletag_Slot_getAdUnitPath() { + const slot = googletag.defineSlot("/1234567/sports", [160, 600], "div")!.addService(googletag.pubads()); + slot.getAdUnitPath(); + // Returns '/1234567/sports' +} -// This call to refresh fetches a new ad for both slot1 and slot2. -googletag.pubads().refresh([slot1, slot2]); +/** + * Test for {@link googletag.Slot.getAttributeKeys} + */ +function test_googletag_Slot_getAttributeKeys() { + const slot = googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .set("adsense_background_color", "#FFFFFF") + .set("adsense_border_color", "#AABBCC") + .addService(googletag.pubads()); + slot.getAttributeKeys(); + // Returns ['adsense_background_color', 'adsense_border_color'] +} -// This call to refresh fetches a new ad for each slot. -googletag.pubads().refresh(); +/** + * Test for {@link googletag.Slot.getCategoryExclusions} + */ +function test_googletag_Slot_getCategoryExclusions() { + const slot = googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .setCategoryExclusion("AirlineAd") + .setCategoryExclusion("TrainAd") + .addService(googletag.pubads()); + slot.getCategoryExclusions(); + // Returns ['AirlineAd', 'TrainAd'] +} -// This call to refresh fetches a new ad for slot1, without changing the -// correlator. -googletag.pubads().refresh([slot1], { changeCorrelator: false }); +/** + * Test for {@link googletag.Slot.getSlotElementId} + */ +function test_googletag_Slot_getSlotElementId() { + const slot = googletag.defineSlot("/1234567/sports", [160, 600], "div")!.addService(googletag.pubads()); + slot.getSlotElementId(); + // Returns 'div' +} -// This call to refresh fetches a new ad for each slot, without changing -// the correlator. -googletag.pubads().refresh(undefined, { changeCorrelator: false }); +/** + * Test for {@link googletag.Slot.getTargeting} + */ +function test_googletag_Slot_getTargeting() { + const slot = googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .setTargeting("allow_expandable", "true") + .addService(googletag.pubads()); + slot.getTargeting("allow_expandable"); + // Returns ['true'] + slot.getTargeting("age"); + // Returns [] (empty array) +} -// DEMO 22 -googletag.pubads().set("adsense_background_color", "#FFFFFF"); +/** + * Test for {@link googletag.Slot.getTargetingKeys} + */ +function test_googletag_Slot_getTargetingKeys() { + const slot = googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .setTargeting("allow_expandable", "true") + .setTargeting("interests", ["sports", "music"]) + .addService(googletag.pubads()); + slot.getTargetingKeys(); + // Returns ['interests', 'allow_expandable'] +} -// DEMO 23 -// Label = AirlineAd. -googletag.pubads().setCategoryExclusion("AirlineAd"); - -// DEMO 24 -// Make ads centered. -googletag.pubads().setCentering(true); - -// DEMO 26 -googletag.pubads().setForceSafeFrame(true); - -// The following slot will be opted-out of the page-level force -// safeframe instruction. -googletag.defineSlot("/1234567/sports", [160, 600], "div-1")?.setForceSafeFrame(false).addService(googletag.pubads()); - -// The following slot will have safeframe forced. -googletag.defineSlot("/1234567/news", [160, 600], "div-2")?.addService(googletag.pubads()); - -// googletag.display(); - -// DEMO 27 -// Postal code: -googletag.pubads().setLocation("10001,US"); - -// DEMO 28 -googletag.pubads().setPrivacySettings({ - restrictDataProcessing: true, -}); - -// Set multiple privacy settings at the same time. -googletag.pubads().setPrivacySettings({ - childDirectedTreatment: true, - limitedAds: true, - nonPersonalizedAds: true, - restrictDataProcessing: true, - underAgeOfConsent: true, -}); - -// Clear the configuration for childDirectedTreatment. -googletag.pubads().setPrivacySettings({ - childDirectedTreatment: null, -}); - -// Indicate requests represent organic traffic. -googletag.pubads().setPrivacySettings({ - trafficSource: googletag.enums.TrafficSource.ORGANIC, -}); -// Indicate requests represent purchased traffic. -googletag.pubads().setPrivacySettings({ - trafficSource: googletag.enums.TrafficSource.PURCHASED, -}); - -// DEMO 29 -googletag.pubads().setPublisherProvidedId("AB123456789"); - -// DEMO 31 -googletag.pubads().setForceSafeFrame(true); - -let pageConfig: googletag.SafeFrameConfig = { - allowOverlayExpansion: true, - allowPushExpansion: true, - sandbox: true, -}; - -let slotConfig: googletag.SafeFrameConfig = { allowOverlayExpansion: false }; - -googletag.pubads().setSafeFrameConfig(pageConfig); - -// The following slot will not allow for expansion by overlay. -googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setSafeFrameConfig(slotConfig) - .addService(googletag.pubads()); - -// The following slot will inherit the page level settings, and hence -// would allow for expansion by overlay. -googletag.defineSlot("/1234567/news", [160, 600], "div-2")?.addService(googletag.pubads()); - -// googletag.display(); - -// DEMO 32 -// Example with a single value for a key. -googletag.pubads().setTargeting("interests", "sports"); - -// Example with multiple values for a key inside in an array. -googletag.pubads().setTargeting("interests", ["sports", "music", "movies"]); - -// DEMO 34 -// 1. Adding an event listener for the PubAdsService. -googletag.pubads().addEventListener("slotOnload", event => { - console.log("Slot has been loaded:"); - console.log(event); -}); - -// 2. Adding an event listener with slot specific logic. -// Listeners operate at service level, which means that you cannot add a -// listener for an event for a specific slot only. You can, however, -// programmatically filter a listener to respond only to a certain ad slot, -// using this pattern: -let targetSlot = {}; -googletag.pubads().addEventListener("slotOnload", event => { - if (event.slot === targetSlot) { - // Slot specific logic. - } -}); - -// 1. Define a callback function. -const onViewableListener = (event: googletag.events.Event) => { - setTimeout(() => { - googletag.pubads().refresh([event.slot]); - }, 30000); - - // Remove the event listener after executing this callback once. - googletag.pubads().removeEventListener("impressionViewable", onViewableListener); -}; -// 2. Add an event listener to execute the callback. -googletag.pubads().addEventListener("impressionViewable", onViewableListener); - -// DEMO 35 -let mapping1 = googletag - .sizeMapping() - .addSize([1024, 768], [970, 250]) - .addSize([980, 690], [728, 90]) - .addSize([640, 480], "fluid") - .addSize([0, 0], [88, 31]) // Fits browsers of any size smaller than 640x480. - .build(); -let mapping2 = googletag - .sizeMapping() - .addSize([1024, 768], [970, 250]) - .addSize([980, 690], []) - .addSize([640, 480], [120, 60]) - .addSize([0, 0], []) - .build(); - -// mapping2 will not show any ads for the following viewport sizes: -// [1024, 768] > size >= [980, 690] and -// [640, 480] > size >= [0, 0] - -// DEMO 36 -googletag.defineSlot("/1234567/sports", [160, 600]).addService(googletag.pubads()); - -// DEMO 37 -// Set category exclusion to exclude ads with 'AirlineAd' labels. -slot = googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setCategoryExclusion("AirlineAd") - .addService(googletag.pubads()); - -// Make an ad request. No ad with 'AirlineAd' label will be returned for the slot. - -// Clear category exclusions so all ads can be returned. -slot?.clearCategoryExclusions(); - -// Make an ad request. Any ad can be returned for the slot. - -// DEMO 38 -slot = googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setTargeting("allow_expandable", "true") - .setTargeting("interests", ["sports", "music", "movies"]) - .setTargeting("color", "red") - .addService(googletag.pubads()); - -slot?.clearTargeting("color"); -// Targeting 'allow_expandable' and 'interests' are still present, while -// 'color' was cleared. - -slot?.clearTargeting(); -// All targeting has been cleared. - -// DEMO 39 -slot = googletag.defineSlot("/1234567/sports", [160, 600], "div-1")?.addService(googletag.pubads()); -let mapping = googletag - .sizeMapping() - .addSize([100, 100], [88, 31]) - .addSize( - [320, 400], - [ - [320, 50], - [300, 50], +/** + * Test for {@link googletag.Slot.set} + */ +function test_googletag_Slot_set() { + // Setting an attribute on a single ad slot. + googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .set("adsense_background_color", "#FFFFFF") + .addService(googletag.pubads()); +} + +/** + * Test for {@link googletag.Slot.setCategoryExclusion} + */ +function test_googletag_Slot_setCategoryExclusion() { + // Label = AirlineAd + googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .setCategoryExclusion("AirlineAd") + .addService(googletag.pubads()); +} + +/** + * Test for {@link googletag.Slot.setClickUrl} + */ +function test_googletag_Slot_setClickUrl() { + googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .setClickUrl("http://www.example.com?original_click_url=") + .addService(googletag.pubads()); +} + +/** + * Test for {@link googletag.Slot.setCollapseEmptyDiv} + */ +function test_googletag_Slot_setCollapseEmptyDiv() { + googletag + .defineSlot("/1234567/sports", [160, 600], "div")! + .setCollapseEmptyDiv(true, true) + .addService(googletag.pubads()); + // The above will cause the div for this slot to be collapsed + // when the page is loaded, before ads are requested. + googletag + .defineSlot("/1234567/sports", [160, 600], "div-2")! + .setCollapseEmptyDiv(true) + .addService(googletag.pubads()); + // The above will cause the div for this slot to be collapsed + // only after GPT detects that no ads are available for the slot. +} + +/** + * Test for {@link googletag.Slot.setForceSafeFrame} + */ +function test_googletag_Slot_setForceSafeFrame() { + googletag.defineSlot("/1234567/sports", [160, 600], "div")!.setForceSafeFrame(true).addService(googletag.pubads()); +} + +/** + * Test for {@link googletag.Slot.setSafeFrameConfig} + */ +function test_googletag_Slot_setSafeFrameConfig() { + googletag.pubads().setForceSafeFrame(true); + // The following slot will have a sandboxed safeframe that only + // disallows top-level navigation. + googletag + .defineSlot("/1234567/sports", [160, 600], "div-1")! + .setSafeFrameConfig({ sandbox: true }) + .addService(googletag.pubads()); + // The following slot will inherit page-level settings. + googletag.defineSlot("/1234567/news", [160, 600], "div-2")!.addService(googletag.pubads()); + googletag.display("div-1"); + googletag.display("div-2"); +} + +/** + * Test for {@link googletag.Slot.setTargeting} + */ +function test_googletag_Slot_setTargeting() { + const slot = googletag.defineSlot("/1234567/sports", [160, 600], "div")!.addService(googletag.pubads()); + // Example with a single value for a key. + slot.setTargeting("allow_expandable", "true"); + // Example with multiple values for a key inside in an array. + slot.setTargeting("interests", ["sports", "music"]); +} + +/** + * Test for {@link googletag.Slot.updateTargetingFromMap} + */ +function test_googletag_Slot_updateTargetingFromMap() { + const slot = googletag.defineSlot("/1234567/sports", [160, 600], "div")!; + slot.updateTargetingFromMap({ + color: "red", + interests: ["sports", "music", "movies"], + }); +} + +/** + * Test for {@link googletag.config.ComponentAuctionConfig.auctionConfig} + */ +function test_googletag_config_ComponentAuctionConfig_auctionConfig() { + const componentAuctionConfig = { + // Seller URL should be https and the same as decisionLogicUrl's origin + seller: "https://testSeller.com", + decisionLogicUrl: "https://testSeller.com/ssp/decision-logic.js", + interestGroupBuyers: ["https://example-buyer.com"], + auctionSignals: { auction_signals: "auction_signals" }, + sellerSignals: { seller_signals: "seller_signals" }, + perBuyerSignals: { + // listed on interestGroupBuyers + "https://example-buyer.com": { + per_buyer_signals: "per_buyer_signals", + }, + }, + }; + const auctionSlot = googletag.defineSlot("/1234567/example", [160, 600])!; + // To add configKey to the component auction: + auctionSlot.setConfig({ + componentAuction: [ + { + configKey: "https://testSeller.com", + auctionConfig: componentAuctionConfig, + }, ], - ) - .build(); -slot?.defineSizeMapping(mapping); -slot?.defineSizeMapping([ - [ - [100, 100], - [88, 31], - ], - [ - [320, 400], - [ - [320, 50], - [300, 50], + }); + // To remove configKey from the component auction: + auctionSlot.setConfig({ + componentAuction: [ + { + configKey: "https://testSeller.com", + auctionConfig: null, + }, ], - ], - [[0, 0], "fluid"], -]); - -// DEMO 40 -slot = googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.set("adsense_background_color", "#FFFFFF") - .addService(googletag.pubads()); - -color = googletag.pubads().get("adsense_background_color"); -// color == '#FFFFFF'. - -// DEMO 41 -slot = googletag.defineSlot("/1234567/sports", [160, 600], "div-1")?.addService(googletag.pubads()); - -let path = slot?.getAdUnitPath(); -// path is '/1234567/sports' - -// DEMO 42 -slot = googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.set("adsense_background_color", "#FFFFFF") - .set("adsense_border_color", "#AABBCC") - .addService(googletag.pubads()); - -keys = googletag.pubads().getAttributeKeys(); -// Keys are ['adsense_background_color', 'adsense_border_color']. - -// DEMO 43 -slot = googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setCategoryExclusion("AirlineAd") - .setCategoryExclusion("TrainAd") - .addService(googletag.pubads()); - -let exclusions = slot?.getCategoryExclusions(); -// exclusions are ['AirlineAd', 'TrainAd'] - -// DEMO 44 -slot = googletag.defineSlot("/1234567/sports", [160, 600], "div-1")?.addService(googletag.pubads()); - -let slotElementId = slot?.getSlotElementId(); -// slotElementId is 'div-1' - -// DEMO 45 -slot = googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setTargeting("allow_expandable", "true") - .addService(googletag.pubads()); - -param = slot?.getTargeting("allow_expandable") || []; -// param is ['true'] - -param = slot?.getTargeting("age") || []; -// param is [] (empty array) - -// DEMO 46 -slot = googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setTargeting("allow_expandable", "true") - .setTargeting("interests", ["sports", "music", "movies"]) - .addService(googletag.pubads()); - -keys = slot?.getTargetingKeys() || []; -// keys are ['interests', 'allow_expandable']. - -// DEMO 47 -// Setting an attribute on a single ad slot. -googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.set("adsense_background_color", "#FFFFFF") - .addService(googletag.pubads()); - -// DEMO 48 -// Label = AirlineAd -googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setCategoryExclusion("AirlineAd") - .addService(googletag.pubads()); - -// DEMO 49 -googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setClickUrl("http://www.example.com?original_click_url=") - .addService(googletag.pubads()); - -// DEMO 50 -googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setCollapseEmptyDiv(true, true) - .addService(googletag.pubads()); -// The above will cause the div for this slot to be collapsed -// when the page is loaded, before ads are requested. - -googletag.defineSlot("/1234567/sports", [160, 600], "div-2")?.setCollapseEmptyDiv(true).addService(googletag.pubads()); -// The above will cause the div for this slot to be collapsed -// only after GPT detects that no ads are available for the slot. - -// DEMO 51 -googletag.defineSlot("/1234567/sports", [160, 600], "div-1")?.setForceSafeFrame(true).addService(googletag.pubads()); - -// DEMO 52 -googletag.pubads().setForceSafeFrame(true); - -// The following slot will have a sandboxed safeframe that only disallows -// top-level navigation. -googletag - .defineSlot("/1234567/sports", [160, 600], "div-1") - ?.setSafeFrameConfig({ sandbox: true }) - .addService(googletag.pubads()); - -googletag.defineSlot("/1234567/news", [160, 600], "div-2")?.addService(googletag.pubads()); - -// googletag.display(); - -// DEMO 53 -slot = googletag.defineSlot("/1234567/sports", [160, 600], "div-1")?.addService(googletag.pubads()); - -// Example with a single value for a key. -slot?.setTargeting("allow_expandable", "true"); - -// Example with multiple values for a key inside in an array. -slot?.setTargeting("interests", ["sports", "music", "movies"]); - -// DEMO 54 -slot = googletag.defineSlot("/1234567/sports", [160, 600], "div-1"); -slot?.updateTargetingFromMap({ - color: "red", - interests: ["sports", "music", "movies"], -}); - -// DEMO 55 -// This listener will be called when an impression becomes viewable. -targetSlot = {}; -googletag.pubads().addEventListener("impressionViewable", event => { - slot = event.slot; - console.log("Impression for slot", slot.getSlotElementId(), "became viewable."); - - if (slot === targetSlot) { - // Slot specific logic. - } -}); + }); +} -// DEMO 56 -// This listener will be called when a creative iframe load event fires. -targetSlot = {}; -googletag.pubads().addEventListener("slotOnload", event => { - slot = event.slot; - console.log("Creative iframe for slot", slot.getSlotElementId(), "has loaded."); +/** + * Test for {@link googletag.config.InterstitialConfig.triggers} + */ +function test_googletag_config_InterstitialConfig_triggers() { + // Define a GPT managed web interstitial ad slot. + const interstitialSlot = googletag.defineOutOfPageSlot( + "/1234567/sports", + googletag.enums.OutOfPageFormat.INTERSTITIAL, + )!; + // Enable optional interstitial triggers. + // Change this value to false to disable. + const enableTriggers = true; + interstitialSlot.setConfig({ + interstitial: { + triggers: { + unhideWindow: enableTriggers, + }, + }, + }); +} - if (slot === targetSlot) { - // Slot specific logic. - } -}); - -// DEMO 57 -// This listener will be called when a slot has finished rendering. -targetSlot = {}; -googletag.pubads().addEventListener("slotRenderEnded", event => { - slot = event.slot; - console.group("Slot", slot.getSlotElementId(), "finished rendering."); - - // Log details of the rendered ad. - console.log("Advertiser ID:", event.advertiserId); - console.log("Campaign ID:", event.campaignId); - console.log("Company IDs:", event.companyIds); - console.log("Creative ID:", event.creativeId); - console.log("Creative Template ID:", event.creativeTemplateId); - console.log("Is backfill?:", event.isBackfill); - console.log("Is empty?:", event.isEmpty); - console.log("Label IDs:", event.labelIds); - console.log("Line Item ID:", event.lineItemId); - console.log("Size:", event.size); - console.log("Slot content changed?:", event.slotContentChanged); - console.log("Source Agnostic Creative ID:", event.sourceAgnosticCreativeId); - console.log("Source Agnostic Line Item ID:", event.sourceAgnosticLineItemId); - console.log("Yield Group IDs:", event.yieldGroupIds); - console.groupEnd(); - - if (slot === targetSlot) { - // Slot specific logic. - } -}); - -// DEMO 58 -// This listener will be called when the specified service issues an ad -// request for a slot. Each slot will fire this event, even though they may -// be batched together in a single request if single request architecture -// (SRA) is enabled. -targetSlot = {}; -googletag.pubads().addEventListener("slotRequested", event => { - slot = event.slot; - console.log("Slot", slot.getSlotElementId(), "has been requested."); - - if (slot === targetSlot) { - // Slot specific logic. - } -}); - -// DEMO 59 -// This listener will be called when an ad response has been received for -// a slot. -targetSlot = {}; -googletag.pubads().addEventListener("slotResponseReceived", event => { - slot = event.slot; - console.log("Ad response for slot", slot.getSlotElementId(), "received."); - - if (slot === targetSlot) { - // Slot specific logic. - } -}); - -// DEMO 60 -// This listener will be called whenever the on-screen percentage of an ad -// slot's area changes. -targetSlot = {}; -googletag.pubads().addEventListener("slotVisibilityChanged", event => { - slot = event.slot; - console.group("Visibility of slot", slot.getSlotElementId(), "changed."); - - // Log details of the event. - console.log("Visible area:", event.inViewPercentage + "%"); - console.groupEnd(); - - if (slot === targetSlot) { - // Slot specific logic. - } -}); - -// DEMO 61 -// Test for definitions not declared by GPT Reference -googletag.pubads().isSRA(); -let imaContent = { - vid: "imaContentId?", - cmsid: "imaCmsId?", -}; -googletag.pubads().setImaContent(imaContent.vid, imaContent.cmsid); -imaContent = googletag.pubads().getImaContent(); -googletag.pubads().setVideoContent(imaContent.vid, imaContent.cmsid); -imaContent = googletag.pubads().getVideoContent(); -googletag.pubads().getCorrelator(); -googletag.pubads().getTagSessionCorrelator(); -googletag.pubads().getName(); -googletag.pubads().getVersion(); - -const slotIdMap = googletag.pubads().getSlotIdMap(); -Object.keys(slotIdMap).forEach(slotId => { - slot = slotIdMap[slotId]; - console.log(slotId, slot); -}); -googletag - .pubads() - .getSlots() - .forEach(slot => { - console.log( - slot.getClickUrl(), - slot.getCollapseEmptyDiv(), - slot.getContentUrl(), - slot.getDivStartsCollapsed(), - slot.getEscapedQemQueryId(), - slot.getHtml(), - slot.getOutOfPage(), - slot.getServices(), - slot.getSizes(), - slot.getSlotId(), - slot.getTargetingMap(), - ); +/** + * Test for {@link googletag.config.PrivacyTreatmentsConfig.treatments} + */ +function test_googletag_config_PrivacyTreatmentsConfig_treatments() { + // Disable personalization across the entire page. + googletag.setConfig({ + privacyTreatments: { treatments: ["disablePersonalization"] }, + }); +} + +/** + * Test for {@link googletag.events.ImpressionViewableEvent} + */ +function test_googletag_events_ImpressionViewableEvent() { + // This listener is called when an impression becomes viewable. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("impressionViewable", (event) => { + const slot = event.slot; + console.log("Impression for slot", slot.getSlotElementId(), "became viewable."); + if (slot === targetSlot) { + // Slot specific logic. + } }); +} -// DEMO 62 -// Ensure you can push several arguments to `cmd` -googletag.cmd.push( - ...[1, 2, 3, 4, 5].map(n => () => { - console.log(`successfully pushed ${n > 1 ? n + " arguments" : "one argument"}`); - }), -); - -// DEMO 63 -googletag.pubads().getName() === "publisher_ads"; -googletag.companionAds().getName() === "companion_ads"; - -// DEMO 64 -const attributes = new Map() - .set("adsense_channel_ids", "271828183+314159265") - .set("adsense_ad_types", "text_image") - .set("adsense_background_color", "#000000") - .set("adsense_border_color", "#000000") - .set("adsense_link_color", "#000000") - .set("adsense_test_mode", "on") - .set("adsense_text_color", "#000000") - .set("adsense_url_color", "#000000") - .set("adsense_ui_features", "rc:10") - .set("page_url", "www.mysite.com"); -attributes.forEach((value, key) => { - googletag.pubads().set(key, value); -}); -googletag.pubads().set("adsense_ad_format", "250x250_as"); - -// Rewarded ads for web have launched. -targetSlot = ( - googletag.defineOutOfPageSlot("/1234567/sports", googletag.enums.OutOfPageFormat.REWARDED) as googletag.Slot -).addService(googletag.pubads()); -// This listener is called when the user closes a rewarded ad slot. -function rewardedSlotClosed(event: googletag.events.Event) { - const slot = event.slot; - console.log("Rewarded ad slot", slot.getSlotElementId(), "has been closed."); - if (slot === targetSlot) { - // Slot specific logic. - googletag.pubads().removeEventListener("rewardedSlotClosed", rewardedSlotClosed); - } +/** + * Test for {@link googletag.events.RewardedSlotClosedEvent} + */ +function test_googletag_events_RewardedSlotClosedEvent() { + // This listener is called when the user closes a rewarded ad slot. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("rewardedSlotClosed", (event) => { + const slot = event.slot; + console.log("Rewarded ad slot", slot.getSlotElementId(), "has been closed."); + if (slot === targetSlot) { + // Slot specific logic. + } + }); } -googletag.pubads().addEventListener("rewardedSlotGranted", rewardedSlotClosed); -// This listener is called whenever a reward is granted for a rewarded ad. -function rewardedSlotGranted(event: googletag.events.RewardedSlotGrantedEvent) { - const slot = event.slot; - console.group("Reward granted for slot", slot.getSlotElementId(), "."); - // Log details of the reward. - console.log("Reward type:", event.payload?.type); - console.log("Reward amount:", event.payload?.amount); - console.groupEnd(); - if (slot === targetSlot) { - // Slot specific logic. - googletag.pubads().removeEventListener("rewardedSlotGranted", rewardedSlotGranted); - } + +/** + * Test for {@link googletag.events.RewardedSlotGrantedEvent} + */ +function test_googletag_events_RewardedSlotGrantedEvent() { + // This listener is called whenever a reward is granted for a rewarded ad. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("rewardedSlotGranted", (event) => { + const slot = event.slot; + console.group("Reward granted for slot", slot.getSlotElementId(), "."); + // Log details of the reward. + console.log("Reward type:", event.payload?.type); + console.log("Reward amount:", event.payload?.amount); + console.groupEnd(); + if (slot === targetSlot) { + // Slot specific logic. + } + }); } -googletag.pubads().addEventListener("rewardedSlotGranted", rewardedSlotGranted); -// This listener is called when a rewarded ad slot becomes ready to be displayed. -googletag.pubads().addEventListener("rewardedSlotReady", event => { - const slot = event.slot; - console.log("Rewarded ad slot", slot.getSlotElementId(), "is ready to be displayed."); - // Display the ad. - event.makeRewardedVisible(); - if (slot === targetSlot) { - // Slot specific logic. - } -}); - -// Event Types -const types: Array = [ - "impressionViewable", - "rewardedSlotClosed", - "rewardedSlotGranted", - "rewardedSlotReady", - "slotRequested", - "slotResponseReceived", - "slotRenderEnded", - "slotOnload", - "slotVisibilityChanged", -]; -types.forEach(type => { - googletag.pubads().addEventListener(type, event => { - console.log(event); + +/** + * Test for {@link googletag.events.RewardedSlotReadyEvent} + */ +function test_googletag_events_RewardedSlotReadyEvent() { + // This listener is called when a rewarded ad slot becomes ready to be displayed. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("rewardedSlotReady", (event) => { + const slot = event.slot; + console.log("Rewarded ad slot", slot.getSlotElementId(), "is ready to be displayed."); + // Replace with custom logic. + const userHasConsented = true; + if (userHasConsented) { + event.makeRewardedVisible(); + } + if (slot === targetSlot) { + // Slot specific logic. + } }); -}); - -// Configuration for the component auction. -const componentAuctionConfig = { - seller: "https://testSeller.com", // should be https and the same as - // decisionLogicUrl's origin - decisionLogicUrl: "https://testSeller.com/ssp/decision-logic.js", - interestGroupBuyers: ["https://example-buyer.com"], - auctionSignals: { auction_signals: "auction_signals" }, - sellerSignals: { seller_signals: "seller_signals" }, - perBuyerSignals: { - // listed on interestGroupBuyers - "https://example-buyer.com": { - per_buyer_signals: "per_buyer_signals", - }, - }, -}; -const auctionSlot = googletag.defineSlot("/1234567/example", [160, 600]); -// To add configKey to the component auction: -auctionSlot.setConfig({ - componentAuction: [ - { - configKey: "https://testSeller.com", - auctionConfig: componentAuctionConfig, +} + +/** + * Test for {@link googletag.events.SlotOnloadEvent} + */ +function test_googletag_events_SlotOnloadEvent() { + // This listener is called when a creative iframe load event fires. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("slotOnload", (event) => { + const slot = event.slot; + console.log("Creative iframe for slot", slot.getSlotElementId(), "has loaded."); + if (slot === targetSlot) { + // Slot specific logic. + } + }); +} + +/** + * Test for {@link googletag.events.SlotRenderEndedEvent} + */ +function test_googletag_events_SlotRenderEndedEvent() { + // This listener is called when a slot has finished rendering. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("slotRenderEnded", (event) => { + const slot = event.slot; + console.group("Slot", slot.getSlotElementId(), "finished rendering."); + // Log details of the rendered ad. + console.log("Advertiser ID:", event.advertiserId); + console.log("Campaign ID:", event.campaignId); + console.log("Company IDs:", event.companyIds); + console.log("Creative ID:", event.creativeId); + console.log("Creative Template ID:", event.creativeTemplateId); + console.log("Is backfill?:", event.isBackfill); + console.log("Is empty?:", event.isEmpty); + console.log("Label IDs:", event.labelIds); + console.log("Line Item ID:", event.lineItemId); + console.log("Size:", event.size); + console.log("Slot content changed?", event.slotContentChanged); + console.log("Source Agnostic Creative ID:", event.sourceAgnosticCreativeId); + console.log("Source Agnostic Line Item ID:", event.sourceAgnosticLineItemId); + console.log("Yield Group IDs:", event.yieldGroupIds); + console.groupEnd(); + if (slot === targetSlot) { + // Slot specific logic. + } + }); +} + +/** + * Test for {@link googletag.events.SlotRequestedEvent} + */ +function test_googletag_events_SlotRequestedEvent() { + // This listener is called when the specified service issues an ad request for a slot. + // Each slot will fire this event, even though they may be batched together in a single request + // if single request architecture (SRA) is enabled. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("slotRequested", (event) => { + const slot = event.slot; + console.log("Slot", slot.getSlotElementId(), "has been requested."); + if (slot === targetSlot) { + // Slot specific logic. + } + }); +} + +/** + * Test for {@link googletag.events.SlotResponseReceived} + */ +function test_googletag_events_SlotResponseReceived() { + // This listener is called when an ad response has been received for a slot. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("slotResponseReceived", (event) => { + const slot = event.slot; + console.log("Ad response for slot", slot.getSlotElementId(), "received."); + if (slot === targetSlot) { + // Slot specific logic. + } + }); +} + +/** + * Test for {@link googletag.events.SlotVisibilityChangedEvent} + */ +function test_googletag_events_SlotVisibilityChangedEvent() { + // This listener is called whenever the on-screen percentage of an + // ad slot's area changes. + const targetSlot = googletag.defineSlot("/1234567/example", [160, 600]); + googletag.pubads().addEventListener("slotVisibilityChanged", (event) => { + const slot = event.slot; + console.group("Visibility of slot", slot.getSlotElementId(), "changed."); + // Log details of the event. + console.log("Visible area:", `${event.inViewPercentage}%`); + console.groupEnd(); + if (slot === targetSlot) { + // Slot specific logic. + } + }); +} + +/** + * Test for {@link googletag.secureSignals.BidderSignalProvider} + */ +function test_googletag_secureSignals_BidderSignalProvider() { + // id is provided + googletag.secureSignalProviders.push({ + id: "collector123", + collectorFunction: () => { + // ...custom signal generation logic... + return Promise.resolve("signal"); }, - ], -}); -// To remove configKey from the component auction: -auctionSlot.setConfig({ - componentAuction: [ - { - configKey: "https://testSeller.com", - auctionConfig: null, + }); +} + +/** + * Test for {@link googletag.secureSignals.PublisherSignalProvider} + */ +function test_googletag_secureSignals_PublisherSignalProvider() { + // networkCode is provided + googletag.secureSignalProviders.push({ + networkCode: "123456", + collectorFunction: () => { + // ...custom signal generation logic... + return Promise.resolve("signal"); }, - ], -}); - -// Initialize the secure signal providers array -window.googletag = window.googletag || { cmd: [], secureSignalProviders: [] }; -// id is provided -googletag.secureSignalProviders.push({ - id: "collector123", - collectorFunction: () => { - // ...custom signal generation logic... - return Promise.resolve("signal"); - }, -}); -// networkCode is provided, the id is not available -googletag.secureSignalProviders.push({ - networkCode: "123456", - collectorFunction: () => { - // ...custom signal generation logic... - return Promise.resolve("signal"); - }, -}); -// clear all cache -if (!(googletag.secureSignalProviders instanceof Array)) { - googletag.secureSignalProviders.clearAllCache(); + }); } diff --git a/types/googletag/index.d.ts b/types/googletag/index.d.ts index 91f78c6e3fe097..e6d78907bbc3dd 100644 --- a/types/googletag/index.d.ts +++ b/types/googletag/index.d.ts @@ -6,16 +6,14 @@ * * For a brief overview of GPT, including it's benefits, basic functionality and features, visit the [Ad Manager help center](https://support.google.com/admanager/answer/181073). * - * **Note**: Firstly, [load GPT from the official source](https://developers.google.com/publisher-tag/guides/general-best-practices#load_from_an_official_source) and initialize `googletag`. + * **Note:** Firstly, [load GPT from the official source](https://developers.google.com/publisher-tag/guides/general-best-practices#load_from_an_official_source) and initialize `googletag`. * * @example - * - * - * + * // + * window.googletag = window.googletag || { cmd: [] }; + * googletag.cmd.push(() => { + * // GPT API can be called safely. + * }); */ declare namespace googletag { /** @@ -67,11 +65,9 @@ declare namespace googletag { * These callbacks do not have to check googletag.apiReady as they are guaranteed to execute once the API is set up. * * @example - * + * if (window.googletag && googletag.apiReady) { + * // GPT API can be called safely. + * } */ const apiReady: boolean | undefined; @@ -85,8 +81,8 @@ declare namespace googletag { * This mechanism allows GPT to reduce perceived latency by fetching the JavaScript asynchronously while allowing the browser to continue rendering the page. * * @example - * googletag.cmd.push(function() { - * googletag.defineSlot('/1234567/sports', [160, 600]) + * googletag.cmd.push(() => { + * googletag.defineSlot('/1234567/sports', [160, 600])! * .addService(googletag.pubads()); * }); */ @@ -96,7 +92,7 @@ declare namespace googletag { * Flag indicating that {@link PubAdsService} is enabled, loaded and fully operational. * This property will be simply `undefined` until {@link googletag.enableServices()} is called and {@link PubAdsService} is loaded and initialized. * - * **Note**: Checking {@link googletag.pubadsReady} is discouraged. Please use {@link googletag.cmd.push} instead. + * **Note:** Checking {@link googletag.pubadsReady} is discouraged. Please use {@link googletag.cmd.push} instead. */ const pubadsReady: boolean | undefined; @@ -107,11 +103,11 @@ declare namespace googletag { * It is intended to replace a standard array that is used to enqueue signal-generating functions to be invoked once GPT is loaded. * * @example - * window.googletag = window.googletag || { cmd: [], secureSignalProviders: [] }; - * window.googletag.secureSignalProviders.push({ - * id: 'collector123', - * collectorFunction: () => { return Promise.resolve('signal'); } - * }); + * window.googletag = window.googletag || { cmd: [], secureSignalProviders: [] }; + * window.googletag.secureSignalProviders.push({ + * id: 'collector123', + * collectorFunction: () => { return Promise.resolve('signal'); } + * }); * * @see [Share secure signals with bidders](https://support.google.com/admanager/answer/10488752) */ @@ -134,7 +130,7 @@ declare namespace googletag { * * @example * // Define a custom out-of-page ad slot. - * googletag.defineOutOfPageSlot('/1234567/sports', 'div-1'); + * googletag.defineOutOfPageSlot('/1234567/sports', 'div'); * // Define a GPT managed web interstitial ad slot. * googletag.defineOutOfPageSlot('/1234567/sports', * googletag.enums.OutOfPageFormat.INTERSTITIAL); @@ -147,14 +143,13 @@ declare namespace googletag { * @param div ID of the div that will contain this ad unit or OutOfPageFormat. * @returns The newly created slot, or `null` if a slot cannot be created. */ - function defineOutOfPageSlot(adUnitPath: string, div: string | enums.OutOfPageFormat): Slot | null; - function defineOutOfPageSlot(adUnitPath: string): Slot; + function defineOutOfPageSlot(adUnitPath: string, div?: string | enums.OutOfPageFormat): Slot | null; /** * Constructs an ad slot with a given ad unit path and size and associates it with the ID of a div element on the page that will contain the ad. * * @example - * googletag.defineSlot('/1234567/sports', [728, 90], 'div-1'); + * googletag.defineSlot('/1234567/sports', [728, 90], 'div'); * * @see [Get Started with Google Publisher Tags](https://developers.google.com/publisher-tag/guides/get-started) * @param adUnitPath Full [ad unit path](https://developers.google.com/publisher-tag/guides/get-started#ad-unit-path) with the network code and unit code. @@ -163,10 +158,7 @@ declare namespace googletag { * @param div ID of the div that will contain this ad unit. * @returns The newly created slot, or `null` if a slot cannot be created. */ - function defineSlot(adUnitPath: string, size: GeneralSize, div: string): Slot | null; - function defineSlot(adUnitPath: string, size: GeneralSize): Slot; - function defineUnit(adUnitPath: string, size: GeneralSize, div: string): Slot | null; - function defineUnit(adUnitPath: string, size: GeneralSize): Slot; + function defineSlot(adUnitPath: string, size: GeneralSize, div?: string): Slot | null; /** * Destroys the given slots, removing all related objects and references of those slots from GPT. @@ -183,15 +175,10 @@ declare namespace googletag { * * @example * // The calls to construct an ad and display contents. - * var slot1 = - * googletag.defineSlot('/1234567/sports', [728, 90], 'div-1'); + * const slot1 = googletag.defineSlot('/1234567/sports', [728, 90], 'div-1')!; * googletag.display('div-1'); - * var slot2 = - * googletag.defineSlot('/1234567/news', [160, 600], 'div-2'); + * const slot2 = googletag.defineSlot('/1234567/news', [160, 600], 'div-2')!; * googletag.display('div-2'); - * var slot3 = - * googletag.defineSlot('/1234567/weather', [160, 600], 'div-3'); - * googletag.display('div-3'); * // This call to destroy only slot1. * googletag.destroySlots([slot1]); * // This call to destroy both slot1 and slot2. @@ -208,7 +195,7 @@ declare namespace googletag { * Disables the Google Publisher Console. * * @see [Google Publisher Console](https://developers.google.com/publisher-tag/guides/publisher-console) - * **Note**: Can only be called after the document is loaded. + * **Note:** Can only be called after the document is loaded. */ function disablePublisherConsole(): void; @@ -223,13 +210,10 @@ declare namespace googletag { * To force an ad slot not to display, the entire div must be removed. * * @example - *
- * - *
+ * //
+ * googletag.cmd.push(() => { + * googletag.display('div'); + * }); * * @see [Get Started with Google Publisher Tags](https://developers.google.com/publisher-tag/guides/get-started) * @see [Display a test ad](https://developers.google.com/publisher-tag/samples/display-test-ad) @@ -255,15 +239,15 @@ declare namespace googletag { /** * Opens the Google Publisher Console. * - * @see [Google Publisher Console](https://developers.google.com/publisher-tag/guides/publisher-console) - * **Note**: Can only be called after the document is loaded. + * **Note:** Can only be called after the document is loaded. * * @example * // Calling with div ID. - * googletag.openConsole('div-1'); + * googletag.openConsole('div'); * // Calling without div ID. * googletag.openConsole(); * + * @see [Google Publisher Console](https://developers.google.com/publisher-tag/guides/publisher-console) * @param div An ad slot div ID. This value is optional. When provided, the Publisher Console will attempt to open with details of the specified ad slot in view. */ function openConsole(div?: string): void; @@ -284,6 +268,11 @@ declare namespace googletag { */ function setAdIframeTitle(title: string): void; + /** + * Sets general configuration options for the page. + */ + function setConfig(config: config.PageSettingsConfig): void; + /** * Creates a new {@link SizeMappingBuilder}. * @@ -300,8 +289,8 @@ declare namespace googletag { * Executes the sequence of functions specified in the arguments in order. * * @example - * googletag.cmd.push(function() { - * googletag.defineSlot('/1234567/sports', [160, 600]) + * googletag.cmd.push(() => { + * googletag.defineSlot('/1234567/sports', [160, 600])! * .addService(googletag.pubads()); * }); * @@ -402,6 +391,10 @@ declare namespace googletag { * so future requests will not be influenced by roadblocks or competitive exclusions involving this ad. * * @example + * const slot1 = googletag.defineSlot('/1234567/sports', [728, 90], 'div-1')!; + * googletag.display('div-1'); + * const slot2 = googletag.defineSlot('/1234567/news', [160, 600], 'div-2')!; + * googletag.display('div-2'); * // This call to clear only slot1. * googletag.pubads().clear([slot1]); * // This call to clear both slot1 and slot2. @@ -477,7 +470,7 @@ declare namespace googletag { * will only apply to subsequent `display()` or `refresh()` requests. * * @example - * googletag.pubads().display('/1234567/sports', [728, 90], 'div-1'); + * googletag.pubads().display('/1234567/sports', [728, 90], 'div'); * * @see [Display a test ad](https://developers.google.com/publisher-tag/samples/display-test-ad) * @see [Control ad loading and refresh](https://developers.google.com/publisher-tag/guides/control-ad-loading) @@ -492,14 +485,16 @@ declare namespace googletag { * Enables lazy loading in GPT as defined by the config object. * For more detailed examples, see the [Lazy loading](https://developers.google.com/publisher-tag/samples/lazy-loading) sample. * - * **Note:** - * - Lazy fetching in SRA only works if all slots are outside the fetching margin. + * **Note:** Lazy fetching in SRA only works if all slots are outside the fetching margin. * * @example * googletag.pubads().enableLazyLoad({ - * fetchMarginPercent: 500, // Fetch slots within 5 viewports. - * renderMarginPercent: 200, // Render slots within 2 viewports. - * mobileScaling: 2.0 // Double the above values on mobile. + * // Fetch slots within 5 viewports. + * fetchMarginPercent: 500, + * // Render slots within 2 viewports. + * renderMarginPercent: 200, + * // Double the above values on mobile. + * mobileScaling: 2.0 * }); * * @see [Ads best practices: Prioritize "important" ad slots](https://developers.google.com/publisher-tag/guides/ad-best-practices#prioritize_important_ad_slots) @@ -553,8 +548,8 @@ declare namespace googletag { * * @example * googletag.pubads().set('adsense_background_color', '#FFFFFF'); - * var color = googletag.pubads().get('adsense_background_color'); - * // color == '#FFFFFF'. + * googletag.pubads().get('adsense_background_color'); + * // Returns '#FFFFFF' * * @see [AdSense Attributes](https://developers.google.com/publisher-tag/adsense_attributes) * @param key Name of the attribute to look for. @@ -568,8 +563,8 @@ declare namespace googletag { * @example * googletag.pubads().set('adsense_background_color', '#FFFFFF'); * googletag.pubads().set('adsense_border_color', '#AABBCC'); - * var keys = googletag.pubads().getAttributeKeys(); - * // Keys are ['adsense_background_color', 'adsense_border_color']. + * googletag.pubads().getAttributeKeys(); + * // Returns ['adsense_background_color', 'adsense_border_color'] * * @returns Array of attribute keys set on this service. Ordering is undefined. */ @@ -587,10 +582,10 @@ declare namespace googletag { * * @example * googletag.pubads().setTargeting('interests', 'sports'); - * var param = googletag.pubads().getTargeting('interests'); - * // param is ['sports'] - * var param = googletag.pubads().getTargeting('age'); - * // param is [] (empty array) + * googletag.pubads().getTargeting('interests'); + * // Returns ['sports'] + * googletag.pubads().getTargeting('age'); + * // Returns [] (empty array) * * @param key The targeting key to look for. * @returns The values associated with this key, or an empty array if there is no such key. @@ -603,8 +598,8 @@ declare namespace googletag { * @example * googletag.pubads().setTargeting('interests', 'sports'); * googletag.pubads().setTargeting('colors', 'blue'); - * var keys = googletag.pubads().getTargetingKeys(); - * // keys are ['interests', 'colors']. + * googletag.pubads().getTargetingKeys(); + * // Returns ['interests', 'colors'] * * @returns Array of targeting keys. Ordering is undefined. */ @@ -633,6 +628,10 @@ declare namespace googletag { * so future requests will not be influenced by roadblocks or competitive exclusions involving that ad. * * @example + * const slot1 = googletag.defineSlot('/1234567/sports', [728, 90], 'div-1')!; + * googletag.display('div-1'); + * const slot2 = googletag.defineSlot('/1234567/news', [160, 600], 'div-2')!; + * googletag.display('div-2'); * // This call to refresh fetches a new ad for slot1 only. * googletag.pubads().refresh([slot1]); * // This call to refresh fetches a new ad for both slot1 and slot2. @@ -657,10 +656,10 @@ declare namespace googletag { * Our ad servers maintain this correlator value briefly (currently for 30 seconds, but subject to change), * such that requests with the same correlator received close together will be considered a single page view. By default a new correlator is generated for every refresh. * - * >**Note**: this option has no effect on GPT's [long-lived pageview](https://support.google.com/admanager/answer/183281), + * >**Note:** this option has no effect on GPT's [long-lived pageview](https://support.google.com/admanager/answer/183281), * which automatically reflects the ads currently on the page and has no expiration time. */ - refresh(slots?: Slot[], options?: { changeCorrelator: boolean }): void; + refresh(slots?: Slot[] | null, options?: { changeCorrelator: boolean }): void; /** * Sets values for AdSense attributes that apply to all ad slots under the Publisher Ads service. @@ -718,11 +717,11 @@ declare namespace googletag { * googletag.pubads().setForceSafeFrame(true); * // The following slot will be opted-out of the page-level force * // SafeFrame instruction. - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1')! * .setForceSafeFrame(false) * .addService(googletag.pubads()); * // The following slot will have SafeFrame forced. - * googletag.defineSlot('/1234567/news', [160, 600], 'div-2') + * googletag.defineSlot('/1234567/news', [160, 600], 'div-2')! * .addService(googletag.pubads()); * googletag.display('div-1'); * googletag.display('div-2'); @@ -776,7 +775,7 @@ declare namespace googletag { * Sets the value for the publisher-provided ID. * * @example - * googletag.pubads().setPublisherProvidedId('AB123456789'); + * googletag.pubads().setPublisherProvidedId('12JD92JD8078S8J29SDOAKC0EF230337'); * * @see [About publisher provided identifiers](https://support.google.com/admanager/answer/2880055) * @param ppid An alphanumeric ID provided by the publisher. Must be between 32 and 150 characters. @@ -793,20 +792,20 @@ declare namespace googletag { * * @example * googletag.pubads().setForceSafeFrame(true); - * var pageConfig = { + * const pageConfig = { * allowOverlayExpansion: true, * allowPushExpansion: true, * sandbox: true * }; - * var slotConfig = {allowOverlayExpansion: false}; + * const slotConfig = {allowOverlayExpansion: false}; * googletag.pubads().setSafeFrameConfig(pageConfig); * // The following slot will not allow for expansion by overlay. - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1')! * .setSafeFrameConfig(slotConfig) * .addService(googletag.pubads()); * // The following slot will inherit the page level settings, and hence * // would allow for expansion by overlay. - * googletag.defineSlot('/1234567/news', [160, 600], 'div-2') + * googletag.defineSlot('/1234567/news', [160, 600], 'div-2')! * .addService(googletag.pubads()); * googletag.display('div-1'); * googletag.display('div-2'); @@ -840,11 +839,32 @@ declare namespace googletag { * Video ads will be automatically enabled when this method is called. * For `videoContentId` and `videoCmsId`, use the values that are provided to the Google Ad Manager content ingestion service. * - * @see https://support.google.com/admanager/answer/1068325 VAST ad tag URL parameters} + * @see [VAST ad tag URL parameters](https://support.google.com/admanager/answer/1068325) * @param videoContentId The video content ID. * @param videoCmsId The video CMS ID. */ setVideoContent(videoContentId: string, videoCmsId: string): void; + + /** + * Changes the correlator that is sent with ad requests, effectively starting a new page view. + * The correlator is the same for all the ad requests coming from one page view, and unique across page views. + * Only applies to async mode. + * + * **Note:** this has no effect on GPT's [long-lived pageview](https://support.google.com/admanager/answer/183281), + * which automatically reflects the ads actually on the page and has no expiration time. + * + * @example + * // Assume that the correlator is currently 12345. All ad requests made + * // by this page will currently use that value. + * // Replace the current correlator with a new correlator. + * googletag.pubads().updateCorrelator(); + * // The correlator will now be a new randomly selected value, different + * // from 12345. All subsequent ad requests made by this page will use + * // the new value. + * + * @return The service object on which the function was called. + */ + updateCorrelator(): PubAdsService; } /** @@ -939,7 +959,7 @@ declare namespace googletag { * * @example * // 1. Adding an event listener for the PubAdsService. - * googletag.pubads().addEventListener('slotOnload', function(event) { + * googletag.pubads().addEventListener('slotOnload', (event) => { * console.log('Slot has been loaded:'); * console.log(event); * }); @@ -948,8 +968,8 @@ declare namespace googletag { * // a listener for an event for a specific slot only. You can, however, * // programmatically filter a listener to respond only to a certain ad * // slot, using this pattern: - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); - * googletag.pubads().addEventListener('slotOnload', function(event) { + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * googletag.pubads().addEventListener('slotOnload', (event) => { * if (event.slot === targetSlot) { * // Slot specific logic. * } @@ -985,15 +1005,15 @@ declare namespace googletag { * Removes a previously registered listener. * * @example - * googletag.cmd.push(function() { + * googletag.cmd.push(() => { * // Define a new ad slot. - * googletag.defineSlot('/6355419/Travel', [728, 90], 'div-for-slot') + * googletag.defineSlot('/6355419/Travel', [728, 90], 'div-for-slot')! * .addService(googletag.pubads()); * // Define a new function that removes itself via removeEventListener * // after the impressionViewable event fires. - * var onViewableListener = function(event) { + * const onViewableListener = (event: googletag.events.ImpressionViewableEvent) => { * googletag.pubads().removeEventListener('impressionViewable', onViewableListener); - * setTimeout(function() { + * setTimeout(() => { * googletag.pubads().refresh([event.slot]); * }, 30000); * }; @@ -1029,21 +1049,21 @@ declare namespace googletag { * Adds a mapping from a single-size array (representing the viewport) to a single- or multi-size array representing the slot. * * @example - * var mapping1 = - * googletag.sizeMapping() - * .addSize([1024, 768], [970, 250]) - * .addSize([980, 690], [728, 90]) - * .addSize([640, 480], 'fluid') - * .addSize([0, 0], [88, 31]) // All viewports < 640x480 - * .build(); - * var mapping2 = - * googletag.sizeMapping() - * .addSize([1024, 768], [970, 250]) - * .addSize([980, 690], []) - * .addSize([640, 480], [120, 60]) - * .addSize([0, 0], []) - * .build(); - * // mapping2 will not show any ads for the following viewport sizes: + * // Mapping 1 + * googletag.sizeMapping() + * .addSize([1024, 768], [970, 250]) + * .addSize([980, 690], [728, 90]) + * .addSize([640, 480], 'fluid') + * .addSize([0, 0], [88, 31]) // All viewports < 640x480 + * .build(); + * // Mapping 2 + * googletag.sizeMapping() + * .addSize([1024, 768], [970, 250]) + * .addSize([980, 690], []) + * .addSize([640, 480], [120, 60]) + * .addSize([0, 0], []) + * .build(); + * // Mapping 2 will not show any ads for the following viewport sizes: * // [1024, 768] > size >= [980, 690] and * // [640, 480] > size >= [0, 0] * @@ -1074,7 +1094,7 @@ declare namespace googletag { * Adds a {@link Service} to this slot. * * @example - * googletag.defineSlot('/1234567/sports', [160, 600]) + * googletag.defineSlot('/1234567/sports', [160, 600])! * .addService(googletag.pubads()); * * @see [Get Started with Google Publisher Tags](https://developers.google.com/publisher-tag/guides/get-started) @@ -1089,9 +1109,9 @@ declare namespace googletag { * * @example * // Set category exclusion to exclude ads with 'AirlineAd' labels. - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .setCategoryExclusion('AirlineAd') - * .addService(googletag.pubads()); + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .setCategoryExclusion('AirlineAd') + * .addService(googletag.pubads()); * // Make an ad request. No ad with 'AirlineAd' label will be returned * // for the slot. * // Clear category exclusions so all ads can be returned. @@ -1106,11 +1126,11 @@ declare namespace googletag { * Clears specific or all custom slot-level targeting parameters for this slot. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .setTargeting('allow_expandable', 'true') - * .setTargeting('interests', ['sports', 'music']) - * .setTargeting('color', 'red') - * .addService(googletag.pubads()); + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .setTargeting('allow_expandable', 'true') + * .setTargeting('interests', ['sports', 'music']) + * .setTargeting('color', 'red') + * .addService(googletag.pubads()); * slot.clearTargeting('color'); * // Targeting 'allow_expandable' and 'interests' are still present, * // while 'color' was cleared. @@ -1127,12 +1147,12 @@ declare namespace googletag { * Sets an array of mappings from a minimum viewport size to slot size for this slot. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .addService(googletag.pubads()); - * var mapping = googletag.sizeMapping() - * .addSize([100, 100], [88, 31]) - * .addSize([320, 400], [[320, 50], [300, 50]]) - * .build(); + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .addService(googletag.pubads()); + * const mapping = googletag.sizeMapping() + * .addSize([100, 100], [88, 31]) + * .addSize([320, 400], [[320, 50], [300, 50]]) + * .build(); * slot.defineSizeMapping(mapping); * * @see [Ad sizes: Responsive ads](https://developers.google.com/publisher-tag/guides/ad-sizes#responsive_ads) @@ -1148,11 +1168,11 @@ declare namespace googletag { * To see service-level attributes inherited by this slot, use {@link PubAdsService.get googletag.pubads().get()}. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .set('adsense_background_color', '#FFFFFF') - * .addService(googletag.pubads()); - * var color = slot.get('adsense_background_color'); - * // color == '#FFFFFF'. + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .set('adsense_background_color', '#FFFFFF') + * .addService(googletag.pubads()); + * slot.get('adsense_background_color'); + * // Returns '#FFFFFF' * * @see [AdSense Attributes](https://developers.google.com/publisher-tag/adsense_attributes) * @param key Name of the attribute to look for. @@ -1164,10 +1184,10 @@ declare namespace googletag { * Returns the full path of the ad unit, with the network code and ad unit path. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .addService(googletag.pubads()); - * var path = slot.getAdUnitPath(); - * // path is '/1234567/sports' + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .addService(googletag.pubads()); + * slot.getAdUnitPath(); + * // Returns '/1234567/sports' * * @returns Ad unit path. */ @@ -1178,12 +1198,12 @@ declare namespace googletag { * To see the keys of service-level attributes inherited by this slot, use {@link PubAdsService.getAttributeKeys googletag.pubads().getAttributeKeys()}. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .set('adsense_background_color', '#FFFFFF') - * .set('adsense_border_color', '#AABBCC') - * .addService(googletag.pubads()); - * var keys = slot.getAttributeKeys(); - * // Keys are ['adsense_background_color', 'adsense_border_color']. + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .set('adsense_background_color', '#FFFFFF') + * .set('adsense_border_color', '#AABBCC') + * .addService(googletag.pubads()); + * slot.getAttributeKeys(); + * // Returns ['adsense_background_color', 'adsense_border_color'] * * @returns Array of attribute keys. Ordering is undefined. */ @@ -1193,12 +1213,12 @@ declare namespace googletag { * Returns the ad category exclusion labels for this slot. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .setCategoryExclusion('AirlineAd') - * .setCategoryExclusion('TrainAd') - * .addService(googletag.pubads()); - * var exclusions = slot.getCategoryExclusions(); - * // exclusions are ['AirlineAd', 'TrainAd'] + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .setCategoryExclusion('AirlineAd') + * .setCategoryExclusion('TrainAd') + * .addService(googletag.pubads()); + * slot.getCategoryExclusions(); + * // Returns ['AirlineAd', 'TrainAd'] * * @returns The ad category exclusion labels for this slot, or an empty array if none have been set. */ @@ -1217,10 +1237,13 @@ declare namespace googletag { getOutOfPage(): boolean; /** - * Returns the ad response information. This is based on the last ad response for the slot. If this is called when the slot has no ad, `null` will be returned. + * Returns the ad response information. This is based on the last ad response for the slot. + * If this is called when the slot has no ad, `null` will be returned. + * * @returns The latest ad response information, or `null` if the slot has no ad. */ getResponseInformation(): ResponseInformation | null; + getServices(): Service[]; getSizes(): Array; @@ -1228,27 +1251,29 @@ declare namespace googletag { * Returns the ID of the slot `div` provided when the slot was defined. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .addService(googletag.pubads()); - * var slotElementId = slot.getSlotElementId(); - * // slotElementId is 'div-1' + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .addService(googletag.pubads()); + * slot.getSlotElementId(); + * // Returns 'div' * - * @returns Slot `div` ID. + * @return Slot `div` ID. */ getSlotElementId(): string; + getSlotId(): SlotId; /** - * Returns a specific custom targeting parameter set on this slot. Service-level targeting parameters are not included. + * Returns a specific custom targeting parameter set on this slot. + * Service-level targeting parameters are not included. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .setTargeting('allow_expandable', 'true') - * .addService(googletag.pubads()); - * var param = slot.getTargeting('allow_expandable'); - * // param is ['true'] - * var param = slot.getTargeting('age'); - * // param is [] (empty array) + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .setTargeting('allow_expandable', 'true') + * .addService(googletag.pubads()); + * slot.getTargeting('allow_expandable'); + * // Returns ['true'] + * slot.getTargeting('age'); + * // Returns [] (empty array) * * @param key The targeting key to look for. * @returns The values associated with this key, or an empty array if there is no such key. @@ -1256,15 +1281,16 @@ declare namespace googletag { getTargeting(key: string): string[]; /** - * Returns the list of all custom targeting keys set on this slot. Service-level targeting keys are not included. + * Returns the list of all custom targeting keys set on this slot. + * Service-level targeting keys are not included. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .setTargeting('allow_expandable', 'true') - * .setTargeting('interests', ['sports', 'music']) - * .addService(googletag.pubads()); - * var keys = slot.getTargetingKeys(); - * // keys are ['interests', 'allow_expandable']. + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .setTargeting('allow_expandable', 'true') + * .setTargeting('interests', ['sports', 'music']) + * .addService(googletag.pubads()); + * slot.getTargetingKeys(); + * // Returns ['interests', 'allow_expandable'] * * @returns Array of targeting keys. Ordering is undefined. */ @@ -1281,7 +1307,7 @@ declare namespace googletag { * * @example * // Setting an attribute on a single ad slot. - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div')! * .set('adsense_background_color', '#FFFFFF') * .addService(googletag.pubads()); * @@ -1297,7 +1323,7 @@ declare namespace googletag { * * @example * // Label = AirlineAd - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div')! * .setCategoryExclusion('AirlineAd') * .addService(googletag.pubads()); * @@ -1314,7 +1340,7 @@ declare namespace googletag { * Subsequent calls overwrite the value. This works only for non-SRA requests. * * @example - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div')! * .setClickUrl('http://www.example.com?original_click_url=') * .addService(googletag.pubads()); * @@ -1327,12 +1353,12 @@ declare namespace googletag { * Sets whether the slot `div` should be hidden when there is no ad in the slot. This overrides the service-level settings. * * @example - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div')! * .setCollapseEmptyDiv(true, true) * .addService(googletag.pubads()); * // The above will cause the div for this slot to be collapsed * // when the page is loaded, before ads are requested. - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-2') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div-2')! * .setCollapseEmptyDiv(true) * .addService(googletag.pubads()); * // The above will cause the div for this slot to be collapsed @@ -1363,7 +1389,7 @@ declare namespace googletag { * - This API should be used with caution as it could impact the behaviour of creatives that attempt to break out of their iFrames or rely on them being rendered directly in a publishers page. * * @example - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div')! * .setForceSafeFrame(true) * .addService(googletag.pubads()); * @@ -1385,11 +1411,11 @@ declare namespace googletag { * googletag.pubads().setForceSafeFrame(true); * // The following slot will have a sandboxed safeframe that only * // disallows top-level navigation. - * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') + * googletag.defineSlot('/1234567/sports', [160, 600], 'div-1')! * .setSafeFrameConfig({sandbox: true}) * .addService(googletag.pubads()); * // The following slot will inherit page-level settings. - * googletag.defineSlot('/1234567/news', [160, 600], 'div-2') + * googletag.defineSlot('/1234567/news', [160, 600], 'div-2')! * .addService(googletag.pubads()); * googletag.display('div-1'); * googletag.display('div-2'); @@ -1407,8 +1433,8 @@ declare namespace googletag { * These keys are defined in your Google Ad Manager account. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div-1') - * .addService(googletag.pubads()); + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')! + * .addService(googletag.pubads()); * // Example with a single value for a key. * slot.setTargeting('allow_expandable', 'true'); * // Example with multiple values for a key inside in an array. @@ -1432,8 +1458,7 @@ declare namespace googletag { * - Values set here will overwrite targeting parameters set at the service-level. * * @example - * var slot = googletag.defineSlot('/1234567/sports', [160, 600], - * 'div-1'); + * const slot = googletag.defineSlot('/1234567/sports', [160, 600], 'div')!; * slot.updateTargetingFromMap({ * 'color': 'red', * 'interests': ['sports','music','movies'] @@ -1491,15 +1516,23 @@ declare namespace googletag { } /** - * Main configuration interface for slot-level settings. + * Main configuration interface for page-level settings. */ namespace config { + /** + * Supported interstitial ad triggers. + */ + type InterstitialTrigger = "unhideWindow"; + + /** + * Supported publisher privacy treatments. + */ + type PrivacyTreatment = "disablePersonalization"; + /** * An object representing a single component auction in a on-device ad auction. * - * **Experimental**: This feature may be changed or removed in a future release. - * - * @see [FLEDGE: Sellers Run On-Device Auctions](https://github.com/WICG/turtledove/blob/main/FLEDGE.md#2-sellers-run-on-device-auctions) + * @see [Protected Audience API Seller guide: run ad auctions](https://developer.chrome.com/docs/privacy-sandbox/fledge-api/ad-auction/) */ interface ComponentAuctionConfig { /** @@ -1508,49 +1541,49 @@ declare namespace googletag { * If this value is set to `null`, any existing configuration for the specified `configKey` will be deleted. * * @example - * var componentAuctionConfig = { - * seller: 'https://testSeller.com', // should be https and the same as - * // decisionLogicUrl's origin - * decisionLogicUrl: 'https://testSeller.com/ssp/decision-logic.js', - * interestGroupBuyers: [ - * 'https://example-buyer.com', - * ], - * auctionSignals: {auction_signals: 'auction_signals'}, - * sellerSignals: {seller_signals: 'seller_signals'}, - * perBuyerSignals: { - * // listed on interestGroupBuyers - * 'https://example-buyer.com': { - * per_buyer_signals: 'per_buyer_signals', - * }, + * const componentAuctionConfig = { + * // Seller URL should be https and the same as decisionLogicUrl's origin + * seller: 'https://testSeller.com', + * decisionLogicUrl: 'https://testSeller.com/ssp/decision-logic.js', + * interestGroupBuyers: [ + * 'https://example-buyer.com', + * ], + * auctionSignals: {auction_signals: 'auction_signals'}, + * sellerSignals: {seller_signals: 'seller_signals'}, + * perBuyerSignals: { + * // listed on interestGroupBuyers + * 'https://example-buyer.com': { + * per_buyer_signals: 'per_buyer_signals', * }, - * }; - * var auctionSlot = googletag.defineSlot('/1234567/example', [160, 600]); - * // To add configKey to the component auction: - * auctionSlot.setConfig({ - * componentAuction: [{ - * configKey: 'https://testSeller.com', - * auctionConfig: componentAuctionConfig - * }] - * }); - * // To remove configKey from the component auction: - * auctionSlot.setConfig({ - * componentAuction: [{ - * configKey: 'https://testSeller.com', - * auctionConfig: null - * }] - * }); + * }, + * }; + * const auctionSlot = googletag.defineSlot('/1234567/example', [160, 600])!; + * // To add configKey to the component auction: + * auctionSlot.setConfig({ + * componentAuction: [{ + * configKey: 'https://testSeller.com', + * auctionConfig: componentAuctionConfig + * }] + * }); + * // To remove configKey from the component auction: + * auctionSlot.setConfig({ + * componentAuction: [{ + * configKey: 'https://testSeller.com', + * auctionConfig: null + * }] + * }); * - * @see [FLEDGE: Initiating an On-Device Auction](https://github.com/WICG/turtledove/blob/main/FLEDGE.md#21-initiating-an-on-device-auction) + * @see [Protected Audience API: Initiating an On-Device Auction](https://github.com/WICG/turtledove/blob/main/FLEDGE.md#21-initiating-an-on-device-auction) */ auctionConfig: { auctionSignals?: unknown; - decisionLogicUrl?: string; + decisionLogicUrl: string; interestGroupBuyers?: string[]; perBuyerExperimentGroupIds?: { [buyer: string]: number }; perBuyerGroupLimits?: { [buyer: string]: number }; perBuyerSignals?: { [buyer: string]: unknown }; perBuyerTimeouts?: { [buyer: string]: number }; - seller?: string; + seller: string; sellerExperimentGroupId?: number; sellerSignals?: unknown; sellerTimeout?: number; @@ -1565,41 +1598,114 @@ declare namespace googletag { */ configKey: string; } + + /** + * An object which defines the behavior of a single interstitial ad slot. + */ + interface InterstitialConfig { + /** + * The interstitial trigger configuration for this interstitial ad. + * + * Setting the value of an interstitial trigger to `true` will enable it and + * `false` will disable it. This will override the default values [configured + * in Google Ad Manager](https://support.google.com/admanager/answer/9840201). + * + * @example + * // Define a GPT managed web interstitial ad slot. + * const interstitialSlot = googletag.defineOutOfPageSlot("/1234567/sports", + * googletag.enums.OutOfPageFormat.INTERSTITIAL)!; + * // Enable optional interstitial triggers. + * // Change this value to false to disable. + * const enableTriggers = true; + * interstitialSlot.setConfig({ + * interstitial: { + * triggers: { + * unhideWindow: enableTriggers + * } + * } + * }); + * + * @see [Display a web interstitial ad](https://developers.google.com/publisher-tag/samples/display-web-interstitial-ad) + */ + triggers?: Partial>; + } + + /** + * Main configuration interface for page-level settings. + * + * Allows setting multiple features with a single API call. + * + * All properties listed below are examples and do not reflect actual features that utilize setConfig. + * For the set of features, see fields within the {@link PageSettingsConfig} type below. + * + * Only features specified in the {@link googletag.setConfig()} call are modified. + */ + interface PageSettingsConfig { + /** + * Settings to control publisher privacy treatments. + */ + privacyTreatments?: PrivacyTreatmentsConfig | null; + } + + /** + * Settings to control publisher privacy treatments. + */ + interface PrivacyTreatmentsConfig { + /** + * An array of publisher privacy treatments to enable. + * + * @example + * // Disable personalization across the entire page. + * googletag.setConfig({ + * privacyTreatments: {treatments: ['disablePersonalization']} + * }); + */ + treatments: PrivacyTreatment[]; + } + interface SlotSettingsConfig { /** * An array of component auctions to be included in an on-device ad auction. - * - * **Experimental**: This feature may be changed or removed in a future release. */ componentAuction?: ComponentAuctionConfig[]; + + /** + * Settings that control interstitial ad slot behavior. + */ + interstitial?: InterstitialConfig; } } /** - * This is the namespace that GPT uses for `enums`. + * This is the namespace that GPT uses for enum types. */ namespace enums { /** * Out-of-page formats supported by GPT. * - * @see {@link googletag.defineOutOfPageSlot} + * @see {@link defineOutOfPageSlot} */ enum OutOfPageFormat { /** * Anchor format where slot sticks to the bottom of the viewport. */ BOTTOM_ANCHOR, - /** * Web interstitial creative format. */ INTERSTITIAL, - + /** + * Left side rail format. + */ + LEFT_SIDE_RAIL, /** * Rewarded format. */ REWARDED, - + /** + * Right side rail format. + */ + RIGHT_SIDE_RAIL, /** * Anchor format where slot sticks to the top of the viewport. */ @@ -1652,47 +1758,47 @@ declare namespace googletag { */ interface EventTypeMap { /** - * Alias for {@link googletag.events.ImpressionViewableEvent} + * Alias for {@link events.ImpressionViewableEvent}. */ impressionViewable: ImpressionViewableEvent; /** - * Alias for {@link googletag.events.RewardedSlotClosedEvent} + * Alias for {@link events.RewardedSlotClosedEvent}. */ rewardedSlotClosed: RewardedSlotClosedEvent; /** - * Alias for {@link googletag.events.RewardedSlotGrantedEvent} + * Alias for {@link events.RewardedSlotGrantedEvent}. */ rewardedSlotGranted: RewardedSlotGrantedEvent; /** - * Alias for {@link googletag.events.RewardedSlotReadyEvent} + * Alias for {@link events.RewardedSlotReadyEvent}. */ rewardedSlotReady: RewardedSlotReadyEvent; /** - * Alias for {@link googletag.events.SlotOnloadEvent} + * Alias for {@link events.SlotOnloadEvent}. */ slotOnload: SlotOnloadEvent; /** - * Alias for {@link googletag.events.SlotRenderEndedEvent} + * Alias for {@link events.SlotRenderEndedEvent}. */ slotRenderEnded: SlotRenderEndedEvent; /** - * Alias for {@link googletag.events.SlotRequestedEvent} + * Alias for {@link events.SlotRequestedEvent}. */ slotRequested: SlotRequestedEvent; /** - * Alias for {@link googletag.events.SlotResponseReceived} + * Alias for {@link events.SlotResponseReceived}. */ slotResponseReceived: SlotResponseReceived; /** - * Alias for {@link googletag.events.SlotVisibilityChangedEvent} + * Alias for {@link events.SlotVisibilityChangedEvent}. */ slotVisibilityChanged: SlotVisibilityChangedEvent; } @@ -1702,10 +1808,10 @@ declare namespace googletag { * * @example * // This listener is called when an impression becomes viewable. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); * googletag.pubads().addEventListener('impressionViewable', - * function(event) { - * var slot = event.slot; + * (event) => { + * const slot = event.slot; * console.log('Impression for slot', slot.getSlotElementId(), * 'became viewable.'); * if (slot === targetSlot) { @@ -1722,14 +1828,14 @@ declare namespace googletag { /** * This event is fired when a rewarded ad slot is closed by the user. * It may fire either before or after a reward has been granted. - * To determine whether a reward has been granted, use {@link RewardedSlotGrantedEvent} instead. + * To determine whether a reward has been granted, use {@link events.RewardedSlotGrantedEvent} instead. * * @example * // This listener is called when the user closes a rewarded ad slot. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); * googletag.pubads().addEventListener('rewardedSlotClosed', - * function(event) { - * var slot = event.slot; + * (event) => { + * const slot = event.slot; * console.log('Rewarded ad slot', slot.getSlotElementId(), * 'has been closed.'); * if (slot === targetSlot) { @@ -1750,15 +1856,15 @@ declare namespace googletag { * * @example * // This listener is called whenever a reward is granted for a rewarded ad. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); * googletag.pubads().addEventListener('rewardedSlotGranted', - * function(event) { - * var slot = event.slot; + * (event) => { + * const slot = event.slot; * console.group( * 'Reward granted for slot', slot.getSlotElementId(), '.'); * // Log details of the reward. - * console.log('Reward type:', event.payload.type); - * console.log('Reward amount:', event.payload.amount); + * console.log('Reward type:', event.payload?.type); + * console.log('Reward amount:', event.payload?.amount); * console.groupEnd(); * if (slot === targetSlot) { * // Slot specific logic. @@ -1781,16 +1887,16 @@ declare namespace googletag { * The publisher is responsible for presenting the user an option to view the ad before displaying it. * * @example - * // This listener is called when a rewarded ad slot becomes ready to be - * // displayed. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * // This listener is called when a rewarded ad slot becomes ready to be displayed. + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); * googletag.pubads().addEventListener('rewardedSlotReady', - * function(event) { - * var slot = event.slot; + * (event) => { + * const slot = event.slot; * console.log('Rewarded ad slot', slot.getSlotElementId(), * 'is ready to be displayed.'); - * if('User consents to viewing the ad.') { - * // Display the ad. + * // Replace with custom logic. + * const userHasConsented = true; + * if(userHasConsented) { * event.makeRewardedVisible(); * } * if (slot === targetSlot) { @@ -1814,9 +1920,9 @@ declare namespace googletag { * * @example * // This listener is called when a creative iframe load event fires. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); - * googletag.pubads().addEventListener('slotOnload', function(event) { - * var slot = event.slot; + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * googletag.pubads().addEventListener('slotOnload', (event) => { + * const slot = event.slot; * console.log('Creative iframe for slot', slot.getSlotElementId(), * 'has loaded.'); * if (slot === targetSlot) { @@ -1832,14 +1938,14 @@ declare namespace googletag { /** * This event is fired when the creative code is injected into a slot. * This event will occur before the creative's resources are fetched, so the creative may not be visible yet. - * If you need to know when all creative resources for a slot have finished loading, consider the {@link SlotOnloadEvent} instead. + * If you need to know when all creative resources for a slot have finished loading, consider the {@link events.SlotOnloadEvent} instead. * * @example * // This listener is called when a slot has finished rendering. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); * googletag.pubads().addEventListener('slotRenderEnded', - * function(event) { - * var slot = event.slot; + * (event) => { + * const slot = event.slot; * console.group( * 'Slot', slot.getSlotElementId(), 'finished rendering.'); * // Log details of the rendered ad. @@ -1853,7 +1959,7 @@ declare namespace googletag { * console.log('Label IDs:', event.labelIds); * console.log('Line Item ID:', event.lineItemId); * console.log('Size:', event.size); - * console.log('Slot content changed?:', event.slotContentChanged); + * console.log('Slot content changed?', event.slotContentChanged); * console.log('Source Agnostic Creative ID:', * event.sourceAgnosticCreativeId); * console.log('Source Agnostic Line Item ID:', @@ -1881,6 +1987,7 @@ declare namespace googletag { /** * IDs of the companies that bid on the rendered backfill ad. + * Value is `null` for empty slots, reservation ads, and creatives rendered by services other than {@link PubAdsService}. */ companyIds: number[] | null; @@ -1937,7 +2044,8 @@ declare namespace googletag { sourceAgnosticLineItemId: number | null; /** - * IDs of the yield groups for the rendered backfill ad. Value is `null` for empty slots, reservation ads, and creatives rendered by services other than {@link PubAdsService}. + * IDs of the yield groups for the rendered backfill ad. + * Value is `null` for empty slots, reservation ads, and creatives rendered by services other than {@link PubAdsService}. */ yieldGroupIds: number[] | null; } @@ -1946,13 +2054,12 @@ declare namespace googletag { * This event is fired when an ad has been requested for a particular slot. * * @example - * // This listener is called when the specified service issues an ad - * // request for a slot. Each slot will fire this event, even though they - * // may be batched together in a single request if single request - * // architecture (SRA) is enabled. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); - * googletag.pubads().addEventListener('slotRequested', function(event) { - * var slot = event.slot; + * // This listener is called when the specified service issues an ad request for a slot. + * // Each slot will fire this event, even though they may be batched together in a single request + * // if single request architecture (SRA) is enabled. + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * googletag.pubads().addEventListener('slotRequested', (event) => { + * const slot = event.slot; * console.log('Slot', slot.getSlotElementId(), 'has been requested.'); * if (slot === targetSlot) { * // Slot specific logic. @@ -1968,12 +2075,11 @@ declare namespace googletag { * This event is fired when an ad response has been received for a particular slot. * * @example - * // This listener is called when an ad response has been received - * // for a slot. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * // This listener is called when an ad response has been received for a slot. + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); * googletag.pubads().addEventListener('slotResponseReceived', - * function(event) { - * var slot = event.slot; + * (event) => { + * const slot = event.slot; * console.log('Ad response for slot', slot.getSlotElementId(), * 'received.'); * if (slot === targetSlot) { @@ -1993,14 +2099,14 @@ declare namespace googletag { * @example * // This listener is called whenever the on-screen percentage of an * // ad slot's area changes. - * var targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); + * const targetSlot = googletag.defineSlot('/1234567/example', [160, 600]); * googletag.pubads().addEventListener('slotVisibilityChanged', - * function(event) { - * var slot = event.slot; + * (event) => { + * const slot = event.slot; * console.group( * 'Visibility of slot', slot.getSlotElementId(), 'changed.'); * // Log details of the event. - * console.log('Visible area:', event.inViewPercentage + '%'); + * console.log('Visible area:', `${event.inViewPercentage}%`); * console.groupEnd(); * if (slot === targetSlot) { * // Slot specific logic. @@ -2019,14 +2125,14 @@ declare namespace googletag { } /** - * This is the namespace that GPT uses for `secureSignals`. + * This is the namespace that GPT uses for managing secure signals. */ namespace secureSignals { /** * Interface for returning a secure signal for a specific bidder or provider. * One of `id` or `networkCode` must be provided, but not both. */ - type SecureSignalProvider = (BidderSignalProvider & { networkCode?: never }) | PublisherSignalProvider; + type SecureSignalProvider = BidderSignalProvider | PublisherSignalProvider; /** * Returns a secure signal for a specific bidder. @@ -2108,8 +2214,8 @@ declare namespace googletag { clearAllCache(): void; /** - * Adds a new {@link SecureSignalProvider} to the signal provider array and begins the signal generation process. - * @param provider The {@link SecureSignalProvider} object to be added to the array. + * Adds a new {@link secureSignals.SecureSignalProvider} to the signal provider array and begins the signal generation process. + * @param provider The {@link secureSignals.SecureSignalProvider} object to be added to the array. */ push(provider: SecureSignalProvider): void; } diff --git a/types/googletag/package.json b/types/googletag/package.json index 31cda850c82532..ce20d0e3c2b7a0 100644 --- a/types/googletag/package.json +++ b/types/googletag/package.json @@ -1,9 +1,9 @@ { "private": true, "name": "@types/googletag", - "version": "3.0.9999", + "version": "3.1.9999", "nonNpm": true, - "nonNpmDescription": "Google Publisher Tag (DoubleClick GPT 2023-02-08)", + "nonNpmDescription": "Google Publisher Tag (DoubleClick GPT 2023-12-11)", "projects": [ "https://developers.google.com/publisher-tag/reference" ], diff --git a/types/googletag/tslint.json b/types/googletag/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/googletag/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gopd/tslint.json b/types/gopd/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gopd/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gorilla-engine/.eslintrc.json b/types/gorilla-engine/.eslintrc.json index 0f7b7412939420..efd71c1a6c0e5f 100644 --- a/types/gorilla-engine/.eslintrc.json +++ b/types/gorilla-engine/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/gorilla-engine/gorilla-engine-tests.ts b/types/gorilla-engine/gorilla-engine-tests.ts index 746b479ddd73ca..bbb718e8d38983 100644 --- a/types/gorilla-engine/gorilla-engine-tests.ts +++ b/types/gorilla-engine/gorilla-engine-tests.ts @@ -9,3 +9,5 @@ const pad = new GorillaEngine.UI.XYPad({ id: "myXYPad" }); const scrollView = new GorillaEngine.UI.ScrollView({ id: "myScrollView" }); const knob = new GorillaEngine.UI.Knob({ id: "myknob" }); + +const label = new GorillaEngine.UI.Label({ margin: 5 }); diff --git a/types/gorilla-engine/index.d.ts b/types/gorilla-engine/index.d.ts index 65dc418278e1cf..a4e0f4d816b9cf 100755 --- a/types/gorilla-engine/index.d.ts +++ b/types/gorilla-engine/index.d.ts @@ -379,11 +379,13 @@ declare namespace GorillaEngine { * @returns The name of the host */ function getHostDescription(): string; - function showNativeMessageBox(options: { + interface MessageBoxOptions { title: string; message: string; - iconType: "info" | "question" | "warning"; - }): Promise; + iconType: "info" | "question" | "warning" | "error"; + } + function showNativeMessageBoxSync(options: MessageBoxOptions): void; + function showNativeMessageBox(options: MessageBoxOptions): Promise; function calculateTextWidth(text: string, font: string, fontSize: number, fontKerning: number): Promise; function checkLicense(): boolean; function checkBeatportRTO(): string; diff --git a/types/gorilla-engine/interfaces/Margin.d.ts b/types/gorilla-engine/interfaces/Margin.d.ts index e73244d31e046c..8be8399ca879ad 100644 --- a/types/gorilla-engine/interfaces/Margin.d.ts +++ b/types/gorilla-engine/interfaces/Margin.d.ts @@ -1,6 +1,6 @@ declare namespace GorillaEngine.UI { interface Margin { - margin: { + margin: number | { other: number; left: number; top: number; diff --git a/types/gorilla-engine/tslint.json b/types/gorilla-engine/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/gorilla-engine/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/got-resume/tslint.json b/types/got-resume/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/got-resume/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graceful-fs/tslint.json b/types/graceful-fs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graceful-fs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gradient-parser/tslint.json b/types/gradient-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gradient-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gradient-string/tslint.json b/types/gradient-string/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gradient-string/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/graham_scan/tslint.json b/types/graham_scan/tslint.json deleted file mode 100644 index 6000ad5ea2a112..00000000000000 --- a/types/graham_scan/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/gramps__rest-helpers/tslint.json b/types/gramps__rest-helpers/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gramps__rest-helpers/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/granim/tslint.json b/types/granim/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/granim/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphite-udp/tslint.json b/types/graphite-udp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphite-udp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphite/tslint.json b/types/graphite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphlib-dot/tslint.json b/types/graphlib-dot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphlib-dot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphlib/tslint.json b/types/graphlib/tslint.json deleted file mode 100644 index 941926d7419e7e..00000000000000 --- a/types/graphlib/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/graphql-api-koa/tslint.json b/types/graphql-api-koa/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-api-koa/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-bigint/tslint.json b/types/graphql-bigint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-bigint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-date/tslint.json b/types/graphql-date/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-date/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-deduplicator/tslint.json b/types/graphql-deduplicator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-deduplicator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-depth-limit/tslint.json b/types/graphql-depth-limit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-depth-limit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-errors/tslint.json b/types/graphql-errors/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-errors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-fields/tslint.json b/types/graphql-fields/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-fields/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-iso-date/tslint.json b/types/graphql-iso-date/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-iso-date/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-list-fields/tslint.json b/types/graphql-list-fields/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-list-fields/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-react/tslint.json b/types/graphql-react/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-react/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-resolve-batch/.eslintrc.json b/types/graphql-resolve-batch/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/graphql-resolve-batch/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/graphql-resolve-batch/tslint.json b/types/graphql-resolve-batch/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/graphql-resolve-batch/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/graphql-type-json/tslint.json b/types/graphql-type-json/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-type-json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-type-uuid/tslint.json b/types/graphql-type-uuid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-type-uuid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-upload/GraphQLUpload.d.mts b/types/graphql-upload/GraphQLUpload.d.mts index 8c203d984ddffe..2a8056c5e4a017 100644 --- a/types/graphql-upload/GraphQLUpload.d.mts +++ b/types/graphql-upload/GraphQLUpload.d.mts @@ -1,4 +1,8 @@ import { GraphQLScalarType } from "graphql"; +import { FileUpload } from "./processRequest.mjs"; + +export { FileUpload } from "./processRequest.mjs"; + +declare const GraphQLUpload: GraphQLScalarType, never>; -declare const GraphQLUpload: GraphQLScalarType; export default GraphQLUpload; diff --git a/types/graphql-upload/Upload.d.mts b/types/graphql-upload/Upload.d.mts index 29593838e17a41..006526287759a2 100644 --- a/types/graphql-upload/Upload.d.mts +++ b/types/graphql-upload/Upload.d.mts @@ -1,13 +1,16 @@ -import { ReadStream } from "fs-capacitor"; +import { GraphQLScalarType } from "graphql"; +import processRequest, { FileUpload } from "./processRequest.mjs"; -export interface FileUpload { - filename: string; - mimetype: string; - encoding: string; - createReadStream(): ReadStream; -} +// We are keeping this export just to avoid breaking changes, but it should be removed on the next major release. +export { FileUpload } from "./processRequest.mjs"; export default class Upload { promise: Promise; - file?: FileUpload; + resolve: (file: FileUpload) => void; + file: FileUpload | undefined; + reject: (reason?: any) => void; } + +export type GraphQLUpload = GraphQLScalarType; + +export type processRequest = typeof processRequest; diff --git a/types/graphql-upload/graphql-upload-tests.ts b/types/graphql-upload/graphql-upload-tests.ts index 69088ecb4e4efb..580f50f21ba5db 100644 --- a/types/graphql-upload/graphql-upload-tests.ts +++ b/types/graphql-upload/graphql-upload-tests.ts @@ -1,8 +1,12 @@ import express from "express"; +import { WriteStream } from "fs-capacitor"; import graphqlUploadExpress from "graphql-upload/graphqlUploadExpress.mjs"; import graphqlUploadKoa from "graphql-upload/graphqlUploadKoa.mjs"; +import { FileUpload } from "graphql-upload/processRequest.mjs"; import Upload from "graphql-upload/Upload.mjs"; import Koa from "koa"; +import { createWriteStream, unlink } from "node:fs"; +import Stream from "node:stream"; express() .use(graphqlUploadExpress({ maxFileSize: 10000000, maxFiles: 10 })) @@ -10,9 +14,42 @@ express() new Koa().use(graphqlUploadKoa({ maxFileSize: 10000000, maxFiles: 10 })).listen(3000); -const manuallyHandleUpload = async (upload: Upload) => { +export const manuallyHandleUpload = async (upload: Upload) => { if (upload instanceof Upload) { return upload.promise; } throw new Error("Upload is not an instance of Upload"); }; + +export const storeUpload = async (fileUpload: Promise) => { + const { createReadStream, filename } = await fileUpload; + const stream = createReadStream(); + + await new Promise((resolve, reject) => { + const writeStream = createWriteStream(filename); + writeStream.on("finish", resolve); + writeStream.on("error", (error) => { + unlink(filename, () => { + reject(error); + }); + }); + stream.on("error", (error) => writeStream.destroy(error)); + stream.pipe(writeStream); + }); + + return filename; +}; + +export const fileUploadMock: FileUpload = { + filename: "Test file.pdf", + encoding: "utf8", + // No need to define the capacitor property. + mimetype: "application/pdf", + createReadStream: () => { + const readableStream = new Stream.Readable(); + readableStream.push(null); + const writeStream = new WriteStream(); + readableStream.pipe(writeStream); + return writeStream.createReadStream(); + }, +}; diff --git a/types/graphql-upload/graphqlUploadExpress.d.mts b/types/graphql-upload/graphqlUploadExpress.d.mts index 20b76cfd0ffad5..e7a2648d50d670 100644 --- a/types/graphql-upload/graphqlUploadExpress.d.mts +++ b/types/graphql-upload/graphqlUploadExpress.d.mts @@ -1,9 +1,15 @@ -import { RequestHandler } from "express"; +import { NextFunction, Request, Response } from "express"; +import { ProcessRequestFunction, ProcessRequestOptions } from "./processRequest.mjs"; -export interface UploadOptions { - maxFieldSize?: number | undefined; - maxFileSize?: number | undefined; - maxFiles?: number | undefined; -} +// We are keeping this type just to avoid breaking changes, but it should be removed on the next major release. +export type UploadOptions = ProcessRequestOptions; -export default function graphqlUploadExpress(uploadOptions?: UploadOptions): RequestHandler; +export default function graphqlUploadExpress( + { processRequest, ...processRequestOptions }?: ProcessRequestOptions & { + processRequest?: ProcessRequestFunction; + }, +): ( + request: Request, + response: Response, + next: NextFunction, +) => void; diff --git a/types/graphql-upload/graphqlUploadKoa.d.mts b/types/graphql-upload/graphqlUploadKoa.d.mts index 9b165401fdd58e..c338320c64f601 100644 --- a/types/graphql-upload/graphqlUploadKoa.d.mts +++ b/types/graphql-upload/graphqlUploadKoa.d.mts @@ -1,11 +1,11 @@ -import { DefaultContext, DefaultState, Middleware } from "koa"; +import { ParameterizedContext } from "koa"; +import { ProcessRequestFunction, ProcessRequestOptions } from "./processRequest.mjs"; -export interface UploadOptions { - maxFieldSize?: number | undefined; - maxFileSize?: number | undefined; - maxFiles?: number | undefined; -} +// We are keeping this type just to avoid breaking changes, but it should be removed on the next major release. +export type UploadOptions = ProcessRequestOptions; -export default function graphqlUploadKoa( - uploadOptions?: UploadOptions, -): Middleware; // eslint-disable-line @definitelytyped/no-unnecessary-generics +export default function graphqlUploadKoa( + { processRequest, ...processRequestOptions }?: ProcessRequestOptions & { + processRequest?: ProcessRequestFunction; + }, +): (ctx: ParameterizedContext, next: () => Promise) => Promise; diff --git a/types/graphql-upload/index.d.ts b/types/graphql-upload/index.d.ts index 4d17daed563cbc..74a0043c64b73f 100644 --- a/types/graphql-upload/index.d.ts +++ b/types/graphql-upload/index.d.ts @@ -1,4 +1,4 @@ -// Linter does not accept files without definitions. Disabling the rule at -// the top of the file doesn't work either: It breaks the meta data parser. - +// Despite not having any definitions, this file must exist on DefinitelyTyped. +// Currently, the tooling assumes that this file exists and performs extra lints, +// as well as using it to figure out where things are. export {}; diff --git a/types/graphql-upload/package.json b/types/graphql-upload/package.json index 7b2c39f72ac385..4b8dc1e1cad522 100644 --- a/types/graphql-upload/package.json +++ b/types/graphql-upload/package.json @@ -29,7 +29,7 @@ "@types/koa": "*", "@types/node": "*", "fs-capacitor": "^8.0.0", - "graphql": "0.13.1 - 16" + "graphql": "^16.3.0" }, "devDependencies": { "@types/graphql-upload": "workspace:." diff --git a/types/graphql-upload/processRequest.d.mts b/types/graphql-upload/processRequest.d.mts index 86d9318ae8915f..d2e03ba0c24164 100644 --- a/types/graphql-upload/processRequest.d.mts +++ b/types/graphql-upload/processRequest.d.mts @@ -1,11 +1,18 @@ -import { IncomingMessage, ServerResponse } from "http"; +import { ReadStreamOptions } from "fs-capacitor"; +import { GraphQLScalarType } from "graphql"; +import { IncomingMessage, ServerResponse } from "node:http"; +import { Readable } from "node:stream"; -export interface UploadOptions { +export interface ProcessRequestOptions { maxFieldSize?: number | undefined; maxFileSize?: number | undefined; maxFiles?: number | undefined; } +// We are keeping this type just to avoid breaking changes, but it should be removed on the next major release. +export type UploadOptions = ProcessRequestOptions; + +// We are keeping this interface just to avoid breaking changes, but it should be removed on the next major release. export interface GraphQLOperation { query: string; operationName?: null | string | undefined; @@ -15,5 +22,44 @@ export interface GraphQLOperation { export default function processRequest( request: IncomingMessage, response: ServerResponse, - uploadOptions?: UploadOptions, -): Promise; + options?: ProcessRequestOptions, +): Promise< + | { + [key: string]: unknown; + } + | Array<{ + [key: string]: unknown; + }> +>; + +export type GraphQLUpload = GraphQLScalarType; + +export interface FileUpload { + filename: string; + mimetype: string; + encoding: string; + // We omit the capacitor property because it's a private implementation detail that shouldn't be used outside. + createReadStream: FileUploadCreateReadStream; +} + +export type FileUploadCreateReadStream = ( + options?: FileUploadCreateReadStreamOptions | undefined, +) => Readable; + +export interface FileUploadCreateReadStreamOptions { + encoding?: ReadStreamOptions["encoding"]; + highWaterMark?: ReadStreamOptions["highWaterMark"]; +} + +export type ProcessRequestFunction = ( + request: IncomingMessage, + response: ServerResponse, + options?: ProcessRequestOptions | undefined, +) => Promise< + | { + [key: string]: unknown; + } + | Array<{ + [key: string]: unknown; + }> +>; diff --git a/types/graphql-upload/tsconfig.json b/types/graphql-upload/tsconfig.json index 07ab1219a67150..95d804e5ec55c8 100644 --- a/types/graphql-upload/tsconfig.json +++ b/types/graphql-upload/tsconfig.json @@ -15,6 +15,11 @@ }, "files": [ "index.d.ts", - "graphql-upload-tests.ts" + "graphql-upload-tests.ts", + "GraphQLUpload.d.mts", + "graphqlUploadExpress.d.mts", + "graphqlUploadKoa.d.mts", + "processRequest.d.mts", + "Upload.d.mts" ] } diff --git a/types/graphql-upload/tslint.json b/types/graphql-upload/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-upload/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphql-validation-complexity/tslint.json b/types/graphql-validation-complexity/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphql-validation-complexity/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphqurl/tslint.json b/types/graphqurl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphqurl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graphviz/tslint.json b/types/graphviz/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graphviz/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/grasp/tslint.json b/types/grasp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/grasp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gravatar-favicons/tslint.json b/types/gravatar-favicons/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gravatar-favicons/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gravatar/tslint.json b/types/gravatar/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gravatar/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gray-percentage/tslint.json b/types/gray-percentage/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gray-percentage/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graygelf/tslint.json b/types/graygelf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graygelf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/graylog2/tslint.json b/types/graylog2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/graylog2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/greasemonkey/.eslintrc.json b/types/greasemonkey/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/greasemonkey/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/greasemonkey/tslint.json b/types/greasemonkey/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/greasemonkey/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/greasemonkey/v3/tslint.json b/types/greasemonkey/v3/tslint.json deleted file mode 100644 index 9dbebc888fc87c..00000000000000 --- a/types/greasemonkey/v3/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/grecaptcha/.eslintrc.json b/types/grecaptcha/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/grecaptcha/.eslintrc.json +++ b/types/grecaptcha/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/grecaptcha/tslint.json b/types/grecaptcha/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/grecaptcha/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/grecaptcha/v0/tslint.json b/types/grecaptcha/v0/tslint.json deleted file mode 100644 index 9410dfe63e9429..00000000000000 --- a/types/grecaptcha/v0/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-unnecessary-class": false, - "no-var-keyword": false - } -} diff --git a/types/greek-utils/tslint.json b/types/greek-utils/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/greek-utils/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/greenlock-express/tslint.json b/types/greenlock-express/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/greenlock-express/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gregorian-calendar/tslint.json b/types/gregorian-calendar/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/gregorian-calendar/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/gremlin/tslint.json b/types/gremlin/tslint.json deleted file mode 100644 index fce5eccdb06ede..00000000000000 --- a/types/gremlin/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-class": false - } -} diff --git a/types/grid-template-parser/tslint.json b/types/grid-template-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/grid-template-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gridfs-stream/tslint.json b/types/gridfs-stream/tslint.json deleted file mode 100644 index 4b6f6f174274d6..00000000000000 --- a/types/gridfs-stream/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/group-array/tslint.json b/types/group-array/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/group-array/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/growing-io/tslint.json b/types/growing-io/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/growing-io/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/grpc-error/tslint.json b/types/grpc-error/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/grpc-error/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/grumbler-scripts/tslint.json b/types/grumbler-scripts/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/grumbler-scripts/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/grunt/tslint.json b/types/grunt/tslint.json deleted file mode 100644 index e1f606b5cb683f..00000000000000 --- a/types/grunt/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/gsheetdb/tslint.json b/types/gsheetdb/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gsheetdb/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gsheets/tslint.json b/types/gsheets/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gsheets/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gsi/tslint.json b/types/gsi/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gsi/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gtag.js/tslint.json b/types/gtag.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gtag.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gtin/tslint.json b/types/gtin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gtin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gtmetrix/tslint.json b/types/gtmetrix/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gtmetrix/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/guacamole-client/tslint.json b/types/guacamole-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/guacamole-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/guacamole-common-js/tslint.json b/types/guacamole-common-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/guacamole-common-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/guid/.eslintrc.json b/types/guid/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/guid/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/guid/tslint.json b/types/guid/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/guid/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/gulp-angular-protractor/tslint.json b/types/gulp-angular-protractor/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-angular-protractor/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-angular-templatecache/tslint.json b/types/gulp-angular-templatecache/tslint.json deleted file mode 100644 index aabd199eda41c7..00000000000000 --- a/types/gulp-angular-templatecache/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/gulp-autoprefixer/tslint.json b/types/gulp-autoprefixer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-autoprefixer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-babel/tslint.json b/types/gulp-babel/tslint.json deleted file mode 100644 index 18d448e405363b..00000000000000 --- a/types/gulp-babel/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/gulp-batch/tslint.json b/types/gulp-batch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-batch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-bump/tslint.json b/types/gulp-bump/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-bump/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-cache/tslint.json b/types/gulp-cache/tslint.json deleted file mode 100644 index 59ce3bda021358..00000000000000 --- a/types/gulp-cache/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-void-expression": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/gulp-cached/tslint.json b/types/gulp-cached/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-cached/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-change/tslint.json b/types/gulp-change/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-change/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-changed/tslint.json b/types/gulp-changed/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-changed/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-cheerio/tslint.json b/types/gulp-cheerio/tslint.json deleted file mode 100644 index 9dbebc888fc87c..00000000000000 --- a/types/gulp-cheerio/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/gulp-clean-css/tslint.json b/types/gulp-clean-css/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-clean-css/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-clean-dest/tslint.json b/types/gulp-clean-dest/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-clean-dest/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-codecov/tslint.json b/types/gulp-codecov/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-codecov/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-coffeeify/tslint.json b/types/gulp-coffeeify/tslint.json deleted file mode 100644 index 01143883425632..00000000000000 --- a/types/gulp-coffeeify/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/gulp-coffeelint/tslint.json b/types/gulp-coffeelint/tslint.json deleted file mode 100644 index 3212b729341ce0..00000000000000 --- a/types/gulp-coffeelint/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-void-expression": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/gulp-concat-css/tslint.json b/types/gulp-concat-css/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-concat-css/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-concat/tslint.json b/types/gulp-concat/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-concat/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-cond/tslint.json b/types/gulp-cond/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-cond/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-connect-php/tslint.json b/types/gulp-connect-php/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-connect-php/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-connect/tslint.json b/types/gulp-connect/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-connect/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-copy/tslint.json b/types/gulp-copy/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/gulp-copy/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/gulp-csso/tslint.json b/types/gulp-csso/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-csso/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-dart-sass/tslint.json b/types/gulp-dart-sass/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-dart-sass/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-debug/tslint.json b/types/gulp-debug/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-debug/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-diff/tslint.json b/types/gulp-diff/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-diff/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-dtsm/.eslintrc.json b/types/gulp-dtsm/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/gulp-dtsm/.eslintrc.json +++ b/types/gulp-dtsm/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/gulp-dtsm/tslint.json b/types/gulp-dtsm/tslint.json deleted file mode 100644 index 352822772455e6..00000000000000 --- a/types/gulp-dtsm/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/gulp-espower/tslint.json b/types/gulp-espower/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-espower/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-file-include/tslint.json b/types/gulp-file-include/tslint.json deleted file mode 100644 index aabd199eda41c7..00000000000000 --- a/types/gulp-file-include/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/gulp-filter/tslint.json b/types/gulp-filter/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-filter/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-flatten/tslint.json b/types/gulp-flatten/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-flatten/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-gh-pages/tslint.json b/types/gulp-gh-pages/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-gh-pages/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-gzip/tslint.json b/types/gulp-gzip/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-gzip/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-hash/tslint.json b/types/gulp-hash/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-hash/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-header/tslint.json b/types/gulp-header/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-header/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-help-doc/tslint.json b/types/gulp-help-doc/tslint.json deleted file mode 100644 index 2033013a968bd1..00000000000000 --- a/types/gulp-help-doc/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/gulp-help/tslint.json b/types/gulp-help/tslint.json deleted file mode 100644 index e0a61965b1508c..00000000000000 --- a/types/gulp-help/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-var-requires": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/gulp-html-prettify/tslint.json b/types/gulp-html-prettify/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-html-prettify/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-html-replace/tslint.json b/types/gulp-html-replace/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-html-replace/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-htmlhint/tslint.json b/types/gulp-htmlhint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-htmlhint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-htmlmin/tslint.json b/types/gulp-htmlmin/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-htmlmin/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-if/tslint.json b/types/gulp-if/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-if/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-image-resize/tslint.json b/types/gulp-image-resize/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-image-resize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-image/tslint.json b/types/gulp-image/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-image/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-imagemin/tslint.json b/types/gulp-imagemin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-imagemin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-inject/tslint.json b/types/gulp-inject/tslint.json deleted file mode 100644 index 0a97be3dbfcade..00000000000000 --- a/types/gulp-inject/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "object-literal-shorthand": false, - "prefer-template": false - } -} diff --git a/types/gulp-insert/tslint.json b/types/gulp-insert/tslint.json deleted file mode 100644 index 72f299f52d7d86..00000000000000 --- a/types/gulp-insert/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/gulp-install/tslint.json b/types/gulp-install/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-install/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-intercept/tslint.json b/types/gulp-intercept/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-intercept/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-istanbul/tslint.json b/types/gulp-istanbul/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-istanbul/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-jade/tslint.json b/types/gulp-jade/tslint.json deleted file mode 100644 index c20284e1fbc90e..00000000000000 --- a/types/gulp-jade/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false - } -} diff --git a/types/gulp-jasmine-browser/tslint.json b/types/gulp-jasmine-browser/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-jasmine-browser/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-jasmine/tslint.json b/types/gulp-jasmine/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-jasmine/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-javascript-obfuscator/tslint.json b/types/gulp-javascript-obfuscator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-javascript-obfuscator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-json-editor/tslint.json b/types/gulp-json-editor/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-json-editor/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-json-validator/tslint.json b/types/gulp-json-validator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-json-validator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-jsonmin/tslint.json b/types/gulp-jsonmin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-jsonmin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-jsonminify/tslint.json b/types/gulp-jsonminify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-jsonminify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-jspm/tslint.json b/types/gulp-jspm/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-jspm/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-less/tslint.json b/types/gulp-less/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-less/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-lesshint/tslint.json b/types/gulp-lesshint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-lesshint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-live-server/tslint.json b/types/gulp-live-server/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-live-server/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-load-plugins/tslint.json b/types/gulp-load-plugins/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/gulp-load-plugins/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/gulp-match/tslint.json b/types/gulp-match/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-match/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-minify-css/tslint.json b/types/gulp-minify-css/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-minify-css/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-minify-html/tslint.json b/types/gulp-minify-html/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/gulp-minify-html/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/gulp-minify/tslint.json b/types/gulp-minify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-minify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-mocha/tslint.json b/types/gulp-mocha/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-mocha/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-modernizr/tslint.json b/types/gulp-modernizr/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-modernizr/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-msbuild/tslint.json b/types/gulp-msbuild/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-msbuild/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-mustache/tslint.json b/types/gulp-mustache/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-mustache/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-muxml/tslint.json b/types/gulp-muxml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-muxml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-newer/tslint.json b/types/gulp-newer/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/gulp-newer/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/gulp-ng-annotate/tslint.json b/types/gulp-ng-annotate/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-ng-annotate/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-nodemon/tslint.json b/types/gulp-nodemon/tslint.json deleted file mode 100644 index 9dbebc888fc87c..00000000000000 --- a/types/gulp-nodemon/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/gulp-nunit-runner/tslint.json b/types/gulp-nunit-runner/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-nunit-runner/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-plumber/tslint.json b/types/gulp-plumber/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-plumber/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-postcss/tslint.json b/types/gulp-postcss/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-postcss/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-protractor/tslint.json b/types/gulp-protractor/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/gulp-protractor/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/gulp-pug-i18n/tslint.json b/types/gulp-pug-i18n/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-pug-i18n/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-pug-linter/tslint.json b/types/gulp-pug-linter/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-pug-linter/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-remember/tslint.json b/types/gulp-remember/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/gulp-remember/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/gulp-rename/tslint.json b/types/gulp-rename/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-rename/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-responsive-images/tslint.json b/types/gulp-responsive-images/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-responsive-images/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-rev-all/tslint.json b/types/gulp-rev-all/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-rev-all/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-rev-replace/tslint.json b/types/gulp-rev-replace/tslint.json deleted file mode 100644 index 788e2a181c84c6..00000000000000 --- a/types/gulp-rev-replace/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/gulp-rev/tslint.json b/types/gulp-rev/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/gulp-rev/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/gulp-rewrite-css/tslint.json b/types/gulp-rewrite-css/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-rewrite-css/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-ruby-sass/tslint.json b/types/gulp-ruby-sass/tslint.json deleted file mode 100644 index 2ccd0eb957de51..00000000000000 --- a/types/gulp-ruby-sass/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "only-arrow-functions": false - } -} diff --git a/types/gulp-run/tslint.json b/types/gulp-run/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-run/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-sass-variables/tslint.json b/types/gulp-sass-variables/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-sass-variables/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-sass/tslint.json b/types/gulp-sass/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-sass/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-sequence/tslint.json b/types/gulp-sequence/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-sequence/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-size/tslint.json b/types/gulp-size/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-size/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-sort/tslint.json b/types/gulp-sort/tslint.json deleted file mode 100644 index 8948ae83a56bb8..00000000000000 --- a/types/gulp-sort/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/gulp-sourcemaps/tslint.json b/types/gulp-sourcemaps/tslint.json deleted file mode 100644 index f7eeea0e56d4e1..00000000000000 --- a/types/gulp-sourcemaps/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/gulp-strip-comments/tslint.json b/types/gulp-strip-comments/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-strip-comments/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-strip-debug/tslint.json b/types/gulp-strip-debug/tslint.json deleted file mode 100644 index c0ee9397424a1b..00000000000000 --- a/types/gulp-strip-debug/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false - } -} diff --git a/types/gulp-stylint/tslint.json b/types/gulp-stylint/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-stylint/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-stylus/tslint.json b/types/gulp-stylus/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-stylus/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-svg-sprite/tslint.json b/types/gulp-svg-sprite/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-svg-sprite/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-svgmin/tslint.json b/types/gulp-svgmin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-svgmin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-tap/tslint.json b/types/gulp-tap/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-tap/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-task-listing/tslint.json b/types/gulp-task-listing/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-task-listing/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-template/tslint.json b/types/gulp-template/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-template/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-terser/tslint.json b/types/gulp-terser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-terser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-tsd/tslint.json b/types/gulp-tsd/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gulp-tsd/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gulp-ttf2woff2/tslint.json b/types/gulp-ttf2woff2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-ttf2woff2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-uglify/tslint.json b/types/gulp-uglify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-uglify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp-useref/tslint.json b/types/gulp-useref/tslint.json deleted file mode 100644 index c723a1e67d1f03..00000000000000 --- a/types/gulp-useref/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/gulp-util/tslint.json b/types/gulp-util/tslint.json deleted file mode 100644 index 14d0296a7e5172..00000000000000 --- a/types/gulp-util/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-requires": false - } -} diff --git a/types/gulp-watch/tslint.json b/types/gulp-watch/tslint.json deleted file mode 100644 index 6000ad5ea2a112..00000000000000 --- a/types/gulp-watch/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/gulp-zip/tslint.json b/types/gulp-zip/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp-zip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp.spritesmith/tslint.json b/types/gulp.spritesmith/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gulp.spritesmith/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gulp/tslint.json b/types/gulp/tslint.json deleted file mode 100644 index 96eb6944687ef8..00000000000000 --- a/types/gulp/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-object-literal-type-assertion": false - } -} diff --git a/types/gulp/v3/tslint.json b/types/gulp/v3/tslint.json deleted file mode 100644 index 4b6f6f174274d6..00000000000000 --- a/types/gulp/v3/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/gun/tslint.json b/types/gun/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/gun/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/gunzip-maybe/tslint.json b/types/gunzip-maybe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gunzip-maybe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gyronorm/tslint.json b/types/gyronorm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gyronorm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/gzip-js/tslint.json b/types/gzip-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/gzip-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/h2o2/tslint.json b/types/h2o2/tslint.json deleted file mode 100644 index 521ad764e90ac4..00000000000000 --- a/types/h2o2/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/hafas-client/tslint.json b/types/hafas-client/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hafas-client/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/halfmoon/tslint.json b/types/halfmoon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/halfmoon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/halfred/tslint.json b/types/halfred/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/halfred/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/halogen/tslint.json b/types/halogen/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/halogen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/halogenium/tslint.json b/types/halogenium/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/halogenium/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hammerjs/tslint.json b/types/hammerjs/tslint.json deleted file mode 100644 index 4b6f6f174274d6..00000000000000 --- a/types/hammerjs/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/hammerjs/v1/tslint.json b/types/hammerjs/v1/tslint.json deleted file mode 100644 index a5704b736a95e8..00000000000000 --- a/types/hammerjs/v1/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false - } -} diff --git a/types/handbrake-js/tslint.json b/types/handbrake-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/handbrake-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/handlebars-helpers/tslint.json b/types/handlebars-helpers/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/handlebars-helpers/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/handlebars-webpack-plugin/tslint.json b/types/handlebars-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/handlebars-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi-auth-basic/tslint.json b/types/hapi-auth-basic/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/hapi-auth-basic/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/hapi-auth-bearer-token/tslint.json b/types/hapi-auth-bearer-token/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi-auth-bearer-token/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi-auth-cookie/tslint.json b/types/hapi-auth-cookie/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi-auth-cookie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi-decorators/tslint.json b/types/hapi-decorators/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hapi-decorators/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hapi-server-session/tslint.json b/types/hapi-server-session/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi-server-session/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi/tslint.json b/types/hapi/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi/v12/tslint.json b/types/hapi/v12/tslint.json deleted file mode 100644 index 996cba43c2ecd0..00000000000000 --- a/types/hapi/v12/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-inferrable-types": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/hapi/v15/tslint.json b/types/hapi/v15/tslint.json deleted file mode 100644 index 59a0ed4cc9efb1..00000000000000 --- a/types/hapi/v15/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-inferrable-types": false, - "unified-signatures": false - } -} diff --git a/types/hapi/v16/tslint.json b/types/hapi/v16/tslint.json deleted file mode 100644 index 32258179c0a95e..00000000000000 --- a/types/hapi/v16/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-boolean-literal-compare": false, - "no-duplicate-variable": false, - "no-object-literal-type-assertion": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-type-assertion": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/hapi/v17/tslint.json b/types/hapi/v17/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi/v17/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi/v8/tslint.json b/types/hapi/v8/tslint.json deleted file mode 100644 index 996cba43c2ecd0..00000000000000 --- a/types/hapi/v8/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-inferrable-types": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/hapi__b64/tslint.json b/types/hapi__b64/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__b64/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__basic/tslint.json b/types/hapi__basic/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/hapi__basic/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/hapi__bell/tslint.json b/types/hapi__bell/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/hapi__bell/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/hapi__call/tslint.json b/types/hapi__call/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__call/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__catbox-memcached/tslint.json b/types/hapi__catbox-memcached/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__catbox-memcached/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__catbox-memory/tslint.json b/types/hapi__catbox-memory/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/hapi__catbox-memory/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/hapi__catbox-redis/tslint.json b/types/hapi__catbox-redis/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__catbox-redis/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__catbox/tslint.json b/types/hapi__catbox/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__catbox/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__content/tslint.json b/types/hapi__content/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__content/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__cookie/tslint.json b/types/hapi__cookie/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__cookie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__crumb/tslint.json b/types/hapi__crumb/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__crumb/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__glue/tslint.json b/types/hapi__glue/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hapi__glue/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hapi__h2o2/tslint.json b/types/hapi__h2o2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__h2o2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__hawk/tslint.json b/types/hapi__hawk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__hawk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__inert/tslint.json b/types/hapi__inert/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__inert/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__joi/tslint.json b/types/hapi__joi/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__joi/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__jwt/tslint.json b/types/hapi__jwt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__jwt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__pez/tslint.json b/types/hapi__pez/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__pez/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__shot/tslint.json b/types/hapi__shot/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hapi__shot/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hapi__sntp/tslint.json b/types/hapi__sntp/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hapi__sntp/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hapi__subtext/tslint.json b/types/hapi__subtext/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__subtext/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__vision/tslint.json b/types/hapi__vision/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__vision/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapi__yar/tslint.json b/types/hapi__yar/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapi__yar/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapipal__avocat/tslint.json b/types/hapipal__avocat/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapipal__avocat/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapipal__schmervice/tslint.json b/types/hapipal__schmervice/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapipal__schmervice/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hapipal__toys/tslint.json b/types/hapipal__toys/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hapipal__toys/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/happo-cypress/tslint.json b/types/happo-cypress/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/happo-cypress/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/happyguestmx__web-utilities/tslint.json b/types/happyguestmx__web-utilities/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/happyguestmx__web-utilities/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/happypack/tslint.json b/types/happypack/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/happypack/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/har-format/tslint.json b/types/har-format/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/har-format/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hard-source-webpack-plugin/.eslintrc.json b/types/hard-source-webpack-plugin/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/hard-source-webpack-plugin/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/hard-source-webpack-plugin/tslint.json b/types/hard-source-webpack-plugin/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/hard-source-webpack-plugin/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/hark/tslint.json b/types/hark/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hark/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/harmon/tslint.json b/types/harmon/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/harmon/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/harmony-proxy/tslint.json b/types/harmony-proxy/tslint.json deleted file mode 100644 index 736888cbf71c97..00000000000000 --- a/types/harmony-proxy/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/has-ansi/tslint.json b/types/has-ansi/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/has-ansi/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/has-bigints/tslint.json b/types/has-bigints/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/has-bigints/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/has-package-exports/tslint.json b/types/has-package-exports/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/has-package-exports/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/has-package-self-reference/tslint.json b/types/has-package-self-reference/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/has-package-self-reference/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/has-property-descriptors/tslint.json b/types/has-property-descriptors/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/has-property-descriptors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/has-symbols/tslint.json b/types/has-symbols/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/has-symbols/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/has-values/tslint.json b/types/has-values/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/has-values/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/has/tslint.json b/types/has/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/has/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hasbin/tslint.json b/types/hasbin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hasbin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hash-chain/tslint.json b/types/hash-chain/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hash-chain/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hash-file/tslint.json b/types/hash-file/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hash-file/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hash-stream/tslint.json b/types/hash-stream/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hash-stream/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hash-sum/tslint.json b/types/hash-sum/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hash-sum/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hasher/tslint.json b/types/hasher/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hasher/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hashmap/tslint.json b/types/hashmap/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hashmap/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hashmap/v1/tslint.json b/types/hashmap/v1/tslint.json deleted file mode 100644 index a5704b736a95e8..00000000000000 --- a/types/hashmap/v1/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false - } -} diff --git a/types/hashring/tslint.json b/types/hashring/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hashring/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hashset/.eslintrc.json b/types/hashset/.eslintrc.json index d7921078c29b9f..7e617341f72dc2 100644 --- a/types/hashset/.eslintrc.json +++ b/types/hashset/.eslintrc.json @@ -3,6 +3,7 @@ "@definitelytyped/no-unnecessary-generics": "off", "@definitelytyped/no-declare-current-package": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off" } } diff --git a/types/hashset/tslint.json b/types/hashset/tslint.json deleted file mode 100644 index 07bfb7e7074738..00000000000000 --- a/types/hashset/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/hashtable/.eslintrc.json b/types/hashtable/.eslintrc.json index d7921078c29b9f..7e617341f72dc2 100644 --- a/types/hashtable/.eslintrc.json +++ b/types/hashtable/.eslintrc.json @@ -3,6 +3,7 @@ "@definitelytyped/no-unnecessary-generics": "off", "@definitelytyped/no-declare-current-package": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off" } } diff --git a/types/hashtable/tslint.json b/types/hashtable/tslint.json deleted file mode 100644 index 775549bc3bb5e9..00000000000000 --- a/types/hashtable/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/hashtag-regex/tslint.json b/types/hashtag-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hashtag-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hast/.eslintrc.json b/types/hast/.eslintrc.json index 0f7b7412939420..efd71c1a6c0e5f 100644 --- a/types/hast/.eslintrc.json +++ b/types/hast/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/hast/tslint.json b/types/hast/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/hast/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/hast/v2/.eslintrc.json b/types/hast/v2/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/hast/v2/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/hast/v2/index.d.ts b/types/hast/v2/index.d.ts index 8f756d2873d474..71a1a35e803875 100644 --- a/types/hast/v2/index.d.ts +++ b/types/hast/v2/index.d.ts @@ -69,7 +69,7 @@ export interface Literal extends UnistLiteral { /** * Root represents a document. - * Can be used as the rood of a tree, or as a value of the + * Can be used as the root of a tree, or as a value of the * content field on a 'template' Element, never as a child. */ export interface Root extends Parent { diff --git a/types/hast/v2/tslint.json b/types/hast/v2/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/hast/v2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/hasura/.eslintrc.json b/types/hasura/.eslintrc.json index b00905eb173ac4..9f6655cf4c4e5d 100644 --- a/types/hasura/.eslintrc.json +++ b/types/hasura/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/no-unnecessary-generics": "off", - "@definitelytyped/no-single-element-tuple-type": "off" + "@definitelytyped/no-single-element-tuple-type": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/hasura/tslint.json b/types/hasura/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/hasura/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/hat/tslint.json b/types/hat/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hat/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/haversine/tslint.json b/types/haversine/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/haversine/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hawk/tslint.json b/types/hawk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hawk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/haxball-headless-browser/tslint.json b/types/haxball-headless-browser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/haxball-headless-browser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hbs/tslint.json b/types/hbs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hbs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hcaptcha__react-hcaptcha/tslint.json b/types/hcaptcha__react-hcaptcha/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hcaptcha__react-hcaptcha/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hcaptcha__vue-hcaptcha/tslint.json b/types/hcaptcha__vue-hcaptcha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hcaptcha__vue-hcaptcha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hdkey/tslint.json b/types/hdkey/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hdkey/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/he/tslint.json b/types/he/tslint.json deleted file mode 100644 index cf70da032681ba..00000000000000 --- a/types/he/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false - } -} diff --git a/types/headroom.js/tslint.json b/types/headroom.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/headroom.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/headroom/.eslintrc.json b/types/headroom/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/headroom/.eslintrc.json +++ b/types/headroom/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/headroom/tslint.json b/types/headroom/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/headroom/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/heap/tslint.json b/types/heap/tslint.json deleted file mode 100644 index 6e0bc304ea6a64..00000000000000 --- a/types/heap/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "arrow-return-shorthand": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/heapdump/tslint.json b/types/heapdump/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/heapdump/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/heatmap.js/tslint.json b/types/heatmap.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/heatmap.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/heft-jest/tslint.json b/types/heft-jest/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/heft-jest/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/heic-convert/tslint.json b/types/heic-convert/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/heic-convert/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/heic-decode/tslint.json b/types/heic-decode/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/heic-decode/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hellojs/tslint.json b/types/hellojs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hellojs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hellosign-embedded/tslint.json b/types/hellosign-embedded/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/hellosign-embedded/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/hellosign-sdk/tslint.json b/types/hellosign-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hellosign-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hepburn/tslint.json b/types/hepburn/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hepburn/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/heredatalens/tslint.json b/types/heredatalens/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/heredatalens/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/heremaps/tslint.json b/types/heremaps/tslint.json deleted file mode 100644 index 86662c3352d929..00000000000000 --- a/types/heremaps/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false - } -} diff --git a/types/heroku-client/tslint.json b/types/heroku-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/heroku-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/heroku-logger/.eslintrc.json b/types/heroku-logger/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/heroku-logger/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/heroku-logger/tslint.json b/types/heroku-logger/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/heroku-logger/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/hex-array/tslint.json b/types/hex-array/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hex-array/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hex-color-regex/tslint.json b/types/hex-color-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hex-color-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hex-rgba/tslint.json b/types/hex-rgba/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hex-rgba/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hex-to-binary/tslint.json b/types/hex-to-binary/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hex-to-binary/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hex-to-uuid/tslint.json b/types/hex-to-uuid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hex-to-uuid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hex2dec/tslint.json b/types/hex2dec/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hex2dec/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hexo-bunyan/tslint.json b/types/hexo-bunyan/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hexo-bunyan/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hexo-fs/tslint.json b/types/hexo-fs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hexo-fs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hexo-log/tslint.json b/types/hexo-log/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/hexo-log/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/hexo-util/tslint.json b/types/hexo-util/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hexo-util/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hexo/tslint.json b/types/hexo/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/hexo/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/hh-mm-ss/tslint.json b/types/hh-mm-ss/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hh-mm-ss/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hid/tslint.json b/types/hid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hidefile/tslint.json b/types/hidefile/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hidefile/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hifo/tslint.json b/types/hifo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hifo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hig__button/index.d.ts b/types/hig__button/index.d.ts index 6397ecd40c34ad..157f9a37c8a33e 100644 --- a/types/hig__button/index.d.ts +++ b/types/hig__button/index.d.ts @@ -32,7 +32,7 @@ export interface Props { /** Prevents user interaction with the button */ disabled?: boolean | undefined; /** A @hig/icon element */ - icon?: JSX.Element | undefined; + icon?: React.JSX.Element | undefined; /** Sets the link of a button */ link?: string | undefined; /** Triggers when you click the button */ diff --git a/types/hig__button/tslint.json b/types/hig__button/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hig__button/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/highcharts-ng/tslint.json b/types/highcharts-ng/tslint.json deleted file mode 100644 index d26dd271b0838a..00000000000000 --- a/types/highcharts-ng/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/highland/tslint.json b/types/highland/tslint.json deleted file mode 100644 index 119ec9ffd8f098..00000000000000 --- a/types/highland/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/highlight-words-core/tslint.json b/types/highlight-words-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/highlight-words-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/highlightjs/.eslintrc.json b/types/highlightjs/.eslintrc.json index b05f3ccbbe301d..b50d4058a80698 100644 --- a/types/highlightjs/.eslintrc.json +++ b/types/highlightjs/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/export-just-namespace": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/naming-convention": "off" } } diff --git a/types/highlightjs/tslint.json b/types/highlightjs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/highlightjs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hijackresponse/tslint.json b/types/hijackresponse/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hijackresponse/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hippy__react/tslint.json b/types/hippy__react/tslint.json deleted file mode 100644 index 94c7d46258c018..00000000000000 --- a/types/hippy__react/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false - } -} diff --git a/types/hiredis/tslint.json b/types/hiredis/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hiredis/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/history-events/tslint.json b/types/history-events/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/history-events/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/history.js/tslint.json b/types/history.js/tslint.json deleted file mode 100644 index 7293dc4b5ae32b..00000000000000 --- a/types/history.js/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/historykana/tslint.json b/types/historykana/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/historykana/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hjson/tslint.json b/types/hjson/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hjson/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hl7/.eslintrc.json b/types/hl7/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/hl7/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/hl7/tslint.json b/types/hl7/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/hl7/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/hls-parser/tslint.json b/types/hls-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hls-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hmac-blake2b/tslint.json b/types/hmac-blake2b/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hmac-blake2b/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hmscore__react-native-hms-push/package.json b/types/hmscore__react-native-hms-push/package.json index 77aa747a858dfc..360d3f23a652ea 100644 --- a/types/hmscore__react-native-hms-push/package.json +++ b/types/hmscore__react-native-hms-push/package.json @@ -6,7 +6,7 @@ "https://github.com/HMS-Core/hms-react-native-plugin/tree/master/react-native-hms-push" ], "dependencies": { - "@types/react-native": "*" + "react-native": "*" }, "devDependencies": { "@types/hmscore__react-native-hms-push": "workspace:.", diff --git a/types/hmscore__react-native-hms-push/tsconfig.json b/types/hmscore__react-native-hms-push/tsconfig.json index df3b9234294859..cd64435bb95782 100644 --- a/types/hmscore__react-native-hms-push/tsconfig.json +++ b/types/hmscore__react-native-hms-push/tsconfig.json @@ -11,10 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "paths": { - "react-native": ["../react-native/index.d.ts"] - } + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/hmscore__react-native-hms-push/tslint.json b/types/hmscore__react-native-hms-push/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hmscore__react-native-hms-push/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hoek/tslint.json b/types/hoek/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hoek/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hogan.js/tslint.json b/types/hogan.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hogan.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hoist-non-react-statics/tslint.json b/types/hoist-non-react-statics/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hoist-non-react-statics/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/holderjs/tslint.json b/types/holderjs/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/holderjs/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/honeybadger/tslint.json b/types/honeybadger/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/honeybadger/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hooker/tslint.json b/types/hooker/tslint.json deleted file mode 100644 index f6adc4e44a837b..00000000000000 --- a/types/hooker/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/hookrouter/.eslintrc.json b/types/hookrouter/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/hookrouter/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/hookrouter/tslint.json b/types/hookrouter/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/hookrouter/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/hopscotch/tslint.json b/types/hopscotch/tslint.json deleted file mode 100644 index 3b0a2cda11f082..00000000000000 --- a/types/hopscotch/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/host-validation/tslint.json b/types/host-validation/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/host-validation/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hosted-git-info/tslint.json b/types/hosted-git-info/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hosted-git-info/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hostile/tslint.json b/types/hostile/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hostile/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hot-formula-parser/tslint.json b/types/hot-formula-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hot-formula-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/howler/tslint.json b/types/howler/tslint.json deleted file mode 100644 index 4ee0a0f697ef10..00000000000000 --- a/types/howler/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "object-literal-shorthand": false - } -} diff --git a/types/hoxy/tslint.json b/types/hoxy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hoxy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hpp/tslint.json b/types/hpp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hpp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hsl-to-hex/tslint.json b/types/hsl-to-hex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hsl-to-hex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hsl-to-rgb-for-reals/tslint.json b/types/hsl-to-rgb-for-reals/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hsl-to-rgb-for-reals/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-docx-js/tslint.json b/types/html-docx-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-docx-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-encoding-sniffer/tslint.json b/types/html-encoding-sniffer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-encoding-sniffer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-entities-decoder/tslint.json b/types/html-entities-decoder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-entities-decoder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-escape/tslint.json b/types/html-escape/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-escape/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-escape/v1/tslint.json b/types/html-escape/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-escape/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-escaper/tslint.json b/types/html-escaper/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-escaper/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-minifier-terser/tslint.json b/types/html-minifier-terser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-minifier-terser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-minifier/tslint.json b/types/html-minifier/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/html-minifier/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/html-minifier/v1/tslint.json b/types/html-minifier/v1/tslint.json deleted file mode 100644 index 6000ad5ea2a112..00000000000000 --- a/types/html-minifier/v1/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/html-parser/tslint.json b/types/html-parser/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/html-parser/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/html-pdf-node/tslint.json b/types/html-pdf-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-pdf-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-pdf/tslint.json b/types/html-pdf/tslint.json deleted file mode 100644 index 2d37f306fa3ea5..00000000000000 --- a/types/html-pdf/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-void-expression": false, - "prefer-const": false - } -} diff --git a/types/html-replace-webpack-plugin/tslint.json b/types/html-replace-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-replace-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-tableify/tslint.json b/types/html-tableify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-tableify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-tag/tslint.json b/types/html-tag/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-tag/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-to-draftjs/tslint.json b/types/html-to-draftjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-to-draftjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-to-pdfmake/tslint.json b/types/html-to-pdfmake/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-to-pdfmake/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-to-rtf/tslint.json b/types/html-to-rtf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-to-rtf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-to-text/tslint.json b/types/html-to-text/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/html-to-text/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/html-truncate/tslint.json b/types/html-truncate/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/html-truncate/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/html-validator/tslint.json b/types/html-validator/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/html-validator/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/html-webpack-plugin/tslint.json b/types/html-webpack-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-webpack-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html-webpack-template/tslint.json b/types/html-webpack-template/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html-webpack-template/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html/tslint.json b/types/html/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html2json/tslint.json b/types/html2json/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html2json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html4-id/tslint.json b/types/html4-id/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html4-id/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html5-history/tslint.json b/types/html5-history/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/html5-history/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/html5-to-pdf/tslint.json b/types/html5-to-pdf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html5-to-pdf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/html5plus/tslint.json b/types/html5plus/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/html5plus/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/html_codesniffer/tslint.json b/types/html_codesniffer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/html_codesniffer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/htmlbars-inline-precompile/tslint.json b/types/htmlbars-inline-precompile/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/htmlbars-inline-precompile/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/htmlescape/tslint.json b/types/htmlescape/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/htmlescape/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/htmlhint/tslint.json b/types/htmlhint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/htmlhint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/htmlparser2/tslint.json b/types/htmlparser2/tslint.json deleted file mode 100644 index f6adc4e44a837b..00000000000000 --- a/types/htmlparser2/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/htmltojsx/tslint.json b/types/htmltojsx/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/htmltojsx/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/http-agent/tslint.json b/types/http-agent/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/http-agent/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/http-assert/.eslintrc.json b/types/http-assert/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/http-assert/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/http-assert/tslint.json b/types/http-assert/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/http-assert/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/http-auth/tslint.json b/types/http-auth/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-auth/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-aws-es/tslint.json b/types/http-aws-es/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-aws-es/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-build-query/tslint.json b/types/http-build-query/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-build-query/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-cache-semantics/tslint.json b/types/http-cache-semantics/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-cache-semantics/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-codes/tslint.json b/types/http-codes/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-codes/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-context/tslint.json b/types/http-context/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-context/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-errors/tslint.json b/types/http-errors/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-errors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-headers/tslint.json b/types/http-headers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-headers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-link-header/tslint.json b/types/http-link-header/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/http-link-header/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/http-proxy/tslint.json b/types/http-proxy/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/http-proxy/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/http-rx/tslint.json b/types/http-rx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-rx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-server/tslint.json b/types/http-server/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-server/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-signature/tslint.json b/types/http-signature/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-signature/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/http-string-parser/tslint.json b/types/http-string-parser/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/http-string-parser/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/http-terminator/tslint.json b/types/http-terminator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/http-terminator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/httperr/tslint.json b/types/httperr/tslint.json deleted file mode 100644 index d52c48a14b4038..00000000000000 --- a/types/httperr/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/httpsnippet/tslint.json b/types/httpsnippet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/httpsnippet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hubot/tslint.json b/types/hubot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hubot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hubspot-pace/.eslintrc.json b/types/hubspot-pace/.eslintrc.json index e814d8fbd491d4..85b959fd198d9d 100644 --- a/types/hubspot-pace/.eslintrc.json +++ b/types/hubspot-pace/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/no-single-declare-module": "off" + "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/hubspot-pace/tslint.json b/types/hubspot-pace/tslint.json deleted file mode 100644 index 3f64aa427a482a..00000000000000 --- a/types/hubspot-pace/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/hull.js/tslint.json b/types/hull.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hull.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/human-crypto-keys/tslint.json b/types/human-crypto-keys/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/human-crypto-keys/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/human-date/tslint.json b/types/human-date/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/human-date/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/human-format/tslint.json b/types/human-format/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/human-format/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/human-interval/tslint.json b/types/human-interval/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/human-interval/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/human-number/tslint.json b/types/human-number/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/human-number/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/human-to-cron/tslint.json b/types/human-to-cron/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/human-to-cron/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/humane-js/tslint.json b/types/humane-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/humane-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/humanize-duration/humanize-duration-tests.ts b/types/humanize-duration/humanize-duration-tests.ts index 4e996db6bfc70e..2629358bdc6cb7 100644 --- a/types/humanize-duration/humanize-duration-tests.ts +++ b/types/humanize-duration/humanize-duration-tests.ts @@ -59,6 +59,21 @@ humanizeDuration(3602000, { units: ["m"], }); // '60 glorioso minutos' +humanizeDuration(1234, { + digitReplacements: [ + "Zero", + "One", + "Two", + "Three", + "Four", + "Five", + "Six", + "Seven", + "Eight", + "Nine", + ], +}); // 'One.TwoThreeFour seconds' + const spanishHumanizer = humanizeDuration.humanizer({ language: "es", units: ["y", "mo", "d"], diff --git a/types/humanize-duration/index.d.ts b/types/humanize-duration/index.d.ts index 57245fc446c76a..4c837c6d967209 100644 --- a/types/humanize-duration/index.d.ts +++ b/types/humanize-duration/index.d.ts @@ -140,6 +140,12 @@ declare namespace humanizeDuration { * Customize the value used to calculate each unit of time. */ unitMeasures?: UnitMeasuresOptions | undefined; + /** + * Array of ten strings to which will replace the numerals 0-9. + */ + digitReplacements?: + | [string, string, string, string, string, string, string, string, string, string] + | undefined; } interface HumanizerOptions extends Options { diff --git a/types/humanize-duration/tslint.json b/types/humanize-duration/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/humanize-duration/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/humanize-ms/tslint.json b/types/humanize-ms/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/humanize-ms/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/humanize-plus/tslint.json b/types/humanize-plus/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/humanize-plus/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/humanparser/tslint.json b/types/humanparser/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/humanparser/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/humblebee__styled-components-breakpoint/tslint.json b/types/humblebee__styled-components-breakpoint/tslint.json deleted file mode 100644 index d53922ab74fc2a..00000000000000 --- a/types/humblebee__styled-components-breakpoint/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-outside-dependencies": false - } -} diff --git a/types/hummer-env/tslint.json b/types/hummer-env/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hummer-env/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hummus-recipe/tslint.json b/types/hummus-recipe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hummus-recipe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/humps/tslint.json b/types/humps/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/humps/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/hunspell-spellchecker/tslint.json b/types/hunspell-spellchecker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hunspell-spellchecker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hyco-ws/tslint.json b/types/hyco-ws/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hyco-ws/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hydra-box/package.json b/types/hydra-box/package.json index 27903c76e423ea..179e659e3e5264 100644 --- a/types/hydra-box/package.json +++ b/types/hydra-box/package.json @@ -12,7 +12,7 @@ "@types/express": "*", "@types/express-serve-static-core": "*", "@types/rdf-ext": "*", - "@types/rdf-loaders-registry": "*", + "@types/rdf-loaders-registry": "^0.3.0", "@types/rdfjs__express-handler": "*", "@types/set-link": "*" }, diff --git a/types/hydra-box/tslint.json b/types/hydra-box/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hydra-box/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hyggedyne__scrabbleify/tslint.json b/types/hyggedyne__scrabbleify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hyggedyne__scrabbleify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hyper-aws4/tslint.json b/types/hyper-aws4/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hyper-aws4/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hyper-function-component/tslint.json b/types/hyper-function-component/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hyper-function-component/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hyperdeck-js-lib/tslint.json b/types/hyperdeck-js-lib/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hyperdeck-js-lib/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hyperscript/tslint.json b/types/hyperscript/tslint.json deleted file mode 100644 index 736888cbf71c97..00000000000000 --- a/types/hyperscript/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/hypertext-application-language/.eslintrc.json b/types/hypertext-application-language/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/hypertext-application-language/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/hypertext-application-language/tslint.json b/types/hypertext-application-language/tslint.json deleted file mode 100644 index 3ba39144b29bdc..00000000000000 --- a/types/hypertext-application-language/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/hyphen/tslint.json b/types/hyphen/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hyphen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hyphenate-style-name/tslint.json b/types/hyphenate-style-name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/hyphenate-style-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/hystrixjs/tslint.json b/types/hystrixjs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/hystrixjs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/i18n-abide/tslint.json b/types/i18n-abide/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/i18n-abide/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/i18n-js/tslint.json b/types/i18n-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/i18n-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/i18n/tslint.json b/types/i18n/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/i18n/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/i18next-fs-backend/tslint.json b/types/i18next-fs-backend/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/i18next-fs-backend/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/i18next-ko/tslint.json b/types/i18next-ko/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/i18next-ko/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/i18next-node-fs-backend/tslint.json b/types/i18next-node-fs-backend/tslint.json deleted file mode 100644 index 7293dc4b5ae32b..00000000000000 --- a/types/i18next-node-fs-backend/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/i18next-sprintf-postprocessor/tslint.json b/types/i18next-sprintf-postprocessor/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/i18next-sprintf-postprocessor/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/i2c-bus/tslint.json b/types/i2c-bus/tslint.json deleted file mode 100644 index 53e2a6dbfb51ab..00000000000000 --- a/types/i2c-bus/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "unified-signatures": false - } -} diff --git a/types/iab-vpaid/tslint.json b/types/iab-vpaid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iab-vpaid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iamport-react-native/tslint.json b/types/iamport-react-native/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iamport-react-native/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iarna__toml/tslint.json b/types/iarna__toml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iarna__toml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iban/tslint.json b/types/iban/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iban/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ibm-mobilefirst/.eslintrc.json b/types/ibm-mobilefirst/.eslintrc.json index 6b319d8c0c5386..96b377f13356d6 100644 --- a/types/ibm-mobilefirst/.eslintrc.json +++ b/types/ibm-mobilefirst/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/naming-convention": "off" diff --git a/types/ibm-mobilefirst/tslint.json b/types/ibm-mobilefirst/tslint.json deleted file mode 100644 index f20804c27b6d31..00000000000000 --- a/types/ibm-mobilefirst/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-mergeable-namespace": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/ibm-openapi-validator/tslint.json b/types/ibm-openapi-validator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ibm-openapi-validator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ibm_db/tslint.json b/types/ibm_db/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/ibm_db/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/ical/tslint.json b/types/ical/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ical/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/icepick/tslint.json b/types/icepick/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/icepick/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/icheck/tslint.json b/types/icheck/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/icheck/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iconv/tslint.json b/types/iconv/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/iconv/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/icss-utils/tslint.json b/types/icss-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/icss-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/identicon.js/tslint.json b/types/identicon.js/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/identicon.js/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/identifiers-arxiv/tslint.json b/types/identifiers-arxiv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/identifiers-arxiv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/identity-obj-proxy/tslint.json b/types/identity-obj-proxy/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/identity-obj-proxy/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/idle-js/tslint.json b/types/idle-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/idle-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/idyll-ast/tslint.json b/types/idyll-ast/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/idyll-ast/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/idyll-compiler/tslint.json b/types/idyll-compiler/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/idyll-compiler/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/idyll-document/tslint.json b/types/idyll-document/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/idyll-document/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/idyll/tslint.json b/types/idyll/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/idyll/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/iferr/tslint.json b/types/iferr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iferr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iframe-resizer/tslint.json b/types/iframe-resizer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/iframe-resizer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ifvisible/tslint.json b/types/ifvisible/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ifvisible/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/igdb-api-node/tslint.json b/types/igdb-api-node/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/igdb-api-node/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ignite-ui/tslint.json b/types/ignite-ui/tslint.json deleted file mode 100644 index 90758f20ad0967..00000000000000 --- a/types/ignite-ui/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-mergeable-namespace": false, - "unified-signatures": false - } -} diff --git a/types/ignore-by-default/tslint.json b/types/ignore-by-default/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ignore-by-default/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ignore-styles/tslint.json b/types/ignore-styles/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ignore-styles/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ignore-walk/tslint.json b/types/ignore-walk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ignore-walk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iitc/tslint.json b/types/iitc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iitc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iltorb/tslint.json b/types/iltorb/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/iltorb/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/image-blob-reduce/tslint.json b/types/image-blob-reduce/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/image-blob-reduce/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/image-thumbnail/tslint.json b/types/image-thumbnail/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/image-thumbnail/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/image-to-base64/tslint.json b/types/image-to-base64/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/image-to-base64/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagekit/tslint.json b/types/imagekit/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/imagekit/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/imagemagick-native/tslint.json b/types/imagemagick-native/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/imagemagick-native/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/imagemagick/tslint.json b/types/imagemagick/tslint.json deleted file mode 100644 index 77d7a86899068e..00000000000000 --- a/types/imagemagick/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-inferrable-types": false, - "no-var-keyword": false - } -} diff --git a/types/imagemapster/.eslintrc.json b/types/imagemapster/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/imagemapster/.eslintrc.json +++ b/types/imagemapster/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/imagemapster/tslint.json b/types/imagemapster/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/imagemapster/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/imagemin-gifsicle/tslint.json b/types/imagemin-gifsicle/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin-gifsicle/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagemin-jpegtran/tslint.json b/types/imagemin-jpegtran/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin-jpegtran/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagemin-mozjpeg/tslint.json b/types/imagemin-mozjpeg/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin-mozjpeg/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagemin-optipng/tslint.json b/types/imagemin-optipng/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin-optipng/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagemin-svgo/tslint.json b/types/imagemin-svgo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin-svgo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagemin-upng/tslint.json b/types/imagemin-upng/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin-upng/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagemin-webp/tslint.json b/types/imagemin-webp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin-webp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagemin-zopfli/tslint.json b/types/imagemin-zopfli/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin-zopfli/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagemin/tslint.json b/types/imagemin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imagemin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imagesloaded/tslint.json b/types/imagesloaded/tslint.json deleted file mode 100644 index 53c331ac593bd8..00000000000000 --- a/types/imagesloaded/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/imap-simple/tslint.json b/types/imap-simple/tslint.json deleted file mode 100644 index 3dc806d11a12e5..00000000000000 --- a/types/imap-simple/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/imap/tslint.json b/types/imap/tslint.json deleted file mode 100644 index 691d8cbf46b4d2..00000000000000 --- a/types/imap/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-inferrable-types": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "no-var-requires": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false - } -} diff --git a/types/imapflow/imapflow-tests.ts b/types/imapflow/imapflow-tests.ts index 9b9dcf5553c6f3..96f8165c5d44e9 100644 --- a/types/imapflow/imapflow-tests.ts +++ b/types/imapflow/imapflow-tests.ts @@ -38,3 +38,6 @@ client.list(); // $Expect Promise client.mailboxDelete("INBOX.example"); + +// $Expect Promise +client.status("INBOX", { uidNext: true }); diff --git a/types/imapflow/index.d.ts b/types/imapflow/index.d.ts index 70beb8bc44d51a..6907c33e4d902d 100644 --- a/types/imapflow/index.d.ts +++ b/types/imapflow/index.d.ts @@ -122,7 +122,7 @@ export class ImapFlow extends EventEmitter { fetch( range: SequenceString | number[] | SearchObject, query: FetchQueryObject, - options?: { uid?: boolean; changedSince: bigint }, + options?: { uid?: boolean; changedSince?: bigint; binary?: boolean }, ): AsyncGenerator; } @@ -196,7 +196,7 @@ export interface FetchMessageObject { source: Buffer; modseq: BigInt; emailId: string; - threadId: string; + threadId?: string; labels: Set; size: number; flags: Set; @@ -291,7 +291,7 @@ export interface StatusObject { path: string; messages?: number; recent?: number; - uid?: number; + uidNext?: number; uidValidity?: bigint; unseen?: number; highestModseq?: bigint; diff --git a/types/imapflow/tslint.json b/types/imapflow/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imapflow/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/img-clipboard/tslint.json b/types/img-clipboard/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/img-clipboard/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imgur-rest-api/.eslintrc.json b/types/imgur-rest-api/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/imgur-rest-api/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/imgur-rest-api/tslint.json b/types/imgur-rest-api/tslint.json deleted file mode 100644 index 194760093bba1d..00000000000000 --- a/types/imgur-rest-api/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-boolean-literal-compare": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/immediate/tslint.json b/types/immediate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/immediate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imperium/tslint.json b/types/imperium/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/imperium/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/import-local/tslint.json b/types/import-local/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/import-local/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/impress/tslint.json b/types/impress/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/impress/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/imsi-grok/tslint.json b/types/imsi-grok/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imsi-grok/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imul/tslint.json b/types/imul/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/imul/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/imurmurhash/tslint.json b/types/imurmurhash/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/imurmurhash/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/in-app-purchase/tslint.json b/types/in-app-purchase/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/in-app-purchase/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inboxsdk/tslint.json b/types/inboxsdk/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/inboxsdk/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/indefinite/tslint.json b/types/indefinite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/indefinite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/indy-sdk/tslint.json b/types/indy-sdk/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/indy-sdk/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inert/tslint.json b/types/inert/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inert/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inert/v4/tslint.json b/types/inert/v4/tslint.json deleted file mode 100644 index a4b45d96f092d5..00000000000000 --- a/types/inert/v4/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/ineum/tslint.json b/types/ineum/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ineum/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/infinite-scroll/tslint.json b/types/infinite-scroll/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/infinite-scroll/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inflation/tslint.json b/types/inflation/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inflation/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inflected/tslint.json b/types/inflected/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/inflected/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/inflection/tslint.json b/types/inflection/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/inflection/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/inflight/tslint.json b/types/inflight/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inflight/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/infobox-parser/tslint.json b/types/infobox-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/infobox-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inherits/tslint.json b/types/inherits/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/inherits/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/ini/index.d.ts b/types/ini/index.d.ts index 8bda3353409096..3faa1467ff1989 100644 --- a/types/ini/index.d.ts +++ b/types/ini/index.d.ts @@ -1,6 +1,11 @@ interface EncodeOptions { + align?: boolean; section?: string; + sort?: boolean; whitespace?: boolean; + newline?: boolean; + platform?: string; + bracketedArray?: boolean; } export function decode(str: string): { diff --git a/types/ini/ini-tests.ts b/types/ini/ini-tests.ts index c9990abed4b6c9..b2784e5ec62e3e 100644 --- a/types/ini/ini-tests.ts +++ b/types/ini/ini-tests.ts @@ -25,6 +25,15 @@ encoded = ini.encode(decoded, "Section"); encoded = ini.encode(decoded, { whitespace: true }); encoded = ini.encode(decoded, { section: "Section" }); encoded = ini.encode(decoded, { whitespace: true, section: "Section" }); +encoded = ini.encode(decoded, { + align: true, + sort: true, + whitespace: true, + section: "Section", + newline: true, + platform: "linux", + bracketedArray: true, +}); // @ts-expect-error let badEncoded = ini.encode(); @@ -36,6 +45,15 @@ encoded = ini.stringify(decoded, "Section"); encoded = ini.stringify(decoded, { whitespace: true }); encoded = ini.stringify(decoded, { section: "Section" }); encoded = ini.stringify(decoded, { whitespace: true, section: "Section" }); +encoded = ini.stringify(decoded, { + align: true, + sort: true, + whitespace: true, + section: "Section", + newline: true, + platform: "linux", + bracketedArray: true, +}); // @ts-expect-error badEncoded = ini.stringify(); diff --git a/types/ini/package.json b/types/ini/package.json index 9f4480e8cc71b4..c7c3afdb1a501f 100644 --- a/types/ini/package.json +++ b/types/ini/package.json @@ -1,9 +1,9 @@ { "private": true, "name": "@types/ini", - "version": "1.3.9999", + "version": "4.1.9999", "projects": [ - "https://github.com/isaacs/ini" + "https://github.com/npm/ini" ], "devDependencies": { "@types/ini": "workspace:." diff --git a/types/ini/tslint.json b/types/ini/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/ini/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/iniparser/tslint.json b/types/iniparser/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/iniparser/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/init-package-json/tslint.json b/types/init-package-json/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/init-package-json/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/initrc/tslint.json b/types/initrc/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/initrc/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/injectpromise/tslint.json b/types/injectpromise/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/injectpromise/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ink-big-text/tslint.json b/types/ink-big-text/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-big-text/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-box/tslint.json b/types/ink-box/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-box/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-divider/tslint.json b/types/ink-divider/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-divider/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-gradient/tslint.json b/types/ink-gradient/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-gradient/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-select-input/tslint.json b/types/ink-select-input/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-select-input/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-spinner/tslint.json b/types/ink-spinner/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-spinner/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-table/tslint.json b/types/ink-table/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-table/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-testing-library/tslint.json b/types/ink-testing-library/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-testing-library/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-text-animation/tslint.json b/types/ink-text-animation/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-text-animation/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ink-text-input/tslint.json b/types/ink-text-input/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ink-text-input/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inline-critical/tslint.json b/types/inline-critical/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inline-critical/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inline-css/tslint.json b/types/inline-css/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/inline-css/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/inline-style-prefixer/tslint.json b/types/inline-style-prefixer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inline-style-prefixer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/input-moment/tslint.json b/types/input-moment/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/input-moment/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inputmask/tslint.json b/types/inputmask/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/inputmask/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/inquirer-autocomplete-prompt/tslint.json b/types/inquirer-autocomplete-prompt/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inquirer-autocomplete-prompt/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inquirer-autocomplete-prompt/v2/tslint.json b/types/inquirer-autocomplete-prompt/v2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inquirer-autocomplete-prompt/v2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inquirer-fuzzy-path/tslint.json b/types/inquirer-fuzzy-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inquirer-fuzzy-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inquirer-npm-name/tslint.json b/types/inquirer-npm-name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inquirer-npm-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inquirer/tslint.json b/types/inquirer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inquirer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/inquirer/v8/tslint.json b/types/inquirer/v8/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inquirer/v8/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/insert-css/tslint.json b/types/insert-css/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/insert-css/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/insert-module-globals/tslint.json b/types/insert-module-globals/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/insert-module-globals/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/insert-text-at-cursor/tslint.json b/types/insert-text-at-cursor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/insert-text-at-cursor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/insight/tslint.json b/types/insight/tslint.json deleted file mode 100644 index 2d37f306fa3ea5..00000000000000 --- a/types/insight/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-void-expression": false, - "prefer-const": false - } -} diff --git a/types/inspectlet-es/tslint.json b/types/inspectlet-es/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/inspectlet-es/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/int53/tslint.json b/types/int53/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/int53/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/integer/tslint.json b/types/integer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/integer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/integrate-adaptive-simpson/tslint.json b/types/integrate-adaptive-simpson/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/integrate-adaptive-simpson/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intercept-stdout/tslint.json b/types/intercept-stdout/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/intercept-stdout/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intercom-client/tslint.json b/types/intercom-client/tslint.json deleted file mode 100644 index f9e1c3af9b33a8..00000000000000 --- a/types/intercom-client/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false - } -} diff --git a/types/intercom-web/tslint.json b/types/intercom-web/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/intercom-web/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intercomjs/.eslintrc.json b/types/intercomjs/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/intercomjs/.eslintrc.json +++ b/types/intercomjs/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/intercomjs/tslint.json b/types/intercomjs/tslint.json deleted file mode 100644 index 616d4ed1cbdbac..00000000000000 --- a/types/intercomjs/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/internal-slot/tslint.json b/types/internal-slot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/internal-slot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/interpret/tslint.json b/types/interpret/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/interpret/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intersect/tslint.json b/types/intersect/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/intersect/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intersects/tslint.json b/types/intersects/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/intersects/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intersperse/tslint.json b/types/intersperse/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/intersperse/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intl-tel-input/tslint.json b/types/intl-tel-input/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/intl-tel-input/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/intl-tel-input/v13/tslint.json b/types/intl-tel-input/v13/tslint.json deleted file mode 100644 index 7ca5baff65fd74..00000000000000 --- a/types/intl-tel-input/v13/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-const-enum": false, - "no-unnecessary-qualifier": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/intl-unofficial-duration-unit-format/tslint.json b/types/intl-unofficial-duration-unit-format/tslint.json deleted file mode 100644 index fdb081610e5a52..00000000000000 --- a/types/intl-unofficial-duration-unit-format/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "mode": "code", - "errors": [["NeedsExportEquals", false]] - } - ] - } -} diff --git a/types/intl/tslint.json b/types/intl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/intl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intrinsic-scale/tslint.json b/types/intrinsic-scale/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/intrinsic-scale/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/intro.js/tslint.json b/types/intro.js/tslint.json deleted file mode 100644 index aabd199eda41c7..00000000000000 --- a/types/intro.js/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/invariant/tslint.json b/types/invariant/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/invariant/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/inversify-devtools/tslint.json b/types/inversify-devtools/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/inversify-devtools/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/invity-api/index.d.ts b/types/invity-api/index.d.ts index 19f6e36002ee1f..d547bbbdd263cb 100644 --- a/types/invity-api/index.d.ts +++ b/types/invity-api/index.d.ts @@ -22,6 +22,223 @@ export interface FormResponse { error?: string | undefined; } +export const cryptoSymbols: readonly [ + "TEST", + "BTC", + "ETH", + "LTC", + "SOL", + "ADA", + "BCH", + "DASH", + "DGB", + "DOGE", + "XLM", + "XMR", + "XRP", + "XTZ", + "AE", + "ALGO", + "AMB", + "ARDR", + "ARN", + "BCD", + "BKX", + "BNB", + "BSV", + "BTG", + "CHX", + "CHZ", + "DCR", + "EDO", + "EOS", + "ERD", + "ETC", + "GAS", + "GRS", + "ICX", + "INS", + "IOST", + "IOTX", + "KMD", + "LBC", + "LSK", + "MATIC", + "NANO", + "NEO", + "NXT", + "ONG", + "ONT", + "PIVX", + "QTUM", + "R", + "RVN", + "SC", + "SKY", + "STEEM", + "STORM", + "STRAT", + "SYS", + "TRX", + "VEN", + "VET", + "WAVES", + "XEM", + "XVG", + "ZCL", + "ZEC", + "ZEN", + "ZIL", + "USDC@ETH", + "USDT@ETH", + "TUSD@ETH", + "PAX@ETH", + "BUSD@ETH", + "GUSD@ETH", + "ABT@ETH", + "ABYSS@ETH", + "ADT@ETH", + "ADX@ETH", + "AGI@ETH", + "ANKR@ETH", + "ANT@ETH", + "APPC@ETH", + "ATL@ETH", + "ATOM@ETH", + "AXPR@ETH", + "BAND@ETH", + "BCPT@ETH", + "BDG@ETH", + "BETR@ETH", + "BKX@ETH", + "BLZ@ETH", + "BNT@ETH", + "BRD@ETH", + "BTT@ETH", + "CBC@ETH", + "CDT@ETH", + "CELR@ETH", + "CND@ETH", + "CRO@ETH", + "CRPT@ETH", + "CVC@ETH", + "DAI@ETH", + "DAN@ETH", + "DATA@ETH", + "DCN@ETH", + "DENT@ETH", + "DGD@ETH", + "DGTX@ETH", + "DLT@ETH", + "DNT@ETH", + "DOCK@ETH", + "DUSK@ETH", + "EDG@ETH", + "ELEC@ETH", + "ELF@ETH", + "ENG@ETH", + "ENJ@ETH", + "EURS@ETH", + "EVX@ETH", + "EXP@ETH", + "FCT@ETH", + "FOTA@ETH", + "FTM@ETH", + "FUEL@ETH", + "GAME@ETH", + "GNO@ETH", + "GNT@ETH", + "GTO@ETH", + "GUP@ETH", + "GVT@ETH", + "HMQ@ETH", + "HOT@ETH", + "HT@ETH", + "KCASH@ETH", + "KNC@ETH", + "LEND@ETH", + "LET@ETH", + "LIFE@ETH", + "LINK@ETH", + "LOOM@ETH", + "LRC@ETH", + "LUN@ETH", + "MANA@ETH", + "MATIC@ETH", + "MCO@ETH", + "MDA@ETH", + "MDT@ETH", + "MFT@ETH", + "MITH@ETH", + "MKR@ETH", + "MLN@ETH", + "MOF@ETH", + "MTH@ETH", + "MTL@ETH", + "MYST@ETH", + "NCASH@ETH", + "NEXO@ETH", + "NGC@ETH", + "NMR@ETH", + "NPXS@ETH", + "OAX@ETH", + "OMG@ETH", + "OST@ETH", + "PAY@ETH", + "PLR@ETH", + "PMA@ETH", + "POE@ETH", + "POLY@ETH", + "POWR@ETH", + "PPC@ETH", + "PPT@ETH", + "PRE@ETH", + "PTOY@ETH", + "QSP@ETH", + "RCN@ETH", + "RDN@ETH", + "REN@ETH", + "REP@ETH", + "REQ@ETH", + "RFR@ETH", + "RLC@ETH", + "SALT@ETH", + "SNC@ETH", + "SNGLS@ETH", + "SNM@ETH", + "SNT@ETH", + "SOC@ETH", + "SRN@ETH", + "STORJ@ETH", + "STX@ETH", + "SUB@ETH", + "SWT@ETH", + "TAU@ETH", + "TEL@ETH", + "TIME@ETH", + "TKN@ETH", + "TNB@ETH", + "TNT@ETH", + "TRST@ETH", + "UNI@ETH", + "UTK@ETH", + "VEE@ETH", + "VIB@ETH", + "VIBE@ETH", + "WABI@ETH", + "WINGS@ETH", + "WPR@ETH", + "WTC@ETH", + "XBP@ETH", + "XUC@ETH", + "ZAP@ETH", + "ZRX@ETH", + "USDT@MATIC", + "USDC@MATIC", +]; + +export type CryptoSymbol = typeof cryptoSymbols[number]; + // buy types export type BuyTradeFinalStatus = @@ -69,14 +286,14 @@ export interface BuyProviderInfo { logo: string; // simplex-icon.jpg isActive: boolean; isDisabled?: boolean; - tradedCoins: string[]; // ['BTC', 'BCH', 'LTC', 'XRP', 'ETH'] + tradedCoins: CryptoSymbol[]; // ['BTC', 'BCH', 'LTC', 'XRP', 'ETH'] tradedFiatCurrencies: string[]; // ['EUR', 'USD'] disabledCurrencies?: string[]; supportedCountries: string[]; // ['BTC', 'USD'] disabledCountries?: string[]; paymentMethods: BuyCryptoPaymentMethod[]; - statusUrl: string; // https://payment-status.simplex.com/api/v1/user/payments?uuid={{paymentId}} - supportUrl: string; // https://www.simplex.com/support/ + statusUrl?: string; // https://payment-status.simplex.com/api/v1/user/payments?uuid={{paymentId}} + supportUrl?: string; // https://www.simplex.com/support/ pendingTimeoutSeconds?: number; // Time until a SUBMITTED transaction automatically changes to APPROVAL_PENDING. Null means it does not change. } @@ -93,7 +310,7 @@ export interface BuyTradeQuoteRequest { cryptoAmount?: number | undefined; // 0.3 - requested amount in crypto currency - DEPRECATED, used only for TREZOR cryptoStringAmount?: string | undefined; // 0.3 - requested amount in crypto currency fiatCurrency: string; // USD - receiveCurrency: string; // BTC + receiveCurrency: CryptoSymbol; // BTC country?: string | undefined; paymentMethod?: BuyCryptoPaymentMethod | undefined; } @@ -104,7 +321,7 @@ export interface BuyTrade { fiatAmount?: number | undefined; // 1000 - DEPRECATED, used only for TREZOR fiatStringAmount?: string | undefined; // 1000 - will pay fiat amount fiatCurrency?: string | undefined; // EUR - receiveCurrency?: string | undefined; // BTC + receiveCurrency?: CryptoSymbol | undefined; // BTC receiveAmount?: number | undefined; // 0.12345 - DEPRECATED, used only for TREZOR receiveStringAmount?: string | undefined; // 0.12345 receiveAddress?: string | undefined; // users address for receive tx @@ -366,7 +583,7 @@ export interface SellProviderInfo { logo: string; // simplex-icon.jpg type: SellProviderType; isActive: boolean; - tradedCoins: string[]; // ['BTC', 'BCH', 'LTC', 'XRP', 'ETH'] + tradedCoins: CryptoSymbol[]; // ['BTC', 'BCH', 'LTC', 'XRP', 'ETH'] tradedFiatCurrencies?: string[] | undefined; // ['EUR', 'USD'] supportedCountries: string[]; // ['AT', 'BE'] statusUrl?: string | undefined; // https://payment-status.simplex.com/api/v1/user/payments?uuid={{paymentId}} @@ -393,7 +610,7 @@ export interface SellFiatTradeQuoteRequest { fiatStringAmount?: string | undefined; // 1000 - will pay fiat amount fiatCurrency: string; // USD cryptoStringAmount?: string | undefined; // 0.3 - requested amount in crypto currency - cryptoCurrency: string; // BTC + cryptoCurrency: CryptoSymbol; // BTC country?: string | undefined; paymentMethod?: SellCryptoPaymentMethod | undefined; flows?: SellFiatFlowType[] | undefined; @@ -405,7 +622,7 @@ export interface SellFiatTrade { amountInCrypto?: boolean | undefined; // true for cryptoAmount, false for fiatAmount fiatStringAmount?: string | undefined; // 1000 fiatCurrency?: string | undefined; // EUR - cryptoCurrency?: string | undefined; // BTC + cryptoCurrency?: CryptoSymbol | undefined; // BTC cryptoStringAmount?: string | undefined; // 0.12345 rate?: number | undefined; // 100 quoteId?: string | undefined; // ID of the quote assigned by exchange @@ -442,7 +659,7 @@ export interface SellFiatTrade { } export interface SellVoucherTradeQuoteRequest { - cryptoCurrency?: string | undefined; // BTC + cryptoCurrency?: CryptoSymbol | undefined; // BTC language?: string | undefined; // en country?: string | undefined; // cz refundAddress?: string | undefined; // crypto address to which sent crypto currency to sell @@ -453,7 +670,7 @@ export interface SellVoucherTrade { error?: string | undefined; // something went wrong exchange?: string | undefined; // which exchange this trade belongs to, used for discrimination in ExchangeService status?: SellTradeStatus | undefined; // state of trade after request trade - cryptoCurrency?: string | undefined; // BTC + cryptoCurrency?: CryptoSymbol | undefined; // BTC cryptoAmount?: number | undefined; // 0.12345 destinationAddress?: string | undefined; // crypto address to which sent crypto currency to sell paymentId?: string | undefined; // ID of the order assigned by us @@ -461,7 +678,7 @@ export interface SellVoucherTrade { export interface SellVoucherTradeRequest { exchange: string; // which exchange this trade belongs to, used for discrimination in ExchangeService - cryptoCurrency: string; + cryptoCurrency: CryptoSymbol; data: any; // data returned by post message } diff --git a/types/invity-api/tslint.json b/types/invity-api/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/invity-api/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ion-rangeslider/tslint.json b/types/ion-rangeslider/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ion-rangeslider/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ion-rangeslider/v1/tslint.json b/types/ion-rangeslider/v1/tslint.json deleted file mode 100644 index f2ff9738dea0ef..00000000000000 --- a/types/ion-rangeslider/v1/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/iopipe__iopipe/tslint.json b/types/iopipe__iopipe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iopipe__iopipe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ioredis-mock/tslint.json b/types/ioredis-mock/tslint.json deleted file mode 100644 index c8d0f806bc040a..00000000000000 --- a/types/ioredis-mock/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false, - "npm-naming": [ - true, - { - "mode": "code", - "errors": [["NeedsExportEquals", false]] - } - ] - } -} diff --git a/types/iost-contract/tslint.json b/types/iost-contract/tslint.json deleted file mode 100755 index 794cb4bf3e0782..00000000000000 --- a/types/iost-contract/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iota.lib.js/tslint.json b/types/iota.lib.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iota.lib.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ip-packet/tslint.json b/types/ip-packet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ip-packet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ip-subnet-calculator/tslint.json b/types/ip-subnet-calculator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ip-subnet-calculator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ip-to-int/tslint.json b/types/ip-to-int/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ip-to-int/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ip/tslint.json b/types/ip/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ip/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ip1sms__is-disposable-phone-number/tslint.json b/types/ip1sms__is-disposable-phone-number/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ip1sms__is-disposable-phone-number/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ip6addr/tslint.json b/types/ip6addr/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ip6addr/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ipaiva/.eslintrc.json b/types/ipaiva/.eslintrc.json index 29cc182748ad3d..418413730f541f 100644 --- a/types/ipaiva/.eslintrc.json +++ b/types/ipaiva/.eslintrc.json @@ -4,6 +4,7 @@ "@definitelytyped/no-declare-current-package": "off", "@definitelytyped/strict-export-declare-modifiers": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-invalid-void-type": "off" diff --git a/types/ipaiva/tslint.json b/types/ipaiva/tslint.json deleted file mode 100644 index bd31dc6ec0f5be..00000000000000 --- a/types/ipaiva/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-irregular-whitespace": false, - "no-redundant-undefined": false, - "no-unnecessary-class": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/ipcheck/tslint.json b/types/ipcheck/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/ipcheck/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/ipp-printer/tslint.json b/types/ipp-printer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ipp-printer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ipp/tslint.json b/types/ipp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ipp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iput/index.d.ts b/types/iput/index.d.ts index 5dee533a2f68f7..aa6ffe79669599 100644 --- a/types/iput/index.d.ts +++ b/types/iput/index.d.ts @@ -14,5 +14,5 @@ export default class IPut extends React.Component { handleChange(e: React.ChangeEvent, i: number): void; handleKeyDown(e: React.KeyboardEvent, i: number): void; handlePaste(e: React.ClipboardEvent, i: number): void; - render(): JSX.Element; + render(): React.JSX.Element; } diff --git a/types/iput/tslint.json b/types/iput/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iput/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ipv4-peers/tslint.json b/types/ipv4-peers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ipv4-peers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/irc/tslint.json b/types/irc/tslint.json deleted file mode 100644 index 56865bb764087d..00000000000000 --- a/types/irc/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-mergeable-namespace": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/iri/tslint.json b/types/iri/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iri/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iron/tslint.json b/types/iron/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/iron/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/is-absolute/tslint.json b/types/is-absolute/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-absolute/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-arguments/tslint.json b/types/is-arguments/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-arguments/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-array/tslint.json b/types/is-array/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-array/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-async-function/tslint.json b/types/is-async-function/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-async-function/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-base64/tslint.json b/types/is-base64/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-base64/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-bigint/tslint.json b/types/is-bigint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-bigint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-blank/tslint.json b/types/is-blank/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-blank/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-boolean-object/tslint.json b/types/is-boolean-object/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-boolean-object/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-buffer/tslint.json b/types/is-buffer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-buffer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-callable/tslint.json b/types/is-callable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-callable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-charging/tslint.json b/types/is-charging/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-charging/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-ci/tslint.json b/types/is-ci/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-ci/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-color/tslint.json b/types/is-color/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-color/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-core-module/tslint.json b/types/is-core-module/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-core-module/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-data-descriptor/tslint.json b/types/is-data-descriptor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-data-descriptor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-date-object/tslint.json b/types/is-date-object/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/is-date-object/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/is-dom/tslint.json b/types/is-dom/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-dom/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-domain-name/tslint.json b/types/is-domain-name/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-domain-name/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-dotdir/tslint.json b/types/is-dotdir/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-dotdir/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-dotfile/tslint.json b/types/is-dotfile/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-dotfile/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-electron-renderer/tslint.json b/types/is-electron-renderer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-electron-renderer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-email/tslint.json b/types/is-email/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-email/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-empty-object/tslint.json b/types/is-empty-object/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-empty-object/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-empty/tslint.json b/types/is-empty/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-empty/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-even/tslint.json b/types/is-even/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-even/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-expression/.npmignore b/types/is-expression/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/is-expression/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/is-expression/index.d.ts b/types/is-expression/index.d.ts new file mode 100644 index 00000000000000..b26cb5b12f3724 --- /dev/null +++ b/types/is-expression/index.d.ts @@ -0,0 +1,26 @@ +import acorn = require("acorn"); + +type Options = acorn.Options & { + /** + * Throw an error if the string is not an expression. + * The error can be an Acorn error, with location information in `err.loc` and `err.pos`. Defaults to `false`. + */ + throw: boolean; + /** + * Use strict mode when trying to parse the string. Defaults to `false`. + * Even if this option is `false`, if you have provided `options.sourceType === 'module'` + * which imples strict mode under ES2015, strict mode will be used. + */ + strict: boolean; + /** + * When `true`, allows line comments in the expression. Defaults to `false` for safety. + */ + lineComment: boolean; +}; + +/** + * Validates a string as a JavaScript expression. + */ +declare function isExpression(src: string, options?: Partial): boolean; + +export = isExpression; diff --git a/types/is-expression/is-expression-tests.ts b/types/is-expression/is-expression-tests.ts new file mode 100644 index 00000000000000..824ea57f748fbd --- /dev/null +++ b/types/is-expression/is-expression-tests.ts @@ -0,0 +1,25 @@ +import isExpression = require("is-expression"); + +// $ExpectType boolean +isExpression("myVar"); + +// $ExpectType boolean +isExpression("[\"an\", \"array\", \"'s\"].indexOf(\"index\")"); + +// $ExpectType boolean +isExpression("var", { throw: true }); + +// $ExpectType boolean +isExpression("public", { strict: true }); + +// $ExpectType boolean +isExpression("abc // my comment", { lineComment: true }); + +// $ExpectType boolean +isExpression("abc // my comment", { lineComment: true, strict: true, sourceFile: "myFile.js" }); + +// @ts-expect-error +isExpression(123); + +// @ts-expect-error +isExpression("myVar", { throw: 123 }); diff --git a/types/is-expression/package.json b/types/is-expression/package.json new file mode 100644 index 00000000000000..883bb178d5c3e1 --- /dev/null +++ b/types/is-expression/package.json @@ -0,0 +1,20 @@ +{ + "private": true, + "name": "@types/is-expression", + "version": "4.0.9999", + "projects": [ + "https://github.com/pugjs/is-expression#readme" + ], + "dependencies": { + "acorn": "7.1.1" + }, + "devDependencies": { + "@types/is-expression": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/is-expression/tsconfig.json b/types/is-expression/tsconfig.json new file mode 100644 index 00000000000000..dd2860a9588231 --- /dev/null +++ b/types/is-expression/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "is-expression-tests.ts" + ] +} diff --git a/types/is-extglob/.npmignore b/types/is-extglob/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/is-extglob/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/is-extglob/index.d.ts b/types/is-extglob/index.d.ts new file mode 100644 index 00000000000000..c981d222eee654 --- /dev/null +++ b/types/is-extglob/index.d.ts @@ -0,0 +1,3 @@ +declare function isExtglob(glob: string): boolean; + +export = isExtglob; diff --git a/types/is-extglob/is-extglob-tests.ts b/types/is-extglob/is-extglob-tests.ts new file mode 100644 index 00000000000000..1e0a79a920345a --- /dev/null +++ b/types/is-extglob/is-extglob-tests.ts @@ -0,0 +1,13 @@ +import isExtglob = require("is-extglob"); + +// $ExpectType boolean +isExtglob("!(foo)"); + +// $ExpectType boolean +isExtglob("?(foo)"); + +// @ts-expect-error +isExtglob(1); + +// @ts-expect-error +isExtglob(null); diff --git a/types/is-extglob/package.json b/types/is-extglob/package.json new file mode 100644 index 00000000000000..7906afc5d7e6f9 --- /dev/null +++ b/types/is-extglob/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/is-extglob", + "version": "2.1.9999", + "projects": [ + "https://github.com/jonschlinkert/is-extglob" + ], + "devDependencies": { + "@types/is-extglob": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/is-extglob/tsconfig.json b/types/is-extglob/tsconfig.json new file mode 100644 index 00000000000000..919d4750641c81 --- /dev/null +++ b/types/is-extglob/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "is-extglob-tests.ts" + ] +} diff --git a/types/is-file-esm/tslint.json b/types/is-file-esm/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-file-esm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-finite/tslint.json b/types/is-finite/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-finite/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-firefox/tslint.json b/types/is-firefox/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-firefox/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-function/tslint.json b/types/is-function/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-function/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-generator-function/tslint.json b/types/is-generator-function/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-generator-function/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-generator/tslint.json b/types/is-generator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-generator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-gif/tslint.json b/types/is-gif/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-gif/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-git-clean/tslint.json b/types/is-git-clean/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-git-clean/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-git-url/tslint.json b/types/is-git-url/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-git-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-github-url/tslint.json b/types/is-github-url/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-github-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-glob/tslint.json b/types/is-glob/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-glob/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-gzip/tslint.json b/types/is-gzip/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-gzip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-hotkey/tslint.json b/types/is-hotkey/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-hotkey/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-html/tslint.json b/types/is-html/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-html/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-http-url/tslint.json b/types/is-http-url/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-http-url/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-integer/tslint.json b/types/is-integer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-integer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-iterable/tslint.json b/types/is-iterable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-iterable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-lambda/tslint.json b/types/is-lambda/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-lambda/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-map/index.d.ts b/types/is-map/index.d.ts index 8b4d450486d449..d5378ae1c4f9d3 100644 --- a/types/is-map/index.d.ts +++ b/types/is-map/index.d.ts @@ -1,3 +1,3 @@ -declare function isMap(value: unknown): boolean; +declare function isMap(value: unknown): value is Map; export = isMap; diff --git a/types/is-map/is-map-tests.ts b/types/is-map/is-map-tests.ts index 343864d30985f1..e1c915ec502c66 100644 --- a/types/is-map/is-map-tests.ts +++ b/types/is-map/is-map-tests.ts @@ -1,6 +1,34 @@ import isMap = require("is-map"); -const tests = () => { - !isMap(new Set()); - isMap(Symbol("foo")); -}; +// $ExpectType boolean +isMap(new Map()); + +// $ExpectType boolean +isMap(new WeakMap()); + +// $ExpectType boolean +isMap(new Set()); + +const x: unknown = new Map(); + +if (isMap(x)) { + // $ExpectType Map + x; + + x.set(1, 1); +} + +const y = new Map(); + +if (isMap(y)) { + // $ExpectType Map + y; + + y.delete(1); +} else { + // $ExpectType never + y; + + // @ts-expect-error + y.delete(1); +} diff --git a/types/is-map/package.json b/types/is-map/package.json index c5fc4b9dab5356..db6349c40bb68f 100644 --- a/types/is-map/package.json +++ b/types/is-map/package.json @@ -12,6 +12,10 @@ { "name": "Ankan Bhattacharya", "githubUsername": "Ankan002" + }, + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" } ] } diff --git a/types/is-map/tslint.json b/types/is-map/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-map/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-natural-number/tslint.json b/types/is-natural-number/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-natural-number/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-negated-glob/tslint.json b/types/is-negated-glob/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-negated-glob/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-negative-zero/.npmignore b/types/is-negative-zero/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/is-negative-zero/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/is-negative-zero/index.d.ts b/types/is-negative-zero/index.d.ts new file mode 100644 index 00000000000000..ac12222da666f4 --- /dev/null +++ b/types/is-negative-zero/index.d.ts @@ -0,0 +1,3 @@ +declare function isNegativeZero(value: T): T extends number ? boolean : false; + +export = isNegativeZero; diff --git a/types/is-negative-zero/is-negative-zero-tests.ts b/types/is-negative-zero/is-negative-zero-tests.ts new file mode 100644 index 00000000000000..db8f40476a5c7d --- /dev/null +++ b/types/is-negative-zero/is-negative-zero-tests.ts @@ -0,0 +1,13 @@ +import isNegativeZero = require("is-negative-zero"); + +// $ExpectType boolean +isNegativeZero(-0); + +// $ExpectType boolean +isNegativeZero(0); + +// $ExpectType false +isNegativeZero(Symbol()); + +// $ExpectType false +isNegativeZero("0"); diff --git a/types/is-negative-zero/package.json b/types/is-negative-zero/package.json new file mode 100644 index 00000000000000..e53e5f25443ddc --- /dev/null +++ b/types/is-negative-zero/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/is-negative-zero", + "version": "2.0.9999", + "projects": [ + "https://github.com/inspect-js/is-negative-zero" + ], + "devDependencies": { + "@types/is-negative-zero": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/is-negative-zero/tsconfig.json b/types/is-negative-zero/tsconfig.json new file mode 100644 index 00000000000000..1c4b360f6371da --- /dev/null +++ b/types/is-negative-zero/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "is-negative-zero-tests.ts" + ] +} diff --git a/types/is-number-like/tslint.json b/types/is-number-like/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-number-like/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-number/tslint.json b/types/is-number/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-number/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-object/tslint.json b/types/is-object/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-object/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-odd/tslint.json b/types/is-odd/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/is-odd/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/is-piped/tslint.json b/types/is-piped/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-piped/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-posix-bracket/tslint.json b/types/is-posix-bracket/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-posix-bracket/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-pr/tslint.json b/types/is-pr/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-pr/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-regex/tslint.json b/types/is-regex/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-regex/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-relative-path/tslint.json b/types/is-relative-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-relative-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-relative/tslint.json b/types/is-relative/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-relative/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-running/tslint.json b/types/is-running/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/is-running/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/is-secret/tslint.json b/types/is-secret/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-secret/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-semver/tslint.json b/types/is-semver/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-semver/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-set/.npmignore b/types/is-set/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/is-set/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/is-set/index.d.ts b/types/is-set/index.d.ts new file mode 100644 index 00000000000000..5a1095467a0861 --- /dev/null +++ b/types/is-set/index.d.ts @@ -0,0 +1,3 @@ +declare function isSet(value: unknown): value is Set; + +export = isSet; diff --git a/types/is-set/is-set-tests.ts b/types/is-set/is-set-tests.ts new file mode 100644 index 00000000000000..b16b4769fea1fe --- /dev/null +++ b/types/is-set/is-set-tests.ts @@ -0,0 +1,43 @@ +import isSet = require("is-set"); + +// $ExpectType boolean +isSet(new Set()); + +// $ExpectType boolean +isSet(new WeakSet()); + +// $ExpectType boolean +isSet(new Map()); + +// $ExpectType boolean +isSet(Symbol()); + +// $ExpectType boolean +isSet(1); + +const x: unknown = new Set(); + +if (isSet(x)) { + // $ExpectType Set + x; + + x.add(1); +} else { + // $ExpectType unknown + x; +} + +const y = new Set(); + +if (isSet(y)) { + // $ExpectType Set + y; + + y.delete(1); +} else { + // $ExpectType never + y; + + // @ts-expect-error + y.delete(1); +} diff --git a/types/is-set/package.json b/types/is-set/package.json new file mode 100644 index 00000000000000..cbf4e31c9c30ae --- /dev/null +++ b/types/is-set/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/is-set", + "version": "2.0.9999", + "projects": [ + "https://github.com/inspect-js/is-set#readme" + ], + "devDependencies": { + "@types/is-set": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/is-set/tsconfig.json b/types/is-set/tsconfig.json new file mode 100644 index 00000000000000..a71219cf66cd0a --- /dev/null +++ b/types/is-set/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "is-set-tests.ts" + ] +} diff --git a/types/is-ssh/tslint.json b/types/is-ssh/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-ssh/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-string/tslint.json b/types/is-string/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-string/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-symbol/tslint.json b/types/is-symbol/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-symbol/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-touch-device/tslint.json b/types/is-touch-device/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-touch-device/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-trademarked/tslint.json b/types/is-trademarked/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-trademarked/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-typedarray/tslint.json b/types/is-typedarray/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-typedarray/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-unc-path/tslint.json b/types/is-unc-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-unc-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-uri/tslint.json b/types/is-uri/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-uri/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-url/tslint.json b/types/is-url/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/is-url/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/is-utf8/tslint.json b/types/is-utf8/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-utf8/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-uuid/tslint.json b/types/is-uuid/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-uuid/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-valid-domain/tslint.json b/types/is-valid-domain/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-valid-domain/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-valid-glob/tslint.json b/types/is-valid-glob/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-valid-glob/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-valid-path/tslint.json b/types/is-valid-path/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-valid-path/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-valid-zipcode/tslint.json b/types/is-valid-zipcode/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-valid-zipcode/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is-weakref/.npmignore b/types/is-weakref/.npmignore new file mode 100644 index 00000000000000..93e307400a5456 --- /dev/null +++ b/types/is-weakref/.npmignore @@ -0,0 +1,5 @@ +* +!**/*.d.ts +!**/*.d.cts +!**/*.d.mts +!**/*.d.*.ts diff --git a/types/is-weakref/index.d.ts b/types/is-weakref/index.d.ts new file mode 100644 index 00000000000000..621e7d715f0463 --- /dev/null +++ b/types/is-weakref/index.d.ts @@ -0,0 +1,3 @@ +declare function isWeakRef(value: unknown): value is WeakRef; + +export = isWeakRef; diff --git a/types/is-weakref/is-weakref-tests.ts b/types/is-weakref/is-weakref-tests.ts new file mode 100644 index 00000000000000..d03d085996a1e8 --- /dev/null +++ b/types/is-weakref/is-weakref-tests.ts @@ -0,0 +1,34 @@ +import isWeakRef = require("is-weakref"); + +// $ExpectType boolean +isWeakRef(new WeakRef({})); + +// $ExpectType boolean +isWeakRef({}); + +// $ExpectType boolean +isWeakRef("foo"); + +const weakRef = new WeakRef({}); + +if (isWeakRef(weakRef)) { + // $ExpectType WeakRef<{}> + weakRef; + + weakRef.deref(); +} else { + // $ExpectType never + weakRef; +} + +const x: unknown = new WeakRef({}); + +if (isWeakRef(x)) { + // $ExpectType WeakRef + x; + + x.deref(); +} else { + // $ExpectType unknown + x; +} diff --git a/types/is-weakref/package.json b/types/is-weakref/package.json new file mode 100644 index 00000000000000..9023fa5dc5c5b4 --- /dev/null +++ b/types/is-weakref/package.json @@ -0,0 +1,17 @@ +{ + "private": true, + "name": "@types/is-weakref", + "version": "1.0.9999", + "projects": [ + "https://github.com/inspect-js/is-weakref#readme" + ], + "devDependencies": { + "@types/is-weakref": "workspace:." + }, + "owners": [ + { + "name": "Tristan F.", + "githubUsername": "LeoDog896" + } + ] +} diff --git a/types/is-weakref/tsconfig.json b/types/is-weakref/tsconfig.json new file mode 100644 index 00000000000000..598f567a8503cd --- /dev/null +++ b/types/is-weakref/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "ES2021" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "is-weakref-tests.ts" + ] +} diff --git a/types/is-windows/tslint.json b/types/is-windows/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/is-windows/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/is/tslint.json b/types/is/tslint.json deleted file mode 100644 index 206c5ac9b1af99..00000000000000 --- a/types/is/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/isaac/tslint.json b/types/isaac/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/isaac/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/isarray/tslint.json b/types/isarray/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/isarray/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/isbn-utils/tslint.json b/types/isbn-utils/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/isbn-utils/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/iscroll/tslint.json b/types/iscroll/tslint.json deleted file mode 100644 index df8d7b0394fb11..00000000000000 --- a/types/iscroll/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/iscroll/v4/tslint.json b/types/iscroll/v4/tslint.json deleted file mode 100644 index 5969b866225fc8..00000000000000 --- a/types/iscroll/v4/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/isexe/tslint.json b/types/isexe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/isexe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iso-3166-1-alpha-2/tslint.json b/types/iso-3166-1-alpha-2/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iso-3166-1-alpha-2/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iso-3166-2/tslint.json b/types/iso-3166-2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/iso-3166-2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/iso8601-localizer/tslint.json b/types/iso8601-localizer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/iso8601-localizer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/isomorphic-fetch/tslint.json b/types/isomorphic-fetch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/isomorphic-fetch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/isomorphic-form-data/tslint.json b/types/isomorphic-form-data/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/isomorphic-form-data/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/isomorphic-git__lightning-fs/tslint.json b/types/isomorphic-git__lightning-fs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/isomorphic-git__lightning-fs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/isotope-layout/tslint.json b/types/isotope-layout/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/isotope-layout/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/isstream/tslint.json b/types/isstream/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/isstream/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/issue-parser/tslint.json b/types/issue-parser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/issue-parser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/istanbul-lib-coverage/tslint.json b/types/istanbul-lib-coverage/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/istanbul-lib-coverage/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/istanbul-lib-hook/tslint.json b/types/istanbul-lib-hook/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/istanbul-lib-hook/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/istanbul-lib-instrument/tslint.json b/types/istanbul-lib-instrument/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/istanbul-lib-instrument/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/istanbul-lib-report/tslint.json b/types/istanbul-lib-report/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/istanbul-lib-report/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/istanbul-lib-source-maps/tslint.json b/types/istanbul-lib-source-maps/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/istanbul-lib-source-maps/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/istanbul-middleware/tslint.json b/types/istanbul-middleware/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/istanbul-middleware/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/istanbul-reports/tslint.json b/types/istanbul-reports/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/istanbul-reports/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/istanbul/tslint.json b/types/istanbul/tslint.json deleted file mode 100644 index 5e7685e40dfeba..00000000000000 --- a/types/istanbul/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/istanbuljs__nyc-config-babel/tslint.json b/types/istanbuljs__nyc-config-babel/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/istanbuljs__nyc-config-babel/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/istextorbinary/tslint.json b/types/istextorbinary/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/istextorbinary/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/itemsjs/tslint.json b/types/itemsjs/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/itemsjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iterate-iterator/tslint.json b/types/iterate-iterator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iterate-iterator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iterate-object/tslint.json b/types/iterate-object/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iterate-object/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iterate-value/tslint.json b/types/iterate-value/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iterate-value/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/itowns/tslint.json b/types/itowns/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/itowns/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/itty-router-extras/tslint.json b/types/itty-router-extras/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/itty-router-extras/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/itunesconnectanalytics/tslint.json b/types/itunesconnectanalytics/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/itunesconnectanalytics/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ityped/tslint.json b/types/ityped/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/ityped/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/iv-viewer/tslint.json b/types/iv-viewer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/iv-viewer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/ix.js/.eslintrc.json b/types/ix.js/.eslintrc.json index 49ac402f5e72db..88d74ae6b73c50 100644 --- a/types/ix.js/.eslintrc.json +++ b/types/ix.js/.eslintrc.json @@ -4,6 +4,7 @@ "@definitelytyped/no-unnecessary-generics": "off", "@definitelytyped/strict-export-declare-modifiers": "off", "@definitelytyped/no-single-declare-module": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/adjacent-overload-signatures": "off", "@typescript-eslint/no-empty-interface": "off" } diff --git a/types/ix.js/tslint.json b/types/ix.js/tslint.json deleted file mode 100644 index 3874145001efae..00000000000000 --- a/types/ix.js/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-template": false, - "triple-equals": false - } -} diff --git a/types/jabber/tslint.json b/types/jabber/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jabber/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jackrabbit/tslint.json b/types/jackrabbit/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/jackrabbit/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/jade/tslint.json b/types/jade/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jade/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jaeger-client/tslint.json b/types/jaeger-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jaeger-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jake/tslint.json b/types/jake/tslint.json deleted file mode 100644 index 6ec2a7dbc64d72..00000000000000 --- a/types/jake/tslint.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "no-var-requires": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jalaali-js/tslint.json b/types/jalaali-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jalaali-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/japan-postal-code/tslint.json b/types/japan-postal-code/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/japan-postal-code/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/japanese-characters/tslint.json b/types/japanese-characters/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/japanese-characters/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/japanese-holidays/tslint.json b/types/japanese-holidays/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/japanese-holidays/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jaro-winkler/tslint.json b/types/jaro-winkler/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jaro-winkler/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jasmine-ajax/tslint.json b/types/jasmine-ajax/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/jasmine-ajax/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/jasmine-data-provider/tslint.json b/types/jasmine-data-provider/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jasmine-data-provider/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jasmine-data_driven_tests/tslint.json b/types/jasmine-data_driven_tests/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jasmine-data_driven_tests/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jasmine-enzyme/index.d.ts b/types/jasmine-enzyme/index.d.ts index 48a6b29decd718..d46f84988019b6 100644 --- a/types/jasmine-enzyme/index.d.ts +++ b/types/jasmine-enzyme/index.d.ts @@ -13,7 +13,7 @@ declare global { toContainMatchingElement(selector: string): void; toContainMatchingElements(num: number, selector: string): void; toContainExactlyOneMatchingElement(selector: string): void; - toContainReact(reactInstance: JSX.Element): void; + toContainReact(reactInstance: React.JSX.Element): void; toExist(): void; toHaveClassName(className: string): void; toHaveDisplayName(tagName: string): void; @@ -26,7 +26,7 @@ declare global { toHaveText(text?: string): void; toIncludeText(text: string): void; toHaveValue(value: any): void; - toMatchElement(reactInstance: JSX.Element): void; + toMatchElement(reactInstance: React.JSX.Element): void; toMatchSelector(selector: string): void; } } diff --git a/types/jasmine-enzyme/tslint.json b/types/jasmine-enzyme/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jasmine-enzyme/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jasmine-es6-promise-matchers/tslint.json b/types/jasmine-es6-promise-matchers/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/jasmine-es6-promise-matchers/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jasmine-expect-jsx/tslint.json b/types/jasmine-expect-jsx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jasmine-expect-jsx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jasmine-fixture/tslint.json b/types/jasmine-fixture/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jasmine-fixture/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jasmine-given/tslint.json b/types/jasmine-given/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jasmine-given/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jasmine-jquery/.eslintrc.json b/types/jasmine-jquery/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jasmine-jquery/.eslintrc.json +++ b/types/jasmine-jquery/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jasmine-jquery/tslint.json b/types/jasmine-jquery/tslint.json deleted file mode 100644 index 0a4a398d93603d..00000000000000 --- a/types/jasmine-jquery/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/jasmine-matchers/tslint.json b/types/jasmine-matchers/tslint.json deleted file mode 100644 index 3874b9f86e0b53..00000000000000 --- a/types/jasmine-matchers/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jasmine-promise-matchers/tslint.json b/types/jasmine-promise-matchers/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/jasmine-promise-matchers/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jasmine-reporters/tslint.json b/types/jasmine-reporters/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jasmine-reporters/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jasmine/tslint.json b/types/jasmine/tslint.json deleted file mode 100644 index 7da1ed8d4b1fd5..00000000000000 --- a/types/jasmine/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "await-promise": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false - } -} diff --git a/types/jasmine/v1/tslint.json b/types/jasmine/v1/tslint.json deleted file mode 100644 index 6093f987bb2a77..00000000000000 --- a/types/jasmine/v1/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "file-name-casing": [ - true, - "kebab-case" - ], - "no-unnecessary-type-assertion": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jasmine/v2/tslint.json b/types/jasmine/v2/tslint.json deleted file mode 100644 index c35f27052bfd95..00000000000000 --- a/types/jasmine/v2/tslint.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "arrow-return-shorthand": false, - "file-name-casing": [ - true, - "kebab-case" - ], - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "no-void-expression": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jasmine/v3/tslint.json b/types/jasmine/v3/tslint.json deleted file mode 100644 index 7da1ed8d4b1fd5..00000000000000 --- a/types/jasmine/v3/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "await-promise": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false - } -} diff --git a/types/jasmine/v4/tslint.json b/types/jasmine/v4/tslint.json deleted file mode 100644 index 7da1ed8d4b1fd5..00000000000000 --- a/types/jasmine/v4/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "await-promise": false, - "no-var-keyword": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false - } -} diff --git a/types/jasmine_dom_matchers/tslint.json b/types/jasmine_dom_matchers/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jasmine_dom_matchers/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jasminewd2/tslint.json b/types/jasminewd2/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/jasminewd2/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/java-applet/.eslintrc.json b/types/java-applet/.eslintrc.json index 3fd6d735e5cdd0..ca09b586000420 100644 --- a/types/java-applet/.eslintrc.json +++ b/types/java-applet/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off" } diff --git a/types/java-applet/tslint.json b/types/java-applet/tslint.json deleted file mode 100644 index 352822772455e6..00000000000000 --- a/types/java-applet/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/java/tslint.json b/types/java/tslint.json deleted file mode 100644 index f7eeea0e56d4e1..00000000000000 --- a/types/java/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/javascript-astar/tslint.json b/types/javascript-astar/tslint.json deleted file mode 100644 index 6000ad5ea2a112..00000000000000 --- a/types/javascript-astar/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/javascript-bignum/.eslintrc.json b/types/javascript-bignum/.eslintrc.json index ac0f657c33df9c..80bcb245cf48b6 100644 --- a/types/javascript-bignum/.eslintrc.json +++ b/types/javascript-bignum/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/javascript-bignum/tslint.json b/types/javascript-bignum/tslint.json deleted file mode 100644 index 2656628c35a922..00000000000000 --- a/types/javascript-bignum/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "npm-naming": false - } -} diff --git a/types/javascript-color-gradient/tslint.json b/types/javascript-color-gradient/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/javascript-color-gradient/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/javascript-state-machine/tslint.json b/types/javascript-state-machine/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/javascript-state-machine/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/javascript-time-ago/tslint.json b/types/javascript-time-ago/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/javascript-time-ago/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jayrbolton__suffix-tree/tslint.json b/types/jayrbolton__suffix-tree/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jayrbolton__suffix-tree/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jbinary/tslint.json b/types/jbinary/tslint.json deleted file mode 100644 index 35d7c3f48d75f3..00000000000000 --- a/types/jbinary/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/jcanvas/tslint.json b/types/jcanvas/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jcanvas/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jcof/tslint.json b/types/jcof/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jcof/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jconv/tslint.json b/types/jconv/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jconv/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jdataview/tslint.json b/types/jdataview/tslint.json deleted file mode 100644 index ec4bfff3913795..00000000000000 --- a/types/jdataview/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jee-jsf/.eslintrc.json b/types/jee-jsf/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jee-jsf/.eslintrc.json +++ b/types/jee-jsf/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jee-jsf/tslint.json b/types/jee-jsf/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jee-jsf/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jenkins/tslint.json b/types/jenkins/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jenkins/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-axe/tslint.json b/types/jest-axe/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jest-axe/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jest-dev-server/tslint.json b/types/jest-dev-server/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-dev-server/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-environment-puppeteer/tslint.json b/types/jest-environment-puppeteer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-environment-puppeteer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-environment-vscode-extension/tslint.json b/types/jest-environment-vscode-extension/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-environment-vscode-extension/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-image-snapshot/index.d.ts b/types/jest-image-snapshot/index.d.ts index f8e993d3c280cb..1b2d7a0d05f430 100644 --- a/types/jest-image-snapshot/index.d.ts +++ b/types/jest-image-snapshot/index.d.ts @@ -9,6 +9,11 @@ export interface MatchImageSnapshotOptions { * @default false */ allowSizeMismatch?: boolean | undefined; + /** + * Sets the max number of bytes for stdout/stderr when running diff-snapshot in a child process. + * @default 10 * 1024 * 1024 (10,485,760) + */ + maxChildProcessBufferSizeInBytes?: number | undefined; /** * Custom config passed to 'pixelmatch' or 'ssim' */ diff --git a/types/jest-image-snapshot/jest-image-snapshot-tests.ts b/types/jest-image-snapshot/jest-image-snapshot-tests.ts index 40fd0e632821a2..04063e75d03c82 100644 --- a/types/jest-image-snapshot/jest-image-snapshot-tests.ts +++ b/types/jest-image-snapshot/jest-image-snapshot-tests.ts @@ -33,6 +33,7 @@ it("Should be able to use configuration directly in toMatchImageSnapshot", () => const options: MatchImageSnapshotOptions = { allowSizeMismatch: false, + maxChildProcessBufferSizeInBytes: 100 * 1024 * 1024, noColors: true, customDiffConfig: { threshold: 5, diff --git a/types/jest-image-snapshot/package.json b/types/jest-image-snapshot/package.json index 347e3110a9cb69..3f49a0683527d8 100644 --- a/types/jest-image-snapshot/package.json +++ b/types/jest-image-snapshot/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@types/jest-image-snapshot", - "version": "6.3.9999", + "version": "6.4.9999", "projects": [ "https://github.com/americanexpress/jest-image-snapshot#readme" ], diff --git a/types/jest-image-snapshot/tslint.json b/types/jest-image-snapshot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-image-snapshot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-in-case/tslint.json b/types/jest-in-case/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-in-case/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-json-schema/tslint.json b/types/jest-json-schema/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-json-schema/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-matcher-one-of/tslint.json b/types/jest-matcher-one-of/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-matcher-one-of/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-plugin-context/tslint.json b/types/jest-plugin-context/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jest-plugin-context/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jest-plugin-set/tslint.json b/types/jest-plugin-set/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jest-plugin-set/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jest-preset-stylelint/tslint.json b/types/jest-preset-stylelint/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jest-preset-stylelint/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jest-sinon/tslint.json b/types/jest-sinon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-sinon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-specific-snapshot/tslint.json b/types/jest-specific-snapshot/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-specific-snapshot/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest-when/tslint.json b/types/jest-when/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest-when/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 48710cfa08d488..d86df60c8caa05 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -563,7 +563,7 @@ declare namespace jest { /** * Sketch out which tests to write in the future. */ - todo: It; + todo: (name: string) => void; /** * Experimental and should be avoided. */ diff --git a/types/jest/jest-tests.ts b/types/jest/jest-tests.ts index 3fdfca765a9578..a4813fd4f5842a 100644 --- a/types/jest/jest-tests.ts +++ b/types/jest/jest-tests.ts @@ -148,11 +148,7 @@ it.skip("name", () => {}, 9001); it.skip("name", async () => {}, 9001); it.skip("name", (callback: jest.DoneCallback) => {}, 9001); -it.todo("name", () => {}); -it.todo("name", async () => {}); -it.todo("name", () => {}, 9001); -it.todo("name", async () => {}, 9001); -it.todo("name", (callback: jest.DoneCallback) => {}, 9001); +it.todo("name"); it.concurrent("name", () => {}); it.concurrent("name", async () => {}); @@ -186,11 +182,7 @@ fit.skip("name", () => {}, 9001); fit.skip("name", async () => {}, 9001); fit.skip("name", (callback: jest.DoneCallback) => {}, 9001); -fit.todo("name", () => {}); -fit.todo("name", async () => {}); -fit.todo("name", () => {}, 9001); -fit.todo("name", async () => {}, 9001); -fit.todo("name", (callback: jest.DoneCallback) => {}, 9001); +fit.todo("name"); fit.concurrent("name", () => {}); fit.concurrent("name", async () => {}); @@ -224,11 +216,7 @@ xit.skip("name", () => {}, 9001); xit.skip("name", async () => {}, 9001); xit.skip("name", (callback: jest.DoneCallback) => {}, 9001); -xit.todo("name", () => {}); -xit.todo("name", async () => {}); -xit.todo("name", () => {}, 9001); -xit.todo("name", async () => {}, 9001); -xit.todo("name", (callback: jest.DoneCallback) => {}, 9001); +xit.todo("name"); xit.concurrent("name", () => {}); xit.concurrent("name", async () => {}); @@ -262,11 +250,7 @@ test.skip("name", () => {}, 9001); test.skip("name", async () => {}, 9001); test.skip("name", (callback: jest.DoneCallback) => {}, 9001); -test.todo("name", () => {}); -test.todo("name", async () => {}); -test.todo("name", () => {}, 9001); -test.todo("name", async () => {}, 9001); -test.todo("name", (callback: jest.DoneCallback) => {}, 9001); +test.todo("name"); test.concurrent("name", () => {}); test.concurrent("name", async () => {}); @@ -300,11 +284,7 @@ xtest.skip("name", () => {}, 9001); xtest.skip("name", async () => {}, 9001); xtest.skip("name", (callback: jest.DoneCallback) => {}, 9001); -xtest.todo("name", () => {}); -xtest.todo("name", async () => {}); -xtest.todo("name", () => {}, 9001); -xtest.todo("name", async () => {}, 9001); -xtest.todo("name", (callback: jest.DoneCallback) => {}, 9001); +xtest.todo("name"); xtest.concurrent("name", () => {}); xtest.concurrent("name", async () => {}); diff --git a/types/jest/tslint.json b/types/jest/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jest/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jest/v16/tslint.json b/types/jest/v16/tslint.json deleted file mode 100644 index a7e2a56e1c2ed1..00000000000000 --- a/types/jest/v16/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-var-keyword": false, - "no-void-expression": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/jexcel/tslint.json b/types/jexcel/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jexcel/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jexl/tslint.json b/types/jexl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jexl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jfp/tslint.json b/types/jfp/tslint.json deleted file mode 100644 index 84daa2cfeea4ad..00000000000000 --- a/types/jfp/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-boolean-literal-compare": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/jfs/tslint.json b/types/jfs/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jfs/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jiff/tslint.json b/types/jiff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jiff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jira-client/tslint.json b/types/jira-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jira-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jira2slack/tslint.json b/types/jira2slack/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jira2slack/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jitsi-meet/tslint.json b/types/jitsi-meet/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jitsi-meet/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jju/tslint.json b/types/jju/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jju/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jjv/tslint.json b/types/jjv/tslint.json deleted file mode 100644 index f6adc4e44a837b..00000000000000 --- a/types/jjv/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jjve/tslint.json b/types/jjve/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/jjve/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jmespath/tslint.json b/types/jmespath/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jmespath/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jmuxer/tslint.json b/types/jmuxer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jmuxer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/johnny-five/tslint.json b/types/johnny-five/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/johnny-five/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/joi-phone-number/tslint.json b/types/joi-phone-number/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/joi-phone-number/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/joigoose/tslint.json b/types/joigoose/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/joigoose/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/josa/tslint.json b/types/josa/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/josa/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jotform-css.js/tslint.json b/types/jotform-css.js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jotform-css.js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jp-conversion/tslint.json b/types/jp-conversion/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jp-conversion/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jpeg-autorotate/tslint.json b/types/jpeg-autorotate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jpeg-autorotate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jpegtran-bin/tslint.json b/types/jpegtran-bin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jpegtran-bin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jpm/tslint.json b/types/jpm/tslint.json deleted file mode 100644 index e74a5a105dc203..00000000000000 --- a/types/jpm/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "prefer-const": false, - "triple-equals": false - } -} diff --git a/types/jqgrid/.eslintrc.json b/types/jqgrid/.eslintrc.json index c9780e77c3bdf5..f70fc73619a6c2 100644 --- a/types/jqgrid/.eslintrc.json +++ b/types/jqgrid/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/jqgrid/tslint.json b/types/jqgrid/tslint.json deleted file mode 100644 index 3dfe7767eda43f..00000000000000 --- a/types/jqgrid/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jqrangeslider/tslint.json b/types/jqrangeslider/tslint.json deleted file mode 100644 index c0fc129761f358..00000000000000 --- a/types/jqrangeslider/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jquery-ajax-chain/tslint.json b/types/jquery-ajax-chain/tslint.json deleted file mode 100644 index 8aa9f124c517ce..00000000000000 --- a/types/jquery-ajax-chain/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-inferrable-types": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/jquery-alertable/.eslintrc.json b/types/jquery-alertable/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery-alertable/.eslintrc.json +++ b/types/jquery-alertable/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery-alertable/tslint.json b/types/jquery-alertable/tslint.json deleted file mode 100644 index e7487530de76ea..00000000000000 --- a/types/jquery-alertable/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery-animate-scroll/tslint.json b/types/jquery-animate-scroll/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-animate-scroll/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-awesome-cursor/tslint.json b/types/jquery-awesome-cursor/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-awesome-cursor/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-backstretch/.eslintrc.json b/types/jquery-backstretch/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery-backstretch/.eslintrc.json +++ b/types/jquery-backstretch/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery-backstretch/tslint.json b/types/jquery-backstretch/tslint.json deleted file mode 100644 index 3ebfe59890f592..00000000000000 --- a/types/jquery-backstretch/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery-countdown/tslint.json b/types/jquery-countdown/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-countdown/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-countto/tslint.json b/types/jquery-countto/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-countto/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-cropbox/tslint.json b/types/jquery-cropbox/tslint.json deleted file mode 100644 index ab76de849159e1..00000000000000 --- a/types/jquery-cropbox/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false - } -} diff --git a/types/jquery-cropper/tslint.json b/types/jquery-cropper/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-cropper/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-deferred/tslint.json b/types/jquery-deferred/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-deferred/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-deparam/.eslintrc.json b/types/jquery-deparam/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery-deparam/.eslintrc.json +++ b/types/jquery-deparam/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery-deparam/tslint.json b/types/jquery-deparam/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery-deparam/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery-deserialize/tslint.json b/types/jquery-deserialize/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-deserialize/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-drawer/tslint.json b/types/jquery-drawer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-drawer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-easy-loading/tslint.json b/types/jquery-easy-loading/tslint.json deleted file mode 100644 index 94c7d46258c018..00000000000000 --- a/types/jquery-easy-loading/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false - } -} diff --git a/types/jquery-editable-select/tslint.json b/types/jquery-editable-select/tslint.json deleted file mode 100644 index 2a955c47d9939a..00000000000000 --- a/types/jquery-editable-select/tslint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - } -} diff --git a/types/jquery-focus-exit/tslint.json b/types/jquery-focus-exit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-focus-exit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-focusable/tslint.json b/types/jquery-focusable/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-focusable/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-formatdatetime/tslint.json b/types/jquery-formatdatetime/tslint.json deleted file mode 100644 index 177102d400c2e7..00000000000000 --- a/types/jquery-formatdatetime/tslint.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [ - true, - { - "errors": [ - [ - "NeedsExportEquals", - false - ] - ], - "mode": "code" - } - ] - } -} diff --git a/types/jquery-fullscreen/.eslintrc.json b/types/jquery-fullscreen/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery-fullscreen/.eslintrc.json +++ b/types/jquery-fullscreen/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery-fullscreen/tslint.json b/types/jquery-fullscreen/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/jquery-fullscreen/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jquery-galleria/.eslintrc.json b/types/jquery-galleria/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery-galleria/.eslintrc.json +++ b/types/jquery-galleria/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery-galleria/tslint.json b/types/jquery-galleria/tslint.json deleted file mode 100644 index 51e24fc8e12fdb..00000000000000 --- a/types/jquery-galleria/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery-gray/tslint.json b/types/jquery-gray/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-gray/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-handsontable/.eslintrc.json b/types/jquery-handsontable/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery-handsontable/.eslintrc.json +++ b/types/jquery-handsontable/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery-handsontable/tslint.json b/types/jquery-handsontable/tslint.json deleted file mode 100644 index 684eb1a1953bf2..00000000000000 --- a/types/jquery-handsontable/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "radix": false, - "unified-signatures": false - } -} diff --git a/types/jquery-jcrop/.eslintrc.json b/types/jquery-jcrop/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery-jcrop/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery-jcrop/tslint.json b/types/jquery-jcrop/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery-jcrop/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery-jsonrpcclient/tslint.json b/types/jquery-jsonrpcclient/tslint.json deleted file mode 100644 index 66d192c9163cf4..00000000000000 --- a/types/jquery-jsonrpcclient/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery-knob/tslint.json b/types/jquery-knob/tslint.json deleted file mode 100644 index 3b0a2cda11f082..00000000000000 --- a/types/jquery-knob/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery-lazyload/tslint.json b/types/jquery-lazyload/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-lazyload/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-loading-overlay/tslint.json b/types/jquery-loading-overlay/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-loading-overlay/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-mask-plugin/tslint.json b/types/jquery-mask-plugin/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery-mask-plugin/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery-maskmoney/tslint.json b/types/jquery-maskmoney/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-maskmoney/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-match-height/tslint.json b/types/jquery-match-height/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-match-height/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-migrate/tslint.json b/types/jquery-migrate/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-migrate/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-mockjax/tslint.json b/types/jquery-mockjax/tslint.json deleted file mode 100644 index 80d1b28d5fd240..00000000000000 --- a/types/jquery-mockjax/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "prefer-const": false - } -} diff --git a/types/jquery-monthpicker/tslint.json b/types/jquery-monthpicker/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery-monthpicker/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery-mouse-exit/tslint.json b/types/jquery-mouse-exit/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-mouse-exit/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-mousewheel/tslint.json b/types/jquery-mousewheel/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery-mousewheel/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery-next-id/tslint.json b/types/jquery-next-id/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-next-id/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-param/tslint.json b/types/jquery-param/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-param/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-slimscroll/tslint.json b/types/jquery-slimscroll/tslint.json deleted file mode 100644 index 206c5ac9b1af99..00000000000000 --- a/types/jquery-slimscroll/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/jquery-slugify/tslint.json b/types/jquery-slugify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-slugify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-sortable/tslint.json b/types/jquery-sortable/tslint.json deleted file mode 100644 index e041d24b64afc2..00000000000000 --- a/types/jquery-sortable/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jquery-steps/tslint.json b/types/jquery-steps/tslint.json deleted file mode 100644 index 54694ef12bf961..00000000000000 --- a/types/jquery-steps/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "object-literal-shorthand": false - } -} diff --git a/types/jquery-sticky/tslint.json b/types/jquery-sticky/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-sticky/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-tags-input/tslint.json b/types/jquery-tags-input/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-tags-input/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-timeentry/.eslintrc.json b/types/jquery-timeentry/.eslintrc.json index c9780e77c3bdf5..f70fc73619a6c2 100644 --- a/types/jquery-timeentry/.eslintrc.json +++ b/types/jquery-timeentry/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/jquery-timeentry/tslint.json b/types/jquery-timeentry/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/jquery-timeentry/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery-toast-plugin/tslint.json b/types/jquery-toast-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-toast-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-toastmessage-plugin/tslint.json b/types/jquery-toastmessage-plugin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery-toastmessage-plugin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery-truncate-html/.eslintrc.json b/types/jquery-truncate-html/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery-truncate-html/.eslintrc.json +++ b/types/jquery-truncate-html/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery-truncate-html/tslint.json b/types/jquery-truncate-html/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery-truncate-html/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery-typeahead/tslint.json b/types/jquery-typeahead/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery-typeahead/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery-urlparam/.eslintrc.json b/types/jquery-urlparam/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery-urlparam/.eslintrc.json +++ b/types/jquery-urlparam/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery-urlparam/tslint.json b/types/jquery-urlparam/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery-urlparam/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery-validation-unobtrusive/tslint.json b/types/jquery-validation-unobtrusive/tslint.json deleted file mode 100644 index 206c5ac9b1af99..00000000000000 --- a/types/jquery-validation-unobtrusive/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/jquery.address/.eslintrc.json b/types/jquery.address/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/jquery.address/.eslintrc.json +++ b/types/jquery.address/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.address/tslint.json b/types/jquery.address/tslint.json deleted file mode 100644 index 223588d2930b9b..00000000000000 --- a/types/jquery.address/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.appear/tslint.json b/types/jquery.appear/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery.appear/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery.are-you-sure/tslint.json b/types/jquery.are-you-sure/tslint.json deleted file mode 100644 index 43551d972a28e4..00000000000000 --- a/types/jquery.are-you-sure/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/jquery.autosize/.eslintrc.json b/types/jquery.autosize/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.autosize/.eslintrc.json +++ b/types/jquery.autosize/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.autosize/tslint.json b/types/jquery.autosize/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/jquery.autosize/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.base64/.eslintrc.json b/types/jquery.base64/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.base64/.eslintrc.json +++ b/types/jquery.base64/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.base64/tslint.json b/types/jquery.base64/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/jquery.base64/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery.bbq/.eslintrc.json b/types/jquery.bbq/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.bbq/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.bbq/tslint.json b/types/jquery.bbq/tslint.json deleted file mode 100644 index 082e80dc9f4c2d..00000000000000 --- a/types/jquery.bbq/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jquery.blockui/.eslintrc.json b/types/jquery.blockui/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.blockui/.eslintrc.json +++ b/types/jquery.blockui/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.blockui/tslint.json b/types/jquery.blockui/tslint.json deleted file mode 100644 index 539a023e842d05..00000000000000 --- a/types/jquery.blockui/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/jquery.bootstrap.wizard/.eslintrc.json b/types/jquery.bootstrap.wizard/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.bootstrap.wizard/.eslintrc.json +++ b/types/jquery.bootstrap.wizard/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.bootstrap.wizard/tslint.json b/types/jquery.bootstrap.wizard/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery.bootstrap.wizard/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery.browser/tslint.json b/types/jquery.browser/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery.browser/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery.cleditor/.eslintrc.json b/types/jquery.cleditor/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery.cleditor/.eslintrc.json +++ b/types/jquery.cleditor/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.cleditor/tslint.json b/types/jquery.cleditor/tslint.json deleted file mode 100644 index e7487530de76ea..00000000000000 --- a/types/jquery.cleditor/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery.clientsidelogging/.eslintrc.json b/types/jquery.clientsidelogging/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.clientsidelogging/.eslintrc.json +++ b/types/jquery.clientsidelogging/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.clientsidelogging/tslint.json b/types/jquery.clientsidelogging/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery.clientsidelogging/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery.color/.eslintrc.json b/types/jquery.color/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.color/.eslintrc.json +++ b/types/jquery.color/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.color/tslint.json b/types/jquery.color/tslint.json deleted file mode 100644 index 74fb69b9d58429..00000000000000 --- a/types/jquery.color/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "no-void-expression": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.colorbox/.eslintrc.json b/types/jquery.colorbox/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.colorbox/.eslintrc.json +++ b/types/jquery.colorbox/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.colorbox/tslint.json b/types/jquery.colorbox/tslint.json deleted file mode 100644 index 51f66fb86a2a4a..00000000000000 --- a/types/jquery.colorbox/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.colorpicker/.eslintrc.json b/types/jquery.colorpicker/.eslintrc.json index 12dc0523ec6ea8..d0441fac2a22df 100644 --- a/types/jquery.colorpicker/.eslintrc.json +++ b/types/jquery.colorpicker/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.colorpicker/tslint.json b/types/jquery.colorpicker/tslint.json deleted file mode 100644 index d1077ff5f8881a..00000000000000 --- a/types/jquery.colorpicker/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.contextmenu/.eslintrc.json b/types/jquery.contextmenu/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.contextmenu/.eslintrc.json +++ b/types/jquery.contextmenu/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.contextmenu/tslint.json b/types/jquery.contextmenu/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery.contextmenu/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery.cookie/tslint.json b/types/jquery.cookie/tslint.json deleted file mode 100644 index 5969b866225fc8..00000000000000 --- a/types/jquery.cookie/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/jquery.customselect/.eslintrc.json b/types/jquery.customselect/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.customselect/.eslintrc.json +++ b/types/jquery.customselect/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.customselect/tslint.json b/types/jquery.customselect/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/jquery.customselect/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery.cycle/.eslintrc.json b/types/jquery.cycle/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery.cycle/.eslintrc.json +++ b/types/jquery.cycle/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.cycle/tslint.json b/types/jquery.cycle/tslint.json deleted file mode 100644 index 6931066ce2c625..00000000000000 --- a/types/jquery.cycle/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.cycle2/tslint.json b/types/jquery.cycle2/tslint.json deleted file mode 100644 index d31a7e74cb5d6f..00000000000000 --- a/types/jquery.cycle2/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-for-of": false, - "unified-signatures": false - } -} diff --git a/types/jquery.dropotron/.eslintrc.json b/types/jquery.dropotron/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.dropotron/.eslintrc.json +++ b/types/jquery.dropotron/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.dropotron/tslint.json b/types/jquery.dropotron/tslint.json deleted file mode 100644 index 352822772455e6..00000000000000 --- a/types/jquery.dropotron/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/jquery.dynatree/.eslintrc.json b/types/jquery.dynatree/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.dynatree/.eslintrc.json +++ b/types/jquery.dynatree/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.dynatree/tslint.json b/types/jquery.dynatree/tslint.json deleted file mode 100644 index 51e24fc8e12fdb..00000000000000 --- a/types/jquery.dynatree/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.elang/.eslintrc.json b/types/jquery.elang/.eslintrc.json index c9780e77c3bdf5..f70fc73619a6c2 100644 --- a/types/jquery.elang/.eslintrc.json +++ b/types/jquery.elang/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/jquery.elang/tslint.json b/types/jquery.elang/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery.elang/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery.fancytree/tslint.json b/types/jquery.fancytree/tslint.json deleted file mode 100644 index 9b43b76b901923..00000000000000 --- a/types/jquery.fancytree/tslint.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-object-literal-type-assertion": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.fileupload/.eslintrc.json b/types/jquery.fileupload/.eslintrc.json index 59d00d648a54de..404e6392df6d19 100644 --- a/types/jquery.fileupload/.eslintrc.json +++ b/types/jquery.fileupload/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-unnecessary-generics": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.fileupload/tslint.json b/types/jquery.fileupload/tslint.json deleted file mode 100644 index 87fd9d53e78aa3..00000000000000 --- a/types/jquery.fileupload/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-type-assertion": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery.filtertable/.eslintrc.json b/types/jquery.filtertable/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.filtertable/.eslintrc.json +++ b/types/jquery.filtertable/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.filtertable/tslint.json b/types/jquery.filtertable/tslint.json deleted file mode 100644 index 9283595d43f0e3..00000000000000 --- a/types/jquery.filtertable/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.finger/tslint.json b/types/jquery.finger/tslint.json deleted file mode 100644 index 0c18f7d49858d2..00000000000000 --- a/types/jquery.finger/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jquery.flagstrap/.eslintrc.json b/types/jquery.flagstrap/.eslintrc.json index 61f78b4b3cdb67..cbe8a3492eab3c 100644 --- a/types/jquery.flagstrap/.eslintrc.json +++ b/types/jquery.flagstrap/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/prefer-namespace": "off", "@typescript-eslint/no-invalid-void-type": "off" diff --git a/types/jquery.flagstrap/tslint.json b/types/jquery.flagstrap/tslint.json deleted file mode 100644 index 758d92d2853ddd..00000000000000 --- a/types/jquery.flagstrap/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.form/.eslintrc.json b/types/jquery.form/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery.form/.eslintrc.json +++ b/types/jquery.form/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.form/tslint.json b/types/jquery.form/tslint.json deleted file mode 100644 index 924620ff1e197a..00000000000000 --- a/types/jquery.form/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.fullscreen/tslint.json b/types/jquery.fullscreen/tslint.json deleted file mode 100644 index 7293dc4b5ae32b..00000000000000 --- a/types/jquery.fullscreen/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jquery.gridster/.eslintrc.json b/types/jquery.gridster/.eslintrc.json index 20bb2630a56bb6..2f7e37152acc9c 100644 --- a/types/jquery.gridster/.eslintrc.json +++ b/types/jquery.gridster/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", - "@definitelytyped/no-unnecessary-generics": "off" + "@definitelytyped/no-unnecessary-generics": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.gridster/tslint.json b/types/jquery.gridster/tslint.json deleted file mode 100644 index dd44848be9fedd..00000000000000 --- a/types/jquery.gridster/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jquery.growl/tslint.json b/types/jquery.growl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery.growl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery.highlight-bartaz/.eslintrc.json b/types/jquery.highlight-bartaz/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.highlight-bartaz/.eslintrc.json +++ b/types/jquery.highlight-bartaz/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.highlight-bartaz/tslint.json b/types/jquery.highlight-bartaz/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery.highlight-bartaz/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery.jnotify/.eslintrc.json b/types/jquery.jnotify/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.jnotify/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.jnotify/tslint.json b/types/jquery.jnotify/tslint.json deleted file mode 100644 index e7487530de76ea..00000000000000 --- a/types/jquery.jnotify/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery.joyride/.eslintrc.json b/types/jquery.joyride/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.joyride/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.joyride/tslint.json b/types/jquery.joyride/tslint.json deleted file mode 100644 index aaaa4b34b97494..00000000000000 --- a/types/jquery.joyride/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jquery.jsignature/.eslintrc.json b/types/jquery.jsignature/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.jsignature/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.jsignature/tslint.json b/types/jquery.jsignature/tslint.json deleted file mode 100644 index 462da812035db1..00000000000000 --- a/types/jquery.jsignature/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jquery.leanmodal/.eslintrc.json b/types/jquery.leanmodal/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/jquery.leanmodal/.eslintrc.json +++ b/types/jquery.leanmodal/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.leanmodal/tslint.json b/types/jquery.leanmodal/tslint.json deleted file mode 100644 index bf82dcb55690a8..00000000000000 --- a/types/jquery.leanmodal/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "new-parens": false, - "no-var-keyword": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.livestampjs/.eslintrc.json b/types/jquery.livestampjs/.eslintrc.json index 66f97748f74ef3..6c377ee2796571 100644 --- a/types/jquery.livestampjs/.eslintrc.json +++ b/types/jquery.livestampjs/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/triple-slash-reference": "off" } } diff --git a/types/jquery.livestampjs/tslint.json b/types/jquery.livestampjs/tslint.json deleted file mode 100644 index 4824d04789585c..00000000000000 --- a/types/jquery.livestampjs/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jquery.menuaim/.eslintrc.json b/types/jquery.menuaim/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.menuaim/.eslintrc.json +++ b/types/jquery.menuaim/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.menuaim/tslint.json b/types/jquery.menuaim/tslint.json deleted file mode 100644 index 0fd3e28d2b20b2..00000000000000 --- a/types/jquery.menuaim/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery.mmenu/.eslintrc.json b/types/jquery.mmenu/.eslintrc.json index a9228253c2ccbb..8ef8462cef30b7 100644 --- a/types/jquery.mmenu/.eslintrc.json +++ b/types/jquery.mmenu/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-any-union": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/adjacent-overload-signatures": "off", "@typescript-eslint/ban-types": "off" } diff --git a/types/jquery.mmenu/tslint.json b/types/jquery.mmenu/tslint.json deleted file mode 100644 index e2e8e8dc33bb0f..00000000000000 --- a/types/jquery.mmenu/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/jquery.nicescroll/tslint.json b/types/jquery.nicescroll/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery.nicescroll/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery.notify/tslint.json b/types/jquery.notify/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery.notify/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery.notifybar/.eslintrc.json b/types/jquery.notifybar/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.notifybar/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.notifybar/tslint.json b/types/jquery.notifybar/tslint.json deleted file mode 100644 index bf232a354d4e84..00000000000000 --- a/types/jquery.notifybar/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery.noty/.eslintrc.json b/types/jquery.noty/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery.noty/.eslintrc.json +++ b/types/jquery.noty/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.noty/tslint.json b/types/jquery.noty/tslint.json deleted file mode 100644 index 2656628c35a922..00000000000000 --- a/types/jquery.noty/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "npm-naming": false - } -} diff --git a/types/jquery.payment/tslint.json b/types/jquery.payment/tslint.json deleted file mode 100644 index 35dc744bd99c50..00000000000000 --- a/types/jquery.payment/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-boolean-literal-compare": false, - "no-var-keyword": false - } -} diff --git a/types/jquery.pin/tslint.json b/types/jquery.pin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jquery.pin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jquery.pjax/.eslintrc.json b/types/jquery.pjax/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.pjax/.eslintrc.json +++ b/types/jquery.pjax/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.pjax/tslint.json b/types/jquery.pjax/tslint.json deleted file mode 100644 index b551c2db92af49..00000000000000 --- a/types/jquery.pjax/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/jquery.placeholder/.eslintrc.json b/types/jquery.placeholder/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.placeholder/.eslintrc.json +++ b/types/jquery.placeholder/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.placeholder/tslint.json b/types/jquery.placeholder/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/jquery.placeholder/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/jquery.pnotify/.eslintrc.json b/types/jquery.pnotify/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.pnotify/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.pnotify/tslint.json b/types/jquery.pnotify/tslint.json deleted file mode 100644 index f113a7c1561f10..00000000000000 --- a/types/jquery.pnotify/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-object-literal-type-assertion": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/jquery.postmessage/.eslintrc.json b/types/jquery.postmessage/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.postmessage/.eslintrc.json +++ b/types/jquery.postmessage/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.postmessage/tslint.json b/types/jquery.postmessage/tslint.json deleted file mode 100644 index 41c12356d2ad2b..00000000000000 --- a/types/jquery.postmessage/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.prettyphoto/.eslintrc.json b/types/jquery.prettyphoto/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.prettyphoto/.eslintrc.json +++ b/types/jquery.prettyphoto/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.prettyphoto/tslint.json b/types/jquery.prettyphoto/tslint.json deleted file mode 100644 index 9283595d43f0e3..00000000000000 --- a/types/jquery.prettyphoto/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.qrcode/.eslintrc.json b/types/jquery.qrcode/.eslintrc.json index 962591d574330f..6e14843e169e25 100644 --- a/types/jquery.qrcode/.eslintrc.json +++ b/types/jquery.qrcode/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/no-const-enum": "off", "@definitelytyped/dt-header": "off", - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.qrcode/tslint.json b/types/jquery.qrcode/tslint.json deleted file mode 100644 index 7381382898e012..00000000000000 --- a/types/jquery.qrcode/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-const-enum": false, - "npm-naming": false - } -} diff --git a/types/jquery.rateit/tslint.json b/types/jquery.rateit/tslint.json deleted file mode 100644 index 5969b866225fc8..00000000000000 --- a/types/jquery.rateit/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "unified-signatures": false - } -} diff --git a/types/jquery.rowgrid/.eslintrc.json b/types/jquery.rowgrid/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.rowgrid/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.rowgrid/tslint.json b/types/jquery.rowgrid/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/jquery.rowgrid/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery.scrollto/tslint.json b/types/jquery.scrollto/tslint.json deleted file mode 100644 index 3bd086a5fbf8e1..00000000000000 --- a/types/jquery.scrollto/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/jquery.simplemodal/.eslintrc.json b/types/jquery.simplemodal/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery.simplemodal/.eslintrc.json +++ b/types/jquery.simplemodal/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.simplemodal/tslint.json b/types/jquery.simplemodal/tslint.json deleted file mode 100644 index 2b7f39e9b19195..00000000000000 --- a/types/jquery.simplemodal/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.simplepagination/.eslintrc.json b/types/jquery.simplepagination/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.simplepagination/.eslintrc.json +++ b/types/jquery.simplepagination/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.simplepagination/tslint.json b/types/jquery.simplepagination/tslint.json deleted file mode 100644 index defe27832ee2c3..00000000000000 --- a/types/jquery.simplepagination/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "unified-signatures": false - } -} diff --git a/types/jquery.simulate/.eslintrc.json b/types/jquery.simulate/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.simulate/.eslintrc.json +++ b/types/jquery.simulate/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.simulate/tslint.json b/types/jquery.simulate/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/jquery.simulate/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery.soap/tslint.json b/types/jquery.soap/tslint.json deleted file mode 100644 index 03ec37f9ba3767..00000000000000 --- a/types/jquery.soap/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.sortelements/.eslintrc.json b/types/jquery.sortelements/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jquery.sortelements/.eslintrc.json +++ b/types/jquery.sortelements/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.sortelements/tslint.json b/types/jquery.sortelements/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery.sortelements/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery.stickem/tslint.json b/types/jquery.stickem/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery.stickem/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery.superlink/.eslintrc.json b/types/jquery.superlink/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.superlink/.eslintrc.json +++ b/types/jquery.superlink/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.superlink/tslint.json b/types/jquery.superlink/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery.superlink/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery.tagsmanager/.eslintrc.json b/types/jquery.tagsmanager/.eslintrc.json index c9780e77c3bdf5..f70fc73619a6c2 100644 --- a/types/jquery.tagsmanager/.eslintrc.json +++ b/types/jquery.tagsmanager/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/naming-convention": "off" } diff --git a/types/jquery.tagsmanager/tslint.json b/types/jquery.tagsmanager/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/jquery.tagsmanager/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery.tile/.eslintrc.json b/types/jquery.tile/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.tile/.eslintrc.json +++ b/types/jquery.tile/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.tile/tslint.json b/types/jquery.tile/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jquery.tile/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jquery.timeago/.eslintrc.json b/types/jquery.timeago/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.timeago/.eslintrc.json +++ b/types/jquery.timeago/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.timeago/tslint.json b/types/jquery.timeago/tslint.json deleted file mode 100644 index 2968d655cb3bfa..00000000000000 --- a/types/jquery.timeago/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jquery.timepicker/.eslintrc.json b/types/jquery.timepicker/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.timepicker/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.timepicker/tslint.json b/types/jquery.timepicker/tslint.json deleted file mode 100644 index d45f6863586f18..00000000000000 --- a/types/jquery.timepicker/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "unified-signatures": false - } -} diff --git a/types/jquery.timer/.eslintrc.json b/types/jquery.timer/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/jquery.timer/.eslintrc.json +++ b/types/jquery.timer/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquery.timer/tslint.json b/types/jquery.timer/tslint.json deleted file mode 100644 index cdc46f394aa027..00000000000000 --- a/types/jquery.timer/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false, - "triple-equals": false - } -} diff --git a/types/jquery.tinycarousel/.eslintrc.json b/types/jquery.tinycarousel/.eslintrc.json index 5805df8e2413ed..753efa7ab611cf 100644 --- a/types/jquery.tinycarousel/.eslintrc.json +++ b/types/jquery.tinycarousel/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.tinycarousel/tslint.json b/types/jquery.tinycarousel/tslint.json deleted file mode 100644 index f623288a7279c8..00000000000000 --- a/types/jquery.tinycarousel/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery.tinyscrollbar/.eslintrc.json b/types/jquery.tinyscrollbar/.eslintrc.json index 5805df8e2413ed..753efa7ab611cf 100644 --- a/types/jquery.tinyscrollbar/.eslintrc.json +++ b/types/jquery.tinyscrollbar/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/strict-export-declare-modifiers": "off" + "@definitelytyped/strict-export-declare-modifiers": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.tinyscrollbar/tslint.json b/types/jquery.tinyscrollbar/tslint.json deleted file mode 100644 index b84b62d9fd20e8..00000000000000 --- a/types/jquery.tinyscrollbar/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery.tipsy/tslint.json b/types/jquery.tipsy/tslint.json deleted file mode 100644 index 137644205aa45c..00000000000000 --- a/types/jquery.tipsy/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "object-literal-shorthand": false, - "only-arrow-functions": false - } -} diff --git a/types/jquery.tools/tslint.json b/types/jquery.tools/tslint.json deleted file mode 100644 index fe331b0c6c8622..00000000000000 --- a/types/jquery.tools/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-void-expression": false - } -} diff --git a/types/jquery.total-storage/.eslintrc.json b/types/jquery.total-storage/.eslintrc.json index fbde7d1bc5a75b..b3141b3e2fe6e7 100644 --- a/types/jquery.total-storage/.eslintrc.json +++ b/types/jquery.total-storage/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/jquery.total-storage/tslint.json b/types/jquery.total-storage/tslint.json deleted file mode 100644 index 5e6fc0a93b9818..00000000000000 --- a/types/jquery.total-storage/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery.transit/tslint.json b/types/jquery.transit/tslint.json deleted file mode 100644 index 9fe9803de2bcbb..00000000000000 --- a/types/jquery.transit/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-inferrable-types": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/jquery.ui.datetimepicker/.eslintrc.json b/types/jquery.ui.datetimepicker/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.ui.datetimepicker/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.ui.datetimepicker/tslint.json b/types/jquery.ui.datetimepicker/tslint.json deleted file mode 100644 index 223588d2930b9b..00000000000000 --- a/types/jquery.ui.datetimepicker/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jquery.ui.layout/tslint.json b/types/jquery.ui.layout/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery.ui.layout/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery.uniform/tslint.json b/types/jquery.uniform/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/jquery.uniform/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/jquery.validation/tslint.json b/types/jquery.validation/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery.validation/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery.watermark/.eslintrc.json b/types/jquery.watermark/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jquery.watermark/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jquery.watermark/tslint.json b/types/jquery.watermark/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/jquery.watermark/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jquery.window/.eslintrc.json b/types/jquery.window/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jquery.window/.eslintrc.json +++ b/types/jquery.window/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jquery.window/tslint.json b/types/jquery.window/tslint.json deleted file mode 100644 index 04fb19997f7d4a..00000000000000 --- a/types/jquery.window/tslint.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "npm-naming": false, - "prefer-const": false - } -} diff --git a/types/jquery/tslint.json b/types/jquery/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jquery/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jquery/v1/tslint.json b/types/jquery/v1/tslint.json deleted file mode 100644 index f098ccbf5923de..00000000000000 --- a/types/jquery/v1/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-boolean-literal-compare": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-string-throw": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jquery/v2/index.d.ts b/types/jquery/v2/index.d.ts index 4ed17f5dcf5995..bfabd85f7848d3 100644 --- a/types/jquery/v2/index.d.ts +++ b/types/jquery/v2/index.d.ts @@ -13,11 +13,12 @@ See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ +type BoundFunction = (this: HTMLElement) => void; /** * Interface for the AJAX setting that will configure the AJAX request * @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings} */ -interface JQueryAjaxSettings { +interface JQueryBaseSettings { /** * The content type sent in the request header that tells the server what kind of response it will accept in return. If the accepts setting needs modification, it is recommended to do so once in the $.ajaxSetup() method. */ @@ -29,7 +30,7 @@ interface JQueryAjaxSettings { /** * A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent. Use this to set custom headers, etc. The jqXHR and settings objects are passed as arguments. This is an Ajax Event. Returning false in the beforeSend function will cancel the request. As of jQuery 1.5, the beforeSend option will be called regardless of the type of request. */ - beforeSend?(jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any; + beforeSend?(jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any; /** * If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET. */ @@ -37,7 +38,7 @@ interface JQueryAjaxSettings { /** * A function to be called when the request finishes (after success and error callbacks are executed). The function gets passed two arguments: The jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object and a string categorizing the status of the request ("success", "notmodified", "error", "timeout", "abort", or "parsererror"). As of jQuery 1.5, the complete setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event. */ - complete?(jqXHR: JQueryXHR, textStatus: string): any; + complete?(jqXHR: JQueryXHR, textStatus: string): any; /** * An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5) */ @@ -48,10 +49,6 @@ interface JQueryAjaxSettings { * When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded; charset=UTF-8", which is fine for most cases. If you explicitly pass in a content-type to $.ajax(), then it is always sent to the server (even if no data is sent). The W3C XMLHttpRequest specification dictates that the charset is always UTF-8; specifying another charset will not force the browser to change the encoding. */ contentType?: any; - /** - * This object will be made the context of all Ajax-related callbacks. By default, the context is an object that represents the ajax settings used in the call ($.ajaxSettings merged with the settings passed to $.ajax). - */ - context?: any; /** * An object containing dataType-to-dataType converters. Each converter's value is a function that returns the transformed value of the response. (version added: 1.5) */ @@ -75,7 +72,7 @@ interface JQueryAjaxSettings { /** * A function to be called if the request fails. The function receives three arguments: The jqXHR (in jQuery 1.4.x, XMLHttpRequest) object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides null) are "timeout", "error", "abort", and "parsererror". When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." As of jQuery 1.5, the error setting can accept an array of functions. Each function will be called in turn. Note: This handler is not called for cross-domain script and cross-domain JSONP requests. This is an Ajax Event. */ - error?(jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any; + error?(jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any; /** * Whether to trigger global Ajax event handlers for this request. The default is true. Set to false to prevent the global handlers like ajaxStart or ajaxStop from being triggered. This can be used to control various Ajax Events. */ @@ -127,7 +124,7 @@ interface JQueryAjaxSettings { /** * A function to be called if the request succeeds. The function gets passed three arguments: The data returned from the server, formatted according to the dataType parameter; a string describing the status; and the jqXHR (in jQuery 1.4.x, XMLHttpRequest) object. As of jQuery 1.5, the success setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event. */ - success?(data: any, textStatus: string, jqXHR: JQueryXHR): any; + success?(data: any, textStatus: string, jqXHR: JQueryXHR): any; /** * Set a timeout (in milliseconds) for the request. This will override any global timeout set with $.ajaxSetup(). The timeout period starts at the point the $.ajax call is made; if several other requests are in progress and the browser has no connections available, it is possible for a request to time out before it can be sent. In jQuery 1.4.x and below, the XMLHttpRequest object will be in an invalid state if the request times out; accessing any object members may throw an exception. In Firefox 3.0+ only, script and JSONP requests cannot be cancelled by a timeout; the script will run even if it arrives after the timeout period. */ @@ -158,11 +155,18 @@ interface JQueryAjaxSettings { xhrFields?: { [key: string]: any } | undefined; } +interface JQueryAjaxSettings extends JQueryBaseSettings { + /** + * This object will be made the context of all Ajax-related callbacks. By default, the context is an object that represents the ajax settings used in the call ($.ajaxSettings merged with the settings passed to $.ajax). + */ + context?: Context; +} + /** * Interface for the jqXHR object * @see {@link https://api.jquery.com/jQuery.ajax/#jqXHR} */ -interface JQueryXHR extends XMLHttpRequest, JQueryPromise { +interface JQueryXHR extends XMLHttpRequest, JQueryPromise { /** * The .overrideMimeType() method may be used in the beforeSend() callback function, for example, to modify the response content-type header. As of jQuery 1.5.1, the jqXHR object also contains the overrideMimeType() method (it was available in jQuery 1.4.x, as well, but was temporarily removed in jQuery 1.5). */ @@ -177,9 +181,9 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise { * Incorporates the functionality of the .done() and .fail() methods, allowing (as of jQuery 1.8) the underlying Promise to be manipulated. Refer to deferred.then() for implementation details. */ then( - doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => R | JQueryPromise, - failCallback?: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void, - ): JQueryPromise; + doneCallback: (data: any, textStatus: string, jqXHR: JQueryXHR) => R | JQueryPromise, + failCallback?: (jqXHR: JQueryXHR, textStatus: string, errorThrown: any) => void, + ): JQueryPromise; /** * Property containing the parsed response if the response content type is json */ @@ -187,7 +191,7 @@ interface JQueryXHR extends XMLHttpRequest, JQueryPromise { /** * A function to be called if the request fails. */ - error(xhr: JQueryXHR, textStatus: string, errorThrown: string): void; + error(xhr: JQueryXHR, textStatus: string, errorThrown: string): void; } /** @@ -290,7 +294,7 @@ interface JQueryCallback { /** * Allows jQuery Promises to interop with non-jQuery promises */ -interface JQueryGenericPromise { +interface JQueryGenericPromise { /** * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. * @@ -299,10 +303,10 @@ interface JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.then/#deferred-then-doneFilter-failFilter-progressFilter} */ then( - doneFilter: (value?: T, ...values: any[]) => U | JQueryPromise, + doneFilter: (value?: T, ...values: any[]) => U | JQueryPromise, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any, - ): JQueryPromise; + ): JQueryPromise; /** * Add handlers to be called when the Deferred object is resolved, rejected, or still in progress. @@ -315,28 +319,28 @@ interface JQueryGenericPromise { doneFilter: (value?: T, ...values: any[]) => void, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any, - ): JQueryPromise; + ): JQueryPromise; } /** * Interface for the JQuery promise/deferred callbacks */ -interface JQueryPromiseCallback { - (value?: T, ...args: any[]): void; +interface JQueryPromiseCallback { + (this: C, value?: T, ...args: any[]): void; } -interface JQueryPromiseOperator { +interface JQueryPromiseOperator { ( - callback1: JQueryPromiseCallback | Array>, - ...callbacksN: Array | Array>> - ): JQueryPromise; + callback1: JQueryPromiseCallback | Array>, + ...callbacksN: Array | Array>> + ): JQueryPromise; } /** * Interface for the JQuery promise, part of callbacks * @see {@link https://api.jquery.com/category/deferred-object/} */ -interface JQueryPromise extends JQueryGenericPromise { +interface JQueryPromise extends JQueryGenericPromise { /** * Determine the current state of a Deferred object. * @see {@link https://api.jquery.com/deferred.state/} @@ -350,9 +354,9 @@ interface JQueryPromise extends JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.always/} */ always( - alwaysCallback1?: JQueryPromiseCallback | Array>, + alwaysCallback1?: JQueryPromiseCallback | Array>, ...alwaysCallbackN: Array | Array>> - ): JQueryPromise; + ): JQueryPromise; /** * Add handlers to be called when the Deferred object is resolved. * @@ -361,9 +365,9 @@ interface JQueryPromise extends JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.done/} */ done( - doneCallback1?: JQueryPromiseCallback | Array>, - ...doneCallbackN: Array | Array>> - ): JQueryPromise; + doneCallback1?: JQueryPromiseCallback | Array>, + ...doneCallbackN: Array | Array>> + ): JQueryPromise; /** * Add handlers to be called when the Deferred object is rejected. * @@ -372,9 +376,9 @@ interface JQueryPromise extends JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.fail/} */ fail( - failCallback1?: JQueryPromiseCallback | Array>, - ...failCallbackN: Array | Array>> - ): JQueryPromise; + failCallback1?: JQueryPromiseCallback | Array>, + ...failCallbackN: Array | Array>> + ): JQueryPromise; /** * Add handlers to be called when the Deferred object generates progress notifications. * @@ -383,16 +387,16 @@ interface JQueryPromise extends JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.progress/} */ progress( - progressCallback1?: JQueryPromiseCallback | Array>, - ...progressCallbackN: Array | Array>> - ): JQueryPromise; + progressCallback1?: JQueryPromiseCallback | Array>, + ...progressCallbackN: Array | Array>> + ): JQueryPromise; // Deprecated - given no typings pipe( doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any, - ): JQueryPromise; + ): JQueryPromise; /** * Return a Deferred's Promise object. @@ -400,14 +404,14 @@ interface JQueryPromise extends JQueryGenericPromise { * @param target Object onto which the promise methods have to be attached * @see {@link https://api.jquery.com/deferred.promise/} */ - promise(target?: any): JQueryPromise; + promise(target?: any): JQueryPromise; } /** * Interface for the JQuery deferred, part of callbacks * @see {@link https://api.jquery.com/category/deferred-object/} */ -interface JQueryDeferred extends JQueryGenericPromise { +interface JQueryDeferred extends JQueryGenericPromise { /** * Determine the current state of a Deferred object. * @see {@link https://api.jquery.com/deferred.state/} @@ -421,9 +425,9 @@ interface JQueryDeferred extends JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.always/} */ always( - alwaysCallback1?: JQueryPromiseCallback | Array>, - ...alwaysCallbackN: Array | Array>> - ): JQueryDeferred; + alwaysCallback1?: JQueryPromiseCallback | Array>, + ...alwaysCallbackN: Array | Array>> + ): JQueryDeferred; /** * Add handlers to be called when the Deferred object is resolved. * @@ -432,9 +436,9 @@ interface JQueryDeferred extends JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.done/} */ done( - doneCallback1?: JQueryPromiseCallback | Array>, - ...doneCallbackN: Array | Array>> - ): JQueryDeferred; + doneCallback1?: JQueryPromiseCallback | Array>, + ...doneCallbackN: Array | Array>> + ): JQueryDeferred; /** * Add handlers to be called when the Deferred object is rejected. * @@ -443,9 +447,9 @@ interface JQueryDeferred extends JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.fail/} */ fail( - failCallback1?: JQueryPromiseCallback | Array>, - ...failCallbackN: Array | Array>> - ): JQueryDeferred; + failCallback1?: JQueryPromiseCallback | Array>, + ...failCallbackN: Array | Array>> + ): JQueryDeferred; /** * Add handlers to be called when the Deferred object generates progress notifications. * @@ -454,9 +458,9 @@ interface JQueryDeferred extends JQueryGenericPromise { * @see {@link https://api.jquery.com/deferred.progress/} */ progress( - progressCallback1?: JQueryPromiseCallback | Array>, - ...progressCallbackN: Array | Array>> - ): JQueryDeferred; + progressCallback1?: JQueryPromiseCallback | Array>, + ...progressCallbackN: Array | Array>> + ): JQueryDeferred; /** * Call the progressCallbacks on a Deferred object with the given args. @@ -464,7 +468,7 @@ interface JQueryDeferred extends JQueryGenericPromise { * @param args Optional arguments that are passed to the progressCallbacks. * @see {@link https://api.jquery.com/deferred.notify/} */ - notify(value?: any, ...args: any[]): JQueryDeferred; + notify(value?: any, ...args: any[]): JQueryDeferred; /** * Call the progressCallbacks on a Deferred object with the given context and args. @@ -473,7 +477,7 @@ interface JQueryDeferred extends JQueryGenericPromise { * @param args Optional arguments that are passed to the progressCallbacks. * @see {@link https://api.jquery.com/deferred.notifyWith/} */ - notifyWith(context: any, args?: any[]): JQueryDeferred; + notifyWith(context: Context, args?: any[]): JQueryDeferred; /** * Reject a Deferred object and call any failCallbacks with the given args. @@ -481,7 +485,7 @@ interface JQueryDeferred extends JQueryGenericPromise { * @param args Optional arguments that are passed to the failCallbacks. * @see {@link https://api.jquery.com/deferred.reject/} */ - reject(value?: any, ...args: any[]): JQueryDeferred; + reject(value?: any, ...args: any[]): JQueryDeferred; /** * Reject a Deferred object and call any failCallbacks with the given context and args. * @@ -489,7 +493,7 @@ interface JQueryDeferred extends JQueryGenericPromise { * @param args An optional array of arguments that are passed to the failCallbacks. * @see {@link https://api.jquery.com/deferred.rejectWith/} */ - rejectWith(context: any, args?: any[]): JQueryDeferred; + rejectWith(context: Context, args?: any[]): JQueryDeferred; /** * Resolve a Deferred object and call any doneCallbacks with the given args. @@ -498,7 +502,7 @@ interface JQueryDeferred extends JQueryGenericPromise { * @param args Optional subsequent arguments that are passed to the doneCallbacks. * @see {@link https://api.jquery.com/deferred.resolve/} */ - resolve(value?: T, ...args: any[]): JQueryDeferred; + resolve(value?: T, ...args: any[]): JQueryDeferred; /** * Resolve a Deferred object and call any doneCallbacks with the given context and args. @@ -507,7 +511,7 @@ interface JQueryDeferred extends JQueryGenericPromise { * @param args An optional array of arguments that are passed to the doneCallbacks. * @see {@link https://api.jquery.com/deferred.resolveWith/} */ - resolveWith(context: any, args?: T[]): JQueryDeferred; + resolveWith(context: Context, args?: T[]): JQueryDeferred; /** * Return a Deferred's Promise object. @@ -515,14 +519,14 @@ interface JQueryDeferred extends JQueryGenericPromise { * @param target Object onto which the promise methods have to be attached * @see {@link https://api.jquery.com/deferred.promise/} */ - promise(target?: any): JQueryPromise; + promise(target?: any): JQueryPromise; // Deprecated - given no typings pipe( doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any, - ): JQueryPromise; + ): JQueryPromise; } /** @@ -829,7 +833,7 @@ interface JQueryStatic { * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). * @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings} */ - ajax(settings: JQueryAjaxSettings): JQueryXHR; + ajax(settings: JQueryAjaxSettings): JQueryXHR; /** * Perform an asynchronous HTTP (Ajax) request. * @@ -837,7 +841,7 @@ interface JQueryStatic { * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). * @see {@link https://api.jquery.com/jQuery.ajax/#jQuery-ajax-url-settings} */ - ajax(url: string, settings?: JQueryAjaxSettings): JQueryXHR; + ajax(url: string, settings?: JQueryAjaxSettings): JQueryXHR; /** * Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax(). @@ -910,7 +914,7 @@ interface JQueryStatic { * @param settings The JQueryAjaxSettings to be used for the request * @see {@link https://api.jquery.com/jQuery.get/#jQuery-get-settings} */ - get(settings: JQueryAjaxSettings): JQueryXHR; + get(settings: JQueryAjaxSettings): JQueryXHR; /** * Load JSON-encoded data from the server using a GET HTTP request. * @@ -978,7 +982,7 @@ interface JQueryStatic { * @param settings The JQueryAjaxSettings to be used for the request * @see {@link https://api.jquery.com/jQuery.post/#jQuery-post-settings} */ - post(settings: JQueryAjaxSettings): JQueryXHR; + post(settings: JQueryAjaxSettings): JQueryXHR; /** * A multi-purpose callbacks list object that provides a powerful way to manage callback lists. * @@ -1154,7 +1158,7 @@ interface JQueryStatic { * @param newQueue An array of functions to replace the current queue contents. * @see {@link https://api.jquery.com/jQuery.queue/#jQuery-queue-element-queueName-newQueue} */ - queue(element: Element, queueName: string, newQueue: Function[]): JQuery; + queue(element: Element, queueName: string, newQueue: BoundFunction[]): JQuery; /** * Manipulate the queue of functions to be executed on the matched element. * @@ -1163,7 +1167,7 @@ interface JQueryStatic { * @param callback The new function to add to the queue. * @see {@link https://api.jquery.com/jQuery.queue/#jQuery-queue-element-queueName-callback} */ - queue(element: Element, queueName: string, callback: Function): JQuery; + queue(element: Element, queueName: string, callback: BoundFunction): JQuery; /** * Remove a previously-stored piece of data. @@ -1232,7 +1236,7 @@ interface JQueryStatic { * @param message The message to send out. * @see {@link https://api.jquery.com/jQuery.error/} */ - error(message: any): JQuery; + error(message: any): any; expr: any; readonly fn: JQuery; @@ -1262,7 +1266,7 @@ interface JQueryStatic { each( collection: T[], // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - callback: (indexInArray: number, valueOfElement: T) => boolean | void, + callback: (this: T, indexInArray: number, valueOfElement: T) => boolean | void, ): T[]; /** @@ -1501,7 +1505,9 @@ interface JQuery { * @param handler The function to be invoked. * @see {@link https://api.jquery.com/ajaxComplete/} */ - ajaxComplete(handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: any) => any): JQuery; + ajaxComplete( + handler: (this: HTMLElement, event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: any) => any, + ): JQuery; /** * Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. * @@ -1510,6 +1516,7 @@ interface JQuery { */ ajaxError( handler: ( + this: HTMLElement, event: JQueryEventObject, jqXHR: JQueryXHR, ajaxSettings: JQueryAjaxSettings, @@ -1522,21 +1529,28 @@ interface JQuery { * @param handler The function to be invoked. * @see {@link https://api.jquery.com/ajaxSend/} */ - ajaxSend(handler: (event: JQueryEventObject, jqXHR: JQueryXHR, ajaxOptions: JQueryAjaxSettings) => any): JQuery; + ajaxSend( + handler: ( + this: HTMLElement, + event: JQueryEventObject, + jqXHR: JQueryXHR, + ajaxOptions: JQueryAjaxSettings, + ) => any, + ): JQuery; /** * Register a handler to be called when the first Ajax request begins. This is an Ajax Event. * * @param handler The function to be invoked. * @see {@link https://api.jquery.com/ajaxStart/} */ - ajaxStart(handler: () => any): JQuery; + ajaxStart(handler: (this: HTMLElement) => any): JQuery; /** * Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. * * @param handler The function to be invoked. * @see {@link https://api.jquery.com/ajaxStop/} */ - ajaxStop(handler: () => any): JQuery; + ajaxStop(handler: (this: HTMLElement) => any): JQuery; /** * Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event. * @@ -1544,7 +1558,12 @@ interface JQuery { * @see {@link https://api.jquery.com/ajaxSuccess/} */ ajaxSuccess( - handler: (event: JQueryEventObject, XMLHttpRequest: XMLHttpRequest, ajaxOptions: JQueryAjaxSettings) => any, + handler: ( + this: HTMLElement, + event: JQueryEventObject, + XMLHttpRequest: XMLHttpRequest, + ajaxOptions: JQueryAjaxSettings, + ) => any, ): JQuery; /** @@ -1615,7 +1634,7 @@ interface JQuery { * @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old attribute value as arguments. * @see {@link https://api.jquery.com/attr/#attr-attributeName-function} */ - attr(attributeName: string, func: (index: number, attr: string) => string | number): JQuery; + attr(attributeName: string, func: (this: HTMLElement, index: number, attr: string) => string | number): JQuery; /** * Set one or more attributes for the set of matched elements. * @@ -1756,7 +1775,7 @@ interface JQuery { * @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments. * @see {@link https://api.jquery.com/val/#val-function} */ - val(func: (index: number, value: string) => string): JQuery; + val(func: (this: HTMLElement, index: number, value: string) => string): JQuery; /** * Get the value of style properties for the first element in the set of matched elements. @@ -2030,7 +2049,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete} */ - animate(properties: Object, duration?: string | number, complete?: Function): JQuery; + animate(properties: Object, duration?: string | number, complete?: BoundFunction): JQuery; /** * Perform a custom animation of a set of CSS properties. * @@ -2040,7 +2059,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/animate/#animate-properties-duration-easing-complete} */ - animate(properties: Object, duration?: string | number, easing?: string, complete?: Function): JQuery; + animate(properties: Object, duration?: string | number, easing?: string, complete?: BoundFunction): JQuery; /** * Perform a custom animation of a set of CSS properties. * @@ -2066,7 +2085,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-complete} */ - fadeIn(duration?: number | string, complete?: Function): JQuery; + fadeIn(duration?: number | string, complete?: BoundFunction): JQuery; /** * Display the matched elements by fading them to opaque. * @@ -2075,7 +2094,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/fadeIn/#fadeIn-duration-easing-complete} */ - fadeIn(duration?: number | string, easing?: string, complete?: Function): JQuery; + fadeIn(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Display the matched elements by fading them to opaque. * @@ -2091,7 +2110,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-complete} */ - fadeOut(duration?: number | string, complete?: Function): JQuery; + fadeOut(duration?: number | string, complete?: BoundFunction): JQuery; /** * Hide the matched elements by fading them to transparent. * @@ -2100,7 +2119,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/fadeOut/#fadeOut-duration-easing-complete} */ - fadeOut(duration?: number | string, easing?: string, complete?: Function): JQuery; + fadeOut(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Hide the matched elements by fading them to transparent. * @@ -2117,7 +2136,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-complete} */ - fadeTo(duration: string | number, opacity: number, complete?: Function): JQuery; + fadeTo(duration: string | number, opacity: number, complete?: BoundFunction): JQuery; /** * Adjust the opacity of the matched elements. * @@ -2127,7 +2146,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/fadeTo/#fadeTo-duration-opacity-easing-complete} */ - fadeTo(duration: string | number, opacity: number, easing?: string, complete?: Function): JQuery; + fadeTo(duration: string | number, opacity: number, easing?: string, complete?: BoundFunction): JQuery; /** * Display or hide the matched elements by animating their opacity. @@ -2136,7 +2155,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete} */ - fadeToggle(duration?: number | string, complete?: Function): JQuery; + fadeToggle(duration?: number | string, complete?: BoundFunction): JQuery; /** * Display or hide the matched elements by animating their opacity. * @@ -2145,7 +2164,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/fadeToggle/#fadeToggle-duration-easing-complete} */ - fadeToggle(duration?: number | string, easing?: string, complete?: Function): JQuery; + fadeToggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Display or hide the matched elements by animating their opacity. * @@ -2169,7 +2188,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/hide/#hide} */ - hide(duration?: number | string, complete?: Function): JQuery; + hide(duration?: number | string, complete?: BoundFunction): JQuery; /** * Hide the matched elements. * @@ -2178,7 +2197,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/hide/#hide-duration-easing-complete} */ - hide(duration?: number | string, easing?: string, complete?: Function): JQuery; + hide(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Hide the matched elements. * @@ -2194,7 +2213,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/show/#show} */ - show(duration?: number | string, complete?: Function): JQuery; + show(duration?: number | string, complete?: BoundFunction): JQuery; /** * Display the matched elements. * @@ -2203,7 +2222,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/show/#show-duration-easing-complete} */ - show(duration?: number | string, easing?: string, complete?: Function): JQuery; + show(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Display the matched elements. * @@ -2219,7 +2238,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/slideDown/#slideDown-duration-complete} */ - slideDown(duration?: number | string, complete?: Function): JQuery; + slideDown(duration?: number | string, complete?: BoundFunction): JQuery; /** * Display the matched elements with a sliding motion. * @@ -2228,7 +2247,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/slideDown/#slideDown-duration-easing-complete} */ - slideDown(duration?: number | string, easing?: string, complete?: Function): JQuery; + slideDown(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Display the matched elements with a sliding motion. * @@ -2244,7 +2263,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-complete} */ - slideToggle(duration?: number | string, complete?: Function): JQuery; + slideToggle(duration?: number | string, complete?: BoundFunction): JQuery; /** * Display or hide the matched elements with a sliding motion. * @@ -2253,7 +2272,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/slideToggle/#slideToggle-duration-easing-complete} */ - slideToggle(duration?: number | string, easing?: string, complete?: Function): JQuery; + slideToggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Display or hide the matched elements with a sliding motion. * @@ -2269,7 +2288,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/slideUp/#slideUp-duration-complete} */ - slideUp(duration?: number | string, complete?: Function): JQuery; + slideUp(duration?: number | string, complete?: BoundFunction): JQuery; /** * Hide the matched elements with a sliding motion. * @@ -2278,7 +2297,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/slideUp/#slideUp-duration-easing-complete} */ - slideUp(duration?: number | string, easing?: string, complete?: Function): JQuery; + slideUp(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Hide the matched elements with a sliding motion. * @@ -2312,7 +2331,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/toggle/#toggle-duration-complete} */ - toggle(duration?: number | string, complete?: Function): JQuery; + toggle(duration?: number | string, complete?: BoundFunction): JQuery; /** * Display or hide the matched elements. * @@ -2321,7 +2340,7 @@ interface JQuery { * @param complete A function to call once the animation is complete. * @see {@link https://api.jquery.com/toggle/#toggle-duration-easing-complete} */ - toggle(duration?: number | string, easing?: string, complete?: Function): JQuery; + toggle(duration?: number | string, easing?: string, complete?: BoundFunction): JQuery; /** * Display or hide the matched elements. * @@ -2345,7 +2364,11 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-handler} */ - bind(eventType: string, eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + bind( + eventType: string, + eventData: any, + handler: (this: HTMLElement, eventObject: JQueryEventObject) => any, + ): JQuery; /** * Attach a handler to an event for the elements. * @@ -2353,7 +2376,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/bind/#bind-eventType-eventData-handler} */ - bind(eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + bind(eventType: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Attach a handler to an event for the elements. * @@ -2390,7 +2413,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/blur/#blur-handler} */ - blur(handler: (eventObject: JQueryEventObject) => any): JQuery; + blur(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "blur" JavaScript event * @@ -2398,7 +2421,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/blur/#blur-eventData-handler} */ - blur(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + blur(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "change" event on an element. @@ -2411,7 +2434,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/change/#change-handler} */ - change(handler: (eventObject: JQueryEventObject) => any): JQuery; + change(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "change" JavaScript event * @@ -2419,7 +2442,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/change/#change-eventData-handler} */ - change(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + change(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "click" event on an element. @@ -2432,7 +2455,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/click/#click-handler} */ - click(handler: (eventObject: JQueryEventObject) => any): JQuery; + click(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "click" JavaScript event * @@ -2440,7 +2463,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/click/#click-eventData-handler} */ - click(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + click(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "contextmenu" event on an element. @@ -2453,7 +2476,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/contextmenu/#contextmenu-handler} */ - contextmenu(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + contextmenu(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Bind an event handler to the "contextmenu" JavaScript event. * @@ -2461,7 +2484,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/contextmenu/#contextmenu-eventData-handler} */ - contextmenu(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + contextmenu(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Trigger the "dblclick" event on an element. @@ -2474,7 +2497,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/dblclick/#dblclick-handler} */ - dblclick(handler: (eventObject: JQueryEventObject) => any): JQuery; + dblclick(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "dblclick" JavaScript event * @@ -2482,13 +2505,17 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/dblclick/#dblclick-eventData-handler} */ - dblclick(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + dblclick(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. * @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-handler} */ - delegate(selector: any, eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + delegate( + selector: any, + eventType: string, + handler: (this: HTMLElement, eventObject: JQueryEventObject) => any, + ): JQuery; /** * Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. * @see {@link https://api.jquery.com/delegate/#delegate-selector-eventType-eventData-handler} @@ -2497,7 +2524,7 @@ interface JQuery { selector: any, eventType: string, eventData: any, - handler: (eventObject: JQueryEventObject) => any, + handler: (this: HTMLElement, eventObject: JQueryEventObject) => any, ): JQuery; /** @@ -2511,7 +2538,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/focus/#focus-handler} */ - focus(handler: (eventObject: JQueryEventObject) => any): JQuery; + focus(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "focus" JavaScript event * @@ -2519,7 +2546,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/focus/#focus-eventData-handler} */ - focus(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + focus(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "focusin" event on an element. @@ -2532,7 +2559,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/focusin/#focusin-handler} */ - focusin(handler: (eventObject: JQueryEventObject) => any): JQuery; + focusin(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "focusin" JavaScript event * @@ -2540,7 +2567,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/focusin/#focusin-eventData-handler} */ - focusin(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + focusin(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "focusout" event on an element. @@ -2553,7 +2580,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/focusout/#focusout-handler} */ - focusout(handler: (eventObject: JQueryEventObject) => any): JQuery; + focusout(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "focusout" JavaScript event * @@ -2561,7 +2588,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/focusout/#focusout-eventData-handler} */ - focusout(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + focusout(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. @@ -2571,8 +2598,8 @@ interface JQuery { * @see {@link https://api.jquery.com/hover/#hover-handlerIn-handlerOut} */ hover( - handlerIn: (eventObject: JQueryEventObject) => any, - handlerOut: (eventObject: JQueryEventObject) => any, + handlerIn: (this: HTMLElement, eventObject: JQueryEventObject) => any, + handlerOut: (this: HTMLElement, eventObject: JQueryEventObject) => any, ): JQuery; /** * Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements. @@ -2580,7 +2607,7 @@ interface JQuery { * @param handlerInOut A function to execute when the mouse pointer enters or leaves the element. * @see {@link https://api.jquery.com/hover/#hover-handlerInOut} */ - hover(handlerInOut: (eventObject: JQueryEventObject) => any): JQuery; + hover(handlerInOut: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "keydown" event on an element. @@ -2593,7 +2620,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/keydown/#keydown-handler} */ - keydown(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + keydown(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery; /** * Bind an event handler to the "keydown" JavaScript event * @@ -2601,7 +2628,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/keydown/#keydown-eventData-handler} */ - keydown(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + keydown(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery; /** * Trigger the "keypress" event on an element. @@ -2614,7 +2641,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/keypress/#keypress-handler} */ - keypress(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + keypress(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery; /** * Bind an event handler to the "keypress" JavaScript event * @@ -2622,7 +2649,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/keypress/#keypress-eventData-handler} */ - keypress(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + keypress(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery; /** * Trigger the "keyup" event on an element. @@ -2635,7 +2662,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/keyup/#keyup-handler} */ - keyup(handler: (eventObject: JQueryKeyEventObject) => any): JQuery; + keyup(handler: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery; /** * Bind an event handler to the "keyup" JavaScript event * @@ -2643,7 +2670,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/keyup/#keyup-eventData-handler} */ - keyup(eventData?: any, handler?: (eventObject: JQueryKeyEventObject) => any): JQuery; + keyup(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryKeyEventObject) => any): JQuery; /** * Bind an event handler to the "load" JavaScript event. @@ -2651,7 +2678,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/load/} */ - load(handler: (eventObject: JQueryEventObject) => any): JQuery; + load(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "load" JavaScript event. * @@ -2659,7 +2686,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/load/} */ - load(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + load(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "mousedown" event on an element. @@ -2672,7 +2699,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mousedown/#mousedown-handler} */ - mousedown(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mousedown(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Bind an event handler to the "mousedown" JavaScript event. * @@ -2680,7 +2707,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mousedown/#mousedown-eventData-handler} */ - mousedown(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mousedown(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Trigger the "mouseenter" event on an element. @@ -2693,7 +2720,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseenter/#mouseenter-handler} */ - mouseenter(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseenter(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Bind an event handler to be fired when the mouse enters an element. * @@ -2701,7 +2728,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseenter/#mouseenter-eventData-handler} */ - mouseenter(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseenter(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Trigger the "mouseleave" event on an element. @@ -2714,7 +2741,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseleave/#mouseleave-handler} */ - mouseleave(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseleave(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Bind an event handler to be fired when the mouse leaves an element. * @@ -2722,7 +2749,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseleave/#mouseleave-eventData-handler} */ - mouseleave(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseleave(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Trigger the "mousemove" event on an element. @@ -2735,7 +2762,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mousemove/#mousemove-handler} */ - mousemove(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mousemove(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Bind an event handler to the "mousemove" JavaScript event. * @@ -2743,7 +2770,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mousemove/#mousemove-eventData-handler} */ - mousemove(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mousemove(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Trigger the "mouseout" event on an element. @@ -2756,7 +2783,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseout/#mouseout-handler} */ - mouseout(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseout(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Bind an event handler to the "mouseout" JavaScript event. * @@ -2764,7 +2791,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseout/#mouseout-eventData-handler} */ - mouseout(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseout(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Trigger the "mouseover" event on an element. @@ -2777,7 +2804,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseover/#mouseover-handler} */ - mouseover(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseover(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Bind an event handler to the "mouseover" JavaScript event. * @@ -2785,7 +2812,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseover/#mouseover-eventData-handler} */ - mouseover(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseover(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Trigger the "mouseup" event on an element. @@ -2798,7 +2825,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseup/#mouseup-handler} */ - mouseup(handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseup(handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Bind an event handler to the "mouseup" JavaScript event. * @@ -2806,7 +2833,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/mouseup/#mouseup-eventData-handler} */ - mouseup(eventData: Object, handler: (eventObject: JQueryMouseEventObject) => any): JQuery; + mouseup(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryMouseEventObject) => any): JQuery; /** * Remove an event handler. @@ -2821,7 +2848,11 @@ interface JQuery { * @param handler A handler function previously attached for the event(s), or the special value false. * @see {@link https://api.jquery.com/off/#off-events-selector-handler} */ - off(events: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; + off( + events: string, + selector?: string, + handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any, + ): JQuery; /** * Remove an event handler. * @@ -2829,7 +2860,7 @@ interface JQuery { * @param handler A handler function previously attached for the event(s), or the special value false. Takes handler with extra args that can be attached with on(). * @see {@link https://api.jquery.com/off/#off-events-selector-handler} */ - off(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; + off(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; /** * Remove an event handler. * @@ -2837,7 +2868,7 @@ interface JQuery { * @param handler A handler function previously attached for the event(s), or the special value false. * @see {@link https://api.jquery.com/off/#off-events-selector-handler} */ - off(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + off(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Remove an event handler. * @@ -2854,7 +2885,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. Rest parameter args is for optional parameters passed to jQuery.trigger(). Note that the actual parameters on the event handler function must be marked as optional (? syntax). * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler} */ - on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; + on(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; /** * Attach an event handler function for one or more events to the selected elements. * @@ -2863,7 +2894,11 @@ interface JQuery { * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler} */ - on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery; + on( + events: string, + selector: string, + handler: (this: HTMLElement, eventObject: JQueryEventObject, ...eventData: any[]) => any, + ): JQuery; /** * Attach an event handler function for one or more events to the selected elements. * @@ -2872,7 +2907,11 @@ interface JQuery { * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler} */ - on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery; + on( + events: string, + data: any, + handler: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any, + ): JQuery; /** * Attach an event handler function for one or more events to the selected elements. * @@ -2886,7 +2925,7 @@ interface JQuery { events: string, selector: string, data: any, - handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any, + handler: (this: HTMLElement, eventObject: JQueryEventObject, ...eventData: any[]) => any, ): JQuery; /** * Attach an event handler function for one or more events to the selected elements. @@ -2897,7 +2936,7 @@ interface JQuery { * @see {@link https://api.jquery.com/on/#on-events-selector-data} */ on( - events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any }, + events: { [key: string]: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any }, selector?: string, data?: any, ): JQuery; @@ -2908,7 +2947,10 @@ interface JQuery { * @param data Data to be passed to the handler in event.data when an event occurs. * @see {@link https://api.jquery.com/on/#on-events-selector-data} */ - on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any }, data?: any): JQuery; + on( + events: { [key: string]: (this: HTMLElement, eventObject: JQueryEventObject, ...args: any[]) => any }, + data?: any, + ): JQuery; /** * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. @@ -2917,7 +2959,7 @@ interface JQuery { * @param handler A function to execute at the time the event is triggered. * @see {@link https://api.jquery.com/one/#one-events-data-handler} */ - one(events: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + one(events: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. * @@ -2926,7 +2968,7 @@ interface JQuery { * @param handler A function to execute at the time the event is triggered. * @see {@link https://api.jquery.com/one/#one-events-data-handler} */ - one(events: string, data: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + one(events: string, data: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. @@ -2936,7 +2978,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. * @see {@link https://api.jquery.com/one/#one-events-selector-data-handler} */ - one(events: string, selector: string, handler: (eventObject: JQueryEventObject) => any): JQuery; + one(events: string, selector: string, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. * @@ -2946,7 +2988,12 @@ interface JQuery { * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. * @see {@link https://api.jquery.com/one/#one-events-selector-data-handler} */ - one(events: string, selector: string, data: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + one( + events: string, + selector: string, + data: any, + handler: (this: HTMLElement, eventObject: JQueryEventObject) => any, + ): JQuery; /** * Attach a handler to an event for the elements. The handler is executed at most once per element per event type. @@ -2986,7 +3033,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/resize/#resize-handler} */ - resize(handler: (eventObject: JQueryEventObject) => any): JQuery; + resize(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "resize" JavaScript event. * @@ -2994,7 +3041,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/resize/#resize-eventData-handler} */ - resize(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + resize(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "scroll" event on an element. @@ -3007,7 +3054,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/scroll/#scroll-handler} */ - scroll(handler: (eventObject: JQueryEventObject) => any): JQuery; + scroll(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "scroll" JavaScript event. * @@ -3015,7 +3062,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/scroll/#scroll-eventData-handler} */ - scroll(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + scroll(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "select" event on an element. @@ -3028,7 +3075,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/select/#select-handler} */ - select(handler: (eventObject: JQueryEventObject) => any): JQuery; + select(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "select" JavaScript event. * @@ -3036,7 +3083,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/select/#select-eventData-handler} */ - select(eventData: Object, handler: (eventObject: JQueryEventObject) => any): JQuery; + select(eventData: Object, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Trigger the "submit" event on an element. @@ -3049,7 +3096,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/submit/#submit-handler} */ - submit(handler: (eventObject: JQueryEventObject) => any): JQuery; + submit(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "submit" JavaScript event * @@ -3057,7 +3104,7 @@ interface JQuery { * @param handler A function to execute each time the event is triggered. * @see {@link https://api.jquery.com/submit/#submit-eventData-handler} */ - submit(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + submit(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Execute all handlers and behaviors attached to the matched elements for the given event type. @@ -3101,7 +3148,7 @@ interface JQuery { * @param handler The function that is to be no longer executed. * @see {@link https://api.jquery.com/unbind/#unbind-eventType-handler} */ - unbind(eventType?: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; + unbind(eventType?: string, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Remove a previously-attached event handler from the elements. * @@ -3131,7 +3178,11 @@ interface JQuery { * @param handler A function to execute at the time the event is triggered. * @see {@link https://api.jquery.com/undelegate/#undelegate-selector-eventType} */ - undelegate(selector: string, eventType: string, handler?: (eventObject: JQueryEventObject) => any): JQuery; + undelegate( + selector: string, + eventType: string, + handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any, + ): JQuery; /** * Remove a handler from the event for all elements which match the current selector, based upon a specific set of root elements. * @@ -3154,7 +3205,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/unload/#unload-handler} */ - unload(handler: (eventObject: JQueryEventObject) => any): JQuery; + unload(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "unload" JavaScript event. (DEPRECATED from v1.8) * @@ -3162,7 +3213,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/unload/#unload-eventData-handler} */ - unload(eventData?: any, handler?: (eventObject: JQueryEventObject) => any): JQuery; + unload(eventData?: any, handler?: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * The DOM node context originally passed to jQuery(); if none was passed then context will likely be the document. (DEPRECATED from v1.10) @@ -3178,7 +3229,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/error/#error-handler} */ - error(handler: (eventObject: JQueryEventObject) => any): JQuery; + error(handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Bind an event handler to the "error" JavaScript event. (DEPRECATED from v1.8) * @@ -3186,7 +3237,7 @@ interface JQuery { * @param handler A function to execute when the event is triggered. * @see {@link https://api.jquery.com/error/#error-eventData-handler} */ - error(eventData: any, handler: (eventObject: JQueryEventObject) => any): JQuery; + error(eventData: any, handler: (this: HTMLElement, eventObject: JQueryEventObject) => any): JQuery; /** * Add a collection of DOM elements onto the jQuery stack. @@ -3219,7 +3270,7 @@ interface JQuery { * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. * @see {@link https://api.jquery.com/after/#after-function} */ - after(func: (index: number, html: string) => string | Element | JQuery): JQuery; + after(func: (this: HTMLElement, index: number, html: string) => string | Element | JQuery): JQuery; /** * Insert content, specified by the parameter, to the end of each element in the set of matched elements. @@ -3353,7 +3404,7 @@ interface JQuery { * @param func A function that returns content with which to replace the set of matched elements. * @see {@link https://api.jquery.com/replaceWith/#replaceWith-function} */ - replaceWith(func: () => Element | JQuery): JQuery; + replaceWith(func: (this: HTMLElement) => Element | JQuery): JQuery; /** * Get the combined text contents of each element in the set of matched elements, including their descendants. @@ -3401,7 +3452,7 @@ interface JQuery { * @param func A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. * @see {@link https://api.jquery.com/wrap/#wrap-function} */ - wrap(func: (index: number) => string | JQuery): JQuery; + wrap(func: (this: HTMLElement, index: number) => string | JQuery): JQuery; /** * Wrap an HTML structure around all elements in the set of matched elements. @@ -3416,7 +3467,7 @@ interface JQuery { * @param func A callback function returning the HTML content or jQuery object to wrap around all the matched elements. Within the function, this refers to the first element in the set. * @see {@link https://api.jquery.com/wrapAll/#wrapAll-function} */ - wrapAll(func: (index: number) => string): JQuery; + wrapAll(func: (this: HTMLElement, index: number) => string): JQuery; /** * Wrap an HTML structure around the content of each element in the set of matched elements. @@ -3431,7 +3482,7 @@ interface JQuery { * @param func A callback function which generates a structure to wrap around the content of the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. * @see {@link https://api.jquery.com/wrapInner/#wrapInner-function} */ - wrapInner(func: (index: number) => string): JQuery; + wrapInner(func: (this: HTMLElement, index: number) => string): JQuery; /** * Iterate over a jQuery object, executing a function for each matched element. @@ -3440,7 +3491,7 @@ interface JQuery { * @see {@link https://api.jquery.com/each/} */ // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - each(func: (index: number, elem: Element) => boolean | void): JQuery; + each(func: (this: HTMLElement, index: number, elem: Element) => boolean | void): JQuery; /** * Retrieve one of the elements matched by the jQuery object. @@ -3592,7 +3643,7 @@ interface JQuery { * @param func A function used as a test for each element in the set. this is the current DOM element. * @see {@link https://api.jquery.com/filter/#filter-function} */ - filter(func: (index: number, element: Element) => boolean): JQuery; + filter(func: (this: HTMLElement, index: number, element: Element) => boolean): JQuery; /** * Reduce the set of matched elements to those that match the selector or pass the function's test. * @@ -3651,7 +3702,7 @@ interface JQuery { * @param func A function used as a test for the set of elements. It accepts one argument, index, which is the element's index in the jQuery collection.Within the function, this refers to the current DOM element. * @see {@link https://api.jquery.com/is/#is-function} */ - is(func: (index: number, element: Element) => boolean): boolean; + is(func: (this: HTMLElement, index: number, element: Element) => boolean): boolean; /** * Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. * @@ -3679,7 +3730,7 @@ interface JQuery { * @param callback A function object that will be invoked for each element in the current set. * @see {@link https://api.jquery.com/map/} */ - map(callback: (index: number, domElement: Element) => any): JQuery; + map(callback: (this: HTMLElement, index: number, domElement: Element) => any): JQuery; /** * Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector. @@ -3869,14 +3920,14 @@ interface JQuery { * @param newQueue An array of functions to replace the current queue contents. * @see {@link https://api.jquery.com/queue/#queue-queueName-newQueue} */ - queue(newQueue: Function[]): JQuery; + queue(newQueue: BoundFunction[]): JQuery; /** * Manipulate the queue of functions to be executed, once for each matched element. * * @param callback The new function to add to the queue, with a function to call that will dequeue the next item. * @see {@link https://api.jquery.com/queue/#queue-queueName-callback} */ - queue(callback: Function): JQuery; + queue(callback: BoundFunction): JQuery; /** * Manipulate the queue of functions to be executed, once for each matched element. * @@ -3884,7 +3935,7 @@ interface JQuery { * @param newQueue An array of functions to replace the current queue contents. * @see {@link https://api.jquery.com/queue/#queue-queueName-newQueue} */ - queue(queueName: string, newQueue: Function[]): JQuery; + queue(queueName: string, newQueue: BoundFunction[]): JQuery; /** * Manipulate the queue of functions to be executed, once for each matched element. * @@ -3892,7 +3943,7 @@ interface JQuery { * @param callback The new function to add to the queue, with a function to call that will dequeue the next item. * @see {@link https://api.jquery.com/queue/#queue-queueName-callback} */ - queue(queueName: string, callback: Function): JQuery; + queue(queueName: string, callback: BoundFunction): JQuery; /** * Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods. @@ -3900,7 +3951,7 @@ interface JQuery { * @param object An object to merge onto the jQuery prototype. * @see {@link https://api.jquery.com/jQuery.fn.extend/#jQuery-fn-extend-object} */ - extend(object: { [method: string]: (...args: any[]) => any }): JQuery; + extend(object: { [method: string]: (this: JQuery, ...args: any[]) => any }): JQuery; } // eslint-disable-next-line @definitelytyped/no-declare-current-package declare module "jquery" { diff --git a/types/jquery/v2/jquery-tests.ts b/types/jquery/v2/jquery-tests.ts index 83dfafd4aa2ec6..6c9f387a84239a 100644 --- a/types/jquery/v2/jquery-tests.ts +++ b/types/jquery/v2/jquery-tests.ts @@ -1191,7 +1191,7 @@ function test_data() { $("div").data("hidden") === true; $("div").data("options").name === "John"; var value; - switch ($("button").index(this)) { + switch ($("button").index()) { case 0: value = $("div").data("blah"); break; @@ -1540,7 +1540,6 @@ function test_error() { jQuery.error("Oups"); jQuery.error = (message?: string) => { console.error(message); - return this; }; } @@ -1699,7 +1698,8 @@ function test_fadeOut() { $(this).removeClass("hilite"); }); $("#btn1").click(function() { - function complete() { + /** Complete will still have the `this` context of fadeOut() */ + function complete(this: HTMLElement) { $("
").text(this.id).appendTo("#log"); } $("#box1").fadeOut(1600, "linear", complete); @@ -2739,12 +2739,12 @@ function test_fn_extend() { jQuery.fn.extend({ check: function() { return this.each(function() { - this.checked = true; + $(this).prop("checked", true); }); }, uncheck: function() { return this.each(function() { - this.checked = false; + $(this).prop("checked", false); }); }, }); @@ -3247,7 +3247,7 @@ function test_merge() { } function test_prop() { - var $input = $(this); + var $input = $("input"); $("p").html( ".attr('checked'): " + $input.attr("checked") + "
" + ".prop('checked'): " + $input.prop("checked") + "
" @@ -3262,7 +3262,7 @@ function test_prop() { $("input[type='checkbox']").prop({ disabled: true, }); - var title: string = $("option:selected", this).prop("title"); + var title: string = $("option:selected", $input).prop("title"); } function test_val() { @@ -3570,7 +3570,7 @@ function test_promise_then_change_type() { var def = $.Deferred(); var promise = def.promise(null); - def.rejectWith(this, [new Error()]); + def.rejectWith($("input"), [new Error()]); return promise; } diff --git a/types/jquery/v2/tsconfig.json b/types/jquery/v2/tsconfig.json index dcea2b24184322..472f46589318ca 100644 --- a/types/jquery/v2/tsconfig.json +++ b/types/jquery/v2/tsconfig.json @@ -6,7 +6,7 @@ "dom" ], "noImplicitAny": false, - "noImplicitThis": false, + "noImplicitThis": true, "strictNullChecks": false, "strictFunctionTypes": true, "types": [], diff --git a/types/jquery/v2/tslint.json b/types/jquery/v2/tslint.json deleted file mode 100644 index f098ccbf5923de..00000000000000 --- a/types/jquery/v2/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-boolean-literal-compare": false, - "no-duplicate-variable": false, - "no-redundant-jsdoc-2": false, - "no-string-throw": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-for-of": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jquerymobile/.eslintrc.json b/types/jquerymobile/.eslintrc.json index 0ccf472f671db3..d9f431a28057fe 100644 --- a/types/jquerymobile/.eslintrc.json +++ b/types/jquerymobile/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jquerymobile/tslint.json b/types/jquerymobile/tslint.json deleted file mode 100644 index e5fcff5ccf7a68..00000000000000 --- a/types/jquerymobile/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jqueryui/.eslintrc.json b/types/jqueryui/.eslintrc.json index 0075181ee4f2f3..0ebb8df7a60887 100644 --- a/types/jqueryui/.eslintrc.json +++ b/types/jqueryui/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off" } diff --git a/types/jqueryui/tslint.json b/types/jqueryui/tslint.json deleted file mode 100644 index 530373967f7173..00000000000000 --- a/types/jqueryui/tslint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "arrow-return-shorthand": false, - "jsdoc-format": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-switch": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jrf-pip/tslint.json b/types/jrf-pip/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jrf-pip/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-beautify/tslint.json b/types/js-beautify/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/js-beautify/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/js-captcha/tslint.json b/types/js-captcha/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/js-captcha/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/js-clipper/tslint.json b/types/js-clipper/tslint.json deleted file mode 100644 index 363b9b010990da..00000000000000 --- a/types/js-clipper/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "new-parens": false, - "no-unnecessary-class": false, - "no-var-keyword": false, - "prefer-const": false, - "prefer-template": false, - "unified-signatures": false - } -} diff --git a/types/js-cookie/tslint.json b/types/js-cookie/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-cookie/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-crc/tslint.json b/types/js-crc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-crc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-data-angular/tslint.json b/types/js-data-angular/tslint.json deleted file mode 100644 index dde7038ce08772..00000000000000 --- a/types/js-data-angular/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/js-fixtures/tslint.json b/types/js-fixtures/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/js-fixtures/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/js-git/tslint.json b/types/js-git/tslint.json deleted file mode 100644 index 5172d94c869889..00000000000000 --- a/types/js-git/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false - } -} diff --git a/types/js-gravatar/tslint.json b/types/js-gravatar/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-gravatar/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-image-zoom/tslint.json b/types/js-image-zoom/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-image-zoom/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-levenshtein/tslint.json b/types/js-levenshtein/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-levenshtein/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-md5/tslint.json b/types/js-md5/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-md5/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-money/tslint.json b/types/js-money/tslint.json deleted file mode 100644 index c1806eec64e0be..00000000000000 --- a/types/js-money/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-unnecessary-qualifier": false - } -} diff --git a/types/js-nacl/tslint.json b/types/js-nacl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-nacl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-priority-queue/tslint.json b/types/js-priority-queue/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/js-priority-queue/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/js-quantities/tslint.json b/types/js-quantities/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-quantities/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-rijndael/tslint.json b/types/js-rijndael/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-rijndael/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-roman-numerals/tslint.json b/types/js-roman-numerals/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/js-roman-numerals/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/js-schema/tslint.json b/types/js-schema/tslint.json deleted file mode 100644 index 8681998f901909..00000000000000 --- a/types/js-schema/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/js-search/tslint.json b/types/js-search/tslint.json deleted file mode 100644 index cf83c8f268e6f6..00000000000000 --- a/types/js-search/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-object-literal-type-assertion": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/js-sha1/tslint.json b/types/js-sha1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-sha1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-string-escape/tslint.json b/types/js-string-escape/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-string-escape/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-to-java/tslint.json b/types/js-to-java/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/js-to-java/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/js-url/.eslintrc.json b/types/js-url/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/js-url/.eslintrc.json +++ b/types/js-url/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/js-url/tslint.json b/types/js-url/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/js-url/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/js-worker-search/tslint.json b/types/js-worker-search/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/js-worker-search/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/js-yaml/tslint.json b/types/js-yaml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-yaml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js-yaml/v3/tslint.json b/types/js-yaml/v3/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js-yaml/v3/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js.spec/tslint.json b/types/js.spec/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js.spec/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/js2coffee/tslint.json b/types/js2coffee/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/js2coffee/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsan/tslint.json b/types/jsan/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsan/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsbarcode/tslint.json b/types/jsbarcode/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsbarcode/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsbn/.eslintrc.json b/types/jsbn/.eslintrc.json index f73edfbbe5b880..b7c95ed6b821e0 100644 --- a/types/jsbn/.eslintrc.json +++ b/types/jsbn/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { - "@definitelytyped/dt-header": "off" + "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off" } } diff --git a/types/jsbn/tslint.json b/types/jsbn/tslint.json deleted file mode 100644 index 51e24fc8e12fdb..00000000000000 --- a/types/jsbn/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false, - "unified-signatures": false - } -} diff --git a/types/jsboxmuller/tslint.json b/types/jsboxmuller/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsboxmuller/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jschannel/tslint.json b/types/jschannel/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jschannel/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jscodeshift/tslint.json b/types/jscodeshift/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jscodeshift/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jscrollpane/tslint.json b/types/jscrollpane/tslint.json deleted file mode 100644 index 40a1cdb346d371..00000000000000 --- a/types/jscrollpane/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "unified-signatures": false - } -} diff --git a/types/jsdeferred/tslint.json b/types/jsdeferred/tslint.json deleted file mode 100644 index c9e04e4539aa0d..00000000000000 --- a/types/jsdeferred/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-duplicate-variable": false, - "no-string-throw": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "prefer-template": false, - "triple-equals": false, - "unified-signatures": false - } -} diff --git a/types/jsdoc-to-markdown/tslint.json b/types/jsdoc-to-markdown/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsdoc-to-markdown/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsdom-global/tslint.json b/types/jsdom-global/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsdom-global/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsdom-screenshot/tslint.json b/types/jsdom-screenshot/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsdom-screenshot/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsdom/tslint.json b/types/jsdom/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsdom/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsen/tslint.json b/types/jsen/tslint.json deleted file mode 100644 index 8679b5f2dfd559..00000000000000 --- a/types/jsen/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-boolean-literal-compare": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "prefer-const": false - } -} diff --git a/types/jsend/tslint.json b/types/jsend/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/jsend/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jsesc/tslint.json b/types/jsesc/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsesc/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsfl/.eslintrc.json b/types/jsfl/.eslintrc.json index 3fd6d735e5cdd0..ca09b586000420 100644 --- a/types/jsfl/.eslintrc.json +++ b/types/jsfl/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off", "@typescript-eslint/no-empty-interface": "off" } diff --git a/types/jsfl/tslint.json b/types/jsfl/tslint.json deleted file mode 100644 index 9c54a4229fa257..00000000000000 --- a/types/jsfl/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "npm-naming": false - } -} diff --git a/types/jsforce/tslint.json b/types/jsforce/tslint.json deleted file mode 100644 index 3ee3990c143257..00000000000000 --- a/types/jsforce/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "await-promise": false, - "eofline": false, - "no-unnecessary-class": false - } -} diff --git a/types/jsftp/tslint.json b/types/jsftp/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/jsftp/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/jsgraph/tslint.json b/types/jsgraph/tslint.json deleted file mode 100644 index c5d34abd301a72..00000000000000 --- a/types/jsgraph/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-inferrable-types": false - } -} diff --git a/types/jshamcrest/tslint.json b/types/jshamcrest/tslint.json deleted file mode 100644 index 8098259e3dac7b..00000000000000 --- a/types/jshamcrest/tslint.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-string-throw": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jshint/tslint.json b/types/jshint/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jshint/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jskana/tslint.json b/types/jskana/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jskana/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jslib-html5-camera-photo/tslint.json b/types/jslib-html5-camera-photo/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jslib-html5-camera-photo/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsmediatags/tslint.json b/types/jsmediatags/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsmediatags/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsmidgen/tslint.json b/types/jsmidgen/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsmidgen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsmockito/tslint.json b/types/jsmockito/tslint.json deleted file mode 100644 index b6f14466461513..00000000000000 --- a/types/jsmockito/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-var-keyword": false, - "only-arrow-functions": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jsnox/jsnox-tests.ts b/types/jsnox/jsnox-tests.ts index 055d1d14335971..cecd70d294a1ca 100644 --- a/types/jsnox/jsnox-tests.ts +++ b/types/jsnox/jsnox-tests.ts @@ -14,8 +14,6 @@ class Person extends React.Component { } } -const PersonTag = React.createFactory(Person); - declare const clickHandler: React.MouseEventHandler<{}>; // tests with spec string @@ -54,5 +52,5 @@ function react_component(): void { result = $(Person, props); // no children result = $(Person, props, "hello"); // one string child result = $(Person, props, $("span", "world")); // one element child - result = $(Person, props, ["hello", PersonTag()]); // mixed array of children + result = $(Person, props, ["hello", React.createElement(Person)]); // mixed array of children } diff --git a/types/jsnox/tslint.json b/types/jsnox/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsnox/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-api-serializer/tslint.json b/types/json-api-serializer/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-api-serializer/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-bigint/tslint.json b/types/json-bigint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-bigint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-buffer/tslint.json b/types/json-buffer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-buffer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-diff/tslint.json b/types/json-diff/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-diff/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-dup-key-validator/tslint.json b/types/json-dup-key-validator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-dup-key-validator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-editor/tslint.json b/types/json-editor/tslint.json deleted file mode 100644 index 50e302369a1994..00000000000000 --- a/types/json-editor/tslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/json-file-plus/tslint.json b/types/json-file-plus/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-file-plus/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-fixer/tslint.json b/types/json-fixer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-fixer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-form-data/tslint.json b/types/json-form-data/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-form-data/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-js/tslint.json b/types/json-js/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-js/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-logic-js/tslint.json b/types/json-logic-js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-logic-js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-mask/tslint.json b/types/json-mask/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-mask/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-merge-patch/tslint.json b/types/json-merge-patch/tslint.json deleted file mode 100644 index f7eeea0e56d4e1..00000000000000 --- a/types/json-merge-patch/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "object-literal-shorthand": false, - "only-arrow-functions": false, - "prefer-const": false - } -} diff --git a/types/json-parse-better-errors/tslint.json b/types/json-parse-better-errors/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-parse-better-errors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-parse-helpfulerror/tslint.json b/types/json-parse-helpfulerror/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-parse-helpfulerror/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-parse-safe/tslint.json b/types/json-parse-safe/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-parse-safe/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-patch-gen/tslint.json b/types/json-patch-gen/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-patch-gen/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-patch/tslint.json b/types/json-patch/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-patch/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-pointer/.eslintrc.json b/types/json-pointer/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/json-pointer/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/json-pointer/tslint.json b/types/json-pointer/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/json-pointer/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/json-query/tslint.json b/types/json-query/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-query/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-rpc-random-id/tslint.json b/types/json-rpc-random-id/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-rpc-random-id/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-rpc-ws/tslint.json b/types/json-rpc-ws/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-rpc-ws/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-schema-compare/tslint.json b/types/json-schema-compare/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-schema-compare/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-schema-faker/tslint.json b/types/json-schema-faker/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-schema-faker/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-schema-generator/tslint.json b/types/json-schema-generator/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-schema-generator/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-schema-md-doc/tslint.json b/types/json-schema-md-doc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-schema-md-doc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-schema-merge-allof/tslint.json b/types/json-schema-merge-allof/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-schema-merge-allof/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-schema/.eslintrc.json b/types/json-schema/.eslintrc.json index 0f7b7412939420..efd71c1a6c0e5f 100644 --- a/types/json-schema/.eslintrc.json +++ b/types/json-schema/.eslintrc.json @@ -1,5 +1,6 @@ { "rules": { + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/json-schema/tslint.json b/types/json-schema/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/json-schema/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/json-server/tslint.json b/types/json-server/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-server/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-socket/tslint.json b/types/json-socket/tslint.json deleted file mode 100644 index 051b3cea202bd8..00000000000000 --- a/types/json-socket/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "prefer-const": false - } -} diff --git a/types/json-stable-stringify-without-jsonify/tslint.json b/types/json-stable-stringify-without-jsonify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-stable-stringify-without-jsonify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-stable-stringify/tslint.json b/types/json-stable-stringify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-stable-stringify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-stream/tslint.json b/types/json-stream/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-stream/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-string-splitter/tslint.json b/types/json-string-splitter/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-string-splitter/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-stringify-nice/tslint.json b/types/json-stringify-nice/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-stringify-nice/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-stringify-safe/tslint.json b/types/json-stringify-safe/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-stringify-safe/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-templates/tslint.json b/types/json-templates/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-templates/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json-to-ast/tslint.json b/types/json-to-ast/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json-to-ast/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json-to-pretty-yaml/tslint.json b/types/json-to-pretty-yaml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json-to-pretty-yaml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json2csv/tslint.json b/types/json2csv/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json2csv/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json2md/tslint.json b/types/json2md/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json2md/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json2mq/tslint.json b/types/json2mq/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json2mq/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json2xml/tslint.json b/types/json2xml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json2xml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json3/tslint.json b/types/json3/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/json3/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/json8-patch/tslint.json b/types/json8-patch/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json8-patch/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/json_ml/tslint.json b/types/json_ml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/json_ml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonabc/tslint.json b/types/jsonabc/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonabc/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonapi-serializer/tslint.json b/types/jsonapi-serializer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonapi-serializer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsoneditor-for-react/tslint.json b/types/jsoneditor-for-react/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsoneditor-for-react/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsoneditor/tslint.json b/types/jsoneditor/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsoneditor/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsoneditoronline/.eslintrc.json b/types/jsoneditoronline/.eslintrc.json index 5bf67bfd516c0d..1c7489360e7ede 100644 --- a/types/jsoneditoronline/.eslintrc.json +++ b/types/jsoneditoronline/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jsoneditoronline/tslint.json b/types/jsoneditoronline/tslint.json deleted file mode 100644 index 953701aeb43116..00000000000000 --- a/types/jsoneditoronline/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "npm-naming": false - } -} diff --git a/types/jsonexport/tslint.json b/types/jsonexport/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonexport/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonfile/tslint.json b/types/jsonfile/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonfile/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonic/tslint.json b/types/jsonic/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonic/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonld/tslint.json b/types/jsonld/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/jsonld/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/jsonlines/tslint.json b/types/jsonlines/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonlines/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonlint/tslint.json b/types/jsonlint/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonlint/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonminify/tslint.json b/types/jsonminify/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonminify/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonnet/tslint.json b/types/jsonnet/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/jsonnet/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jsonp-body/tslint.json b/types/jsonp-body/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonp-body/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonp-promise/tslint.json b/types/jsonp-promise/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonp-promise/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonp/tslint.json b/types/jsonp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonpack/tslint.json b/types/jsonpack/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonpack/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonpath-plus/tslint.json b/types/jsonpath-plus/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonpath-plus/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonpath/tslint.json b/types/jsonpath/tslint.json deleted file mode 100644 index bae6e1140b5d84..00000000000000 --- a/types/jsonpath/tslint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "arrow-return-shorthand": false, - "no-duplicate-variable": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jsonpointer/tslint.json b/types/jsonpointer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonpointer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonquery/tslint.json b/types/jsonquery/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsonquery/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsonrpc-serializer/tslint.json b/types/jsonrpc-serializer/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonrpc-serializer/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonschema-protobuf/tslint.json b/types/jsonschema-protobuf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsonschema-protobuf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonstream-next/tslint.json b/types/jsonstream-next/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/jsonstream-next/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/jsonstream/.eslintrc.json b/types/jsonstream/.eslintrc.json index cd5f95f1ef604e..4c69c187a3bd7d 100644 --- a/types/jsonstream/.eslintrc.json +++ b/types/jsonstream/.eslintrc.json @@ -1,6 +1,7 @@ { "rules": { "@definitelytyped/dt-header": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/adjacent-overload-signatures": "off" } } diff --git a/types/jsonstream/tslint.json b/types/jsonstream/tslint.json deleted file mode 100644 index be519242452cdd..00000000000000 --- a/types/jsonstream/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "unified-signatures": false - } -} diff --git a/types/jsontoxml/tslint.json b/types/jsontoxml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsontoxml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsonwebtoken-promisified/tslint.json b/types/jsonwebtoken-promisified/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsonwebtoken-promisified/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsonwebtoken/tslint.json b/types/jsonwebtoken/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsonwebtoken/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jspath/tslint.json b/types/jspath/tslint.json deleted file mode 100644 index 49ba2b056e96eb..00000000000000 --- a/types/jspath/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": [true, { "mode": "code", "errors": [["NeedsExportEquals", false]] }] - } -} diff --git a/types/jspreadsheet-ce/tslint.json b/types/jspreadsheet-ce/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jspreadsheet-ce/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsprim/tslint.json b/types/jsprim/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsprim/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsprintmanager/tslint.json b/types/jsprintmanager/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsprintmanager/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsqrcode/tslint.json b/types/jsqrcode/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsqrcode/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsqubits/tslint.json b/types/jsqubits/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsqubits/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-assets/tslint.json b/types/jsreport-assets/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-assets/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-chrome-pdf/tslint.json b/types/jsreport-chrome-pdf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-chrome-pdf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-client/tslint.json b/types/jsreport-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-core/tslint.json b/types/jsreport-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-docx/tslint.json b/types/jsreport-docx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-docx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-handlebars/tslint.json b/types/jsreport-handlebars/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-handlebars/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-html-embedded-in-docx/tslint.json b/types/jsreport-html-embedded-in-docx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-html-embedded-in-docx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-html-to-xlsx/tslint.json b/types/jsreport-html-to-xlsx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-html-to-xlsx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-html-to-xlsx/v1/tslint.json b/types/jsreport-html-to-xlsx/v1/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-html-to-xlsx/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-jsrender/tslint.json b/types/jsreport-jsrender/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-jsrender/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-pdf-utils/tslint.json b/types/jsreport-pdf-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-pdf-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-phantom-pdf/tslint.json b/types/jsreport-phantom-pdf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-phantom-pdf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-reports/tslint.json b/types/jsreport-reports/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-reports/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-scripts/tslint.json b/types/jsreport-scripts/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-scripts/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-templates/tslint.json b/types/jsreport-templates/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-templates/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport-xlsx/tslint.json b/types/jsreport-xlsx/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport-xlsx/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport/tslint.json b/types/jsreport/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsreport__nodejs-client/tslint.json b/types/jsreport__nodejs-client/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsreport__nodejs-client/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsrp/tslint.json b/types/jsrp/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsrp/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsrsasign/tslint.json b/types/jsrsasign/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsrsasign/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsspec__jsspec/tslint.json b/types/jsspec__jsspec/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsspec__jsspec/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jstimezonedetect/tslint.json b/types/jstimezonedetect/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jstimezonedetect/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jstorage/.eslintrc.json b/types/jstorage/.eslintrc.json index 59d00d648a54de..404e6392df6d19 100644 --- a/types/jstorage/.eslintrc.json +++ b/types/jstorage/.eslintrc.json @@ -2,6 +2,7 @@ "rules": { "@definitelytyped/dt-header": "off", "@definitelytyped/no-unnecessary-generics": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/ban-types": "off" } } diff --git a/types/jstorage/tslint.json b/types/jstorage/tslint.json deleted file mode 100644 index 35dc744bd99c50..00000000000000 --- a/types/jstorage/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-boolean-literal-compare": false, - "no-var-keyword": false - } -} diff --git a/types/jstoxml/tslint.json b/types/jstoxml/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jstoxml/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jstree/tslint.json b/types/jstree/tslint.json deleted file mode 100644 index 53e2a6dbfb51ab..00000000000000 --- a/types/jstree/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "unified-signatures": false - } -} diff --git a/types/jsts/tslint.json b/types/jsts/tslint.json deleted file mode 100644 index dd3cf827bbd333..00000000000000 --- a/types/jsts/tslint.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "jsdoc-format": false, - "no-redundant-jsdoc-2": false, - "no-unnecessary-class": false, - "no-unnecessary-qualifier": false, - "no-var-keyword": false, - "prefer-const": false, - "unified-signatures": false - } -} diff --git a/types/jsuite/tslint.json b/types/jsuite/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsuite/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsum/tslint.json b/types/jsum/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsum/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsuri/tslint.json b/types/jsuri/tslint.json deleted file mode 100644 index 5553b7ecbf96fc..00000000000000 --- a/types/jsuri/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false, - "triple-equals": false - } -} diff --git a/types/jsurl/tslint.json b/types/jsurl/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsurl/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsurl2/tslint.json b/types/jsurl2/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jsurl2/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jsx-ast-utils/tslint.json b/types/jsx-ast-utils/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsx-ast-utils/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsx-chai/tslint.json b/types/jsx-chai/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsx-chai/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jsx-pdf/tslint.json b/types/jsx-pdf/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jsx-pdf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jug/tslint.json b/types/jug/tslint.json deleted file mode 100644 index f4d9b28a312ccd..00000000000000 --- a/types/jug/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "array-type": false, - "no-redundant-jsdoc-2": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jui-core/tslint.json b/types/jui-core/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jui-core/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jui-grid/tslint.json b/types/jui-grid/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jui-grid/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jui/tslint.json b/types/jui/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jui/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jump.js/tslint.json b/types/jump.js/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jump.js/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/junit-report-builder/tslint.json b/types/junit-report-builder/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/junit-report-builder/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/justified-layout/tslint.json b/types/justified-layout/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/justified-layout/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/justifiedgallery/.eslintrc.json b/types/justifiedgallery/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/justifiedgallery/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/justifiedgallery/tslint.json b/types/justifiedgallery/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/justifiedgallery/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jwa/tslint.json b/types/jwa/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jwa/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jweixin/tslint.json b/types/jweixin/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jweixin/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jwk-to-pem/tslint.json b/types/jwk-to-pem/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jwk-to-pem/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jwplayer/.eslintrc.json b/types/jwplayer/.eslintrc.json new file mode 100644 index 00000000000000..603c79ec316965 --- /dev/null +++ b/types/jwplayer/.eslintrc.json @@ -0,0 +1,5 @@ +{ + "rules": { + "@definitelytyped/npm-naming": "off" + } +} diff --git a/types/jwplayer/tslint.json b/types/jwplayer/tslint.json deleted file mode 100644 index 585e9a1d59b3ba..00000000000000 --- a/types/jwplayer/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "npm-naming": false - } -} diff --git a/types/jws/tslint.json b/types/jws/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jws/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jwt-client/tslint.json b/types/jwt-client/tslint.json deleted file mode 100644 index 0aa0a2feb5e839..00000000000000 --- a/types/jwt-client/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jwt-encode/tslint.json b/types/jwt-encode/tslint.json deleted file mode 100644 index 2efa283002e7cf..00000000000000 --- a/types/jwt-encode/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json" -} diff --git a/types/jwt-express/tslint.json b/types/jwt-express/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jwt-express/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jwt-simple/tslint.json b/types/jwt-simple/tslint.json deleted file mode 100644 index 0e95f9517c9dde..00000000000000 --- a/types/jwt-simple/tslint.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@definitelytyped/dtslint/dt.json", - "rules": { - "jsdoc-format": false, - "no-inferrable-types": false, - "no-var-keyword": false, - "prefer-const": false - } -} diff --git a/types/jwt-then/index.d.ts b/types/jwt-then/index.d.ts index ded5c8027bf2e9..fcb1a5f2f07363 100644 --- a/types/jwt-then/index.d.ts +++ b/types/jwt-then/index.d.ts @@ -18,9 +18,9 @@ export interface SignOptions { */ algorithm?: string | undefined; keyid?: string | undefined; - /** expressed in seconds or a string describing a time span [zeit/ms](https://github.com/zeit/ms.js). Eg: 60, "2 days", "10h", "7d" */ + /** expressed in seconds or a string describing a time span [vercel/ms](https://github.com/vercel/ms). Eg: 60, "2 days", "10h", "7d" */ expiresIn?: string | number | undefined; - /** expressed in seconds or a string describing a time span [zeit/ms](https://github.com/zeit/ms.js). Eg: 60, "2 days", "10h", "7d" */ + /** expressed in seconds or a string describing a time span [vercel/ms](https://github.com/vercel/ms). Eg: 60, "2 days", "10h", "7d" */ notBefore?: string | number | undefined; audience?: string | string[] | undefined; subject?: string | undefined; diff --git a/types/jwt-then/tslint.json b/types/jwt-then/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jwt-then/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/jxon/tslint.json b/types/jxon/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/jxon/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/k-bucket/tslint.json b/types/k-bucket/tslint.json deleted file mode 100644 index 794cb4bf3e0782..00000000000000 --- a/types/k-bucket/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "@definitelytyped/dtslint/dt.json" } diff --git a/types/k6/.eslintrc.json b/types/k6/.eslintrc.json index 90d4d98354aa92..e0f399f1a56ce6 100644 --- a/types/k6/.eslintrc.json +++ b/types/k6/.eslintrc.json @@ -5,6 +5,7 @@ "@definitelytyped/no-outside-dependencies": "off", "@definitelytyped/no-self-import": "off", "@definitelytyped/redundant-undefined": "off", + "@definitelytyped/npm-naming": "off", "@typescript-eslint/no-empty-interface": "off" } } diff --git a/types/k6/crypto.d.ts b/types/k6/crypto.d.ts index cbc1c76d468148..207507db3cd32a 100644 --- a/types/k6/crypto.d.ts +++ b/types/k6/crypto.d.ts @@ -13,7 +13,7 @@ export function randomBytes(size: number): ArrayBuffer; /** * Produce HMAC. - * https://k6.io/docs/javascript-api/k6-crypto/hmac-algorithm-secret-data-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/hmac/ * @param algorithm - Hash algorithm. * @param secret - Shared secret. * @param input - Input data. @@ -31,7 +31,7 @@ export function hmac( /** * Hash with MD4. - * https://k6.io/docs/javascript-api/k6-crypto/md4-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/md4/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns MD4 digest. @@ -42,7 +42,7 @@ export function md4(input: string | ArrayBuffer, outp /** * Hash with MD5. - * https://k6.io/docs/javascript-api/k6-crypto/md5-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/md5/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns MD5 digest. @@ -53,7 +53,7 @@ export function md5(input: string | ArrayBuffer, outp /** * Hash with SHA-1. - * https://k6.io/docs/javascript-api/k6-crypto/sha1-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha1/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-1 digest. @@ -64,7 +64,7 @@ export function sha1(input: string | ArrayBuffer, out /** * Hash with SHA-256. - * https://k6.io/docs/javascript-api/k6-crypto/sha256-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha256/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-256 digest. @@ -75,7 +75,7 @@ export function sha256(input: string | ArrayBuffer, o /** * Hash with SHA-384. - * https://k6.io/docs/javascript-api/k6-crypto/sha384-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha384/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-384 digest. @@ -86,7 +86,7 @@ export function sha384(input: string | ArrayBuffer, o /** * Hash with SHA-512. - * https://k6.io/docs/javascript-api/k6-crypto/sha512-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-512 digest. @@ -97,7 +97,7 @@ export function sha512(input: string | ArrayBuffer, o /** * Hash with SHA-512/224. - * https://k6.io/docs/javascript-api/k6-crypto/sha512_224-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512_224/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-512/224 digest. @@ -108,7 +108,7 @@ export function sha512_224(input: string | ArrayBuffe /** * Hash with SHA-512/256. - * https://k6.io/docs/javascript-api/k6-crypto/sha512_256-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512_256/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-512/256 digest. @@ -119,7 +119,7 @@ export function sha512_256(input: string | ArrayBuffe /** * Hash with RIPEMD-160. - * https://k6.io/docs/javascript-api/k6-crypto/ripemd160-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/ripemd160/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns RIPEMD-160 digest. @@ -130,7 +130,7 @@ export function ripemd160(input: string | ArrayBuffer /** * Create a hashing object. - * https://k6.io/docs/javascript-api/k6-crypto/createhash-algorithm/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/createhash/ * @param algorithm - Hash algorithm. * @returns Hashing object. * @example @@ -139,7 +139,7 @@ export function createHash(algorithm: Algorithm): Hasher; /** * Create an HMAC hashing object. - * https://k6.io/docs/javascript-api/k6-crypto/createhmac-algorithm-secret/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/createhmac/ * @param algorithm - Hash algorithm. * @param secret - Shared secret. * @returns HMAC hashing object. @@ -186,14 +186,14 @@ export type Output = OE extends StringEncoding ? stri /** * Hashing object. - * https://k6.io/docs/javascript-api/k6-crypto/hasher/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/hasher/ */ export abstract class Hasher { protected __brand: never; /** * Add more data to the string we want to create a hash of. - * https://k6.io/docs/javascript-api/k6-crypto/hasher/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/hasher/ * @param input - Data to add. * @example * let hasher = crypto.createHMAC('sha256', 'a secret'); @@ -205,7 +205,7 @@ export abstract class Hasher { /** * Return a digest from the data added so far. - * https://k6.io/docs/javascript-api/k6-crypto/hasher/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/hasher/ * @param outputEncoding - Output encoding. * @returns Digest of data added so far. * @example @@ -219,7 +219,7 @@ export abstract class Hasher { /** * This module provides common hashing functionality available in the GoLang crypto package. - * https://k6.io/docs/javascript-api/k6-crypto/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/ */ declare namespace crypto { /** @@ -235,7 +235,7 @@ declare namespace crypto { /** * Produce HMAC. - * https://k6.io/docs/javascript-api/k6-crypto/hmac-algorithm-secret-data-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/hmac/ * @param algorithm - Hash algorithm. * @param secret - Shared secret. * @param input - Input data. @@ -253,7 +253,7 @@ declare namespace crypto { /** * Hash with MD4. - * https://k6.io/docs/javascript-api/k6-crypto/md4-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/md4/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns MD4 digest. @@ -264,7 +264,7 @@ declare namespace crypto { /** * Hash with MD5. - * https://k6.io/docs/javascript-api/k6-crypto/md5-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/md5/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns MD5 digest. @@ -275,7 +275,7 @@ declare namespace crypto { /** * Hash with SHA-1. - * https://k6.io/docs/javascript-api/k6-crypto/sha1-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha1/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-1 digest. @@ -286,7 +286,7 @@ declare namespace crypto { /** * Hash with SHA-256. - * https://k6.io/docs/javascript-api/k6-crypto/sha256-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha256/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-256 digest. @@ -297,7 +297,7 @@ declare namespace crypto { /** * Hash with SHA-384. - * https://k6.io/docs/javascript-api/k6-crypto/sha384-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha384/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-384 digest. @@ -308,7 +308,7 @@ declare namespace crypto { /** * Hash with SHA-512. - * https://k6.io/docs/javascript-api/k6-crypto/sha512-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-512 digest. @@ -319,7 +319,7 @@ declare namespace crypto { /** * Hash with SHA-512/224. - * https://k6.io/docs/javascript-api/k6-crypto/sha512_224-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512_224/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-512/224 digest. @@ -330,7 +330,7 @@ declare namespace crypto { /** * Hash with SHA-512/256. - * https://k6.io/docs/javascript-api/k6-crypto/sha512_256-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/sha512_256/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns SHA-512/256 digest. @@ -341,7 +341,7 @@ declare namespace crypto { /** * Hash with RIPEMD-160. - * https://k6.io/docs/javascript-api/k6-crypto/ripemd160-input-outputencoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/ripemd160/ * @param input - Data to hash. * @param outputEncoding - Output encoding. * @returns RIPEMD-160 digest. @@ -352,7 +352,7 @@ declare namespace crypto { /** * Create a hashing object. - * https://k6.io/docs/javascript-api/k6-crypto/createhash-algorithm/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/createhash/ * @param algorithm - Hash algorithm. * @returns Hashing object. * @example @@ -365,7 +365,7 @@ declare namespace crypto { /** * Create an HMAC hashing object. - * https://k6.io/docs/javascript-api/k6-crypto/createhmac-algorithm-secret/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-crypto/createhmac/ * @param algorithm - Hash algorithm. * @param secret - Shared secret. * @returns HMAC hashing object. diff --git a/types/k6/data.d.ts b/types/k6/data.d.ts index 07fb93b670258a..e0bd08c2f8c63b 100644 --- a/types/k6/data.d.ts +++ b/types/k6/data.d.ts @@ -1,16 +1,16 @@ /** * Given a name and a function that returns an array, the SharedArray constructor returns the same array but sharing the array memory between VUs. - * https://k6.io/docs/javascript-api/k6-data/sharedarray/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/ */ export const SharedArray: { /** * Given a name and a function that returns an array, the SharedArray constructor returns the same array but sharing the array memory between VUs. - * https://k6.io/docs/javascript-api/k6-data/sharedarray/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/ */ new(name: string, callback: () => []): []; /** * Given a name and a function that returns an array, the SharedArray constructor returns the same array but sharing the array memory between VUs. - * https://k6.io/docs/javascript-api/k6-data/sharedarray/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-data/sharedarray/ */ new(name: string, callback: () => T[]): T[]; }; diff --git a/types/k6/encoding.d.ts b/types/k6/encoding.d.ts index 9fabe85e1fa55d..813cf1875fd653 100644 --- a/types/k6/encoding.d.ts +++ b/types/k6/encoding.d.ts @@ -1,6 +1,6 @@ /** * Base64 decode a string. - * https://k6.io/docs/javascript-api/k6-encoding/b64decode-input-encoding-format/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64decode/ * @param input - The string to base64 decode. * @param encoding - Base64 variant. * @returns The base64 decoded version of the input string in either string or ArrayBuffer format, depending on the `format` parameter. @@ -14,7 +14,7 @@ export function b64decode(input: string, encoding?: Base64Variant): ArrayBuffer; /** * Base64 decode a string. - * https://k6.io/docs/javascript-api/k6-encoding/b64decode-input-encoding-format/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64decode/ * @param input - The string to base64 decode. * @param encoding - Base64 variant. * @param format - If 's' return the data as a string, otherwise an ArrayBuffer object . @@ -28,7 +28,7 @@ export function b64decode(input: string, encoding: Base64Variant, format: "s"): /** * Base64 encode a string. - * https://k6.io/docs/javascript-api/k6-encoding/b64encode-input-encoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64encode/ * @param input - String to encode or ArrayBuffer object. * @param encoding - Base64 variant. * @returns Base64 encoded string. @@ -45,12 +45,12 @@ export type Base64Variant = "std" | "rawstd" | "url" | "rawurl"; /** * The encoding module provides base64 encoding/decoding. - * https://k6.io/docs/javascript-api/k6-encoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/ */ declare namespace encoding { /** * Base64 decode a string. - * https://k6.io/docs/javascript-api/k6-encoding/b64decode-input-encoding-format/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64decode/ * @param input - The string to base64 decode. * @param encoding - Base64 variant. * @returns The base64 decoded version of the input string in either string or ArrayBuffer format, depending on the `format` parameter. @@ -63,7 +63,7 @@ declare namespace encoding { function b64decode(input: string, encoding?: Base64Variant): ArrayBuffer; /** * Base64 decode a string. - * https://k6.io/docs/javascript-api/k6-encoding/b64decode-input-encoding-format/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64decode/ * @param input - The string to base64 decode. * @param encoding - Base64 variant. * @param format - If 's' return the data as a string, otherwise an ArrayBuffer object . @@ -76,7 +76,7 @@ declare namespace encoding { function b64decode(input: string, encoding: Base64Variant, format: "s"): string; /** * Base64 decode a string. - * https://k6.io/docs/javascript-api/k6-encoding/b64decode-input-encoding/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-encoding/b64decode/ * @param input - Base64 encoded string or ArrayBuffer object. * @param encoding - Base64 variant. * @returns Decoded string. diff --git a/types/k6/execution.d.ts b/types/k6/execution.d.ts index 3471227f7726ff..b410b58384f9b7 100644 --- a/types/k6/execution.d.ts +++ b/types/k6/execution.d.ts @@ -2,7 +2,7 @@ import { Options } from "./options"; /* * The execution module provides information about the current test execution state. - * https://k6.io/docs/javascript-api/k6-execution/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-execution/ */ declare namespace execution { /** @@ -67,7 +67,7 @@ declare namespace execution { const test: { /** * Aborts the test run with the exit code 108. - * https://k6.io/docs/javascript-api/k6-execution/#test + * https://grafana.com/docs/k6/latest/javascript-api/k6-execution/#test * @param input - Aborted message. * @example * import exec from "k6/execution"; diff --git a/types/k6/experimental/browser.d.ts b/types/k6/experimental/browser.d.ts index fff04f4e693a29..2a35011438597d 100644 --- a/types/k6/experimental/browser.d.ts +++ b/types/k6/experimental/browser.d.ts @@ -20,6 +20,40 @@ export type Unboxed = Arg extends [infer A0, infer A1] ? [Unboxed, Unbo : Arg extends object ? { [Key in keyof Arg]: Unboxed } : Arg; +/* + * CPUProfile is the mandatory input to be passed into {@link Page}'s + * `throttleCPU` method. + */ +export interface CPUProfile { + /* + * rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc). + */ + rate: number; +} + +/* + * NetworkProfile is the mandatory input to be passed into {@link Page}'s + * `throttleNetwork` method. + */ +export interface NetworkProfile { + /* + * Minimum latency from request sent to response headers received (ms). + */ + latency: number; + + /* + * Maximal aggregated download throughput (bytes/sec). -1 disables download + * throttling. + */ + download: number; + + /* + * Maximal aggregated upload throughput (bytes/sec). -1 disables upload + * throttling. + */ + upload: number; +} + export interface SelectOptionsObject { /** * Matches by `option.value`. @@ -545,6 +579,12 @@ export const browser: Browser; * `Browser` represents the main web browser instance. */ export interface Browser { + /** + * Closes the current `BrowserContext`. If there is no active + * `BrowserContext`, this method will throw an error. + */ + closeContext(): void; + /** * Returns the current `BrowserContext`. There is a 1-to-1 mapping between * `Browser` and `BrowserContext`. If no `BrowserContext` has been @@ -650,7 +690,10 @@ export interface BrowserContext { cookies(...urls: string[]): Cookie[]; /** - * Clears all permission overrides for the `BrowserContext`. + * Clears all permission overrides for the {@link BrowserContext}. + * ```js + * context.clearPermissions(); + * ``` */ clearPermissions(): void; @@ -660,7 +703,10 @@ export interface BrowserContext { close(): void; /** - * Grants specified permissions to the `BrowserContext`. + * Grants specified permissions to the {@link BrowserContext}. + * ```js + * context.grantPermissions(['geolocation']); + * ``` */ grantPermissions( /** @@ -741,40 +787,55 @@ export interface BrowserContext { /** * Waits for the event to fire and passes its value into the predicate - * function. + * function. Currently the only supported event is 'page' which when used will + * return the new {@link Page} that was created after `waitForEvent` was called. + * + * @example + * ```js + * // Call waitForEvent with a predicate which will return true once at least + * // one page has been created. + * const promise = context.waitForEvent("page", { predicate: page => { + * if (++counter >= 1) { + * return true + * } + * return false + * } }) + * + * // Now we create a page. + * const page = context.newPage() + * + * // Wait for the predicate to pass. + * await promise + * ``` */ waitForEvent( /** - * Name of event to wait for. - * - * NOTE: Currently this argument is disregarded, and waitForEvent will - * always wait for 'close' or 'page' events. + * Name of event to wait for. The only supported event is 'page'. If any + * other value is used an error will be thrown. */ - event: string, + event: "page", /** - * The `Page` or null event data will be passed to it and it must - * return true to continue. + * This is an optional argument. It can either be a predicate function or + * an options object. */ - optionsOrPredicate: { + optionsOrPredicate?: { /** - * Function that will be called when the 'Page' event is emitted. - * The event data will be passed to it and it must return true + * Optional function that will be called when the {@link Page} event is + * emitted. The event data will be passed to it and it must return true * to continue. * - * If `Page` is passed to predicate, this signals that a new page + * If {@link Page} is passed to predicate, this signals that a new page * has been created. - * If null is passed to predicate, this signals that the page is - * closing. */ - predicate: (page: Page | null) => boolean; + predicate?: (page: Page) => boolean; /** - * Maximum time to wait in milliseconds. Pass 0 to disable timeout. - * Defaults to 30000 milliseconds. + * Maximum time to wait in milliseconds. Defaults to 30000 milliseconds or + * the timeout set by setDefaultTimeout on the {@link BrowserContext}. */ timeout?: number; - }, - ): Page | null; + } | ((page: Page) => boolean), + ): Promise; } /** @@ -2992,6 +3053,55 @@ export interface Page { }, ): string; + /** + * Throttles the CPU in Chrome/Chromium to slow it down by the specified + * `rate` in {@link CPUProfile}. {@link CPUProfile} is a mandatory + * input argument. The default `rate` is `1`. + * + * **Usage** + * + * ```js + * page.throttleCPU({ rate: 4 }); + * ``` + */ + throttleCPU(profile: CPUProfile): void; + + /** + * Throttles the network in Chrome/Chromium to slow it down by the specified + * fields in {@link NetworkProfile}. {@link NetworkProfile} is a mandatory + * input argument. + * + * **Usage** + * + * ```js + * page.throttleNetwork({ + * latency: 750, + * download: 250, + * upload: 250, + * }); + * ``` + * + * To work with the most commonly tested network profiles, import `networkProfiles` + * from the browser module. There are three profiles available: + * - `'No Throttling'` (default) + * - `'Fast 3G'` + * - `'Slow 3G'` + * + * **Usage** + * + * ```js + * import { browser, networkProfiles } from 'k6/experimental/browser'; + * ... // redacted + * const context = browser.newContext(); + * const page = context.newPage(); + * + * try { + * page.throttleNetwork(networkProfiles['Slow 3G']); + * ... // redacted + * ``` + */ + throttleNetwork(profile: NetworkProfile): void; + /** * Returns the page's title. */ diff --git a/types/k6/experimental/fs.d.ts b/types/k6/experimental/fs.d.ts new file mode 100644 index 00000000000000..a0c82835b377b7 --- /dev/null +++ b/types/k6/experimental/fs.d.ts @@ -0,0 +1,102 @@ +/** + * The k6 experimental filesystem module provides an API for handling file operations + * in your k6 tests. It allows you to read files within your test scripts. + */ + +/** + * Opens a file and returns a promise that resolves to an instance of the `File` class. + * + * Note: As the k6 init context doesn't support 'await', use the following pattern: + * + * Example: + * ``` + * let fileHandle; + * (async function() { + * fileHandle = await open("example.txt"); + * }()); + * ``` + * + * @param path - The file path as a string. Relative paths are resolved relative to the k6 script. + * @returns Promise - A promise that resolves to a `File` instance. + */ +export function open(path: string): Promise; + +/** + * Represents a file and provides methods to interact with file data. + * This class offers read-only access to file contents. + */ +export class File { + /** + * The absolute path of the file. + * + * This is resolved relative to the k6 script. + */ + path: string; + + /** + * Reads the file into a specified buffer type and returns the number of bytes read. + * Resolves to `null` if there's nothing to read (EOF or empty file). + * + * Example: + * ``` + * const buffer = new Uint8Array(100); + * const bytesRead = await file.read(buffer); + * console.log(`Read ${bytesRead} bytes`); + * ``` + * + * @param p - A Uint8Array buffer to read the file into. + * @returns Promise - Number of bytes read or `null`. + */ + read(p: Uint8Array): Promise; + + /** + * Moves the file pointer to a new location, based on `offset` and `whence`. + * Resolves to the new position within the file (in bytes). + * + * When using `SeekMode.Start`, the offset must be greater than or equal to zero. + * When using `SeekMode.Current`, the offset can be positive or negative. + * When using `SeekMode.End`, the offset must be less than or equal to zero. + * + * Example: + * ``` + * const newOffset = await file.seek(10, SeekMode.Start); + * console.log(`Pointer moved to position ${newOffset}`); + * ``` + * + * @param offset - The offset to seek to. + * @param whence - The position from where offset is added (Start, Current, or End). + * @returns Promise - The new position in the file. + */ + seek(offset: number, whence: SeekMode): Promise; + + /** + * Retrieves information about the file. + * Resolves to a `FileInfo` object describing the file. + * + * Example: + * ``` + * const fileInfo = await file.stat(); + * console.log(`File size: ${fileInfo.size} bytes`); + * ``` + * + * @returns Promise - Information about the file. + */ + stat(): Promise; +} + +/** + * Contains information about a file, including its name and size. + */ +export interface FileInfo { + name: string; // The name of the file + size: number; // The size of the file in bytes +} + +/** + * Enumeration for file seek modes. + */ +export enum SeekMode { + Start = 0, // Seek from the start of the file + Current = 1, // Seek from the current file position. + End = 2, // Seek from the end of the file +} diff --git a/types/k6/experimental/grpc.d.ts b/types/k6/experimental/grpc.d.ts index fdb0da05d816b6..c5baa4c69d9589 100644 --- a/types/k6/experimental/grpc.d.ts +++ b/types/k6/experimental/grpc.d.ts @@ -97,12 +97,12 @@ export interface GrpcError { /** * This module provides classes for Remote Procedure Calls over HTTP/2. - * https://k6.io/docs/javascript-api/k6-experimental/grpc/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/grpc/ */ declare namespace grpc { /** * gRPC client to interact with a gRPC server. - * https://k6.io/docs/javascript-api/k6-experimental/grpc/client/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/grpc/client/ */ class Client { protected __brand: never; diff --git a/types/k6/experimental/redis.d.ts b/types/k6/experimental/redis.d.ts index 4d01a1f927a5a6..611a95008de0fb 100644 --- a/types/k6/experimental/redis.d.ts +++ b/types/k6/experimental/redis.d.ts @@ -2,26 +2,52 @@ * This module provides a redis client allowing users to interact with redis, * directly from their k6 scripts. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/ */ /** - * `Client` is a Redis client to interact with a Redis server or cluster. + * `Client` is a Redis client for interacting with a Redis server or cluster. * - * It exposes a promise-based API, allowing users to interact with Redis in an asynchronous manner. + * This client provides a promise-based API, enabling asynchronous operations with the Redis server. + * It supports a wide range of configurations, including single-node connections, cluster mode, and connections through Redis Sentinel. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client + * The client can be configured either by passing a `RedisClientOptions` object for fine-grained configuration, + * or by using a `RedisConnectionURL` string for simpler setups. + * + * For more information on the k6 Redis module, visit: + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client */ export class Client { protected __brand: never; /** - * Instantiate a new Redis client. + * Creates a new instance of the Redis client. + * + * The client can be configured in two ways: + * 1. By providing an object of `RedisClientOptions`, allowing detailed configuration including + * authentication, connection settings, client behaviors, and cluster or sentinel setups. + * 2. By providing a `RedisConnectionURL` string, suitable for straightforward configurations. + * The URL should follow the format: redis[s]://[[username][:password]@][host][:port][/db-number] + * + * Example usage: + * ``` + * // Using RedisClientOptions + * const client = new Client({ + * socket: { + * host: 'localhost', + * port: 6379 + * }, + * password: 'yourpassword' + * }); * - * @param options - Options. - * @returns instantiated Client + * // Using RedisConnectionURL + * const client = new Client('redis://user:password@localhost:6379/0'); + * ``` + * + * @param options - The configuration options for the client, either as a `RedisClientOptions` object or a `RedisConnectionURL` string. + * @returns The instantiated Redis client. */ - constructor(options: Options); + constructor(options: RedisClientOptions | RedisConnectionURL); /** * Sets the value of a key, with a time to live (ttl) value equal to @@ -29,7 +55,7 @@ export class Client { * * If the key already exists, it is overwritten. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-set + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-set * * @param key - key to set * @param value - value to set @@ -41,7 +67,7 @@ export class Client { /** * Gets the value of a key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-get + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-get * * @param key - key to get * @returns a promise that resolves to the value of the key. @@ -52,7 +78,7 @@ export class Client { * Atomically sets the value of a key and returns the value * previously stored at that key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-getset + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-getset * * @param key - key to get and set * @param value - value to set @@ -65,7 +91,7 @@ export class Client { * * A key is ignored if it does not exist. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-del + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-del * * @param keys - keys to delete * @returns a promise that resolves to the number of keys that were removed. @@ -75,7 +101,7 @@ export class Client { /** * Get the value of a key and delete it. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-getdel + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-getdel * * @param key - the key to get and delete * @returns a promise that resolves to the value of the key that was deleted. @@ -85,7 +111,7 @@ export class Client { /** * Returns the number of the provided keys arguments that exist. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-exists + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-exists * * @param keys - the keys to check the existence of * @returns a promise that resolves to the number of keys that exist. @@ -98,7 +124,7 @@ export class Client { * If the key does not exist, it is set to 0 before performing the operation. * If the key exists but cannot be treated as a number, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-incr + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-incr * * @param key - key to increment the value of * @returns a promise that resolves to the value of the key after the increment. @@ -111,7 +137,7 @@ export class Client { * If the key does not exist, it is set to 0 before performing the operation. * If the key exists but cannot be treated as a number, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-incrby + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-incrby * * @param key - key to increment the value of * @param increment - amount to increment the value of the key by @@ -125,7 +151,7 @@ export class Client { * If the key does not exist, it is set to 0 before performing the operation. * If the key exists but cannot be treated as a number, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-decr + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-decr * * @param key - key to decrement the value of * @returns a promise that resolves to the value of the key after the decrement. @@ -138,7 +164,7 @@ export class Client { * If the key does not exist, it is set to 0 before performing the operation. * If the key exists but cannot be treated as a number, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-decrby + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-decrby * * @param key - key to decrement the value of * @param decrement - amount to decrement the value of the key by @@ -151,7 +177,7 @@ export class Client { * * If the database is empty, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-randomkey + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-randomkey * * @returns a promise that resolves to a random key. */ @@ -160,7 +186,7 @@ export class Client { /** * Returns the values of all the specified keys. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-mget + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-mget * * @param keys - the keys to get the values of * @returns a promise that resolves to an array of the values of the keys. @@ -173,7 +199,7 @@ export class Client { * Calling expire with a non-positive timeout value will result in the being deleted rather * than expired. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-expire + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-expire * * @param key - key to set the time to live of * @param seconds - value to set the time to live of the key to (in seconds) @@ -184,7 +210,7 @@ export class Client { /** * Returns the remaining time to live of a key that has a timeout. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-ttl + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-ttl * * @param key - the key to get the time to live of * @returns a promise that resolves to the time to live of the key, in seconds. @@ -194,7 +220,7 @@ export class Client { /** * Removes the existing timeout on a key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-persist + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-persist * * @param key - the key to remove the timeout of. * @returns a promise that resolves to true if the operation succeeded, false otherwise. @@ -206,7 +232,7 @@ export class Client { * * If the key exists but does not hold a list, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-lpush + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lpush * * @param key - key holding the list to prepend to * @param values - values to prepend to the list @@ -219,7 +245,7 @@ export class Client { * * If the key exists but does not hold a list, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-rpush + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-rpush * * @param key - key holding the list to append to * @param values - values to append to the list @@ -230,7 +256,7 @@ export class Client { /** * Removes and returns the value at the head of the list stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-lpop + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lpop * * @param key - key holding the list to pop the head of * @returns a promise that resolves to the value that was popped. @@ -240,7 +266,7 @@ export class Client { /** * Removes and returns the value at the tail of the list stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-rpop + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-rpop * * @param key - key holding the list to pop the tail of * @returns a promise that resolves to the value that was popped. @@ -253,7 +279,7 @@ export class Client { * The offsets are zero-based. These offsets can be negative numbers indicating * offsets starting at the end of the list. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-lrange + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lrange * * @param key - key holding the list to get the range of * @param start - index of the first element to return @@ -268,7 +294,7 @@ export class Client { * The offsets are zero-based. These offsets can be negative numbers indicating * offsets starting at the end of the list. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-lindex + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lindex * * @param key - key holding the list to get the element of * @param index - index of the element to get @@ -279,7 +305,7 @@ export class Client { /** * Sets the value of an element in the list stored at key to new value. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-lset + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lset * * @param key - key holding the list to set the element of * @param index - index of the element to set @@ -295,7 +321,7 @@ export class Client { * If the `count` is 0, all occurrences of `value` are removed. * If the `count` is negative, elements are removed from the tail of the list (from right to left). * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-lrem + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-lrem * * @param key - key holding the list to remove the element of * @param count - the number of elements matching the value to remove @@ -309,7 +335,7 @@ export class Client { * * If the key does not exist, it is interpreted as an empty list and 0 is returned. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-llen + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-llen * * @param key - key holding the list to get the length of * @returns a promise that resolves to the length of the list. @@ -322,7 +348,7 @@ export class Client { * If the key does not exist, a new key holding a hash is created. * If the field already exists, it is overwritten. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hset + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hset * * @param key - key holding the hash to set the field's value of * @param field - field to set the value of @@ -337,7 +363,7 @@ export class Client { * If the key does not exist, a new key holding a hash is created. * If the field already exists, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hsetnx + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hsetnx * * @param key - key holding the hash to set the field's value of * @param field - field to set the value of @@ -349,7 +375,7 @@ export class Client { /** * Returns the value of the specified hash field. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hget + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hget * * @param key - key holding the hash to get the field's value of * @param field - field to get the value of @@ -360,7 +386,7 @@ export class Client { /** * Deletes the specified fields from the hash stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hdel + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hdel * * @param key - key holding the hash to delete the fields of * @param fields - fields to delete from the hash @@ -371,7 +397,7 @@ export class Client { /** * Returns all fields and values of the hash stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hgetall + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hgetall * * @param key - the key holding the hash to get the fields of * @returns a promise that resolves to an object of field/value pairs. @@ -381,7 +407,7 @@ export class Client { /** * Returns all fields of the hash stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hkeys + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hkeys * * @param key - the key holding the hash to get the fields of * @returns a promise that resolves to an array of field names. @@ -391,7 +417,7 @@ export class Client { /** * Returns all values of the hash stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hvals + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hvals * * @param key - the key holding the hash to get the fields' values of * @returns a promise that resolves to an array of field values. @@ -401,7 +427,7 @@ export class Client { /** * Return the number of fields contained in the hash stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hlen + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hlen * * @param key - the key holding the hash to get the number of fields of * @returns a promise that resolves to the number of fields in the hash. @@ -415,7 +441,7 @@ export class Client { * If the field does not exist, it is set to 0 before the operation is performed. * If the field does not hold a nummerical value, the returned promise will be rejected. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-hincrby + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-hincrby * * @param key - the key holding the hash to get the number of fields of * @param field - the hash's field to increment the value of @@ -430,7 +456,7 @@ export class Client { * Specified elements that are already a member of the set are ignored. * If the key does not exist, a new set is created before adding the specified elements. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-sadd + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-sadd * * @param key - the key holding the set to add a member to * @param members - the members to add to the set @@ -444,7 +470,7 @@ export class Client { * Specified members that are not a member of this set are ignored. * If key does not exist, it is treated as an empty set and this command returns 0. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-srem + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-srem * * @param key - the key holding the set to remove a member from * @param members - the members to remove from the set @@ -455,7 +481,7 @@ export class Client { /** * Returns whether or not the specified member is a member of the set stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-sismembers + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-sismember * * @param key - the key holding the set to check the belonging of * @param member - the member to check the belonging of @@ -466,7 +492,7 @@ export class Client { /** * Returns the members of the set stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-smembers + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-smembers * * @param key - the key holding the set to get the members of * @returns a promise that resolves to an array of members in the set. @@ -476,7 +502,7 @@ export class Client { /** * Returns a random member of the set value stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-srandmember + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-srandmember * * @param key - the key holding the set to get the random member of * @returns a promise that resolves to a random member of the set. @@ -486,7 +512,7 @@ export class Client { /** * Pops a random member from the set stored at key. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/client/client-spop + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/redis/client/client-spop * * @param key - the key holding the set to pop the random member of * @returns a promise that resolves to the popped member. @@ -495,114 +521,296 @@ export class Client { } /** - * Options for configuring the redis Client. + * Represents a Redis connection URL. + * The URL follows the format: redis[s]://[[username][:password]@][host][:port][/db-number] + * + * - `RedisProtocol` indicates the protocol used ('redis' for standard connections, 'rediss' for secure TLS connections). + * - `RedisUserInfo` optionally includes the username and password for authentication. + * - The `host` is the IP address or hostname of the Redis server. + * - `RedisPort` is the port on which the Redis server is listening (optional, defaults to 6379 if not specified). + * - `RedisDbNumber` specifies a particular database number to connect to (optional). + */ +export type RedisConnectionURL = `${RedisProtocol}://${RedisUserInfo}${string}${RedisPort}${RedisDbNumber}`; + +/** + * Represents the protocol part of a Redis URL. + * - `redis`: Standard, non-encrypted connections. + * - `rediss`: Secure connections using TLS. + */ +export type RedisProtocol = "redis" | "rediss"; + +/** + * Represents the user authentication information part of a Redis URL. + * Formats: + * - `username:password@`: Both username and password are provided for authentication. + * - `username@`: Only username is provided, no password. + * - `"": No authentication information is included. + */ +export type RedisUserInfo = `${string}:${string}@` | `${string}@` | ""; + +export type RedisHost = string; + +/** + * Represents the port part of a Redis URL. + * - `:number`: The port number on which the Redis server is listening. + * - `"": No port is specified, implying the default port (usually 6379). + */ +export type RedisPort = `:${number}` | ""; + +/** + * Represents the database number part of a Redis URL. + * - `/${number}`: Specifies the database number to connect to. + * - `"": No database number is specified, implying the default database (usually 0). + */ +export type RedisDbNumber = `/${number}` | ""; + +/** + * Represents the configuration options for a Redis client. * - * https://k6.io/docs/javascript-api/k6-experimental/redis/options + * These options define how the client connects to and interacts with a Redis server or cluster, + * including authentication, connection settings, and specific Redis features. */ -export interface Options { +export interface RedisClientOptions { /** - * Array of addresses in the 'host:port' defining which connect Redis to connect to. - * Supplying a single entry would connect the client to a single Redis instance. - * Supplying multiple entries would connect the client to a cluster/sentinel nodes. + * Socket connection options for the Redis client. + * + * This includes the host, port, and other socket-level settings such as timeouts and TLS configuration. */ - addrs: string[]; + socket: SocketOptions; /** - * The id of the database to be selected after connecting to the server. - * Only used when connecting to a single-node use. + * Optional username for client authentication. + * + * This is used when the Redis server is configured with ACLs (Access Control Lists), + * requiring a username for authentication in addition to a password. */ - db?: number; + username?: string; /** - * Username to authenticate the client connection with. + * Optional password for client authentication. + * + * If the Redis server is secured with a password, this must be provided to establish a connection. */ - username?: number; + password?: string; /** - * Password to authenticate the client connection with. + * Optional name to assign to the client connection. + * + * This can be used for identifying and tracking connections on the Redis server. + * It's useful for debugging and monitoring purposes. */ - password?: number; + clientName?: string; /** - * Username to authenticate the client connection with when connecting to a sentinel. + * The ID of the database to be selected after connecting to the Redis server. + * + * Redis supports multiple databases (numbered from 0), allowing separate datasets on the same server instance. + * This option is typically used when connecting to a single-node setup. */ - sentinelUsername?: number; + database?: number; /** - * Password to authenticate the client connection with when connecting to a sentinel. + * The name of the master instance to connect to when using Redis Sentinel. + * + * Sentinel manages failover in a Redis deployment, and specifying a master name allows the client to connect to the current master. + * This option is required when connecting through Redis Sentinel. */ - sentinelPassword?: number; + masterName?: string; /** - * The name of the master to connect to when connecting to a Redis cluster. + * Optional username for client authentication with Redis Sentinel. + * + * If the Sentinel servers are secured with ACLs, this username is used for authentication. */ - masterName?: number; + sentinelUsername?: string; /** - * The maximum number of retries to attempt when connecting to a Redis server before giving up. + * Optional password for client authentication with Redis Sentinel. + * + * If the Sentinel servers are secured with a password, it must be provided to connect successfully. */ - maxRetries?: number; + sentinelPassword?: string; /** - * The minimum amount of time to wait between retries when connecting to a Redis server. + * Optional configuration for connecting to a Redis Cluster. + * + * If the client is connecting to a Redis Cluster, this option provides cluster-specific settings such as node addresses and routing options. */ - minRetryBackoff?: number; + cluster?: ClusterOptions; +} +/** + * Represents the configuration options for a socket connection to a Redis server. + * + * These options allow fine-tuning of the connection properties, timeouts, and TLS settings. + */ +export interface SocketOptions { /** - * The maximum amount of time to wait between retries when connecting to a Redis server. + * The IP address or hostname of the Redis server. + * This should be a valid, resolvable address or hostname used to establish the connection. */ - maxRetryBackoff?: number; + host: string; /** - * The maximum amount of time to wait for a connection to a Redis server to be established. + * The port number on which the Redis server is listening. + * + * If omitted, a default port (typically 6379 for Redis) will be used. + */ + port?: number; + + /** + * Optional configuration for TLS (Transport Layer Security). + * + * This is used to establish a secure, encrypted connection to the Redis server. + * If provided, the connection will use TLS; otherwise, it will be a regular, non-encrypted connection. + */ + tls?: TLSOptions; + + /** + * The maximum amount of time, in milliseconds, to wait for a connection attempt to the Redis server to succeed. + * + * If the connection is not established within this time frame, the attempt will be aborted. + * This helps in avoiding long waits if the server is not reachable. */ dialTimeout?: number; /** - * The maximum amount of time to wait for socket reads to succeed. - * Use `-1` for no timeout. + * The maximum amount of time, in milliseconds, the client will wait for a read operation to complete. + * + * A value of `-1` indicates no timeout, meaning the client will wait indefinitely. + * Setting a read timeout can prevent indefinitely blocking operations if the server becomes unresponsive. */ readTimeout?: number; /** - * The maximum amount of time to wait for a socket write to succeed. - * Use `-1` for no timeout. + * The maximum amount of time, in milliseconds, the client will wait for a write operation to complete. + * + * A value of `-1` indicates no timeout, allowing the client to wait indefinitely. + * Similar to readTimeout, this can prevent blocking in case of server issues. */ writeTimeout?: number; /** - * The maximum number of socket connections to keep open in the connection pool. + * The maximum number of socket connections that can be kept open in the pool. + * A larger pool size can handle more concurrent connections, but also uses more resources. */ poolSize?: number; /** - * The minimum number of idle connections to keep open in the connection pool. + * The minimum number of idle connections that the pool maintains for faster access. + * + * Keeping some connections idle can improve performance by avoiding the need to establish new connections. */ minIdleConns?: number; /** - * The maximum number of idle connections to keep open in the connection pool. - */ - maxIdleConns?: number; - - /** - * The maximum amount of time a connection can be idle in the connection pool before being closed. + * The maximum amount of time, in milliseconds, a connection can stay idle in the pool before being closed. + * + * This can help in cycling connections and preventing stale connections. */ maxConnAge?: number; /** - * The maximum amount of time to wait for a connection to the Redis server to be returned from the pool. + * The maximum amount of time, in milliseconds, to wait for a connection from the pool. + * + * If no connections are available within this time frame, the request for a connection will fail. + * This prevents indefinite blocking when all connections are in use. */ poolTimeout?: number; /** - * The maximum amount of time the client waits for a connection to become active before timing out. + * The maximum amount of time, in milliseconds, a connection can be idle in the pool before being considered for closure. + * + * This helps in keeping the pool fresh and closing unused connections. */ idleTimeout?: number; /** - * The frequency at which the client checks for idle connections in the connection pool. - * Use `-1` to disable the checks. + * The frequency, in milliseconds, at which the client checks for idle connections in the pool. + * + * A value of `-1` disables these checks. Regularly checking for idle connections helps in maintaining a healthy connection pool. */ idleCheckFrequency?: number; } + +/** + * Represents the options for configuring TLS (Transport Layer Security) for a Redis connection. + * This configuration is essential for establishing a secure connection using SSL/TLS, + * which ensures data is encrypted during transmission. + */ +export interface TLSOptions { + /** + * Specifies one or multiple Certificate Authority (CA) certificates to use for validating the server certificate. + * + * The CA certificates are essential for ensuring that the server's certificate is issued by a trusted authority. + * This is an array of ArrayBuffer, where each ArrayBuffer represents a CA certificate in a binary format. + */ + ca: ArrayBuffer[]; + + /** + * An optional client certificate used for mutual TLS authentication. + * + * Providing a client certificate is part of mutual TLS (mTLS), where both the client and the server authenticate each other. + * This property should be an ArrayBuffer representing the client's certificate in a binary format. + * If this property is omitted, the client will not use a certificate for authentication. + */ + cert?: ArrayBuffer; + + /** + * An optional private key associated with the client certificate. + * + * This key is required if a client certificate is provided (via the `cert` property). + * The private key must correspond to the public key in the client certificate and should be in a binary format represented by an ArrayBuffer. + * If this property is omitted but a client certificate is provided, the connection attempt will fail due to the lack of a corresponding private key. + */ + key?: ArrayBuffer; +} + +/** + * Represents the configuration options for a Redis Cluster client. + * + * These options define the behavior of the client when connecting to and interacting with a Redis Cluster. + */ +export interface ClusterOptions { + /** + * The maximum number of redirects the client will follow when a command is redirected. + * + * In a Redis Cluster, certain commands may be redirected to other nodes. This option limits the number of such redirections. + * If this value is not set, a default value (typically defined by the client library) will be used. + */ + maxRedirects?: number; + + /** + * Determines if the client operates in read-only mode. + * + * When set to true, the client sends read commands to replica nodes, potentially improving read scalability. + * This is useful in a cluster setup where you want to distribute read operations across multiple replicas. + */ + readOnly?: boolean; + + /** + * Enables routing read commands by latency. + * + * when true, the client attempts to route read commands to the node with the lowest latency. + * This can optimize read performance by utilizing the fastest available node. + */ + routeByLatency?: boolean; + + /** + * Enables random routing for read commands. + * + * When true, read commands are sent to random nodes in the cluster, potentially distributing the load more evenly. + * This can be beneficial in scenarios where distributing read operations evenly is more important than routing based on latency. + */ + routeRandomly?: boolean; + + /** + * A list of nodes in the Redis Cluster. + * + * This can either be a list of connection URLs or a list of socket options for each node. + * The client uses this list to initially connect to the cluster and discover other nodes. + * + * Each node can be specified as a `RedisConnectionURL` string (e.g., 'redis://host:port') or as a `SocketOptions` object defining host and port. + */ + nodes: RedisConnectionURL[] | SocketOptions[]; +} diff --git a/types/k6/experimental/tracing.d.ts b/types/k6/experimental/tracing.d.ts index e3bb224a9cfd23..8566083b4ff6f0 100644 --- a/types/k6/experimental/tracing.d.ts +++ b/types/k6/experimental/tracing.d.ts @@ -5,7 +5,7 @@ * function calls with tracing information. It also exposes a `Client` class that can be used to * instrument HTTP calls in a more fine-grained way. * - * https://k6.io/docs/javascript-api/k6-experimental/tracing/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/tracing/ */ import { RefinedParams, RefinedResponse, RequestBody, ResponseType } from "../http"; @@ -30,7 +30,7 @@ export function instrumentHTTP(options: Options): void; * so that tracing backends (such as Grafana Tempo) can incorporate * their results. * - * https://k6.io/docs/javascript-api/k6-experimental/tracing/client/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/tracing/client/ */ export class Client { protected __brand: never; @@ -176,7 +176,7 @@ export class Client { /** * The Options object allows configuring the tracing instrumentation behavior. * - * https://k6.io/docs/javascript-api/k6-experimental/tracing/options/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/tracing/options/ */ export interface Options { /** diff --git a/types/k6/experimental/webcrypto.d.ts b/types/k6/experimental/webcrypto.d.ts index 0435e4ba877e20..45c30b8f065825 100644 --- a/types/k6/experimental/webcrypto.d.ts +++ b/types/k6/experimental/webcrypto.d.ts @@ -2,7 +2,7 @@ * This module provides a subset of the Web Crypto API. It is an interface * allowing a k6 script to use cryptographic primitives. * - * https://k6.io/docs/javascript-api/k6-experimental/webcrypto/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/webcrypto/ */ export const crypto: Crypto; diff --git a/types/k6/experimental/websockets.d.ts b/types/k6/experimental/websockets.d.ts index 045e38337fa0a7..974e1848ed78ce 100644 --- a/types/k6/experimental/websockets.d.ts +++ b/types/k6/experimental/websockets.d.ts @@ -4,7 +4,7 @@ import { CookieJar } from "../http"; * This module provides an experimental implementation of the WebSocket API * for k6. * - * https://k6.io/docs/javascript-api/k6-experimental/websockets/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/ */ /** @@ -41,7 +41,7 @@ export class WebSocket { /** * The Websocket constructor returns a newly created WebSocket object. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/ * * @param url - The URL to which to connect; this should be the URL to which the WebSocket server will respond. * @param protocols - Either a single protocol string or an array of protocol strings. The param is reserved for future use and will be presently ignored. @@ -51,7 +51,7 @@ export class WebSocket { /** * Enqueues data to be transmitted to the server over the WebSocket connection. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-send/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-send/ * * @param data - the data to send to the server */ @@ -60,7 +60,7 @@ export class WebSocket { /** * Bind event names to event handlers to be executed when their * respective event is received by the server. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-addeventlistener/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-addeventlistener/ * * @param event - the event to listen for * @param listener - the callback to invoke when the event is emitted @@ -69,7 +69,7 @@ export class WebSocket { /** * Closes the WebSocket connection or connection attempt, if any. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-close/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-close/ * * @param code - An integer WebSocket connection close code value indicating a reason for closure. * @param reason - A human-readable string WebSocket connection close reason. No longer than 123 bytes of UTF-8 text. @@ -78,13 +78,13 @@ export class WebSocket { /** * Sends a ping message over the WebSocket connection. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-ping/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-ping/ */ ping(): void; /** * Sets an event handler which is invoked when a message event happens. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-onmessage/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-onmessage/ * * @param event - the message event */ @@ -92,19 +92,19 @@ export class WebSocket { /** * Sets an event handler which is invoked when the WebSocket connection's opens. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-onopen/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-onopen/ */ onopen: () => void; /** * Sets an event handler which is invoked when the WebSocket connection's closes. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-onclose/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-onclose/ */ onclose: () => void; /** * Sets an event handler which is invoked when errors occur. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-onerror/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-onerror/ * * @param event - the error event */ @@ -112,20 +112,20 @@ export class WebSocket { /** * Sets an event handler which is invoked when a ping message is received. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-onping/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-onping/ */ onping: () => void; /** * Sets an event handler which is invoked when a pong message is received. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/websocket/websocket-onpong/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/websocket/websocket-onpong/ */ onpong: () => void; } /** * k6 specific WebSocket parameters. - * https://k6.io/docs/javascript-api/k6-experimental/websockets/params/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/websockets/params/ */ export interface Params { /** Request headers. */ diff --git a/types/k6/global.d.ts b/types/k6/global.d.ts index 90649757e73715..0a8089b98300a0 100644 --- a/types/k6/global.d.ts +++ b/types/k6/global.d.ts @@ -17,7 +17,7 @@ declare global { /** * Opens a file, reading all its contents into memory. - * https://k6.io/docs/javascript-api/init-context/open-filepath-mode/ + * https://grafana.com/docs/k6/latest/javascript-api/init-context/open/ * @param filePath - Path to file. * @returns File contents decoded as UTF-8. * @example @@ -35,7 +35,7 @@ declare global { /** * Opens a file, reading all its contents into memory. - * https://k6.io/docs/javascript-api/init-context/open-filepath-mode/ + * https://grafana.com/docs/k6/latest/javascript-api/init-context/open/ * @param filePath - Path to file. * @returns Binary file contents. * @example @@ -56,7 +56,7 @@ declare global { /** * Environment variables. - * https://k6.io/docs/using-k6/environment-variables/ + * https://grafana.com/docs/k6/latest/using-k6/environment-variables/ */ const __ENV: { [name: string]: string }; @@ -65,13 +65,13 @@ declare global { /** * Current VU number. - * https://k6.io/docs/using-k6/execution-context-variables/ + * https://grafana.com/docs/k6/latest/using-k6/execution-context-variables/ */ const __VU: number; /** * Current iteration number. - * https://k6.io/docs/using-k6/execution-context-variables/ + * https://grafana.com/docs/k6/latest/using-k6/execution-context-variables/ */ const __ITER: number; } diff --git a/types/k6/html.d.ts b/types/k6/html.d.ts index 82a2ac89f5375e..a4069b0f0133ca 100644 --- a/types/k6/html.d.ts +++ b/types/k6/html.d.ts @@ -1,6 +1,6 @@ /* * HTML parsing and access. - * https://k6.io/docs/javascript-api/k6-html/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/ */ // === Main === @@ -18,14 +18,14 @@ export function parseHTML(html: string): Selection; /** * Represents a set of nodes in a DOM tree. - * https://k6.io/docs/javascript-api/k6-html/selection/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/ */ export abstract class Selection { protected __brand: never; /** * Get the value of an attribute for the first element in the Selection. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-attr-name/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-attr/ * @param name - Name of attribute to get. * @returns Attribute value. */ @@ -34,7 +34,7 @@ export abstract class Selection { /** * Get the children of each element in the set of matched elements, * optionally filtered by a selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-children-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-children/ * @param selector - Selector expression. * @returns Selected children. */ @@ -44,7 +44,7 @@ export abstract class Selection { * For each element in the set, get the first element that matches the * selector by testing the element itself and traversing up through its * ancestors in the DOM tree. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-closest-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-closest/ * @param selector - Selector expression. * @returns Selected nodes. */ @@ -53,7 +53,7 @@ export abstract class Selection { /** * Get the children of each element in the set of matched elements, * including text and comment nodes. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-contents/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-contents/ * @returns Selected nodes. */ contents(): Selection; @@ -61,7 +61,7 @@ export abstract class Selection { /** * Return the value at the named data store for the first element in the * set of matched elements. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-data-key/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-data/ * @param key - A string naming the piece of data to set.\ * @returns The value at the named data store. */ @@ -70,14 +70,14 @@ export abstract class Selection { /** * Iterate over a Selection (k6/html), executing a function for each * matched element. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-each-fn/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-each/ * @param handler - Logic to execute for each element. */ each(handler: Handler): void; /** * Reduce the set of matched elements to the one at the specified index. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-eq-index/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-eq/ * @param index - An integer indicating the 0-based position of the element. * @returns Unary set of selected element. */ @@ -86,7 +86,7 @@ export abstract class Selection { /** * Reduce the set of matched elements to those that match the selector * or pass the function's test. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-filter-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-filter/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -95,7 +95,7 @@ export abstract class Selection { /** * Reduce the set of matched elements to those that match the selector * or pass the function's test. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-filter-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-filter/ * @param selector - A function used as a test for each element in the set. * @returns Selected elements. */ @@ -104,7 +104,7 @@ export abstract class Selection { /** * Reduce the set of matched elements to those that match the selector * or pass the function's test. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-filter-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-filter/ * @param selector - A selection to match elements against. * @returns Selected elements. */ @@ -112,7 +112,7 @@ export abstract class Selection { /** * Find the selection descendants, filtered by a selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-find-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-find/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -120,14 +120,14 @@ export abstract class Selection { /** * Reduce the set of matched elements to the first. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-first/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-first/ * @returns Unary set of first element. */ first(): Selection; /** * Retrieve the element matched by the selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-get-index/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-get/ * @param index - A zero-based integer indicating which element to retrieve. * @returns Selected element. */ @@ -136,7 +136,7 @@ export abstract class Selection { /** * Reduce the set of matched elements to those that have a descendant that * matches the selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-has-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-has/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -144,7 +144,7 @@ export abstract class Selection { /** * Get the HTML contents of the first element. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-html/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-html/ * @returns The HTML content of the first element. */ html(): string | undefined; @@ -153,7 +153,7 @@ export abstract class Selection { * Check the current matched set of elements against a selector or element * and return true if at least one of these elements matches the given * arguments. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-is-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-is/ * @param selector - Selector expression. * @returns Whether selector matched at least one element. */ @@ -163,7 +163,7 @@ export abstract class Selection { * Check the current matched set of elements against a selector or element * and return true if at least one of these elements matches the given * arguments. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-is-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-is/ * @param selector - A function used as a test for each element in the set. * @returns Whether selector matched at least one element. */ @@ -173,7 +173,7 @@ export abstract class Selection { * Check the current matched set of elements against a selector or element * and return true if at least one of these elements matches the given * arguments. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-is-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-is/ * @param selector - A selection to match against. * @returns Whether selector matched at least one element. */ @@ -181,7 +181,7 @@ export abstract class Selection { /** * Reduce the set of matched elements to the final one. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-last/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-last/ * @returns Unary set of last element. */ last(): Selection; @@ -189,7 +189,7 @@ export abstract class Selection { /** * Pass each element in the current matched set through a function, * producing a new Array containing the return values. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-map-fn/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-map/ * @param mapper - Procedure to execute on each element. * @returns Mapper return values. */ @@ -197,7 +197,7 @@ export abstract class Selection { /** * Get the immediately following sibling of each element. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-next-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-next/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -206,7 +206,7 @@ export abstract class Selection { /** * Get all following siblings of each element, * optionally filtered by a selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-nextall-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-nextall/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -215,7 +215,7 @@ export abstract class Selection { /** * Get all following siblings of each element up to but not including the * element matched by the selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-nextuntil-selector-filter/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-nextuntil/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -223,7 +223,7 @@ export abstract class Selection { /** * Remove elements. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-not-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/ * @param selector - Selector expression. * @returns Selection with matched elements removed. */ @@ -231,7 +231,7 @@ export abstract class Selection { /** * Remove elements. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-not-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/ * @param selector - A function used as a test for each element in the set. * @returns Selection with matched elements removed. */ @@ -239,7 +239,7 @@ export abstract class Selection { /** * Get the parent of each element, optionally filtered by a selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-parent-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-parent/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -247,7 +247,7 @@ export abstract class Selection { /** * Get the ancestors of each element, optionally filtered by a selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-parents-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-parents/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -256,7 +256,7 @@ export abstract class Selection { /** * Get the ancestors of each element, * up to but not including the element matched by the selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-parentsuntil-selector-filter/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-parentsuntil/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -264,7 +264,7 @@ export abstract class Selection { /** * Get the immediately preceding sibling of each element. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-prev-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-prev/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -273,7 +273,7 @@ export abstract class Selection { /** * Get all preceding siblings of each element, * optionally filtered by a selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-prevall-selector/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-prevall/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -282,7 +282,7 @@ export abstract class Selection { /** * Get all preceding siblings of each element * up to but not including the element matched by the selector. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-prevuntil-selector-filter/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-prevuntil/ * @param selector - Selector expression. * @returns Selected elements. */ @@ -291,7 +291,7 @@ export abstract class Selection { /** * Encode a set of form elements as a string * in standard URL-encoded notation for submission. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-serialize/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-serialize/ * @returns URL-encoded representation of the form or form elements. */ serialize(): string; @@ -299,7 +299,7 @@ export abstract class Selection { /** * Encode a set of form elements as an array of name-value objects. * `[{ name: "name", value: "value" }, ... ]` - * https://k6.io/docs/javascript-api/k6-html/selection/selection-serializearray/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-serializearray/ * @returns Array of name value objects of the form or form elements. */ serializeArray(): FormValue[]; @@ -307,7 +307,7 @@ export abstract class Selection { /** * Encode a set of form elements as an object. * `{ inputName: "value", checkboxName: "value", ... }` - * https://k6.io/docs/javascript-api/k6-html/selection/selection-serializeobject/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-serializeobject/ * @returns Object representation of the form or form elements, * key is field name and value is field value. */ @@ -315,14 +315,14 @@ export abstract class Selection { /** * Return the number of elements in the selection. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-size/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-size/ * @returns The number of elements in the selection. */ size(): number; /** * Reduce the set of elements to a subset specified by a range of indices. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-slice-start-end/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-slice/ * @param start - An integer indicating the 0-based position at which the * elements begin to be selected. * @param end - An integer indicating the 0-based position at which the @@ -333,21 +333,21 @@ export abstract class Selection { /** * Get the text content of the selection. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-text/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-text/ * @returns Text content. */ text(): string; /** * Retrieve all the elements contained in the selection as an array. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-toarray/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-toarray/ * @returns A unary selection of each element. */ toArray(): Selection[]; /** * Get the current value of the first element. - * https://k6.io/docs/javascript-api/k6-html/selection/selection-val/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/selection/selection-val/ * @returns The value of the first element. */ val(): string | undefined; @@ -446,7 +446,7 @@ export enum NodeType { /** * HTML node. - * https://k6.io/docs/javascript-api/k6-html/element/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/element/ */ export abstract class Element { protected __brand: never; @@ -621,7 +621,7 @@ export abstract class Element { /** * HTML element. - * https://k6.io/docs/javascript-api/k6-html/element/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/element/ */ export abstract class AnchorElement extends HrefElement { protected __brand: never; @@ -629,7 +629,7 @@ export abstract class AnchorElement extends HrefElement { /** * HTML element. - * https://k6.io/docs/javascript-api/k6-html/element/ + * https://grafana.com/docs/k6/latest/javascript-api/k6-html/element/ */ export abstract class AreaElement extends HrefElement { protected __brand: never; @@ -637,7 +637,7 @@ export abstract class AreaElement extends HrefElement { /** * HTML