mirror of
https://github.com/pezkuwichain/pezkuwi-dev.git
synced 2026-10-22 19:56:18 +00:00
Add pezkuwi-dev-migrate-eslint10, and fix the Deno map's disable comment
Moving a repository to 0.86 renames rules (formatting rules to @stylistic, import/* to import-x/*, deprecation/deprecation to @typescript-eslint/no-deprecated, and typescript-eslint 8's removals). A disable comment that still names the old rule disables nothing: eslint reports it unused, --fix deletes it, and the rule it held back applies. Measured on pezkuwi-apps: the generated typesBundle.ts carries /* eslint-disable quotes */, and without a rename --fix rewrote all 188k lines of it. pezkuwi-dev-migrate-eslint10 renames the rules in eslint-disable / eslint-enable comments across the tracked files, before the first lint on 0.86, including such comments inside string literals, which is how generators emit them. Core renames come from eslint's own rule metadata (meta.deprecated.replacedBy); the rest are the mappings of #9. --check reports without writing and exits 1 when there is work. Run on this repository it found one: pezkuwi-dev-deno-map writes /* eslint-disable import/extensions */ into the Deno mod.ts it generates. The spec runs the tool in a scratch git repository: every kind of rename, descriptions kept, duplicates merged, a directive inside a string, current names and bare disables left alone, and --check. Its fixture is spelt so the tool, run here, cannot rewrite it.
This commit is contained in:
1 parent
568f735610
commit
1ff7cd1f6f
4 files changed
+223
-1
No files matched your search
@@ -28,6 +28,7 @@
|
||||
"pezkuwi-dev-copy-dir": "./scripts/pezkuwi-dev-copy-dir.mjs",
|
||||
"pezkuwi-dev-copy-to": "./scripts/pezkuwi-dev-copy-to.mjs",
|
||||
"pezkuwi-dev-deno-map": "./scripts/pezkuwi-dev-deno-map.mjs",
|
||||
"pezkuwi-dev-migrate-eslint10": "./scripts/pezkuwi-dev-migrate-eslint10.mjs",
|
||||
"pezkuwi-dev-run-lint": "./scripts/pezkuwi-dev-run-lint.mjs",
|
||||
"pezkuwi-dev-run-node-ts": "./scripts/pezkuwi-dev-run-node-ts.mjs",
|
||||
"pezkuwi-dev-run-test": "./scripts/pezkuwi-dev-run-test.mjs",
|
||||
|
||||
Reference in new issue
Block a user