82 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
5a9a8169b8 Convert eslint rules 2022 12 28 (#63761)
* Convert no-any-union tslint->eslint

* Convert prefer-declare-function tslint->eslint

* Convert no-unnecessary-generics tslint->eslint

* Clean up function types missed by old prefer-declare-function

* remove unneeded tsconfig file
2022-12-30 14:44:49 -08:00
Remco Haszing
1153395ebf Fix fs-extra usage in scripts (#63732)
`fs-extra` was not added as a dependency. Scripts that were using `fs-extra` relied on an indirect dependency on an
older version of `fs-extra`. These scripts only used functions that `fs-extra` exports from `fs`. The latest version of
`fs-extra` doesn’t even export these in the ESM export, only in the CJS export. So while my original idea was to update
to the latest version of `fs-extra`, instead I removed the dependency entirely.
2022-12-27 13:52:08 -08:00
Nathan Shively-Sanders
507d90ee13 Move trim-file tslint->eslint (#63058) 2022-11-02 18:20:58 -07:00
Adam Thompson-Sharpe
9828043ec2 Add back JSON assertion to support-window script (#62763)
* fix: Add back JSON assertion to support-window script

Adds back the JSON assertion that caused the workflow to fail on the
latest Node version.

* fix: Update extension on path in support-window workflow
2022-10-17 13:53:14 -07:00
Adam Thompson-Sharpe
a5894a5c7c fix: Fix problems with support-window workflow & script (#62526) 2022-10-17 11:43:53 -07:00
Nathan Shively-Sanders
4b427ab692 Add no-bad-reference to .eslintrc.json (#62287)
Also remove mistakenly added script in scripts/
2022-09-15 10:52:29 -07:00
Nathan Shively-Sanders
513b3af733 Update more export just namespace exemptions (#62286)
* Update more export-just-namespace exemptions

These tslint per-line comments were previously not changed when running tslint-rule-to-eslint.js

* First attempt at replacing tslint disable comments

It's too slow to run on my laptop, so probably should run as a single `find` command.

* Better find/xargs sed combo
2022-09-15 09:37:09 -07:00
Josh Goldberg
c9e4975251 Tooling: dt-header fast follow fixes (#61805)
* Tooling: dt-header fast follow fixes

* Enable JSDoc, jakebailey is right

* Improve type annotations slightly

A little less precision globally, a little more where it's useful.

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2022-08-19 15:17:50 -07:00
Josh Goldberg
f3c73434c7 Tooling: migrated dt-header to ESLint, with a script (#61793)
* Tooling: migrated dt-header to ESLint, with a script

* Update scripts/tslint-rule-to-eslint.js

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Fix up logging a bit

* Add mistakenly deleted tslint.jsons

* Manual fixup of */v* dt-header overrides

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2022-08-18 13:55:02 -07:00
Hagen Hyena
98f7862070 🤖 Merge PR #61437 chore(fix): correct padding length by @MrGriefs 2022-07-25 13:23:09 -07:00
Andrew Branch
86272f95be Fix ghostbuster script (#61213) 2022-07-12 14:32:00 -07:00
Jack Bates
97558149e6 [infra] Port scripts from TS -> JS (#61102) 2022-07-05 14:57:10 -07:00
Adam Thompson-Sharpe
84ceb576a8 🤖 Merge PR #60664 [DT Infrastructure] Fix failing jobs since change from CJS to ESM by @MysteryBlokHed
* Fix `fs-extra` import in update-codeowners.js

* Fix `fs-extra` import in ghostbuster.js
2022-06-06 14:09:18 -07:00
Jack Bates
2b60fd68ab [infra] Use ESM (#59750) 2022-04-26 12:29:04 -07:00
Jack Bates
57385c68aa 🤖 Merge PR #59752 [infra] Sort not-needed packages locale-independently by @jablko 2022-04-26 09:51:25 -07:00
Andrew Branch
eee4c1c722 Fix GraphQL response processing when there are no errors 2022-03-21 10:25:15 -07:00
Jack Bates
7e8ea8e668 🤖 Merge PR #58840 [README] Fix ERR_IMPORT_ASSERTION_TYPE_MISSING by @jablko
* [README] Fix ERR_IMPORT_ASSERTION_TYPE_MISSING

* [README] 🤖 Update support window diagram

https://github.com/jablko/DefinitelyTyped/actions/runs/1860034598

Co-authored-by: github/workflows/support-window.yml <bot@typescriptlang.org>
2022-02-18 14:06:02 -08:00
martin-badin
e19bf90242 Update dtslint/dt.json path (#58223) 2022-01-19 11:47:21 -08:00
Andrew Branch
c609479376 Fix crash when org check is empty, run once weekly (#58281) 2022-01-18 11:01:07 -08:00
Andrew Branch
2aa03ae56f Automatically remove definition owners with deleted GitHub accounts (#58023)
* Ghostbuster script

* Generate ghost list from API

* Write scheduled workflow

* Update logging

* Support opening a PR

* Move git config to where it’s needed

* Update schedule to daily

Co-authored-by: Ryan Cavanaugh <ryanca@microsoft.com>
2022-01-11 11:49:04 -08:00
Jack Bates
4eff3c3eed [d3-selection] .attr() accepts arrays (#57502) 2021-12-02 14:53:48 -08:00
Jack Bates
0046516f11 [README] Change diagram color in dark mode (#57360)
* [README] Change diagram color in dark mode

* [README] 🤖 Update support window diagram

https://github.com/jablko/DefinitelyTyped/actions/runs/1501218079

Co-authored-by: github/workflows/support-window.yml <bot@typescriptlang.org>
2021-11-25 15:06:21 +00:00
Rodry
c8c0a41b56 Apply prettier and fix all scripts (#57018) 2021-11-07 13:11:13 +00:00
Jack Bates
141503320e [README] Add support window diagram (#55678)
* [README] Add support window diagram

* [README] 🤖 Update support window diagram

* Eliminate translations

* [README] 🤖 Update support window diagram

* Port from ggplot2 -> D3.js

* [README] 🤖 Update support window diagram

Co-authored-by: github/workflows/support-window.yml <bot@typescriptlang.org>
2021-10-28 23:08:47 +01:00
Josh Goldberg
4d08d56f09 🤖 Merge PR #55468 Ported updateConfig script from dtslint by @JoshuaKGoldberg 2021-09-14 12:24:17 -07:00
Orta Therox
c00dae848d Codeowners update script: Pull before push (#55493)
* Pull from git before pushing the codeowners update

* Allow trigginer the codeowners
2021-09-01 11:03:06 +01:00
Orta Therox
8b292065ab Adds a script for closing old issues on the repo (#53609)
* Adds a script for closing old issues on the repo

* Better messaging

* Get shippable
2021-06-08 07:33:55 +01:00
Nathan Shively-Sanders
0238a1e10a Add 'clean' script to package.json (#53442)
It removes empty folders from now-removed packages so that test-all will
run without complaining. Also removes folders that are empty except for
`node_modules`.
2021-05-27 10:34:44 -07:00
Piotr Błażejewicz (Peter Blazejewicz)
78f0288bd8 fix(49492): restore alphabetical sort of packages (#52021)
Unwated artefact of #49492 was a change in the order of no longer needed
pacakges from alphabetical sort to chronological (desc)

This commit restores the alphabetical sort.

Thanks!

/cc @jablko @andrewbranch
2021-03-26 12:02:43 -07:00
Jack Bates
fe4505f585 Make notNeededPackages.json an object (#49492)
* Make notNeededPackages.json an object

* Update with latest notNeededPackages.json

Co-authored-by: Andrew Branch <andrew@wheream.io>
2021-03-22 15:38:30 -07:00
Marko Kaznovac
87db076e48 Bugfix not-needed script argument parsing (#49718)
* fix not-needed script regression, introduced by removing of the sourceRepoURL parameter in #49620 (3868b76e67)

* doc fix example of npm run not-needed
2020-11-23 16:15:32 -08:00
Jack Bates
3868b76e67 Remove sourceRepoURL from notNeededPackages.json (#49620)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-11-16 16:18:33 -08:00
Nathan Shively-Sanders
223d74853f Push codeowners to main, don't create PR (#49064)
* Push codeowners to main, don't create PR

This simplifies the code considerably

* Update scripts/update-codeowners.js

Add bot emoji

Co-authored-by: Marais Rossouw <me@marais.co>

Co-authored-by: Marais Rossouw <me@marais.co>
2020-10-26 08:20:27 -07:00
Nathan Shively-Sanders
e005d43d19 Call os.cpus in update-codeowners (#49063)
If you don't call it, you get the number of parameters of os.cpus, which
is 0, which parseDefinition treats as a single to return an empty result
instead of parsing.
2020-10-23 15:15:04 -07:00
Nathan Shively-Sanders
f5eab352de Update update-codeowners.js: switch to @definitelytyped (#45805)
* Update update-codeowners.js: switch to @definitelytyped

I forgot to update this when the rest of DT switch from types-publisher
to @definitelytyped.

* move new deps to devDeps

* remove extraneous comma

* Restrict workflow to DefinitelyTyped/DefinitelyTyped
2020-07-07 13:50:09 -07:00
Orta
553e6ae6c2 Make it "Definitely Typed" and revise docs on Definition Owners (#44679)
* Improve the docs around definition owners

* More Def Owners readme changes

* More Definition Owners docs

* The great Definitely Typeding
2020-05-20 13:06:52 -07:00
Wesley Wigham
048aefafaa Eliminate all tabs 2020-05-14 19:20:31 -07:00
Nathan Shively-Sanders
1c4ca4d8bf Add codeowners update (#33654)
* Add update-codeowners script

Right now it works but doesn't open a PR for you.
Also not present as an npm script.

* Dump in a bunch of code from TS

* A few fixes and updates

1. Fix package.json formatting.
2. Adapt copied code from TS.

* Ready to test locally

* Fix git add

* Put everything in one Promise chain

Also start compiling JS files in scripts/
2019-03-06 08:43:53 -08:00
Andy
bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Andy Hanson
17895ba275 material-ui: Move scripts from scripts/material-ui to material-ui/scripts 2017-09-05 09:30:20 -07:00
Andy
d74806eb3d Add lint disables for no-unnecessary-generics (#19508) 2017-09-01 08:34:37 -07:00
Daisuke Mino
193d9dc3bf [material-ui] Update svg-icons (#18931)
* [material-ui] Update svg-icons

* Update mark for code generation

* Add a code generation script for material-ui

* Remove .js in ./scripts
2017-08-17 07:58:09 -07:00
lochbrunner
2be18aea82 Remove unused function 2017-07-15 13:33:55 +02:00
Andy
bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Andy
6057f7c6c6 github: Provides its own types (#15557) 2017-03-31 15:57:07 -07:00
Andy
5f3ba45136 Use dtslint (#15482) 2017-03-29 13:07:39 -07:00
Andy
f2eeefbf32 Fix fix-tslint script now that types are in types directory (#15374) 2017-03-24 15:05:04 -07:00
Andy
78f4536c66 Fix lint script now that types are in types directory (#15372) 2017-03-24 15:04:36 -07:00
Andy
18ae90b476 Fix not-needed script now that types are in types directory (#15373) 2017-03-24 14:54:49 -07:00
Andy
66417eafd7 Sort notNeededPackages.json (#15264) 2017-03-20 11:03:55 -07:00