@eslinted/defaults 17.0.3 → 17.0.5
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/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +7 -2
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/ts/index.d.ts +7 -2
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/dist/rules/ts/ts.d.ts +7 -2
- package/dist/rules/ts/ts.d.ts.map +1 -1
- package/dist/rules/ts/ts.js +7 -2
- package/dist/rules/ts/ts.js.map +1 -1
- package/package.json +2 -2
- package/src/rules/ts/ts.ts +8 -2
package/dist/index.d.ts
CHANGED
|
@@ -616,7 +616,6 @@ declare const _default: {
|
|
|
616
616
|
readonly "ts/ban-tslint-comment": import("./rules/state.js").State.ON;
|
|
617
617
|
readonly "ts/class-literal-property-style": import("./rules/state.js").State.ON;
|
|
618
618
|
readonly "ts/consistent-generic-constructors": import("./rules/state.js").State.ON;
|
|
619
|
-
readonly "ts/consistent-indexed-object-style": import("./rules/state.js").State.ON;
|
|
620
619
|
readonly "ts/consistent-type-assertions": readonly [
|
|
621
620
|
import("./rules/state.js").State.ON,
|
|
622
621
|
{
|
|
@@ -763,7 +762,13 @@ declare const _default: {
|
|
|
763
762
|
readonly allowString: false;
|
|
764
763
|
}
|
|
765
764
|
];
|
|
766
|
-
readonly "ts/switch-exhaustiveness-check":
|
|
765
|
+
readonly "ts/switch-exhaustiveness-check": readonly [
|
|
766
|
+
import("./rules/state.js").State.ON,
|
|
767
|
+
{
|
|
768
|
+
readonly requireDefaultForNonUnion: true;
|
|
769
|
+
readonly considerDefaultExhaustiveForUnions: true;
|
|
770
|
+
}
|
|
771
|
+
];
|
|
767
772
|
readonly "ts/unbound-method": import("./rules/state.js").State.ON;
|
|
768
773
|
readonly "ts/unified-signatures": import("./rules/state.js").State.ON;
|
|
769
774
|
readonly "ts/use-unknown-in-catch-callback-variable": import("./rules/state.js").State.ON;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -599,7 +599,6 @@ declare const _default: {
|
|
|
599
599
|
readonly "ts/ban-tslint-comment": import("./state.js").State.ON;
|
|
600
600
|
readonly "ts/class-literal-property-style": import("./state.js").State.ON;
|
|
601
601
|
readonly "ts/consistent-generic-constructors": import("./state.js").State.ON;
|
|
602
|
-
readonly "ts/consistent-indexed-object-style": import("./state.js").State.ON;
|
|
603
602
|
readonly "ts/consistent-type-assertions": readonly [
|
|
604
603
|
import("./state.js").State.ON,
|
|
605
604
|
{
|
|
@@ -746,7 +745,13 @@ declare const _default: {
|
|
|
746
745
|
readonly allowString: false;
|
|
747
746
|
}
|
|
748
747
|
];
|
|
749
|
-
readonly "ts/switch-exhaustiveness-check":
|
|
748
|
+
readonly "ts/switch-exhaustiveness-check": readonly [
|
|
749
|
+
import("./state.js").State.ON,
|
|
750
|
+
{
|
|
751
|
+
readonly requireDefaultForNonUnion: true;
|
|
752
|
+
readonly considerDefaultExhaustiveForUnions: true;
|
|
753
|
+
}
|
|
754
|
+
];
|
|
750
755
|
readonly "ts/unbound-method": import("./state.js").State.ON;
|
|
751
756
|
readonly "ts/unified-signatures": import("./state.js").State.ON;
|
|
752
757
|
readonly "ts/use-unknown-in-catch-callback-variable": import("./state.js").State.ON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wBAWE"}
|
package/dist/rules/ts/index.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ declare const _default: ({
|
|
|
29
29
|
readonly "ts/ban-tslint-comment": import("../state.js").State.ON;
|
|
30
30
|
readonly "ts/class-literal-property-style": import("../state.js").State.ON;
|
|
31
31
|
readonly "ts/consistent-generic-constructors": import("../state.js").State.ON;
|
|
32
|
-
readonly "ts/consistent-indexed-object-style": import("../state.js").State.ON;
|
|
33
32
|
readonly "ts/consistent-type-assertions": readonly [
|
|
34
33
|
import("../state.js").State.ON,
|
|
35
34
|
{
|
|
@@ -176,7 +175,13 @@ declare const _default: ({
|
|
|
176
175
|
readonly allowString: false;
|
|
177
176
|
}
|
|
178
177
|
];
|
|
179
|
-
readonly "ts/switch-exhaustiveness-check":
|
|
178
|
+
readonly "ts/switch-exhaustiveness-check": readonly [
|
|
179
|
+
import("../state.js").State.ON,
|
|
180
|
+
{
|
|
181
|
+
readonly requireDefaultForNonUnion: true;
|
|
182
|
+
readonly considerDefaultExhaustiveForUnions: true;
|
|
183
|
+
}
|
|
184
|
+
];
|
|
180
185
|
readonly "ts/unbound-method": import("../state.js").State.ON;
|
|
181
186
|
readonly "ts/unified-signatures": import("../state.js").State.ON;
|
|
182
187
|
readonly "ts/use-unknown-in-catch-callback-variable": import("../state.js").State.ON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
package/dist/rules/ts/ts.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ declare const _default: {
|
|
|
7
7
|
readonly "ts/ban-tslint-comment": State.ON;
|
|
8
8
|
readonly "ts/class-literal-property-style": State.ON;
|
|
9
9
|
readonly "ts/consistent-generic-constructors": State.ON;
|
|
10
|
-
readonly "ts/consistent-indexed-object-style": State.ON;
|
|
11
10
|
readonly "ts/consistent-type-assertions": readonly [
|
|
12
11
|
State.ON,
|
|
13
12
|
{
|
|
@@ -154,7 +153,13 @@ declare const _default: {
|
|
|
154
153
|
readonly allowString: false;
|
|
155
154
|
}
|
|
156
155
|
];
|
|
157
|
-
readonly "ts/switch-exhaustiveness-check":
|
|
156
|
+
readonly "ts/switch-exhaustiveness-check": readonly [
|
|
157
|
+
State.ON,
|
|
158
|
+
{
|
|
159
|
+
readonly requireDefaultForNonUnion: true;
|
|
160
|
+
readonly considerDefaultExhaustiveForUnions: true;
|
|
161
|
+
}
|
|
162
|
+
];
|
|
158
163
|
readonly "ts/unbound-method": State.ON;
|
|
159
164
|
readonly "ts/unified-signatures": State.ON;
|
|
160
165
|
readonly "ts/use-unknown-in-catch-callback-variable": State.ON;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBAuLE"}
|
package/dist/rules/ts/ts.js
CHANGED
|
@@ -6,7 +6,6 @@ export default {
|
|
|
6
6
|
"ts/ban-tslint-comment": 2,
|
|
7
7
|
"ts/class-literal-property-style": 2,
|
|
8
8
|
"ts/consistent-generic-constructors": 2,
|
|
9
|
-
"ts/consistent-indexed-object-style": 2,
|
|
10
9
|
"ts/consistent-type-assertions": [
|
|
11
10
|
2,
|
|
12
11
|
{
|
|
@@ -153,7 +152,13 @@ export default {
|
|
|
153
152
|
allowString: false,
|
|
154
153
|
},
|
|
155
154
|
],
|
|
156
|
-
"ts/switch-exhaustiveness-check":
|
|
155
|
+
"ts/switch-exhaustiveness-check": [
|
|
156
|
+
2,
|
|
157
|
+
{
|
|
158
|
+
requireDefaultForNonUnion: true,
|
|
159
|
+
considerDefaultExhaustiveForUnions: true,
|
|
160
|
+
},
|
|
161
|
+
],
|
|
157
162
|
"ts/unbound-method": 2,
|
|
158
163
|
"ts/unified-signatures": 2,
|
|
159
164
|
"ts/use-unknown-in-catch-callback-variable": 2,
|
package/dist/rules/ts/ts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE;QAGL,mBAAmB,GAAU;QAC7B,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QACjC,iCAAiC,GAAU;QAC3C,oCAAoC,GAAU;
|
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE;QAGL,mBAAmB,GAAU;QAC7B,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QACjC,iCAAiC,GAAU;QAC3C,oCAAoC,GAAU;QAE9C,+BAA+B,EAAE;;YAE/B;gBACE,0BAA0B,EAAE,OAAO;gBACnC,2BAA2B,EAAE,OAAO;aACrC;SACF;QAED,4BAA4B,GAAU;QACtC,4BAA4B,GAAU;QAEtC,kCAAkC,EAAE;;YAElC;gBACE,SAAS,EAAE;oBACT,YAAY,EAAE,WAAW;iBAC1B;aACF;SACF;QAED,oBAAoB,EAAE;;YAEpB;gBACE,SAAS,EAAE;oBACT,gBAAgB,EAAE,gBAAgB;iBACnC;aACF;SACF;QACD,2BAA2B,GAAU;QAErC,oBAAoB,GAAU;QAC9B,sBAAsB,GAAU;QAChC,oCAAoC,GAAU;QAC9C,iCAAiC,GAAU;QAE3C,6BAA6B,GAAU;QACvC,mCAAmC,GAAU;QAC7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+B,GAAU;QACzC,6BAA6B,GAAU;QACvC,8BAA8B,GAAU;QACxC,0BAA0B,GAAU;QACpC,oBAAoB,GAAU;QAE9B,iCAAiC,GAAU;QAC3C,uBAAuB,GAAU;QACjC,4BAA4B,GAAU;QACtC,mCAAmC,GAAU;QAC7C,2BAA2B,GAAU;QACrC,gCAAgC,GAAU;QAC1C,+BAA+B,GAAU;QACzC,2BAA2B,EAAE;;YAE3B;gBACE,QAAQ,EAAE,KAAK;gBACf,YAAY,EAAE,KAAK;gBACnB,YAAY,EAAE,KAAK;gBACnB,oBAAoB,EAAE,KAAK;gBAC3B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,kCAAkC,EAAE;;YAElC;gBACE,YAAY,EAAE,KAAK;gBACnB,UAAU,EAAE,KAAK;gBACjB,WAAW,EAAE,KAAK;aACnB;SACF;QACD,iBAAiB,GAAU;QAC3B,+BAA+B,EAAE;;YAE/B;gBACE,mBAAmB,EAAE,KAAK;gBAC1B,WAAW,EAAE,KAAK;aACnB;SACF;QACD,gCAAgC,EAAE;;YAEhC;gBACE,yBAAyB,EAAE,IAAI;gBAC/B,kCAAkC,EAAE,IAAI;aACzC;SACF;QAGD,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QACjC,2CAA2C,GAAU;KAC7C;CACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "17.0.
|
|
6
|
+
"version": "17.0.5",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"peerDependenciesMeta": {},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/chai": "^5.2.
|
|
20
|
+
"@types/chai": "^5.2.3",
|
|
21
21
|
"@types/mocha": "^10.0.10",
|
|
22
22
|
"chai": "^6.2.0",
|
|
23
23
|
"mocha": "^11.7.4",
|
package/src/rules/ts/ts.ts
CHANGED
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
"ts/ban-tslint-comment": State.ON,
|
|
12
12
|
"ts/class-literal-property-style": State.ON,
|
|
13
13
|
"ts/consistent-generic-constructors": State.ON,
|
|
14
|
-
"ts/consistent-indexed-object-style": State.
|
|
14
|
+
// "ts/consistent-indexed-object-style": State.OFF /* preference */,
|
|
15
15
|
"ts/consistent-type-assertions": [
|
|
16
16
|
State.ON,
|
|
17
17
|
{
|
|
@@ -171,7 +171,13 @@ export default {
|
|
|
171
171
|
allowString: false,
|
|
172
172
|
},
|
|
173
173
|
], /* requires tsconfig: strictNullChecks */
|
|
174
|
-
"ts/switch-exhaustiveness-check":
|
|
174
|
+
"ts/switch-exhaustiveness-check": [
|
|
175
|
+
State.ON,
|
|
176
|
+
{
|
|
177
|
+
requireDefaultForNonUnion: true,
|
|
178
|
+
considerDefaultExhaustiveForUnions: true,
|
|
179
|
+
},
|
|
180
|
+
],
|
|
175
181
|
// "ts/triple-slash-reference": State.OFF /* preference */,
|
|
176
182
|
// "ts/typedef": State.OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
|
177
183
|
"ts/unbound-method": State.ON,
|