linted 22.0.0-rc.3 → 22.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{imports/index.d.ts → imports.d.ts} +1 -1
- package/dist/imports.d.ts.map +1 -0
- package/dist/imports.js +7 -0
- package/dist/imports.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -13
- package/dist/index.js.map +1 -1
- package/dist/{imports/parsers.d.ts → parsers/index.d.ts} +1 -1
- package/dist/parsers/index.d.ts.map +1 -0
- package/dist/{imports/parsers.js → parsers/index.js} +1 -1
- package/dist/parsers/index.js.map +1 -0
- package/dist/{imports/plugins.d.ts → plugins/index.d.ts} +1 -1
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/{imports/plugins.js → plugins/index.js} +1 -1
- package/dist/plugins/index.js.map +1 -0
- package/package.json +2 -1
- package/src/index.ts +10 -18
- package/dist/_strings/id.d.ts +0 -2
- package/dist/_strings/id.d.ts.map +0 -1
- package/dist/_strings/id.js +0 -2
- package/dist/_strings/id.js.map +0 -1
- package/dist/_strings/index.d.ts +0 -7
- package/dist/_strings/index.d.ts.map +0 -1
- package/dist/_strings/index.js +0 -7
- package/dist/_strings/index.js.map +0 -1
- package/dist/_strings/level.d.ts +0 -2
- package/dist/_strings/level.d.ts.map +0 -1
- package/dist/_strings/level.js +0 -2
- package/dist/_strings/level.js.map +0 -1
- package/dist/_strings/level.spec.d.ts +0 -2
- package/dist/_strings/level.spec.d.ts.map +0 -1
- package/dist/_strings/level.spec.js +0 -31
- package/dist/_strings/level.spec.js.map +0 -1
- package/dist/_strings/state.d.ts +0 -2
- package/dist/_strings/state.d.ts.map +0 -1
- package/dist/_strings/state.js +0 -2
- package/dist/_strings/state.js.map +0 -1
- package/dist/files/index.d.ts +0 -13
- package/dist/files/index.d.ts.map +0 -1
- package/dist/files/index.js +0 -20
- package/dist/files/index.js.map +0 -1
- package/dist/files/scopes/html.d.ts +0 -3
- package/dist/files/scopes/html.d.ts.map +0 -1
- package/dist/files/scopes/html.js +0 -2
- package/dist/files/scopes/html.js.map +0 -1
- package/dist/files/scopes/js.d.ts +0 -3
- package/dist/files/scopes/js.d.ts.map +0 -1
- package/dist/files/scopes/js.js +0 -5
- package/dist/files/scopes/js.js.map +0 -1
- package/dist/files/scopes/json.d.ts +0 -3
- package/dist/files/scopes/json.d.ts.map +0 -1
- package/dist/files/scopes/json.js +0 -2
- package/dist/files/scopes/json.js.map +0 -1
- package/dist/files/scopes/jsonc.d.ts +0 -3
- package/dist/files/scopes/jsonc.d.ts.map +0 -1
- package/dist/files/scopes/jsonc.js +0 -6
- package/dist/files/scopes/jsonc.js.map +0 -1
- package/dist/files/scopes/mocha.d.ts +0 -3
- package/dist/files/scopes/mocha.d.ts.map +0 -1
- package/dist/files/scopes/mocha.js +0 -5
- package/dist/files/scopes/mocha.js.map +0 -1
- package/dist/files/scopes/svelte.d.ts +0 -3
- package/dist/files/scopes/svelte.d.ts.map +0 -1
- package/dist/files/scopes/svelte.js +0 -2
- package/dist/files/scopes/svelte.js.map +0 -1
- package/dist/files/scopes/ts.d.ts +0 -3
- package/dist/files/scopes/ts.d.ts.map +0 -1
- package/dist/files/scopes/ts.js +0 -2
- package/dist/files/scopes/ts.js.map +0 -1
- package/dist/files/scopes/yml.d.ts +0 -3
- package/dist/files/scopes/yml.d.ts.map +0 -1
- package/dist/files/scopes/yml.js +0 -2
- package/dist/files/scopes/yml.js.map +0 -1
- package/dist/ignores/index.d.ts +0 -13
- package/dist/ignores/index.d.ts.map +0 -1
- package/dist/ignores/index.js +0 -29
- package/dist/ignores/index.js.map +0 -1
- package/dist/ignores/scopes/html.d.ts +0 -3
- package/dist/ignores/scopes/html.d.ts.map +0 -1
- package/dist/ignores/scopes/html.js +0 -2
- package/dist/ignores/scopes/html.js.map +0 -1
- package/dist/ignores/scopes/js.d.ts +0 -3
- package/dist/ignores/scopes/js.d.ts.map +0 -1
- package/dist/ignores/scopes/js.js +0 -2
- package/dist/ignores/scopes/js.js.map +0 -1
- package/dist/ignores/scopes/json.d.ts +0 -3
- package/dist/ignores/scopes/json.d.ts.map +0 -1
- package/dist/ignores/scopes/json.js +0 -2
- package/dist/ignores/scopes/json.js.map +0 -1
- package/dist/ignores/scopes/jsonc.d.ts +0 -3
- package/dist/ignores/scopes/jsonc.d.ts.map +0 -1
- package/dist/ignores/scopes/jsonc.js +0 -2
- package/dist/ignores/scopes/jsonc.js.map +0 -1
- package/dist/ignores/scopes/mocha.d.ts +0 -3
- package/dist/ignores/scopes/mocha.d.ts.map +0 -1
- package/dist/ignores/scopes/mocha.js +0 -2
- package/dist/ignores/scopes/mocha.js.map +0 -1
- package/dist/ignores/scopes/svelte.d.ts +0 -3
- package/dist/ignores/scopes/svelte.d.ts.map +0 -1
- package/dist/ignores/scopes/svelte.js +0 -2
- package/dist/ignores/scopes/svelte.js.map +0 -1
- package/dist/ignores/scopes/ts.d.ts +0 -3
- package/dist/ignores/scopes/ts.d.ts.map +0 -1
- package/dist/ignores/scopes/ts.js +0 -2
- package/dist/ignores/scopes/ts.js.map +0 -1
- package/dist/ignores/scopes/yml.d.ts +0 -3
- package/dist/ignores/scopes/yml.d.ts.map +0 -1
- package/dist/ignores/scopes/yml.js +0 -2
- package/dist/ignores/scopes/yml.js.map +0 -1
- package/dist/imports/index.d.ts.map +0 -1
- package/dist/imports/index.js +0 -7
- package/dist/imports/index.js.map +0 -1
- package/dist/imports/parsers.d.ts.map +0 -1
- package/dist/imports/parsers.js.map +0 -1
- package/dist/imports/plugins.d.ts.map +0 -1
- package/dist/imports/plugins.js.map +0 -1
- package/dist/rules/html/enable.d.ts +0 -3
- package/dist/rules/html/enable.d.ts.map +0 -1
- package/dist/rules/html/enable.js +0 -94
- package/dist/rules/html/enable.js.map +0 -1
- package/dist/rules/html/index.d.ts +0 -3
- package/dist/rules/html/index.d.ts.map +0 -1
- package/dist/rules/html/index.js +0 -3
- package/dist/rules/html/index.js.map +0 -1
- package/dist/rules/index.d.ts +0 -4563
- package/dist/rules/index.d.ts.map +0 -1
- package/dist/rules/index.js +0 -19
- package/dist/rules/index.js.map +0 -1
- package/dist/rules/js/enable.d.ts +0 -348
- package/dist/rules/js/enable.d.ts.map +0 -1
- package/dist/rules/js/enable.js +0 -519
- package/dist/rules/js/enable.js.map +0 -1
- package/dist/rules/js/index.d.ts +0 -766
- package/dist/rules/js/index.d.ts.map +0 -1
- package/dist/rules/js/index.js +0 -7
- package/dist/rules/js/index.js.map +0 -1
- package/dist/rules/js/stylistic.d.ts +0 -421
- package/dist/rules/js/stylistic.d.ts.map +0 -1
- package/dist/rules/js/stylistic.js +0 -641
- package/dist/rules/js/stylistic.js.map +0 -1
- package/dist/rules/json/enable.d.ts +0 -27
- package/dist/rules/json/enable.d.ts.map +0 -1
- package/dist/rules/json/enable.js +0 -30
- package/dist/rules/json/enable.js.map +0 -1
- package/dist/rules/json/enable_x.d.ts +0 -50
- package/dist/rules/json/enable_x.d.ts.map +0 -1
- package/dist/rules/json/enable_x.js +0 -80
- package/dist/rules/json/enable_x.js.map +0 -1
- package/dist/rules/json/index.d.ts +0 -74
- package/dist/rules/json/index.d.ts.map +0 -1
- package/dist/rules/json/index.js +0 -7
- package/dist/rules/json/index.js.map +0 -1
- package/dist/rules/jsonc/index.d.ts +0 -77
- package/dist/rules/jsonc/index.d.ts.map +0 -1
- package/dist/rules/jsonc/index.js +0 -7
- package/dist/rules/jsonc/index.js.map +0 -1
- package/dist/rules/jsonc/override.d.ts +0 -6
- package/dist/rules/jsonc/override.d.ts.map +0 -1
- package/dist/rules/jsonc/override.js +0 -12
- package/dist/rules/jsonc/override.js.map +0 -1
- package/dist/rules/mocha/disable.d.ts +0 -5
- package/dist/rules/mocha/disable.d.ts.map +0 -1
- package/dist/rules/mocha/disable.js +0 -8
- package/dist/rules/mocha/disable.js.map +0 -1
- package/dist/rules/mocha/enable.d.ts +0 -35
- package/dist/rules/mocha/enable.d.ts.map +0 -1
- package/dist/rules/mocha/enable.js +0 -47
- package/dist/rules/mocha/enable.js.map +0 -1
- package/dist/rules/mocha/index.d.ts +0 -1171
- package/dist/rules/mocha/index.d.ts.map +0 -1
- package/dist/rules/mocha/index.js +0 -9
- package/dist/rules/mocha/index.js.map +0 -1
- package/dist/rules/svelte/disable.d.ts +0 -5
- package/dist/rules/svelte/disable.d.ts.map +0 -1
- package/dist/rules/svelte/disable.js +0 -8
- package/dist/rules/svelte/disable.js.map +0 -1
- package/dist/rules/svelte/disable_js.d.ts +0 -6
- package/dist/rules/svelte/disable_js.d.ts.map +0 -1
- package/dist/rules/svelte/disable_js.js +0 -9
- package/dist/rules/svelte/disable_js.js.map +0 -1
- package/dist/rules/svelte/disable_ts.d.ts +0 -6
- package/dist/rules/svelte/disable_ts.d.ts.map +0 -1
- package/dist/rules/svelte/disable_ts.js +0 -9
- package/dist/rules/svelte/disable_ts.js.map +0 -1
- package/dist/rules/svelte/enable.d.ts +0 -127
- package/dist/rules/svelte/enable.d.ts.map +0 -1
- package/dist/rules/svelte/enable.js +0 -193
- package/dist/rules/svelte/enable.js.map +0 -1
- package/dist/rules/svelte/enable_x.d.ts +0 -8
- package/dist/rules/svelte/enable_x.d.ts.map +0 -1
- package/dist/rules/svelte/enable_x.js +0 -15
- package/dist/rules/svelte/enable_x.js.map +0 -1
- package/dist/rules/svelte/index.d.ts +0 -1274
- package/dist/rules/svelte/index.d.ts.map +0 -1
- package/dist/rules/svelte/index.js +0 -15
- package/dist/rules/svelte/index.js.map +0 -1
- package/dist/rules/ts/disable.d.ts +0 -18
- package/dist/rules/ts/disable.d.ts.map +0 -1
- package/dist/rules/ts/disable.js +0 -21
- package/dist/rules/ts/disable.js.map +0 -1
- package/dist/rules/ts/disable_x.d.ts +0 -28
- package/dist/rules/ts/disable_x.d.ts.map +0 -1
- package/dist/rules/ts/disable_x.js +0 -31
- package/dist/rules/ts/disable_x.js.map +0 -1
- package/dist/rules/ts/enable.d.ts +0 -265
- package/dist/rules/ts/enable.d.ts.map +0 -1
- package/dist/rules/ts/enable.js +0 -520
- package/dist/rules/ts/enable.js.map +0 -1
- package/dist/rules/ts/enable_x.d.ts +0 -72
- package/dist/rules/ts/enable_x.d.ts.map +0 -1
- package/dist/rules/ts/enable_x.js +0 -108
- package/dist/rules/ts/enable_x.js.map +0 -1
- package/dist/rules/ts/index.d.ts +0 -1137
- package/dist/rules/ts/index.d.ts.map +0 -1
- package/dist/rules/ts/index.js +0 -13
- package/dist/rules/ts/index.js.map +0 -1
- package/dist/rules/yml/enable.d.ts +0 -39
- package/dist/rules/yml/enable.d.ts.map +0 -1
- package/dist/rules/yml/enable.js +0 -68
- package/dist/rules/yml/enable.js.map +0 -1
- package/dist/rules/yml/enable_x.d.ts +0 -37
- package/dist/rules/yml/enable_x.d.ts.map +0 -1
- package/dist/rules/yml/enable_x.js +0 -66
- package/dist/rules/yml/enable_x.js.map +0 -1
- package/dist/rules/yml/index.d.ts +0 -73
- package/dist/rules/yml/index.d.ts.map +0 -1
- package/dist/rules/yml/index.js +0 -7
- package/dist/rules/yml/index.js.map +0 -1
- package/dist/settings.d.ts +0 -7
- package/dist/settings.d.ts.map +0 -1
- package/dist/settings.js +0 -7
- package/dist/settings.js.map +0 -1
- package/src/_strings/id.ts +0 -8
- package/src/_strings/index.ts +0 -6
- package/src/_strings/level.spec.ts +0 -31
- package/src/_strings/level.ts +0 -4
- package/src/_strings/state.ts +0 -28
- package/src/files/index.ts +0 -20
- package/src/files/scopes/html.ts +0 -1
- package/src/files/scopes/js.ts +0 -4
- package/src/files/scopes/json.ts +0 -1
- package/src/files/scopes/jsonc.ts +0 -5
- package/src/files/scopes/mocha.ts +0 -4
- package/src/files/scopes/svelte.ts +0 -1
- package/src/files/scopes/ts.ts +0 -1
- package/src/files/scopes/yml.ts +0 -1
- package/src/ignores/index.ts +0 -31
- package/src/ignores/scopes/html.ts +0 -1
- package/src/ignores/scopes/js.ts +0 -1
- package/src/ignores/scopes/json.ts +0 -1
- package/src/ignores/scopes/jsonc.ts +0 -1
- package/src/ignores/scopes/mocha.ts +0 -1
- package/src/ignores/scopes/svelte.ts +0 -1
- package/src/ignores/scopes/ts.ts +0 -1
- package/src/ignores/scopes/yml.ts +0 -1
- package/src/rules/html/enable.ts +0 -121
- package/src/rules/html/index.ts +0 -3
- package/src/rules/index.ts +0 -19
- package/src/rules/js/enable.ts +0 -547
- package/src/rules/js/index.ts +0 -7
- package/src/rules/js/stylistic.ts +0 -664
- package/src/rules/json/enable.ts +0 -35
- package/src/rules/json/enable_x.ts +0 -91
- package/src/rules/json/index.ts +0 -7
- package/src/rules/jsonc/index.ts +0 -7
- package/src/rules/jsonc/override.ts +0 -18
- package/src/rules/mocha/disable.ts +0 -11
- package/src/rules/mocha/enable.ts +0 -53
- package/src/rules/mocha/index.ts +0 -9
- package/src/rules/svelte/disable.ts +0 -12
- package/src/rules/svelte/disable_js.ts +0 -11
- package/src/rules/svelte/disable_ts.ts +0 -9
- package/src/rules/svelte/enable.ts +0 -232
- package/src/rules/svelte/enable_x.ts +0 -22
- package/src/rules/svelte/index.ts +0 -15
- package/src/rules/ts/disable.ts +0 -25
- package/src/rules/ts/disable_x.ts +0 -35
- package/src/rules/ts/enable.ts +0 -569
- package/src/rules/ts/enable_x.ts +0 -117
- package/src/rules/ts/index.ts +0 -13
- package/src/rules/yml/enable.ts +0 -76
- package/src/rules/yml/enable_x.ts +0 -73
- package/src/rules/yml/index.ts +0 -7
- package/src/settings.ts +0 -6
- /package/src/{imports/index.ts → imports.ts} +0 -0
- /package/src/{imports/parsers.ts → parsers/index.ts} +0 -0
- /package/src/{imports/plugins.ts → plugins/index.ts} +0 -0
@@ -1,91 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable_x,
|
3
|
-
ERROR,
|
4
|
-
OFF,
|
5
|
-
Always,
|
6
|
-
Consistent,
|
7
|
-
Double,
|
8
|
-
Last,
|
9
|
-
Never,
|
10
|
-
Strict,
|
11
|
-
} from "../../_strings";
|
12
|
-
|
13
|
-
export default [
|
14
|
-
enable_x,
|
15
|
-
{
|
16
|
-
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
17
|
-
"jsonc/array-bracket-newline": OFF /* DO NOT CHANGE */,
|
18
|
-
"jsonc/array-bracket-spacing": [
|
19
|
-
ERROR,
|
20
|
-
Never,
|
21
|
-
{
|
22
|
-
singleValue: false,
|
23
|
-
objectsInArrays: false,
|
24
|
-
arraysInArrays: false,
|
25
|
-
},
|
26
|
-
] /* MUST match ../js/stylistic.ts */,
|
27
|
-
"jsonc/array-element-newline": [
|
28
|
-
ERROR,
|
29
|
-
Consistent,
|
30
|
-
],
|
31
|
-
"jsonc/comma-dangle": [ERROR, Never] /* trailing commas are NOT allowed in JSON */,
|
32
|
-
"jsonc/comma-style": [ERROR, Last],
|
33
|
-
"jsonc/indent": [ERROR, 2],
|
34
|
-
"jsonc/key-spacing": [
|
35
|
-
ERROR,
|
36
|
-
{
|
37
|
-
beforeColon: false,
|
38
|
-
afterColon: true,
|
39
|
-
mode: Strict,
|
40
|
-
},
|
41
|
-
] /* MUST match ../js/stylistic.ts */,
|
42
|
-
"jsonc/no-dupe-keys": ERROR,
|
43
|
-
"jsonc/no-floating-decimal": ERROR,
|
44
|
-
"jsonc/no-irregular-whitespace": [
|
45
|
-
ERROR,
|
46
|
-
{
|
47
|
-
skipStrings: true,
|
48
|
-
skipComments: true,
|
49
|
-
skipRegExps: true,
|
50
|
-
skipTemplates: true,
|
51
|
-
skipJSXText: true,
|
52
|
-
},
|
53
|
-
],
|
54
|
-
"jsonc/no-multi-str": ERROR,
|
55
|
-
"jsonc/no-octal-escape": ERROR,
|
56
|
-
"jsonc/no-octal": ERROR,
|
57
|
-
"jsonc/no-sparse-arrays": ERROR,
|
58
|
-
"jsonc/no-useless-escape": ERROR,
|
59
|
-
"jsonc/object-curly-newline": [
|
60
|
-
ERROR,
|
61
|
-
{
|
62
|
-
consistent: true,
|
63
|
-
multiline: true,
|
64
|
-
minProperties: 4,
|
65
|
-
},
|
66
|
-
] /* MUST match CHILD of ../js/stylistic.ts */,
|
67
|
-
"jsonc/object-curly-spacing": [
|
68
|
-
ERROR,
|
69
|
-
Always,
|
70
|
-
{
|
71
|
-
arraysInObjects: true,
|
72
|
-
objectsInObjects: true,
|
73
|
-
},
|
74
|
-
] /* MUST match ../js/stylistic.ts */,
|
75
|
-
"jsonc/object-property-newline": [
|
76
|
-
ERROR,
|
77
|
-
{
|
78
|
-
allowAllPropertiesOnSameLine: true,
|
79
|
-
},
|
80
|
-
] /* MUST match ../js/stylistic.ts */,
|
81
|
-
"jsonc/quote-props": [ERROR, Always],
|
82
|
-
"jsonc/quotes": [
|
83
|
-
ERROR,
|
84
|
-
Double,
|
85
|
-
{
|
86
|
-
avoidEscape: false,
|
87
|
-
},
|
88
|
-
],
|
89
|
-
"jsonc/space-unary-ops": ERROR,
|
90
|
-
},
|
91
|
-
] as const;
|
package/src/rules/json/index.ts
DELETED
package/src/rules/jsonc/index.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
override,
|
3
|
-
ERROR,
|
4
|
-
OFF,
|
5
|
-
AlwaysMultiline,
|
6
|
-
} from "../../_strings";
|
7
|
-
|
8
|
-
export default [
|
9
|
-
override,
|
10
|
-
{
|
11
|
-
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
12
|
-
"jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
|
13
|
-
"jsonc/comma-dangle": [
|
14
|
-
ERROR,
|
15
|
-
AlwaysMultiline,
|
16
|
-
] /* trailing commas ARE allowed in JSONC */,
|
17
|
-
},
|
18
|
-
] as const;
|
@@ -1,53 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable,
|
3
|
-
ERROR,
|
4
|
-
WARN,
|
5
|
-
OFF,
|
6
|
-
} from "../../_strings";
|
7
|
-
|
8
|
-
export default [
|
9
|
-
enable,
|
10
|
-
{
|
11
|
-
// https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
|
12
|
-
"mocha/consistent-spacing-between-blocks": OFF,
|
13
|
-
"mocha/handle-done-callback": [
|
14
|
-
ERROR,
|
15
|
-
{
|
16
|
-
ignoreSkipped: false,
|
17
|
-
},
|
18
|
-
],
|
19
|
-
"mocha/max-top-level-suites": [
|
20
|
-
ERROR,
|
21
|
-
{
|
22
|
-
limit: 1,
|
23
|
-
},
|
24
|
-
],
|
25
|
-
"mocha/no-async-describe": ERROR,
|
26
|
-
"mocha/no-empty-description": ERROR,
|
27
|
-
"mocha/no-exclusive-tests": ERROR,
|
28
|
-
"mocha/no-exports": ERROR,
|
29
|
-
"mocha/no-global-tests": ERROR,
|
30
|
-
"mocha/no-hooks-for-single-case": OFF,
|
31
|
-
"mocha/no-hooks": OFF,
|
32
|
-
"mocha/no-identical-title": ERROR,
|
33
|
-
"mocha/no-mocha-arrows": ERROR,
|
34
|
-
"mocha/no-nested-tests": ERROR,
|
35
|
-
"mocha/no-pending-tests": WARN,
|
36
|
-
"mocha/no-return-and-callback": ERROR,
|
37
|
-
"mocha/no-return-from-async": ERROR,
|
38
|
-
"mocha/no-setup-in-describe": ERROR,
|
39
|
-
"mocha/no-sibling-hooks": ERROR,
|
40
|
-
"mocha/no-skipped-tests": ERROR,
|
41
|
-
"mocha/no-synchronous-tests": OFF,
|
42
|
-
"mocha/no-top-level-hooks": ERROR,
|
43
|
-
"mocha/prefer-arrow-callback": [
|
44
|
-
ERROR,
|
45
|
-
{
|
46
|
-
allowNamedFunctions: false,
|
47
|
-
allowUnboundThis: true,
|
48
|
-
},
|
49
|
-
] /* MUST match ../js/enable.ts */,
|
50
|
-
"mocha/valid-suite-description": OFF,
|
51
|
-
"mocha/valid-test-description": OFF,
|
52
|
-
},
|
53
|
-
] as const;
|
package/src/rules/mocha/index.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
disable,
|
3
|
-
OFF,
|
4
|
-
} from "../../_strings";
|
5
|
-
|
6
|
-
export default [
|
7
|
-
disable,
|
8
|
-
{
|
9
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
10
|
-
"no-inner-declarations": OFF /* also disabled in SvelteDisableConflictJs per Svelte base config */,
|
11
|
-
},
|
12
|
-
] as const;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { OFF } from "../../_strings";
|
2
|
-
|
3
|
-
export default [
|
4
|
-
"disable-js",
|
5
|
-
{
|
6
|
-
// Pulled from Svelte base config:
|
7
|
-
// http://github.com/sveltejs/eslint-plugin-svelte/tree/main/src/configs/flat
|
8
|
-
"no-inner-declarations": OFF /* ESLint */,
|
9
|
-
"no-self-assign": OFF /* ESLint */,
|
10
|
-
},
|
11
|
-
] as const;
|
@@ -1,232 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable,
|
3
|
-
ERROR,
|
4
|
-
OFF,
|
5
|
-
Ignore,
|
6
|
-
Never,
|
7
|
-
Always,
|
8
|
-
Below,
|
9
|
-
Double,
|
10
|
-
} from "../../_strings";
|
11
|
-
|
12
|
-
export default [
|
13
|
-
enable,
|
14
|
-
{
|
15
|
-
// #region ERRORS
|
16
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
|
17
|
-
"svelte/infinite-reactive-loop": ERROR,
|
18
|
-
"svelte/no-dom-manipulating": ERROR,
|
19
|
-
"svelte/no-dupe-else-if-blocks": ERROR,
|
20
|
-
"svelte/no-dupe-on-directives": ERROR,
|
21
|
-
"svelte/no-dupe-style-properties": ERROR,
|
22
|
-
"svelte/no-dupe-use-directives": ERROR,
|
23
|
-
"svelte/no-dynamic-slot-name": ERROR,
|
24
|
-
"svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
|
25
|
-
"svelte/no-not-function-handler": ERROR,
|
26
|
-
"svelte/no-object-in-text-mustaches": ERROR,
|
27
|
-
"svelte/no-reactive-reassign": [
|
28
|
-
ERROR,
|
29
|
-
{
|
30
|
-
props: true,
|
31
|
-
},
|
32
|
-
],
|
33
|
-
"svelte/no-shorthand-style-property-overrides": ERROR,
|
34
|
-
"svelte/no-store-async": ERROR,
|
35
|
-
"svelte/no-unknown-style-directive-property": [
|
36
|
-
ERROR,
|
37
|
-
{
|
38
|
-
ignorePrefixed: true,
|
39
|
-
},
|
40
|
-
],
|
41
|
-
"svelte/require-store-callbacks-use-set-param": ERROR,
|
42
|
-
"svelte/require-store-reactive-access": ERROR,
|
43
|
-
"svelte/valid-compile": [
|
44
|
-
ERROR,
|
45
|
-
{
|
46
|
-
ignoreWarnings: false,
|
47
|
-
},
|
48
|
-
],
|
49
|
-
"svelte/valid-prop-names-in-kit-pages": ERROR,
|
50
|
-
|
51
|
-
// #endregion ERRORS
|
52
|
-
|
53
|
-
// #region SECURITY
|
54
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
|
55
|
-
"svelte/no-at-html-tags": ERROR,
|
56
|
-
"svelte/no-target-blank": [
|
57
|
-
ERROR,
|
58
|
-
{
|
59
|
-
allowReferrer: false,
|
60
|
-
enforceDynamicLinks: Always,
|
61
|
-
},
|
62
|
-
],
|
63
|
-
|
64
|
-
// #endregion SECURITY
|
65
|
-
|
66
|
-
// #region BEST PRACTICES
|
67
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#best-practices
|
68
|
-
"svelte/block-lang": [
|
69
|
-
ERROR,
|
70
|
-
{
|
71
|
-
enforceScriptPresent: true,
|
72
|
-
enforceStylePresent: false,
|
73
|
-
script: ["ts"],
|
74
|
-
style: [
|
75
|
-
"css",
|
76
|
-
"scss",
|
77
|
-
],
|
78
|
-
},
|
79
|
-
], /* INVESTIGATE: */
|
80
|
-
"svelte/button-has-type": [
|
81
|
-
ERROR,
|
82
|
-
{
|
83
|
-
button: true,
|
84
|
-
submit: true,
|
85
|
-
reset: true,
|
86
|
-
},
|
87
|
-
],
|
88
|
-
"svelte/no-at-debug-tags": ERROR,
|
89
|
-
"svelte/no-ignored-unsubscribe": ERROR,
|
90
|
-
"svelte/no-immutable-reactive-statements": ERROR,
|
91
|
-
"svelte/no-inline-styles": [
|
92
|
-
ERROR,
|
93
|
-
{
|
94
|
-
allowTransitions: false,
|
95
|
-
},
|
96
|
-
],
|
97
|
-
"svelte/no-reactive-functions": ERROR,
|
98
|
-
"svelte/no-reactive-literals": ERROR,
|
99
|
-
"svelte/no-svelte-internal": ERROR,
|
100
|
-
"svelte/no-unused-class-name": ERROR, /* BUG: ESLint error if array empty */
|
101
|
-
"svelte/no-unused-svelte-ignore": ERROR,
|
102
|
-
"svelte/no-useless-mustaches": [
|
103
|
-
ERROR,
|
104
|
-
{
|
105
|
-
ignoreIncludesComment: false,
|
106
|
-
ignoreStringEscape: false,
|
107
|
-
},
|
108
|
-
],
|
109
|
-
"svelte/prefer-destructured-store-props": ERROR,
|
110
|
-
"svelte/require-each-key": ERROR,
|
111
|
-
"svelte/require-event-dispatcher-types": ERROR,
|
112
|
-
"svelte/require-optimized-style-attribute": ERROR,
|
113
|
-
"svelte/require-stores-init": ERROR,
|
114
|
-
"svelte/valid-each-key": ERROR,
|
115
|
-
|
116
|
-
// #endregion BEST PRACTICES
|
117
|
-
|
118
|
-
// #region STYLE
|
119
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#stylistic-issues
|
120
|
-
"svelte/derived-has-same-inputs-outputs": ERROR,
|
121
|
-
"svelte/first-attribute-linebreak": [
|
122
|
-
ERROR,
|
123
|
-
{
|
124
|
-
multiline: Below,
|
125
|
-
singleline: Below,
|
126
|
-
},
|
127
|
-
],
|
128
|
-
"svelte/html-closing-bracket-spacing": [
|
129
|
-
ERROR,
|
130
|
-
{
|
131
|
-
startTag: Never,
|
132
|
-
endTag: Never,
|
133
|
-
selfClosingTag: Always,
|
134
|
-
},
|
135
|
-
],
|
136
|
-
"svelte/html-quotes": [
|
137
|
-
ERROR,
|
138
|
-
{
|
139
|
-
prefer: Double,
|
140
|
-
dynamic: {
|
141
|
-
quoted: false,
|
142
|
-
avoidInvalidUnquotedInHTML: true,
|
143
|
-
},
|
144
|
-
},
|
145
|
-
],
|
146
|
-
"svelte/html-self-closing": [
|
147
|
-
ERROR,
|
148
|
-
{
|
149
|
-
"void": Always,
|
150
|
-
foreign: Always,
|
151
|
-
component: Always,
|
152
|
-
svelte: Always,
|
153
|
-
normal: Ignore,
|
154
|
-
} /* always | never | ignore */,
|
155
|
-
],
|
156
|
-
"svelte/indent": [
|
157
|
-
ERROR,
|
158
|
-
{
|
159
|
-
indent: 2,
|
160
|
-
switchCase: 1,
|
161
|
-
alignAttributesVertically: true,
|
162
|
-
},
|
163
|
-
],
|
164
|
-
"svelte/max-attributes-per-line": [
|
165
|
-
ERROR,
|
166
|
-
{
|
167
|
-
multiline: 1,
|
168
|
-
singleline: 1,
|
169
|
-
},
|
170
|
-
],
|
171
|
-
"svelte/mustache-spacing": [
|
172
|
-
ERROR,
|
173
|
-
{
|
174
|
-
textExpressions: Never /* or ALWAYS */,
|
175
|
-
attributesAndProps: Never /* or ALWAYS */,
|
176
|
-
directiveExpressions: Never /* or ALWAYS */,
|
177
|
-
tags: {
|
178
|
-
openingBrace: Never /* or ALWAYS */,
|
179
|
-
closingBrace: Never /* or ALWAYS or "always-after-expression" */,
|
180
|
-
},
|
181
|
-
},
|
182
|
-
],
|
183
|
-
"svelte/no-extra-reactive-curlies": ERROR,
|
184
|
-
"svelte/no-restricted-html-elements": OFF,
|
185
|
-
"svelte/no-spaces-around-equal-signs-in-attribute": ERROR,
|
186
|
-
"svelte/prefer-class-directive": [
|
187
|
-
ERROR,
|
188
|
-
{
|
189
|
-
prefer: "empty",
|
190
|
-
},
|
191
|
-
],
|
192
|
-
"svelte/prefer-style-directive": ERROR,
|
193
|
-
"svelte/shorthand-attribute": [
|
194
|
-
ERROR,
|
195
|
-
{
|
196
|
-
prefer: Always,
|
197
|
-
},
|
198
|
-
],
|
199
|
-
"svelte/shorthand-directive": [
|
200
|
-
ERROR,
|
201
|
-
{
|
202
|
-
prefer: Always,
|
203
|
-
},
|
204
|
-
],
|
205
|
-
"svelte/sort-attributes": OFF /* INVESTIGATE: */,
|
206
|
-
"svelte/spaced-html-comment": [
|
207
|
-
ERROR,
|
208
|
-
Always,
|
209
|
-
],
|
210
|
-
|
211
|
-
// #endregion STYLE
|
212
|
-
|
213
|
-
// #region SVELTE-KIT
|
214
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#svelte-kit
|
215
|
-
"svelte/no-goto-without-base": ERROR,
|
216
|
-
|
217
|
-
// #endregion SVELTE-KIT
|
218
|
-
|
219
|
-
// #region REQUIRED
|
220
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
|
221
|
-
"svelte/comment-directive": [
|
222
|
-
ERROR,
|
223
|
-
{
|
224
|
-
reportUnusedDisableDirectives: true,
|
225
|
-
},
|
226
|
-
],
|
227
|
-
"svelte/system": ERROR,
|
228
|
-
|
229
|
-
// #endregion REQUIRED
|
230
|
-
|
231
|
-
},
|
232
|
-
] as const;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable_x,
|
3
|
-
ERROR,
|
4
|
-
OFF,
|
5
|
-
Allow,
|
6
|
-
Both,
|
7
|
-
} from "../../_strings";
|
8
|
-
|
9
|
-
export default [
|
10
|
-
enable_x,
|
11
|
-
{
|
12
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
13
|
-
"svelte/no-inner-declarations": [
|
14
|
-
ERROR,
|
15
|
-
Both,
|
16
|
-
{
|
17
|
-
blockScopedFunctions: Allow,
|
18
|
-
},
|
19
|
-
] /* Same options as in JsEnable */,
|
20
|
-
"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/ */,
|
21
|
-
},
|
22
|
-
] as const;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import ts from "../ts";
|
2
|
-
import disable_js from "./disable_js";
|
3
|
-
import disable_ts from "./disable_ts";
|
4
|
-
import disable from "./disable";
|
5
|
-
import enable_x from "./enable_x";
|
6
|
-
import enable from "./enable";
|
7
|
-
|
8
|
-
export default [
|
9
|
-
...ts,
|
10
|
-
disable_js,
|
11
|
-
disable_ts,
|
12
|
-
disable,
|
13
|
-
enable_x,
|
14
|
-
enable,
|
15
|
-
];
|
package/src/rules/ts/disable.ts
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
disable,
|
3
|
-
OFF,
|
4
|
-
} from "../../_strings";
|
5
|
-
|
6
|
-
export default [
|
7
|
-
disable,
|
8
|
-
{
|
9
|
-
// Handled by TypeScript compiler
|
10
|
-
"constructor-super": OFF,
|
11
|
-
"no-const-assign": OFF,
|
12
|
-
"no-dupe-args": OFF,
|
13
|
-
"no-dupe-class-members": OFF,
|
14
|
-
"no-dupe-keys": OFF,
|
15
|
-
"no-func-assign": OFF,
|
16
|
-
"no-obj-calls": OFF,
|
17
|
-
"no-setter-return": OFF,
|
18
|
-
"no-this-before-super": OFF,
|
19
|
-
"no-undef": OFF,
|
20
|
-
"no-unreachable": OFF,
|
21
|
-
"no-unsafe-negation": OFF,
|
22
|
-
"consistent-return": OFF,
|
23
|
-
"no-redeclare": OFF,
|
24
|
-
},
|
25
|
-
] as const;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
disable_x,
|
3
|
-
OFF,
|
4
|
-
} from "../../_strings";
|
5
|
-
|
6
|
-
export default [
|
7
|
-
disable_x,
|
8
|
-
{
|
9
|
-
// https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
10
|
-
"class-methods-use-this": OFF,
|
11
|
-
"consistent-return": OFF,
|
12
|
-
"default-param-last": OFF,
|
13
|
-
"dot-notation": OFF,
|
14
|
-
"init-declarations": OFF,
|
15
|
-
"max-params": OFF,
|
16
|
-
"no-array-constructor": OFF,
|
17
|
-
"no-dupe-class-members": OFF,
|
18
|
-
"no-empty-function": OFF,
|
19
|
-
"no-implied-eval": OFF,
|
20
|
-
"no-invalid-this": OFF,
|
21
|
-
"no-loop-func": OFF,
|
22
|
-
"no-magic-numbers": OFF,
|
23
|
-
"no-redeclare": OFF,
|
24
|
-
"no-restricted-imports": OFF,
|
25
|
-
"no-shadow": OFF,
|
26
|
-
"no-throw-literal": OFF /* @typescript-eslint/only-throw-error */,
|
27
|
-
"no-unused-expressions": OFF,
|
28
|
-
"no-unused-vars": OFF,
|
29
|
-
"no-use-before-define": OFF,
|
30
|
-
"no-useless-constructor": OFF,
|
31
|
-
"prefer-destructuring": OFF,
|
32
|
-
"prefer-promise-reject-errors": OFF,
|
33
|
-
"require-await": OFF,
|
34
|
-
},
|
35
|
-
] as const;
|