eslint-plugin-typefest 1.0.4 → 1.0.6
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 +88 -79
- package/dist/_internal/rule-catalog.d.ts.map +1 -1
- package/dist/_internal/rule-catalog.js +9 -0
- package/dist/_internal/rule-catalog.js.map +1 -1
- package/dist/_internal/rules-registry.d.ts.map +1 -1
- package/dist/_internal/rules-registry.js +18 -0
- package/dist/_internal/rules-registry.js.map +1 -1
- package/dist/plugin.cjs +880 -48
- package/dist/plugin.cjs.map +4 -4
- package/dist/rules/prefer-type-fest-and-all.d.ts +13 -0
- package/dist/rules/prefer-type-fest-and-all.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-and-all.js +105 -0
- package/dist/rules/prefer-type-fest-and-all.js.map +1 -0
- package/dist/rules/prefer-type-fest-array-length.d.ts +13 -0
- package/dist/rules/prefer-type-fest-array-length.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-array-length.js +77 -0
- package/dist/rules/prefer-type-fest-array-length.js.map +1 -0
- package/dist/rules/prefer-type-fest-conditional-pick-deep.d.ts +13 -0
- package/dist/rules/prefer-type-fest-conditional-pick-deep.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-conditional-pick-deep.js +75 -0
- package/dist/rules/prefer-type-fest-conditional-pick-deep.js.map +1 -0
- package/dist/rules/prefer-type-fest-less-than-or-equal.d.ts +13 -0
- package/dist/rules/prefer-type-fest-less-than-or-equal.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-less-than-or-equal.js +153 -0
- package/dist/rules/prefer-type-fest-less-than-or-equal.js.map +1 -0
- package/dist/rules/prefer-type-fest-less-than.d.ts +13 -0
- package/dist/rules/prefer-type-fest-less-than.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-less-than.js +154 -0
- package/dist/rules/prefer-type-fest-less-than.js.map +1 -0
- package/dist/rules/prefer-type-fest-optional.d.ts +13 -0
- package/dist/rules/prefer-type-fest-optional.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-optional.js +130 -0
- package/dist/rules/prefer-type-fest-optional.js.map +1 -0
- package/dist/rules/prefer-type-fest-or-all.d.ts +13 -0
- package/dist/rules/prefer-type-fest-or-all.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-or-all.js +105 -0
- package/dist/rules/prefer-type-fest-or-all.js.map +1 -0
- package/dist/rules/prefer-type-fest-union-member.d.ts +13 -0
- package/dist/rules/prefer-type-fest-union-member.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-union-member.js +159 -0
- package/dist/rules/prefer-type-fest-union-member.js.map +1 -0
- package/dist/rules/prefer-type-fest-union-to-tuple.d.ts +13 -0
- package/dist/rules/prefer-type-fest-union-to-tuple.d.ts.map +1 -0
- package/dist/rules/prefer-type-fest-union-to-tuple.js +75 -0
- package/dist/rules/prefer-type-fest-union-to-tuple.js.map +1 -0
- package/docs/rules/prefer-type-fest-and-all.md +111 -0
- package/docs/rules/prefer-type-fest-array-length.md +109 -0
- package/docs/rules/prefer-type-fest-conditional-pick-deep.md +112 -0
- package/docs/rules/prefer-type-fest-less-than-or-equal.md +111 -0
- package/docs/rules/prefer-type-fest-less-than.md +111 -0
- package/docs/rules/prefer-type-fest-optional.md +104 -0
- package/docs/rules/prefer-type-fest-or-all.md +111 -0
- package/docs/rules/prefer-type-fest-union-member.md +119 -0
- package/docs/rules/prefer-type-fest-union-to-tuple.md +108 -0
- package/docs/rules/presets/all.md +9 -0
- package/docs/rules/presets/index.md +87 -78
- package/docs/rules/presets/recommended-type-checked.md +74 -65
- package/docs/rules/presets/recommended.md +8 -0
- package/docs/rules/presets/strict.md +9 -0
- package/docs/rules/presets/type-fest-types.md +8 -0
- package/package.json +46 -37
|
@@ -33,72 +33,81 @@ This preset is type-aware and includes
|
|
|
33
33
|
|
|
34
34
|
### Type-aware additions over `recommended`
|
|
35
35
|
|
|
36
|
-
| Rule
|
|
37
|
-
|
|
|
36
|
+
| Rule | Fix |
|
|
37
|
+
| --- | :-: |
|
|
38
38
|
| [`prefer-ts-extras-array-includes`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-array-includes) | 🔧 💡 |
|
|
39
|
-
| [`prefer-ts-extras-array-last`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-array-last)
|
|
40
|
-
| [`prefer-ts-extras-is-empty`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-empty)
|
|
41
|
-
| [`prefer-ts-extras-safe-cast-to`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-safe-cast-to)
|
|
42
|
-
| [`prefer-ts-extras-set-has`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-set-has)
|
|
39
|
+
| [`prefer-ts-extras-array-last`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-array-last) | 🔧 💡 |
|
|
40
|
+
| [`prefer-ts-extras-is-empty`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-empty) | 🔧 |
|
|
41
|
+
| [`prefer-ts-extras-safe-cast-to`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-safe-cast-to) | 🔧 |
|
|
42
|
+
| [`prefer-ts-extras-set-has`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-set-has) | 🔧 💡 |
|
|
43
|
+
| [`prefer-type-fest-array-length`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-array-length) | 🔧 |
|
|
43
44
|
|
|
44
45
|
### Baseline rules inherited from `recommended`
|
|
45
46
|
|
|
46
|
-
| Rule
|
|
47
|
-
|
|
|
48
|
-
| [`prefer-ts-extras-assert-defined`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-assert-defined)
|
|
49
|
-
| [`prefer-ts-extras-assert-error`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-assert-error)
|
|
50
|
-
| [`prefer-ts-extras-assert-present`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-assert-present)
|
|
51
|
-
| [`prefer-ts-extras-is-defined`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-defined)
|
|
52
|
-
| [`prefer-ts-extras-is-defined-filter`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-defined-filter)
|
|
53
|
-
| [`prefer-ts-extras-is-finite`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-finite)
|
|
54
|
-
| [`prefer-ts-extras-is-infinite`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-infinite)
|
|
55
|
-
| [`prefer-ts-extras-is-integer`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-integer)
|
|
56
|
-
| [`prefer-ts-extras-is-present`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-present)
|
|
57
|
-
| [`prefer-ts-extras-is-present-filter`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-present-filter)
|
|
58
|
-
| [`prefer-ts-extras-is-safe-integer`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-safe-integer)
|
|
59
|
-
| [`prefer-ts-extras-key-in`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-key-in)
|
|
60
|
-
| [`prefer-ts-extras-not`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-not)
|
|
61
|
-
| [`prefer-ts-extras-object-has-in`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-object-has-in)
|
|
62
|
-
| [`prefer-ts-extras-object-has-own`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-object-has-own)
|
|
63
|
-
| [`prefer-type-fest-abstract-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-abstract-constructor) |
|
|
64
|
-
| [`prefer-type-fest-
|
|
65
|
-
| [`prefer-type-fest-
|
|
66
|
-
| [`prefer-type-fest-
|
|
67
|
-
| [`prefer-type-fest-
|
|
68
|
-
| [`prefer-type-fest-
|
|
69
|
-
| [`prefer-type-fest-
|
|
70
|
-
| [`prefer-type-fest-
|
|
71
|
-
| [`prefer-type-fest-
|
|
72
|
-
| [`prefer-type-fest-
|
|
73
|
-
| [`prefer-type-fest-json-
|
|
74
|
-
| [`prefer-type-fest-json-
|
|
75
|
-
| [`prefer-type-fest-
|
|
76
|
-
| [`prefer-type-fest-
|
|
77
|
-
| [`prefer-type-fest-
|
|
78
|
-
| [`prefer-type-fest-
|
|
79
|
-
| [`prefer-type-fest-
|
|
80
|
-
| [`prefer-type-fest-
|
|
81
|
-
| [`prefer-type-fest-
|
|
82
|
-
| [`prefer-type-fest-
|
|
83
|
-
| [`prefer-type-fest-
|
|
84
|
-
| [`prefer-type-fest-
|
|
85
|
-
| [`prefer-type-fest-
|
|
86
|
-
| [`prefer-type-fest-
|
|
87
|
-
| [`prefer-type-fest-
|
|
88
|
-
| [`prefer-type-fest-
|
|
89
|
-
| [`prefer-type-fest-
|
|
90
|
-
| [`prefer-type-fest-
|
|
91
|
-
| [`prefer-type-fest-
|
|
92
|
-
| [`prefer-type-fest-
|
|
93
|
-
| [`prefer-type-fest-
|
|
94
|
-
| [`prefer-type-fest-
|
|
95
|
-
| [`prefer-type-fest-
|
|
96
|
-
| [`prefer-type-fest-
|
|
97
|
-
| [`prefer-type-fest-
|
|
98
|
-
| [`prefer-type-fest-
|
|
99
|
-
| [`prefer-type-fest-
|
|
100
|
-
| [`prefer-type-fest-
|
|
101
|
-
| [`prefer-type-fest-
|
|
102
|
-
| [`prefer-type-fest-
|
|
103
|
-
| [`prefer-type-fest-
|
|
104
|
-
| [`prefer-type-fest-
|
|
47
|
+
| Rule | Fix |
|
|
48
|
+
| --- | :-: |
|
|
49
|
+
| [`prefer-ts-extras-assert-defined`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-assert-defined) | 🔧 💡 |
|
|
50
|
+
| [`prefer-ts-extras-assert-error`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-assert-error) | 💡 |
|
|
51
|
+
| [`prefer-ts-extras-assert-present`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-assert-present) | 🔧 💡 |
|
|
52
|
+
| [`prefer-ts-extras-is-defined`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-defined) | 🔧 |
|
|
53
|
+
| [`prefer-ts-extras-is-defined-filter`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-defined-filter) | 🔧 |
|
|
54
|
+
| [`prefer-ts-extras-is-finite`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-finite) | 🔧 |
|
|
55
|
+
| [`prefer-ts-extras-is-infinite`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-infinite) | 🔧 |
|
|
56
|
+
| [`prefer-ts-extras-is-integer`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-integer) | 🔧 |
|
|
57
|
+
| [`prefer-ts-extras-is-present`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-present) | 🔧 |
|
|
58
|
+
| [`prefer-ts-extras-is-present-filter`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-present-filter) | 🔧 |
|
|
59
|
+
| [`prefer-ts-extras-is-safe-integer`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-is-safe-integer) | 🔧 |
|
|
60
|
+
| [`prefer-ts-extras-key-in`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-key-in) | 🔧 |
|
|
61
|
+
| [`prefer-ts-extras-not`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-not) | 🔧 |
|
|
62
|
+
| [`prefer-ts-extras-object-has-in`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-object-has-in) | 🔧 💡 |
|
|
63
|
+
| [`prefer-ts-extras-object-has-own`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-object-has-own) | 🔧 💡 |
|
|
64
|
+
| [`prefer-type-fest-abstract-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-abstract-constructor) | 🔧 |
|
|
65
|
+
| [`prefer-type-fest-and-all`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-and-all) | 🔧 |
|
|
66
|
+
| [`prefer-type-fest-arrayable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-arrayable) | 🔧 |
|
|
67
|
+
| [`prefer-type-fest-async-return-type`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-async-return-type) | 🔧 |
|
|
68
|
+
| [`prefer-type-fest-conditional-pick`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-conditional-pick) | 🔧 |
|
|
69
|
+
| [`prefer-type-fest-conditional-pick-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-conditional-pick-deep) | 🔧 |
|
|
70
|
+
| [`prefer-type-fest-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-constructor) | 🔧 |
|
|
71
|
+
| [`prefer-type-fest-except`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-except) | 🔧 |
|
|
72
|
+
| [`prefer-type-fest-if`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-if) | 🔧 |
|
|
73
|
+
| [`prefer-type-fest-iterable-element`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-iterable-element) | 🔧 |
|
|
74
|
+
| [`prefer-type-fest-json-array`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-array) | 🔧 |
|
|
75
|
+
| [`prefer-type-fest-json-object`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-object) | 🔧 |
|
|
76
|
+
| [`prefer-type-fest-json-primitive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-primitive) | 🔧 |
|
|
77
|
+
| [`prefer-type-fest-json-value`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-value) | 💡 |
|
|
78
|
+
| [`prefer-type-fest-keys-of-union`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-keys-of-union) | 🔧 |
|
|
79
|
+
| [`prefer-type-fest-less-than`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-less-than) | 🔧 |
|
|
80
|
+
| [`prefer-type-fest-less-than-or-equal`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-less-than-or-equal) | 🔧 |
|
|
81
|
+
| [`prefer-type-fest-literal-union`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-literal-union) | 🔧 |
|
|
82
|
+
| [`prefer-type-fest-merge-exclusive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-merge-exclusive) | 🔧 |
|
|
83
|
+
| [`prefer-type-fest-non-empty-tuple`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-non-empty-tuple) | 🔧 |
|
|
84
|
+
| [`prefer-type-fest-omit-index-signature`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-omit-index-signature) | 🔧 |
|
|
85
|
+
| [`prefer-type-fest-optional`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-optional) | 🔧 |
|
|
86
|
+
| [`prefer-type-fest-or-all`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-or-all) | 🔧 |
|
|
87
|
+
| [`prefer-type-fest-partial-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-partial-deep) | 🔧 |
|
|
88
|
+
| [`prefer-type-fest-primitive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-primitive) | 🔧 |
|
|
89
|
+
| [`prefer-type-fest-promisable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-promisable) | 🔧 |
|
|
90
|
+
| [`prefer-type-fest-readonly-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-readonly-deep) | 🔧 |
|
|
91
|
+
| [`prefer-type-fest-require-all-or-none`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-require-all-or-none) | 🔧 |
|
|
92
|
+
| [`prefer-type-fest-require-at-least-one`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-require-at-least-one) | 🔧 |
|
|
93
|
+
| [`prefer-type-fest-require-exactly-one`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-require-exactly-one) | 🔧 |
|
|
94
|
+
| [`prefer-type-fest-require-one-or-none`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-require-one-or-none) | 🔧 |
|
|
95
|
+
| [`prefer-type-fest-required-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-required-deep) | 🔧 |
|
|
96
|
+
| [`prefer-type-fest-schema`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-schema) | 🔧 |
|
|
97
|
+
| [`prefer-type-fest-set-non-nullable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-set-non-nullable) | 🔧 |
|
|
98
|
+
| [`prefer-type-fest-set-optional`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-set-optional) | 🔧 |
|
|
99
|
+
| [`prefer-type-fest-set-readonly`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-set-readonly) | 🔧 |
|
|
100
|
+
| [`prefer-type-fest-set-required`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-set-required) | 🔧 |
|
|
101
|
+
| [`prefer-type-fest-simplify`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-simplify) | 🔧 |
|
|
102
|
+
| [`prefer-type-fest-tagged-brands`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-tagged-brands) | 🔧 |
|
|
103
|
+
| [`prefer-type-fest-tuple-of`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-tuple-of) | 🔧 |
|
|
104
|
+
| [`prefer-type-fest-union-member`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-union-member) | 🔧 |
|
|
105
|
+
| [`prefer-type-fest-union-to-tuple`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-union-to-tuple) | 🔧 |
|
|
106
|
+
| [`prefer-type-fest-unknown-array`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-array) | 🔧 |
|
|
107
|
+
| [`prefer-type-fest-unknown-map`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-map) | 🔧 |
|
|
108
|
+
| [`prefer-type-fest-unknown-record`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-record) | 🔧 |
|
|
109
|
+
| [`prefer-type-fest-unknown-set`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-set) | 🔧 |
|
|
110
|
+
| [`prefer-type-fest-unwrap-tagged`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unwrap-tagged) | 🔧 |
|
|
111
|
+
| [`prefer-type-fest-value-of`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-value-of) | 🔧 |
|
|
112
|
+
| [`prefer-type-fest-writable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-writable) | 🔧 |
|
|
113
|
+
| [`prefer-type-fest-writable-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-writable-deep) | 🔧 |
|
|
@@ -78,9 +78,11 @@ This option is useful when you want the recommended rule set, but only for speci
|
|
|
78
78
|
| [`prefer-ts-extras-object-has-in`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-object-has-in) | 🔧 💡 |
|
|
79
79
|
| [`prefer-ts-extras-object-has-own`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-object-has-own) | 🔧 💡 |
|
|
80
80
|
| [`prefer-type-fest-abstract-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-abstract-constructor) | 🔧 |
|
|
81
|
+
| [`prefer-type-fest-and-all`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-and-all) | 🔧 |
|
|
81
82
|
| [`prefer-type-fest-arrayable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-arrayable) | 🔧 |
|
|
82
83
|
| [`prefer-type-fest-async-return-type`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-async-return-type) | 🔧 |
|
|
83
84
|
| [`prefer-type-fest-conditional-pick`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-conditional-pick) | 🔧 |
|
|
85
|
+
| [`prefer-type-fest-conditional-pick-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-conditional-pick-deep) | 🔧 |
|
|
84
86
|
| [`prefer-type-fest-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-constructor) | 🔧 |
|
|
85
87
|
| [`prefer-type-fest-except`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-except) | 🔧 |
|
|
86
88
|
| [`prefer-type-fest-if`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-if) | 🔧 |
|
|
@@ -90,10 +92,14 @@ This option is useful when you want the recommended rule set, but only for speci
|
|
|
90
92
|
| [`prefer-type-fest-json-primitive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-primitive) | 🔧 |
|
|
91
93
|
| [`prefer-type-fest-json-value`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-value) | 💡 |
|
|
92
94
|
| [`prefer-type-fest-keys-of-union`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-keys-of-union) | 🔧 |
|
|
95
|
+
| [`prefer-type-fest-less-than`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-less-than) | 🔧 |
|
|
96
|
+
| [`prefer-type-fest-less-than-or-equal`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-less-than-or-equal) | 🔧 |
|
|
93
97
|
| [`prefer-type-fest-literal-union`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-literal-union) | 🔧 |
|
|
94
98
|
| [`prefer-type-fest-merge-exclusive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-merge-exclusive) | 🔧 |
|
|
95
99
|
| [`prefer-type-fest-non-empty-tuple`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-non-empty-tuple) | 🔧 |
|
|
96
100
|
| [`prefer-type-fest-omit-index-signature`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-omit-index-signature) | 🔧 |
|
|
101
|
+
| [`prefer-type-fest-optional`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-optional) | 🔧 |
|
|
102
|
+
| [`prefer-type-fest-or-all`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-or-all) | 🔧 |
|
|
97
103
|
| [`prefer-type-fest-partial-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-partial-deep) | 🔧 |
|
|
98
104
|
| [`prefer-type-fest-primitive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-primitive) | 🔧 |
|
|
99
105
|
| [`prefer-type-fest-promisable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-promisable) | 🔧 |
|
|
@@ -111,6 +117,8 @@ This option is useful when you want the recommended rule set, but only for speci
|
|
|
111
117
|
| [`prefer-type-fest-simplify`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-simplify) | 🔧 |
|
|
112
118
|
| [`prefer-type-fest-tagged-brands`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-tagged-brands) | 🔧 |
|
|
113
119
|
| [`prefer-type-fest-tuple-of`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-tuple-of) | 🔧 |
|
|
120
|
+
| [`prefer-type-fest-union-member`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-union-member) | 🔧 |
|
|
121
|
+
| [`prefer-type-fest-union-to-tuple`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-union-to-tuple) | 🔧 |
|
|
114
122
|
| [`prefer-type-fest-unknown-array`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-array) | 🔧 |
|
|
115
123
|
| [`prefer-type-fest-unknown-map`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-map) | 🔧 |
|
|
116
124
|
| [`prefer-type-fest-unknown-record`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-record) | 🔧 |
|
|
@@ -61,9 +61,12 @@ export default [typefest.configs.strict];
|
|
|
61
61
|
| [`prefer-ts-extras-set-has`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-set-has) | 🔧 💡 |
|
|
62
62
|
| [`prefer-ts-extras-string-split`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-ts-extras-string-split) | 🔧 |
|
|
63
63
|
| [`prefer-type-fest-abstract-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-abstract-constructor) | 🔧 |
|
|
64
|
+
| [`prefer-type-fest-and-all`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-and-all) | 🔧 |
|
|
65
|
+
| [`prefer-type-fest-array-length`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-array-length) | 🔧 |
|
|
64
66
|
| [`prefer-type-fest-arrayable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-arrayable) | 🔧 |
|
|
65
67
|
| [`prefer-type-fest-async-return-type`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-async-return-type) | 🔧 |
|
|
66
68
|
| [`prefer-type-fest-conditional-pick`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-conditional-pick) | 🔧 |
|
|
69
|
+
| [`prefer-type-fest-conditional-pick-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-conditional-pick-deep) | 🔧 |
|
|
67
70
|
| [`prefer-type-fest-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-constructor) | 🔧 |
|
|
68
71
|
| [`prefer-type-fest-except`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-except) | 🔧 |
|
|
69
72
|
| [`prefer-type-fest-if`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-if) | 🔧 |
|
|
@@ -73,10 +76,14 @@ export default [typefest.configs.strict];
|
|
|
73
76
|
| [`prefer-type-fest-json-primitive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-primitive) | 🔧 |
|
|
74
77
|
| [`prefer-type-fest-json-value`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-value) | 💡 |
|
|
75
78
|
| [`prefer-type-fest-keys-of-union`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-keys-of-union) | 🔧 |
|
|
79
|
+
| [`prefer-type-fest-less-than`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-less-than) | 🔧 |
|
|
80
|
+
| [`prefer-type-fest-less-than-or-equal`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-less-than-or-equal) | 🔧 |
|
|
76
81
|
| [`prefer-type-fest-literal-union`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-literal-union) | 🔧 |
|
|
77
82
|
| [`prefer-type-fest-merge-exclusive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-merge-exclusive) | 🔧 |
|
|
78
83
|
| [`prefer-type-fest-non-empty-tuple`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-non-empty-tuple) | 🔧 |
|
|
79
84
|
| [`prefer-type-fest-omit-index-signature`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-omit-index-signature) | 🔧 |
|
|
85
|
+
| [`prefer-type-fest-optional`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-optional) | 🔧 |
|
|
86
|
+
| [`prefer-type-fest-or-all`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-or-all) | 🔧 |
|
|
80
87
|
| [`prefer-type-fest-partial-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-partial-deep) | 🔧 |
|
|
81
88
|
| [`prefer-type-fest-primitive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-primitive) | 🔧 |
|
|
82
89
|
| [`prefer-type-fest-promisable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-promisable) | 🔧 |
|
|
@@ -94,6 +101,8 @@ export default [typefest.configs.strict];
|
|
|
94
101
|
| [`prefer-type-fest-simplify`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-simplify) | 🔧 |
|
|
95
102
|
| [`prefer-type-fest-tagged-brands`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-tagged-brands) | 🔧 |
|
|
96
103
|
| [`prefer-type-fest-tuple-of`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-tuple-of) | 🔧 |
|
|
104
|
+
| [`prefer-type-fest-union-member`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-union-member) | 🔧 |
|
|
105
|
+
| [`prefer-type-fest-union-to-tuple`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-union-to-tuple) | 🔧 |
|
|
97
106
|
| [`prefer-type-fest-unknown-array`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-array) | 🔧 |
|
|
98
107
|
| [`prefer-type-fest-unknown-map`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-map) | 🔧 |
|
|
99
108
|
| [`prefer-type-fest-unknown-record`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-record) | 🔧 |
|
|
@@ -30,9 +30,11 @@ export default [typefest.configs["type-fest/types"]];
|
|
|
30
30
|
| Rule | Fix |
|
|
31
31
|
| --- | :-: |
|
|
32
32
|
| [`prefer-type-fest-abstract-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-abstract-constructor) | 🔧 |
|
|
33
|
+
| [`prefer-type-fest-and-all`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-and-all) | 🔧 |
|
|
33
34
|
| [`prefer-type-fest-arrayable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-arrayable) | 🔧 |
|
|
34
35
|
| [`prefer-type-fest-async-return-type`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-async-return-type) | 🔧 |
|
|
35
36
|
| [`prefer-type-fest-conditional-pick`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-conditional-pick) | 🔧 |
|
|
37
|
+
| [`prefer-type-fest-conditional-pick-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-conditional-pick-deep) | 🔧 |
|
|
36
38
|
| [`prefer-type-fest-constructor`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-constructor) | 🔧 |
|
|
37
39
|
| [`prefer-type-fest-except`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-except) | 🔧 |
|
|
38
40
|
| [`prefer-type-fest-if`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-if) | 🔧 |
|
|
@@ -42,10 +44,14 @@ export default [typefest.configs["type-fest/types"]];
|
|
|
42
44
|
| [`prefer-type-fest-json-primitive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-primitive) | 🔧 |
|
|
43
45
|
| [`prefer-type-fest-json-value`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-json-value) | 💡 |
|
|
44
46
|
| [`prefer-type-fest-keys-of-union`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-keys-of-union) | 🔧 |
|
|
47
|
+
| [`prefer-type-fest-less-than`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-less-than) | 🔧 |
|
|
48
|
+
| [`prefer-type-fest-less-than-or-equal`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-less-than-or-equal) | 🔧 |
|
|
45
49
|
| [`prefer-type-fest-literal-union`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-literal-union) | 🔧 |
|
|
46
50
|
| [`prefer-type-fest-merge-exclusive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-merge-exclusive) | 🔧 |
|
|
47
51
|
| [`prefer-type-fest-non-empty-tuple`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-non-empty-tuple) | 🔧 |
|
|
48
52
|
| [`prefer-type-fest-omit-index-signature`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-omit-index-signature) | 🔧 |
|
|
53
|
+
| [`prefer-type-fest-optional`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-optional) | 🔧 |
|
|
54
|
+
| [`prefer-type-fest-or-all`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-or-all) | 🔧 |
|
|
49
55
|
| [`prefer-type-fest-partial-deep`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-partial-deep) | 🔧 |
|
|
50
56
|
| [`prefer-type-fest-primitive`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-primitive) | 🔧 |
|
|
51
57
|
| [`prefer-type-fest-promisable`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-promisable) | 🔧 |
|
|
@@ -63,6 +69,8 @@ export default [typefest.configs["type-fest/types"]];
|
|
|
63
69
|
| [`prefer-type-fest-simplify`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-simplify) | 🔧 |
|
|
64
70
|
| [`prefer-type-fest-tagged-brands`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-tagged-brands) | 🔧 |
|
|
65
71
|
| [`prefer-type-fest-tuple-of`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-tuple-of) | 🔧 |
|
|
72
|
+
| [`prefer-type-fest-union-member`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-union-member) | 🔧 |
|
|
73
|
+
| [`prefer-type-fest-union-to-tuple`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-union-to-tuple) | 🔧 |
|
|
66
74
|
| [`prefer-type-fest-unknown-array`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-array) | 🔧 |
|
|
67
75
|
| [`prefer-type-fest-unknown-map`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-map) | 🔧 |
|
|
68
76
|
| [`prefer-type-fest-unknown-record`](https://nick2bad4u.github.io/eslint-plugin-typefest/docs/rules/prefer-type-fest-unknown-record) | 🔧 |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "eslint-plugin-typefest",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.6",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "ESLint rules for adopting type-fest and ts-extras conventions.",
|
|
7
7
|
"keywords": [
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"url": "git+https://github.com/Nick2bad4u/eslint-plugin-typefest.git"
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
|
-
"author": "Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com> (https://
|
|
25
|
+
"author": "Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com> (https://github.com/Nick2bad4u)",
|
|
26
26
|
"contributors": [
|
|
27
27
|
{
|
|
28
28
|
"name": "Nick2bad4u",
|
|
29
29
|
"email": "20943337+Nick2bad4u@users.noreply.github.com",
|
|
30
|
-
"url": "https://
|
|
30
|
+
"url": "https://github.com/Nick2bad4u"
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
33
|
"sideEffects": false,
|
|
@@ -76,6 +76,8 @@
|
|
|
76
76
|
"build:clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
77
77
|
"build:eslint-inspector": "npx -y @eslint/config-inspector@1.4.2 build --outDir \"docs/docusaurus/static/eslint-inspector\" --base \"/eslint-plugin-typefest/eslint-inspector/\"",
|
|
78
78
|
"build:eslint-inspector:local": "npx @eslint/config-inspector",
|
|
79
|
+
"build:stylelint-inspector": "npx -y stylelint-config-inspector@latest build --outDir \"docs/docusaurus/static/stylelint-inspector\" --base \"/eslint-plugin-typefest/stylelint-inspector/\"",
|
|
80
|
+
"build:stylelint-inspector:local": "npx stylelint-config-inspector@latest",
|
|
79
81
|
"build:types:cjs": "node -e \"require('node:fs').copyFileSync('dist/plugin.d.ts','dist/plugin.d.cts')\"",
|
|
80
82
|
"changelog:generate": "git-cliff --config cliff.toml --output CHANGELOG.md",
|
|
81
83
|
"changelog:preview": "git-cliff --config cliff.toml --unreleased",
|
|
@@ -107,8 +109,10 @@
|
|
|
107
109
|
"docs:build": "npm run --workspace docs/docusaurus build",
|
|
108
110
|
"docs:build:local": "npm run --workspace docs/docusaurus build:local",
|
|
109
111
|
"docs:check-links": "npm run docs:api && node ./scripts/check-doc-links.mjs",
|
|
112
|
+
"docs:devtools:metadata": "node scripts/generate-devtools-workspace-metadata.mjs",
|
|
110
113
|
"docs:serve": "npm run --workspace docs/docusaurus serve",
|
|
111
114
|
"docs:start": "npm run --workspace docs/docusaurus start",
|
|
115
|
+
"docs:start:devtools": "npm run docs:devtools:metadata && npm run docs:api:local && npm run --workspace docs/docusaurus start:devtools",
|
|
112
116
|
"docs:toc": "remark docs --use remark-toc --output",
|
|
113
117
|
"docs:typecheck": "npm run --workspace docs/docusaurus typecheck",
|
|
114
118
|
"docs:typedoc": "npm run --workspace docs/docusaurus docs:api",
|
|
@@ -170,7 +174,7 @@
|
|
|
170
174
|
"open:coverage": "open-cli coverage/index.html",
|
|
171
175
|
"prepublishOnly": "npm run release:check",
|
|
172
176
|
"release:check": "npm run release:verify",
|
|
173
|
-
"release:verify": "npm run build && npm run lint && npm run typecheck && npm run test && npm run sync:readme-rules-table && npm run sync:presets-rules-matrix && npm run docs:check-links && npm pack --dry-run",
|
|
177
|
+
"release:verify": "cross-env NODE_OPTIONS= npm run build && cross-env NODE_OPTIONS= npm run lint && cross-env NODE_OPTIONS= npm run typecheck && cross-env NODE_OPTIONS= VITEST_TYPECHECK=false npm run test && cross-env NODE_OPTIONS= npm run sync:readme-rules-table && cross-env NODE_OPTIONS= npm run sync:presets-rules-matrix && cross-env NODE_OPTIONS= npm run docs:check-links && cross-env NODE_OPTIONS= npm pack --dry-run",
|
|
174
178
|
"remark:fix": "remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore --frail --quiet --output -- \"*.{md,mdx}\" \"docs/**/*.{md,mdx}\"",
|
|
175
179
|
"remark:test-config": "remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore --frail \"README.md\"",
|
|
176
180
|
"sync:node-version-files": "node scripts/sync-node-version-files.mjs",
|
|
@@ -215,7 +219,7 @@
|
|
|
215
219
|
"@typescript-eslint/type-utils": "^8.57.1",
|
|
216
220
|
"@typescript-eslint/utils": "^8.57.1",
|
|
217
221
|
"ts-extras": "^0.17.0",
|
|
218
|
-
"type-fest": "^5.
|
|
222
|
+
"type-fest": "^5.5.0"
|
|
219
223
|
},
|
|
220
224
|
"devDependencies": {
|
|
221
225
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
@@ -230,26 +234,26 @@
|
|
|
230
234
|
"@eslint/config-inspector": "^1.5.0",
|
|
231
235
|
"@eslint/css": "^1.0.0",
|
|
232
236
|
"@eslint/js": "^10.0.1",
|
|
233
|
-
"@eslint/json": "^1.
|
|
237
|
+
"@eslint/json": "^1.2.0",
|
|
234
238
|
"@eslint/markdown": "^7.5.1",
|
|
235
239
|
"@html-eslint/eslint-plugin": "^0.58.1",
|
|
236
240
|
"@html-eslint/parser": "^0.58.1",
|
|
237
241
|
"@microsoft/eslint-plugin-sdl": "^1.1.0",
|
|
238
242
|
"@microsoft/tsdoc-config": "^0.18.1",
|
|
239
|
-
"@secretlint/secretlint-rule-anthropic": "^11.
|
|
240
|
-
"@secretlint/secretlint-rule-aws": "^11.
|
|
241
|
-
"@secretlint/secretlint-rule-database-connection-string": "^11.
|
|
242
|
-
"@secretlint/secretlint-rule-gcp": "^11.
|
|
243
|
-
"@secretlint/secretlint-rule-github": "^11.
|
|
244
|
-
"@secretlint/secretlint-rule-no-dotenv": "^11.
|
|
245
|
-
"@secretlint/secretlint-rule-no-homedir": "^11.
|
|
246
|
-
"@secretlint/secretlint-rule-npm": "^11.
|
|
247
|
-
"@secretlint/secretlint-rule-openai": "^11.
|
|
248
|
-
"@secretlint/secretlint-rule-pattern": "^11.
|
|
249
|
-
"@secretlint/secretlint-rule-preset-recommend": "^11.
|
|
250
|
-
"@secretlint/secretlint-rule-privatekey": "^11.
|
|
251
|
-
"@secretlint/secretlint-rule-secp256k1-privatekey": "^11.
|
|
252
|
-
"@secretlint/types": "^11.
|
|
243
|
+
"@secretlint/secretlint-rule-anthropic": "^11.4.0",
|
|
244
|
+
"@secretlint/secretlint-rule-aws": "^11.4.0",
|
|
245
|
+
"@secretlint/secretlint-rule-database-connection-string": "^11.4.0",
|
|
246
|
+
"@secretlint/secretlint-rule-gcp": "^11.4.0",
|
|
247
|
+
"@secretlint/secretlint-rule-github": "^11.4.0",
|
|
248
|
+
"@secretlint/secretlint-rule-no-dotenv": "^11.4.0",
|
|
249
|
+
"@secretlint/secretlint-rule-no-homedir": "^11.4.0",
|
|
250
|
+
"@secretlint/secretlint-rule-npm": "^11.4.0",
|
|
251
|
+
"@secretlint/secretlint-rule-openai": "^11.4.0",
|
|
252
|
+
"@secretlint/secretlint-rule-pattern": "^11.4.0",
|
|
253
|
+
"@secretlint/secretlint-rule-preset-recommend": "^11.4.0",
|
|
254
|
+
"@secretlint/secretlint-rule-privatekey": "^11.4.0",
|
|
255
|
+
"@secretlint/secretlint-rule-secp256k1-privatekey": "^11.4.0",
|
|
256
|
+
"@secretlint/types": "^11.4.0",
|
|
253
257
|
"@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
|
|
254
258
|
"@stryker-ignorer/console-all": "^0.3.2",
|
|
255
259
|
"@stryker-mutator/core": "^9.6.0",
|
|
@@ -285,7 +289,7 @@
|
|
|
285
289
|
"cross-env": "^10.1.0",
|
|
286
290
|
"depcheck": "^1.4.7",
|
|
287
291
|
"detect-secrets": "^1.0.6",
|
|
288
|
-
"eslint": "^10.0
|
|
292
|
+
"eslint": "^10.1.0",
|
|
289
293
|
"eslint-config-flat-gitignore": "^2.2.1",
|
|
290
294
|
"eslint-config-prettier": "^10.1.8",
|
|
291
295
|
"eslint-formatter-unix": "^9.0.1",
|
|
@@ -294,14 +298,16 @@
|
|
|
294
298
|
"eslint-plugin-canonical": "^5.1.3",
|
|
295
299
|
"eslint-plugin-case-police": "^2.2.0",
|
|
296
300
|
"eslint-plugin-comment-length": "^2.3.0",
|
|
301
|
+
"eslint-plugin-copilot": "^1.0.5",
|
|
297
302
|
"eslint-plugin-css-modules": "^2.12.0",
|
|
298
303
|
"eslint-plugin-de-morgan": "^2.1.1",
|
|
299
304
|
"eslint-plugin-depend": "^1.5.0",
|
|
300
305
|
"eslint-plugin-eslint-plugin": "^7.3.2",
|
|
301
306
|
"eslint-plugin-etc": "^2.0.3",
|
|
302
|
-
"eslint-plugin-etc-misc": "^1.0.
|
|
307
|
+
"eslint-plugin-etc-misc": "^1.0.4",
|
|
303
308
|
"eslint-plugin-file-progress-2": "^3.4.3",
|
|
304
309
|
"eslint-plugin-html": "^8.1.4",
|
|
310
|
+
"eslint-plugin-immutable-2": "^1.0.5",
|
|
305
311
|
"eslint-plugin-import-x": "^4.16.2",
|
|
306
312
|
"eslint-plugin-jsdoc": "^62.8.0",
|
|
307
313
|
"eslint-plugin-jsonc": "^3.1.2",
|
|
@@ -322,26 +328,28 @@
|
|
|
322
328
|
"eslint-plugin-no-use-extend-native": "^0.7.2",
|
|
323
329
|
"eslint-plugin-node-dependencies": "^2.2.0",
|
|
324
330
|
"eslint-plugin-package-json": "^0.91.0",
|
|
325
|
-
"eslint-plugin-perfectionist": "^5.
|
|
331
|
+
"eslint-plugin-perfectionist": "^5.7.0",
|
|
326
332
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
327
333
|
"eslint-plugin-prettier": "^5.5.5",
|
|
328
334
|
"eslint-plugin-promise": "^7.2.1",
|
|
329
335
|
"eslint-plugin-redos": "^4.5.0",
|
|
330
336
|
"eslint-plugin-regexp": "^3.1.0",
|
|
331
337
|
"eslint-plugin-require-jsdoc": "^1.0.4",
|
|
338
|
+
"eslint-plugin-sdl-2": "^1.0.4",
|
|
332
339
|
"eslint-plugin-security": "^4.0.0",
|
|
333
340
|
"eslint-plugin-sonarjs": "^4.0.2",
|
|
334
341
|
"eslint-plugin-sort-class-members": "^1.21.0",
|
|
335
|
-
"eslint-plugin-testing-library": "^7.16.
|
|
342
|
+
"eslint-plugin-testing-library": "^7.16.1",
|
|
336
343
|
"eslint-plugin-toml": "^1.3.1",
|
|
337
344
|
"eslint-plugin-total-functions": "^7.1.0",
|
|
338
345
|
"eslint-plugin-tsdoc": "^0.5.2",
|
|
339
|
-
"eslint-plugin-tsdoc-require-2": "^1.0.
|
|
340
|
-
"eslint-plugin-typefest": "^1.0.
|
|
346
|
+
"eslint-plugin-tsdoc-require-2": "^1.0.6",
|
|
347
|
+
"eslint-plugin-typefest": "^1.0.5",
|
|
341
348
|
"eslint-plugin-undefined-css-classes": "^0.1.5",
|
|
342
349
|
"eslint-plugin-unicorn": "^63.0.0",
|
|
343
350
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
344
351
|
"eslint-plugin-write-good-comments": "^0.2.0",
|
|
352
|
+
"eslint-plugin-write-good-comments-2": "^1.0.4",
|
|
345
353
|
"eslint-plugin-yml": "^3.3.1",
|
|
346
354
|
"eslint-rule-benchmark": "^0.8.0",
|
|
347
355
|
"fast-check": "^4.6.0",
|
|
@@ -351,11 +359,11 @@
|
|
|
351
359
|
"htmlhint": "^1.9.2",
|
|
352
360
|
"jscpd": "^4.0.8",
|
|
353
361
|
"jsonc-eslint-parser": "^3.1.0",
|
|
354
|
-
"knip": "^
|
|
362
|
+
"knip": "^6.0.1",
|
|
355
363
|
"leasot": "^14.4.0",
|
|
356
364
|
"madge": "^8.0.0",
|
|
357
365
|
"markdown-link-check": "^3.14.2",
|
|
358
|
-
"npm-check-updates": "^19.6.
|
|
366
|
+
"npm-check-updates": "^19.6.5",
|
|
359
367
|
"npm-package-json-lint": "^9.1.0",
|
|
360
368
|
"picocolors": "^1.1.1",
|
|
361
369
|
"postcss": "^8.5.8",
|
|
@@ -495,16 +503,17 @@
|
|
|
495
503
|
"remark-validate-links": "^13.1.0",
|
|
496
504
|
"remark-wiki-link": "^2.0.1",
|
|
497
505
|
"rimraf": "^6.1.3",
|
|
498
|
-
"secretlint": "^11.
|
|
506
|
+
"secretlint": "^11.4.0",
|
|
499
507
|
"sloc": "^0.3.2",
|
|
500
508
|
"sort-package-json": "^3.6.1",
|
|
501
|
-
"stylelint": "^17.
|
|
509
|
+
"stylelint": "^17.5.0",
|
|
502
510
|
"stylelint-actions-formatters": "^16.3.1",
|
|
503
511
|
"stylelint-checkstyle-formatter": "^0.1.2",
|
|
504
512
|
"stylelint-codeframe-formatter": "^1.2.0",
|
|
505
513
|
"stylelint-config-alphabetical-order": "^2.0.0",
|
|
506
514
|
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
507
|
-
"stylelint-config-
|
|
515
|
+
"stylelint-config-inspector": "^2.0.2",
|
|
516
|
+
"stylelint-config-recess-order": "^7.7.0",
|
|
508
517
|
"stylelint-config-recommended": "^18.0.0",
|
|
509
518
|
"stylelint-config-sass-guidelines": "^13.0.0",
|
|
510
519
|
"stylelint-config-standard": "^40.0.0",
|
|
@@ -512,7 +521,7 @@
|
|
|
512
521
|
"stylelint-config-tailwindcss": "^1.0.1",
|
|
513
522
|
"stylelint-declaration-block-no-ignored-properties": "^3.0.0",
|
|
514
523
|
"stylelint-declaration-strict-value": "^1.11.1",
|
|
515
|
-
"stylelint-define-config": "^17.
|
|
524
|
+
"stylelint-define-config": "^17.5.0",
|
|
516
525
|
"stylelint-find-new-rules": "^6.0.0",
|
|
517
526
|
"stylelint-formatter-gitlab-code-quality-report": "^1.1.0",
|
|
518
527
|
"stylelint-formatter-pretty": "^4.0.1",
|
|
@@ -526,9 +535,9 @@
|
|
|
526
535
|
"stylelint-no-unresolved-module": "^2.5.2",
|
|
527
536
|
"stylelint-no-unsupported-browser-features": "^8.1.1",
|
|
528
537
|
"stylelint-order": "^8.1.1",
|
|
529
|
-
"stylelint-plugin-defensive-css": "^2.
|
|
538
|
+
"stylelint-plugin-defensive-css": "^2.8.0",
|
|
530
539
|
"stylelint-plugin-logical-css": "^2.0.2",
|
|
531
|
-
"stylelint-plugin-use-baseline": "^1.
|
|
540
|
+
"stylelint-plugin-use-baseline": "^1.4.0",
|
|
532
541
|
"stylelint-prettier": "^5.0.3",
|
|
533
542
|
"stylelint-react-native": "^2.7.0",
|
|
534
543
|
"stylelint-scales": "^5.0.0",
|
|
@@ -542,17 +551,17 @@
|
|
|
542
551
|
"typescript-eslint": "^8.57.1",
|
|
543
552
|
"typesync": "^0.14.3",
|
|
544
553
|
"vfile": "^6.0.3",
|
|
545
|
-
"vite": "^8.0.
|
|
554
|
+
"vite": "^8.0.1",
|
|
546
555
|
"vite-tsconfig-paths": "^6.1.1",
|
|
547
556
|
"vitest": "^4.1.0",
|
|
548
557
|
"yaml-eslint-parser": "^2.0.0",
|
|
549
558
|
"yamllint-js": "^0.2.4"
|
|
550
559
|
},
|
|
551
560
|
"peerDependencies": {
|
|
552
|
-
"eslint": "^9.0.0 || ^10.0
|
|
561
|
+
"eslint": "^9.0.0 || ^10.1.0",
|
|
553
562
|
"typescript": ">=5.0.0"
|
|
554
563
|
},
|
|
555
|
-
"packageManager": "npm@11.
|
|
564
|
+
"packageManager": "npm@11.12.0",
|
|
556
565
|
"engines": {
|
|
557
566
|
"node": ">=22.0.0"
|
|
558
567
|
},
|