@sarj/eslint-plugin 7.1.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -7
- package/dist/index.cjs +351 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -8
- package/dist/index.d.ts +20 -8
- package/dist/index.js +351 -91
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ rename moves them.
|
|
|
21
21
|
|
|
22
22
|
Presets: `recommended` (warn-first), `strict` (every rule at error), `style-guide` (formatting/naming subset).
|
|
23
23
|
|
|
24
|
-
## Renamed in 7.0.0 (breaking)
|
|
24
|
+
## Renamed in 7.0.0, aliases deleted in 9.0.0 (breaking)
|
|
25
25
|
|
|
26
26
|
| Old name | New name |
|
|
27
27
|
| --- | --- |
|
|
@@ -30,18 +30,21 @@ Presets: `recommended` (warn-first), `strict` (every rule at error), `style-guid
|
|
|
30
30
|
| `@sarj/strict-test-assertions` | `@sarj/prefer-whole-object-assertion` |
|
|
31
31
|
| `@sarj/trailing-value-narration` | `@sarj/no-trailing-value-narration` |
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
7.0.0 kept each old name registered as a deprecated alias. 9.0.0 deletes them, so
|
|
34
|
+
the new names are the only names — and an old name left in a config, an
|
|
35
|
+
`eslint-disable` comment or a suppressions baseline now makes ESLint exit 2 with
|
|
36
|
+
`Could not find "@sarj/<rule>" in plugin "@sarj"` before it reads a file.
|
|
37
|
+
|
|
38
|
+
Run `sarj-lint-configs doctor` before upgrading: it reads the shipped rule ledger
|
|
39
|
+
and names every file holding an old name, with the replacement. The map is also
|
|
37
40
|
exported for codemods:
|
|
38
41
|
|
|
39
42
|
```js
|
|
40
43
|
import { renamedRules } from "@sarj/eslint-plugin";
|
|
41
44
|
```
|
|
42
45
|
|
|
43
|
-
Migration steps, the reasoning behind each name, and why the
|
|
44
|
-
|
|
46
|
+
Migration steps, the reasoning behind each name, and why the aliases went:
|
|
47
|
+
[`docs/rules/_renames.md`](../../docs/rules/_renames.md).
|
|
45
48
|
|
|
46
49
|
## New in 4.1.0 — `no-hand-rolled-sleep`
|
|
47
50
|
|