linted 16.0.0-rc.1 → 16.0.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/statics/rules/index.d.ts +50 -23
- package/dist/statics/rules/index.d.ts.map +1 -1
- package/dist/statics/rules/presets/Js.d.ts +10 -2
- package/dist/statics/rules/presets/Js.d.ts.map +1 -1
- package/dist/statics/rules/presets/Svelte.d.ts +22 -11
- package/dist/statics/rules/presets/Svelte.d.ts.map +1 -1
- package/dist/statics/rules/presets/Ts.d.ts +18 -10
- package/dist/statics/rules/presets/Ts.d.ts.map +1 -1
- package/dist/statics/rules/presets/entries/js/Enable.d.ts +10 -2
- package/dist/statics/rules/presets/entries/js/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/entries/js/Enable.js +12 -2
- package/dist/statics/rules/presets/entries/js/Enable.js.map +1 -1
- package/dist/statics/rules/presets/entries/state.d.ts +2 -2
- package/dist/statics/rules/presets/entries/state.d.ts.map +1 -1
- package/dist/statics/rules/presets/entries/state.js +2 -2
- package/dist/statics/rules/presets/entries/state.js.map +1 -1
- package/dist/statics/rules/presets/entries/svelte/DisableTS.d.ts +1 -0
- package/dist/statics/rules/presets/entries/svelte/DisableTS.d.ts.map +1 -1
- package/dist/statics/rules/presets/entries/svelte/DisableTS.js +4 -1
- package/dist/statics/rules/presets/entries/svelte/DisableTS.js.map +1 -1
- package/dist/statics/rules/presets/entries/svelte/EnableX.d.ts +3 -1
- package/dist/statics/rules/presets/entries/svelte/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/entries/svelte/EnableX.js +2 -1
- package/dist/statics/rules/presets/entries/svelte/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/entries/ts/DisableX.d.ts +0 -2
- package/dist/statics/rules/presets/entries/ts/DisableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/entries/ts/DisableX.js +0 -2
- package/dist/statics/rules/presets/entries/ts/DisableX.js.map +1 -1
- package/dist/statics/rules/presets/entries/ts/Enable.d.ts +6 -4
- package/dist/statics/rules/presets/entries/ts/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/entries/ts/Enable.js +9 -5
- package/dist/statics/rules/presets/entries/ts/Enable.js.map +1 -1
- package/dist/statics/rules/presets/entries/ts/EnableX.d.ts +2 -2
- package/dist/statics/rules/presets/entries/ts/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/entries/ts/EnableX.js +2 -5
- package/dist/statics/rules/presets/entries/ts/EnableX.js.map +1 -1
- package/package.json +2 -1
- package/src/statics/rules/presets/entries/js/Enable.ts +12 -1
- package/src/statics/rules/presets/entries/state.ts +2 -0
- package/src/statics/rules/presets/entries/svelte/DisableTS.ts +4 -1
- package/src/statics/rules/presets/entries/svelte/EnableX.ts +2 -0
- package/src/statics/rules/presets/entries/ts/DisableX.ts +0 -2
- package/src/statics/rules/presets/entries/ts/Enable.ts +9 -5
- package/src/statics/rules/presets/entries/ts/EnableX.ts +2 -5
@@ -37,7 +37,6 @@ export default [
|
|
37
37
|
"@typescript-eslint/no-implied-eval": ERROR,
|
38
38
|
"@typescript-eslint/no-invalid-this": OFF,
|
39
39
|
"@typescript-eslint/no-loop-func": ERROR,
|
40
|
-
"@typescript-eslint/no-loss-of-precision": ERROR,
|
41
40
|
"@typescript-eslint/no-magic-numbers": OFF,
|
42
41
|
"@typescript-eslint/no-redeclare": OFF,
|
43
42
|
"@typescript-eslint/no-restricted-imports": OFF,
|
@@ -58,6 +57,8 @@ export default [
|
|
58
57
|
args: ALL,
|
59
58
|
caughtErrors: ALL,
|
60
59
|
ignoreRestSiblings: false,
|
60
|
+
ignoreClassWithStaticInitBlock: false,
|
61
|
+
reportUsedIgnorePattern: true,
|
61
62
|
},
|
62
63
|
],
|
63
64
|
"@typescript-eslint/no-use-before-define": [
|
@@ -102,10 +103,6 @@ export default [
|
|
102
103
|
{ allowEmptyReject: false },
|
103
104
|
],
|
104
105
|
"@typescript-eslint/require-await": ERROR,
|
105
|
-
"@typescript-eslint/return-await": [
|
106
|
-
ERROR,
|
107
|
-
"in-try-catch",
|
108
|
-
],
|
109
106
|
},
|
110
107
|
];
|
111
108
|
//# sourceMappingURL=EnableX.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EnableX.js","sourceRoot":"","sources":["../../../../../../src/statics/rules/presets/entries/ts/EnableX.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,GAAG,EACH,MAAM,GACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,eAAe;IACb,OAAO;IACP;QAGE,2CAA2C,EAAE,GAAG;QAChD,sCAAsC,EAAE,GAAG;QAC3C,uCAAuC,EAAE,KAAK;QAC9C,iCAAiC,EAAE;YACjC,KAAK;YACL;gBACE,aAAa,EAAE,IAAI;gBAGnB,+BAA+B,EAAE,IAAI;gBACrC,iCAAiC,EAAE,IAAI;gBACvC,iCAAiC,EAAE,IAAI;aACxC;SACF;QACD,sCAAsC,EAAE;YACtC,KAAK;YACL,MAAM;SACP;QACD,+BAA+B,EAAE,GAAG;QACpC,yCAAyC,EAAE,KAAK;QAChD,0CAA0C,EAAE,GAAG;QAC/C,sCAAsC,EAAE;YACtC,KAAK;YACL;gBACE,KAAK,EAAE;oBACL,cAAc;oBACd,sBAAsB;oBACtB,wBAAwB;oBACxB,oBAAoB;iBACrB;aACF;SACF;QACD,oCAAoC,EAAE,KAAK;QAC3C,oCAAoC,EAAE,GAAG;QACzC,iCAAiC,EAAE,KAAK;QACxC,
|
1
|
+
{"version":3,"file":"EnableX.js","sourceRoot":"","sources":["../../../../../../src/statics/rules/presets/entries/ts/EnableX.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,GAAG,EACH,MAAM,GACP,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,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Q,EAAE,KAAK;gBACf,oBAAoB,EAAE,IAAI;aAC3B;SACF;QACD,2CAA2C,EAAE,KAAK;QAClD,qCAAqC,EAAE;YACrC,KAAK;YACL;gBACE,gBAAgB,EAAE,KAAK;gBACvB,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,yCAAyC,EAAE;YACzC,KAAK;YACL;gBACE,kBAAkB,EAAE;oBAClB,KAAK,EAAE,IAAI;oBACX,MAAM,EAAE,IAAI;iBACb;gBACD,oBAAoB,EAAE;oBACpB,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,KAAK;iBACd;aACF;YACD;gBACE,2BAA2B,EAAE,KAAK;gBAClC,uCAAuC,EAAE,KAAK;aAC/C;SACF;QACD,iDAAiD,EAAE;YACjD,KAAK;YACL,EAAE,gBAAgB,EAAE,KAAK,EAAE;SAC5B;QACD,kCAAkC,EAAE,KAAK;KAC1C;CAC2B,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_schemaVersion": "20.14.0",
|
3
3
|
"name": "linted",
|
4
|
-
"version": "16.0.0-rc.
|
4
|
+
"version": "16.0.0-rc.2",
|
5
5
|
"description": "Zero-config ESLint flat config factory for (strict, agglutinative) entire-stack formatting and linting: TypeScript, JavaScript, Svelte, HTML, (Tailwind) CSS, Mocha, JSON(C), and sadly YAML.",
|
6
6
|
"keywords": [
|
7
7
|
"eslint",
|
@@ -70,6 +70,7 @@
|
|
70
70
|
},
|
71
71
|
"devDependencies": {
|
72
72
|
"eslint": "~9.8.0",
|
73
|
+
"linted": "~16.0.0-rc.1",
|
73
74
|
"npm-run-all": "^4.1.5",
|
74
75
|
"typescript": "^5.5.4"
|
75
76
|
},
|
@@ -5,6 +5,7 @@ import {
|
|
5
5
|
ALWAYS,
|
6
6
|
AS_NEEDED,
|
7
7
|
CONSECUTIVE,
|
8
|
+
ALLOW,
|
8
9
|
ALL,
|
9
10
|
MULTI,
|
10
11
|
BOTH,
|
@@ -60,12 +61,19 @@ export default [
|
|
60
61
|
{ allowObjectPatternsAsParameters: false },
|
61
62
|
],
|
62
63
|
"no-ex-assign": ERROR,
|
63
|
-
"no-fallthrough":
|
64
|
+
"no-fallthrough": [
|
65
|
+
ERROR,
|
66
|
+
{
|
67
|
+
allowEmptyCase: true,
|
68
|
+
reportUnusedFallthroughComment: true,
|
69
|
+
},
|
70
|
+
],
|
64
71
|
"no-func-assign": ERROR, /* tsc */
|
65
72
|
"no-import-assign": ERROR, /* tsc (except Object.assign()) */
|
66
73
|
"no-inner-declarations": [
|
67
74
|
ERROR,
|
68
75
|
BOTH,
|
76
|
+
{ blockScopedFunctions: ALLOW },
|
69
77
|
],
|
70
78
|
"no-invalid-regexp": [
|
71
79
|
ERROR,
|
@@ -124,6 +132,8 @@ export default [
|
|
124
132
|
args: ALL,
|
125
133
|
caughtErrors: ALL,
|
126
134
|
ignoreRestSiblings: false,
|
135
|
+
ignoreClassWithStaticInitBlock: false,
|
136
|
+
reportUsedIgnorePattern: true,
|
127
137
|
},
|
128
138
|
], /* TSLint */
|
129
139
|
"no-use-before-define": [
|
@@ -135,6 +145,7 @@ export default [
|
|
135
145
|
allowNamedExports: false,
|
136
146
|
},
|
137
147
|
], /* TSLint */
|
148
|
+
"no-useless-assignment": ERROR,
|
138
149
|
"no-useless-backreference": ERROR,
|
139
150
|
"require-atomic-updates": [
|
140
151
|
ERROR,
|
@@ -5,6 +5,7 @@ MULTILINE = "multiline",
|
|
5
5
|
CONSISTENT = "consistent",
|
6
6
|
CONSECUTIVE = "consecutive",
|
7
7
|
AS_NEEDED = "as-needed",
|
8
|
+
ALLOW = "allow",
|
8
9
|
STRICT = "strict",
|
9
10
|
ANY = "any",
|
10
11
|
ALL = "all",
|
@@ -31,6 +32,7 @@ export {
|
|
31
32
|
CONSISTENT,
|
32
33
|
CONSECUTIVE,
|
33
34
|
AS_NEEDED,
|
35
|
+
ALLOW,
|
34
36
|
STRICT,
|
35
37
|
ANY,
|
36
38
|
ALL,
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type RuleEntry from "../entry.js";
|
2
2
|
import { ERROR, OFF } from "../level.js";
|
3
3
|
import {
|
4
|
+
ALLOW,
|
4
5
|
BOTH,
|
5
6
|
} from "../state.js";
|
6
7
|
import { EnableX } from "../id.js";
|
@@ -13,6 +14,7 @@ export default [
|
|
13
14
|
"svelte/no-inner-declarations": [
|
14
15
|
ERROR,
|
15
16
|
BOTH,
|
17
|
+
{ blockScopedFunctions: ALLOW },
|
16
18
|
], /* Same options as in JsEnable */
|
17
19
|
"svelte/no-trailing-spaces": OFF, /* Only applies to HTML comments, which I don't intend to use: http://sveltejs.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/ */
|
18
20
|
},
|
@@ -19,11 +19,9 @@ export default [
|
|
19
19
|
"no-implied-eval": OFF,
|
20
20
|
"no-invalid-this": OFF,
|
21
21
|
"no-loop-func": OFF,
|
22
|
-
"no-loss-of-precision": OFF,
|
23
22
|
"no-magic-numbers": OFF,
|
24
23
|
"no-redeclare": OFF,
|
25
24
|
"no-restricted-imports": OFF,
|
26
|
-
"no-return-await": OFF, /* DEPRECATED -- @typescript-eslint/return-await */
|
27
25
|
"no-shadow": OFF,
|
28
26
|
"no-throw-literal": OFF, /* @typescript-eslint/only-throw-error */
|
29
27
|
"no-unused-expressions": OFF,
|
@@ -30,7 +30,6 @@ export default [
|
|
30
30
|
},
|
31
31
|
],
|
32
32
|
"@typescript-eslint/ban-tslint-comment": ERROR,
|
33
|
-
"@typescript-eslint/ban-types": ERROR,
|
34
33
|
"@typescript-eslint/class-literal-property-style": [
|
35
34
|
ERROR,
|
36
35
|
"fields",
|
@@ -293,10 +292,6 @@ export default [
|
|
293
292
|
},
|
294
293
|
],
|
295
294
|
"@typescript-eslint/no-dynamic-delete": ERROR,
|
296
|
-
"@typescript-eslint/no-empty-interface": [
|
297
|
-
ERROR,
|
298
|
-
{ allowSingleExtends: true },
|
299
|
-
],
|
300
295
|
"@typescript-eslint/no-empty-object-type": [
|
301
296
|
ERROR,
|
302
297
|
{
|
@@ -326,6 +321,7 @@ export default [
|
|
326
321
|
"@typescript-eslint/no-floating-promises": [
|
327
322
|
ERROR,
|
328
323
|
{
|
324
|
+
checkThenables: true,
|
329
325
|
ignoreVoid: true,
|
330
326
|
ignoreIIFE: false,
|
331
327
|
},
|
@@ -371,6 +367,7 @@ export default [
|
|
371
367
|
"@typescript-eslint/no-non-null-asserted-optional-chain": ERROR,
|
372
368
|
"@typescript-eslint/no-non-null-assertion": ERROR,
|
373
369
|
"@typescript-eslint/no-redundant-type-constituents": ERROR,
|
370
|
+
"@typescript-eslint/no-restricted-types": OFF, /* preference - no shared custom types across all projects that I wish to ban*/
|
374
371
|
"@typescript-eslint/no-require-imports": [
|
375
372
|
ERROR,
|
376
373
|
{ allow: [] },
|
@@ -404,15 +401,18 @@ export default [
|
|
404
401
|
{ typesToIgnore: [] },
|
405
402
|
],
|
406
403
|
"@typescript-eslint/no-unnecessary-type-constraint": ERROR,
|
404
|
+
"@typescript-eslint/no-unnecessary-type-parameters": ERROR,
|
407
405
|
"@typescript-eslint/no-unsafe-argument": ERROR,
|
408
406
|
"@typescript-eslint/no-unsafe-assignment": ERROR,
|
409
407
|
"@typescript-eslint/no-unsafe-call": ERROR,
|
410
408
|
"@typescript-eslint/no-unsafe-declaration-merging": ERROR,
|
411
409
|
"@typescript-eslint/no-unsafe-enum-comparison": ERROR,
|
410
|
+
"@typescript-eslint/no-unsafe-function-type": ERROR,
|
412
411
|
"@typescript-eslint/no-unsafe-member-access": ERROR,
|
413
412
|
"@typescript-eslint/no-unsafe-return": ERROR,
|
414
413
|
"@typescript-eslint/no-unsafe-unary-minus": ERROR,
|
415
414
|
"@typescript-eslint/no-useless-empty-export": ERROR,
|
415
|
+
"@typescript-eslint/no-wrapper-object-types": ERROR,
|
416
416
|
"@typescript-eslint/no-var-requires": OFF,
|
417
417
|
"@typescript-eslint/non-nullable-type-assertion-style": OFF,
|
418
418
|
"@typescript-eslint/parameter-properties": [
|
@@ -509,6 +509,10 @@ export default [
|
|
509
509
|
allowRegExp: false,
|
510
510
|
}, /* investigate: make stricter */
|
511
511
|
],
|
512
|
+
"@typescript-eslint/return-await": [
|
513
|
+
ERROR,
|
514
|
+
"in-try-catch",
|
515
|
+
], /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */
|
512
516
|
"@typescript-eslint/strict-boolean-expressions": [
|
513
517
|
ERROR,
|
514
518
|
{
|
@@ -46,7 +46,6 @@ export default [
|
|
46
46
|
"@typescript-eslint/no-implied-eval": ERROR,
|
47
47
|
"@typescript-eslint/no-invalid-this": OFF, /* tsconfig: { strict, noImplicitThis } */
|
48
48
|
"@typescript-eslint/no-loop-func": ERROR,
|
49
|
-
"@typescript-eslint/no-loss-of-precision": ERROR,
|
50
49
|
"@typescript-eslint/no-magic-numbers": OFF,
|
51
50
|
"@typescript-eslint/no-redeclare": OFF, /* tsc (let, const, -var) */
|
52
51
|
"@typescript-eslint/no-restricted-imports": OFF, /* preference */
|
@@ -67,6 +66,8 @@ export default [
|
|
67
66
|
args: ALL,
|
68
67
|
caughtErrors: ALL,
|
69
68
|
ignoreRestSiblings: false,
|
69
|
+
ignoreClassWithStaticInitBlock: false,
|
70
|
+
reportUsedIgnorePattern: true,
|
70
71
|
},
|
71
72
|
],
|
72
73
|
"@typescript-eslint/no-use-before-define": [
|
@@ -111,9 +112,5 @@ export default [
|
|
111
112
|
{ allowEmptyReject: false },
|
112
113
|
],
|
113
114
|
"@typescript-eslint/require-await": ERROR,
|
114
|
-
"@typescript-eslint/return-await": [
|
115
|
-
ERROR,
|
116
|
-
"in-try-catch",
|
117
|
-
],
|
118
115
|
},
|
119
116
|
] as const satisfies RuleEntry;
|