linted 16.12.2-rc.1 → 16.12.2-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/RELEASE.yml +35 -35
- package/.github/workflows/rc.yml +35 -35
- package/LICENSE +21 -21
- package/README.md +390 -390
- package/SECURITY.md +9 -9
- package/dist/imports/plugins.d.ts.map +1 -1
- package/dist/imports.d.ts.map +1 -1
- package/dist/rules/_html.d.ts +8 -0
- package/dist/rules/_html.d.ts.map +1 -0
- package/dist/rules/_html.js +4 -0
- package/dist/rules/_html.js.map +1 -0
- package/dist/rules/_js.d.ts +765 -0
- package/dist/rules/_js.d.ts.map +1 -0
- package/dist/rules/_js.js +4 -0
- package/dist/rules/_js.js.map +1 -0
- package/dist/rules/_json.d.ts +74 -0
- package/dist/rules/_json.d.ts.map +1 -0
- package/dist/rules/_json.js +4 -0
- package/dist/rules/_json.js.map +1 -0
- package/dist/rules/_jsonc.d.ts +77 -0
- package/dist/rules/_jsonc.d.ts.map +1 -0
- package/dist/rules/_jsonc.js +4 -0
- package/dist/rules/_jsonc.js.map +1 -0
- package/dist/rules/_md.d.ts +7 -0
- package/dist/rules/_md.d.ts.map +1 -0
- package/dist/rules/_md.js +3 -0
- package/dist/rules/_md.js.map +1 -0
- package/dist/rules/_mocha.d.ts +8 -0
- package/dist/rules/_mocha.d.ts.map +1 -0
- package/dist/rules/_mocha.js +4 -0
- package/dist/rules/_mocha.js.map +1 -0
- package/dist/rules/_svelte.d.ts +1269 -0
- package/dist/rules/_svelte.d.ts.map +1 -0
- package/dist/rules/_svelte.js +15 -0
- package/dist/rules/_svelte.js.map +1 -0
- package/dist/rules/_ts.d.ts +1133 -0
- package/dist/rules/_ts.d.ts.map +1 -0
- package/dist/rules/_ts.js +13 -0
- package/dist/rules/_ts.js.map +1 -0
- package/dist/rules/_yml.d.ts +73 -0
- package/dist/rules/_yml.d.ts.map +1 -0
- package/dist/rules/_yml.js +4 -0
- package/dist/rules/_yml.js.map +1 -0
- package/dist/rules/html/_enable.d.ts +8 -0
- package/dist/rules/html/_enable.d.ts.map +1 -0
- package/dist/rules/html/_enable.js +10 -0
- package/dist/rules/html/_enable.js.map +1 -0
- package/dist/rules/html/_recommended.d.ts +3 -0
- package/dist/rules/html/_recommended.d.ts.map +1 -0
- package/dist/rules/html/_recommended.js +5 -0
- package/dist/rules/html/_recommended.js.map +1 -0
- package/dist/rules/js/_enable.d.ts +348 -0
- package/dist/rules/js/_enable.d.ts.map +1 -0
- package/dist/rules/js/_enable.js +260 -0
- package/dist/rules/js/_enable.js.map +1 -0
- package/dist/rules/js/stylistic.d.ts +420 -0
- package/dist/rules/js/stylistic.d.ts.map +1 -0
- package/dist/rules/js/stylistic.js +270 -0
- package/dist/rules/js/stylistic.js.map +1 -0
- package/dist/rules/json/_enable.d.ts +27 -0
- package/dist/rules/json/_enable.d.ts.map +1 -0
- package/dist/rules/json/_enable.js +31 -0
- package/dist/rules/json/_enable.js.map +1 -0
- package/dist/rules/md/_enable.d.ts +7 -0
- package/dist/rules/md/_enable.d.ts.map +1 -0
- package/dist/rules/md/_enable.js +9 -0
- package/dist/rules/md/_enable.js.map +1 -0
- package/dist/rules/mocha/_enable.d.ts +3 -0
- package/dist/rules/mocha/_enable.d.ts.map +1 -0
- package/dist/rules/mocha/_enable.js +4 -0
- package/dist/rules/mocha/_enable.js.map +1 -0
- package/dist/rules/mocha/_recommended.d.ts +3 -0
- package/dist/rules/mocha/_recommended.d.ts.map +1 -0
- package/dist/rules/mocha/_recommended.js +5 -0
- package/dist/rules/mocha/_recommended.js.map +1 -0
- package/dist/rules/svelte/_enable.d.ts +126 -0
- package/dist/rules/svelte/_enable.d.ts.map +1 -0
- package/dist/rules/svelte/_enable.js +90 -0
- package/dist/rules/svelte/_enable.js.map +1 -0
- package/dist/rules/svelte/disable_x.d.ts +5 -0
- package/dist/rules/svelte/disable_x.d.ts.map +1 -0
- package/dist/rules/svelte/disable_x.js +4 -0
- package/dist/rules/svelte/disable_x.js.map +1 -0
- package/dist/rules/ts/_enable.d.ts +262 -0
- package/dist/rules/ts/_enable.d.ts.map +1 -0
- package/dist/rules/ts/_enable.js +359 -0
- package/dist/rules/ts/_enable.js.map +1 -0
- package/dist/rules/ts/disable_compiler.d.ts +18 -0
- package/dist/rules/ts/disable_compiler.d.ts.map +1 -0
- package/dist/rules/ts/disable_compiler.js +22 -0
- package/dist/rules/ts/disable_compiler.js.map +1 -0
- package/dist/rules/yml/_enable.d.ts +39 -0
- package/dist/rules/yml/_enable.d.ts.map +1 -0
- package/dist/rules/yml/_enable.js +28 -0
- package/dist/rules/yml/_enable.js.map +1 -0
- package/eslint.config.js +3 -3
- package/package.json +99 -99
- package/src/files/html.ts +1 -1
- package/src/files/js.ts +1 -1
- package/src/files/json.ts +1 -1
- package/src/files/jsonc.ts +4 -4
- package/src/files/md.ts +1 -1
- package/src/files/mocha.ts +1 -1
- package/src/files/svelte.ts +1 -1
- package/src/files/ts.ts +5 -5
- package/src/files/yml.ts +5 -5
- package/src/files.ts +22 -22
- package/src/imports/parsers.ts +15 -15
- package/src/imports/plugins.ts +19 -19
- package/src/imports.ts +8 -8
- package/src/index.ts +36 -36
- package/src/rules/_strings/id.ts +18 -18
- package/src/rules/_strings/level.ts +6 -6
- package/src/rules/_strings/state.ts +56 -56
- package/src/rules/_strings.ts +6 -6
- package/src/rules/html/enable.ts +16 -16
- package/src/rules/html/enable_recommended.ts +9 -9
- package/src/rules/html.ts +4 -4
- package/src/rules/js/enable.ts +524 -524
- package/src/rules/js/enable_stylistic.ts +608 -608
- package/src/rules/js.ts +4 -4
- package/src/rules/json/enable.ts +33 -33
- package/src/rules/json/enable_x.ts +89 -89
- package/src/rules/json.ts +4 -4
- package/src/rules/jsonc/override.ts +16 -16
- package/src/rules/jsonc.ts +4 -4
- package/src/rules/md/enable.ts +15 -15
- package/src/rules/md.ts +3 -3
- package/src/rules/mocha/enable.ts +3 -3
- package/src/rules/mocha/enable_recommended.ts +9 -9
- package/src/rules/mocha.ts +4 -4
- package/src/rules/svelte/disable.ts +9 -9
- package/src/rules/svelte/disable_js.ts +11 -11
- package/src/rules/svelte/disable_ts.ts +9 -9
- package/src/rules/svelte/enable.ts +228 -228
- package/src/rules/svelte/enable_x.ts +20 -20
- package/src/rules/svelte.ts +15 -15
- package/src/rules/ts/disable.ts +22 -22
- package/src/rules/ts/disable_x.ts +32 -32
- package/src/rules/ts/enable.ts +549 -549
- package/src/rules/ts/enable_x.ts +115 -115
- package/src/rules/ts.ts +13 -13
- package/src/rules/yml/enable.ts +64 -64
- package/src/rules/yml/enable_x.ts +68 -68
- package/src/rules/yml.ts +4 -4
- package/src/rules.ts +22 -22
- package/tsconfig.json +161 -161
- package/types/markdownlint/index.d.ts +3 -3
- package/types/markdownlint/parser.d.ts +9 -9
- package/types/mocha/index.d.ts +8 -8
package/src/rules/js.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import EnableStylistic from "./js/enable_stylistic.js";
|
2
|
-
import Enable from "./js/enable.js";
|
3
|
-
|
4
|
-
export default [EnableStylistic, Enable] as const;
|
1
|
+
import EnableStylistic from "./js/enable_stylistic.js";
|
2
|
+
import Enable from "./js/enable.js";
|
3
|
+
|
4
|
+
export default [EnableStylistic, Enable] as const;
|
package/src/rules/json/enable.ts
CHANGED
@@ -1,33 +1,33 @@
|
|
1
|
-
import { enable, level } from "../_strings.js";
|
2
|
-
|
3
|
-
const { ERROR, OFF } = level;
|
4
|
-
|
5
|
-
export default [
|
6
|
-
enable,
|
7
|
-
{
|
8
|
-
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
9
|
-
"jsonc/auto": OFF,
|
10
|
-
"jsonc/key-name-casing": OFF,
|
11
|
-
"jsonc/no-bigint-literals": ERROR,
|
12
|
-
"jsonc/no-binary-expression": ERROR,
|
13
|
-
"jsonc/no-binary-numeric-literals": ERROR,
|
14
|
-
"jsonc/no-comments": ERROR /* comments are NOT allowed in JSON */,
|
15
|
-
"jsonc/no-escape-sequence-in-identifier": ERROR,
|
16
|
-
"jsonc/no-hexadecimal-numeric-literals": ERROR,
|
17
|
-
"jsonc/no-infinity": ERROR,
|
18
|
-
"jsonc/no-nan": ERROR,
|
19
|
-
"jsonc/no-number-props": ERROR,
|
20
|
-
"jsonc/no-numeric-separators": ERROR,
|
21
|
-
"jsonc/no-octal-numeric-literals": ERROR,
|
22
|
-
"jsonc/no-parenthesized": ERROR,
|
23
|
-
"jsonc/no-plus-sign": ERROR,
|
24
|
-
"jsonc/no-regexp-literals": ERROR,
|
25
|
-
"jsonc/no-template-literals": ERROR,
|
26
|
-
"jsonc/no-undefined-value": ERROR,
|
27
|
-
"jsonc/no-unicode-codepoint-escapes": ERROR,
|
28
|
-
"jsonc/sort-array-values": OFF,
|
29
|
-
"jsonc/sort-keys": OFF,
|
30
|
-
"jsonc/valid-json-number": ERROR,
|
31
|
-
"jsonc/vue-custom-block/no-parsing-error": ERROR,
|
32
|
-
},
|
33
|
-
] as const;
|
1
|
+
import { enable, level } from "../_strings.js";
|
2
|
+
|
3
|
+
const { ERROR, OFF } = level;
|
4
|
+
|
5
|
+
export default [
|
6
|
+
enable,
|
7
|
+
{
|
8
|
+
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
9
|
+
"jsonc/auto": OFF,
|
10
|
+
"jsonc/key-name-casing": OFF,
|
11
|
+
"jsonc/no-bigint-literals": ERROR,
|
12
|
+
"jsonc/no-binary-expression": ERROR,
|
13
|
+
"jsonc/no-binary-numeric-literals": ERROR,
|
14
|
+
"jsonc/no-comments": ERROR /* comments are NOT allowed in JSON */,
|
15
|
+
"jsonc/no-escape-sequence-in-identifier": ERROR,
|
16
|
+
"jsonc/no-hexadecimal-numeric-literals": ERROR,
|
17
|
+
"jsonc/no-infinity": ERROR,
|
18
|
+
"jsonc/no-nan": ERROR,
|
19
|
+
"jsonc/no-number-props": ERROR,
|
20
|
+
"jsonc/no-numeric-separators": ERROR,
|
21
|
+
"jsonc/no-octal-numeric-literals": ERROR,
|
22
|
+
"jsonc/no-parenthesized": ERROR,
|
23
|
+
"jsonc/no-plus-sign": ERROR,
|
24
|
+
"jsonc/no-regexp-literals": ERROR,
|
25
|
+
"jsonc/no-template-literals": ERROR,
|
26
|
+
"jsonc/no-undefined-value": ERROR,
|
27
|
+
"jsonc/no-unicode-codepoint-escapes": ERROR,
|
28
|
+
"jsonc/sort-array-values": OFF,
|
29
|
+
"jsonc/sort-keys": OFF,
|
30
|
+
"jsonc/valid-json-number": ERROR,
|
31
|
+
"jsonc/vue-custom-block/no-parsing-error": ERROR,
|
32
|
+
},
|
33
|
+
] as const;
|
@@ -1,89 +1,89 @@
|
|
1
|
-
import { enable_x, level, state } from "../_strings.js";
|
2
|
-
|
3
|
-
const
|
4
|
-
{ ERROR } = level,
|
5
|
-
{
|
6
|
-
Never,
|
7
|
-
Always,
|
8
|
-
Consistent,
|
9
|
-
Strict,
|
10
|
-
Last,
|
11
|
-
Double,
|
12
|
-
} = state;
|
13
|
-
|
14
|
-
export default [
|
15
|
-
enable_x,
|
16
|
-
{
|
17
|
-
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
18
|
-
"jsonc/array-bracket-newline": [ERROR, Consistent],
|
19
|
-
"jsonc/array-bracket-spacing": [
|
20
|
-
ERROR,
|
21
|
-
Never,
|
22
|
-
{
|
23
|
-
singleValue: false,
|
24
|
-
objectsInArrays: false,
|
25
|
-
arraysInArrays: false,
|
26
|
-
},
|
27
|
-
],
|
28
|
-
"jsonc/array-element-newline": [ERROR, Always],
|
29
|
-
"jsonc/comma-dangle": [ERROR, Never] /* trailing commas are NOT allowed in JSON */,
|
30
|
-
"jsonc/comma-style": [ERROR, Last],
|
31
|
-
"jsonc/indent": [ERROR, 2],
|
32
|
-
"jsonc/key-spacing": [
|
33
|
-
ERROR,
|
34
|
-
{
|
35
|
-
beforeColon: false,
|
36
|
-
afterColon: true,
|
37
|
-
mode: Strict,
|
38
|
-
},
|
39
|
-
],
|
40
|
-
"jsonc/no-dupe-keys": ERROR,
|
41
|
-
"jsonc/no-floating-decimal": ERROR,
|
42
|
-
"jsonc/no-irregular-whitespace": [
|
43
|
-
ERROR,
|
44
|
-
{
|
45
|
-
skipStrings: true,
|
46
|
-
skipComments: true,
|
47
|
-
skipRegExps: true,
|
48
|
-
skipTemplates: true,
|
49
|
-
skipJSXText: true,
|
50
|
-
},
|
51
|
-
],
|
52
|
-
"jsonc/no-multi-str": ERROR,
|
53
|
-
"jsonc/no-octal-escape": ERROR,
|
54
|
-
"jsonc/no-octal": ERROR,
|
55
|
-
"jsonc/no-sparse-arrays": ERROR,
|
56
|
-
"jsonc/no-useless-escape": ERROR,
|
57
|
-
"jsonc/object-curly-newline": [
|
58
|
-
ERROR,
|
59
|
-
{
|
60
|
-
consistent: true,
|
61
|
-
multiline: true,
|
62
|
-
minProperties: 2,
|
63
|
-
},
|
64
|
-
],
|
65
|
-
"jsonc/object-curly-spacing": [
|
66
|
-
ERROR,
|
67
|
-
Always,
|
68
|
-
{
|
69
|
-
arraysInObjects: true,
|
70
|
-
objectsInObjects: true,
|
71
|
-
},
|
72
|
-
],
|
73
|
-
"jsonc/object-property-newline": [
|
74
|
-
ERROR,
|
75
|
-
{
|
76
|
-
allowAllPropertiesOnSameLine: false,
|
77
|
-
},
|
78
|
-
],
|
79
|
-
"jsonc/quote-props": [ERROR, Always],
|
80
|
-
"jsonc/quotes": [
|
81
|
-
ERROR,
|
82
|
-
Double,
|
83
|
-
{
|
84
|
-
avoidEscape: false,
|
85
|
-
},
|
86
|
-
],
|
87
|
-
"jsonc/space-unary-ops": ERROR,
|
88
|
-
},
|
89
|
-
] as const;
|
1
|
+
import { enable_x, level, state } from "../_strings.js";
|
2
|
+
|
3
|
+
const
|
4
|
+
{ ERROR } = level,
|
5
|
+
{
|
6
|
+
Never,
|
7
|
+
Always,
|
8
|
+
Consistent,
|
9
|
+
Strict,
|
10
|
+
Last,
|
11
|
+
Double,
|
12
|
+
} = state;
|
13
|
+
|
14
|
+
export default [
|
15
|
+
enable_x,
|
16
|
+
{
|
17
|
+
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
18
|
+
"jsonc/array-bracket-newline": [ERROR, Consistent],
|
19
|
+
"jsonc/array-bracket-spacing": [
|
20
|
+
ERROR,
|
21
|
+
Never,
|
22
|
+
{
|
23
|
+
singleValue: false,
|
24
|
+
objectsInArrays: false,
|
25
|
+
arraysInArrays: false,
|
26
|
+
},
|
27
|
+
],
|
28
|
+
"jsonc/array-element-newline": [ERROR, Always],
|
29
|
+
"jsonc/comma-dangle": [ERROR, Never] /* trailing commas are NOT allowed in JSON */,
|
30
|
+
"jsonc/comma-style": [ERROR, Last],
|
31
|
+
"jsonc/indent": [ERROR, 2],
|
32
|
+
"jsonc/key-spacing": [
|
33
|
+
ERROR,
|
34
|
+
{
|
35
|
+
beforeColon: false,
|
36
|
+
afterColon: true,
|
37
|
+
mode: Strict,
|
38
|
+
},
|
39
|
+
],
|
40
|
+
"jsonc/no-dupe-keys": ERROR,
|
41
|
+
"jsonc/no-floating-decimal": ERROR,
|
42
|
+
"jsonc/no-irregular-whitespace": [
|
43
|
+
ERROR,
|
44
|
+
{
|
45
|
+
skipStrings: true,
|
46
|
+
skipComments: true,
|
47
|
+
skipRegExps: true,
|
48
|
+
skipTemplates: true,
|
49
|
+
skipJSXText: true,
|
50
|
+
},
|
51
|
+
],
|
52
|
+
"jsonc/no-multi-str": ERROR,
|
53
|
+
"jsonc/no-octal-escape": ERROR,
|
54
|
+
"jsonc/no-octal": ERROR,
|
55
|
+
"jsonc/no-sparse-arrays": ERROR,
|
56
|
+
"jsonc/no-useless-escape": ERROR,
|
57
|
+
"jsonc/object-curly-newline": [
|
58
|
+
ERROR,
|
59
|
+
{
|
60
|
+
consistent: true,
|
61
|
+
multiline: true,
|
62
|
+
minProperties: 2,
|
63
|
+
},
|
64
|
+
],
|
65
|
+
"jsonc/object-curly-spacing": [
|
66
|
+
ERROR,
|
67
|
+
Always,
|
68
|
+
{
|
69
|
+
arraysInObjects: true,
|
70
|
+
objectsInObjects: true,
|
71
|
+
},
|
72
|
+
],
|
73
|
+
"jsonc/object-property-newline": [
|
74
|
+
ERROR,
|
75
|
+
{
|
76
|
+
allowAllPropertiesOnSameLine: false,
|
77
|
+
},
|
78
|
+
],
|
79
|
+
"jsonc/quote-props": [ERROR, Always],
|
80
|
+
"jsonc/quotes": [
|
81
|
+
ERROR,
|
82
|
+
Double,
|
83
|
+
{
|
84
|
+
avoidEscape: false,
|
85
|
+
},
|
86
|
+
],
|
87
|
+
"jsonc/space-unary-ops": ERROR,
|
88
|
+
},
|
89
|
+
] as const;
|
package/src/rules/json.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import EnableX from "./json/enable_x.js";
|
2
|
-
import Enable from "./json/enable.js";
|
3
|
-
|
4
|
-
export default [EnableX, Enable] as const;
|
1
|
+
import EnableX from "./json/enable_x.js";
|
2
|
+
import Enable from "./json/enable.js";
|
3
|
+
|
4
|
+
export default [EnableX, Enable] as const;
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import { override, level, state } from "../_strings.js";
|
2
|
-
|
3
|
-
const { ERROR, OFF } = level,
|
4
|
-
{ AlwaysMultiline } = state;
|
5
|
-
|
6
|
-
export default [
|
7
|
-
override,
|
8
|
-
{
|
9
|
-
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
10
|
-
"jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
|
11
|
-
"jsonc/comma-dangle": [
|
12
|
-
ERROR,
|
13
|
-
AlwaysMultiline,
|
14
|
-
] /* trailing commas ARE allowed in JSONC */,
|
15
|
-
},
|
16
|
-
] as const;
|
1
|
+
import { override, level, state } from "../_strings.js";
|
2
|
+
|
3
|
+
const { ERROR, OFF } = level,
|
4
|
+
{ AlwaysMultiline } = state;
|
5
|
+
|
6
|
+
export default [
|
7
|
+
override,
|
8
|
+
{
|
9
|
+
// https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
10
|
+
"jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
|
11
|
+
"jsonc/comma-dangle": [
|
12
|
+
ERROR,
|
13
|
+
AlwaysMultiline,
|
14
|
+
] /* trailing commas ARE allowed in JSONC */,
|
15
|
+
},
|
16
|
+
] as const;
|
package/src/rules/jsonc.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import Json from "./json.js";
|
2
|
-
import OverrideJson from "./jsonc/override.js";
|
3
|
-
|
4
|
-
export default [...Json, OverrideJson] as const;
|
1
|
+
import Json from "./json.js";
|
2
|
+
import OverrideJson from "./jsonc/override.js";
|
3
|
+
|
4
|
+
export default [...Json, OverrideJson] as const;
|
package/src/rules/md/enable.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { enable, level } from "../_strings.js";
|
2
|
-
|
3
|
-
const { ERROR } = level;
|
4
|
-
|
5
|
-
export default [
|
6
|
-
enable,
|
7
|
-
{
|
8
|
-
"markdownlint/md003": [
|
9
|
-
ERROR,
|
10
|
-
{
|
11
|
-
style: "atx",
|
12
|
-
},
|
13
|
-
],
|
14
|
-
},
|
15
|
-
] as const;
|
1
|
+
import { enable, level } from "../_strings.js";
|
2
|
+
|
3
|
+
const { ERROR } = level;
|
4
|
+
|
5
|
+
export default [
|
6
|
+
enable,
|
7
|
+
{
|
8
|
+
"markdownlint/md003": [
|
9
|
+
ERROR,
|
10
|
+
{
|
11
|
+
style: "atx",
|
12
|
+
},
|
13
|
+
],
|
14
|
+
},
|
15
|
+
] as const;
|
package/src/rules/md.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
import Enable from "./md/enable.js";
|
2
|
-
|
3
|
-
export default [Enable] as const;
|
1
|
+
import Enable from "./md/enable.js";
|
2
|
+
|
3
|
+
export default [Enable] as const;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { enable } from "../_strings.js";
|
2
|
-
|
3
|
-
export default [enable, {}] as const;
|
1
|
+
import { enable } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [enable, {}] as const;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { recommended } from "../_strings.js";
|
2
|
-
import mocha from "eslint-plugin-mocha";
|
3
|
-
|
4
|
-
// REMOVE shared config once manually configured
|
5
|
-
export default [
|
6
|
-
recommended,
|
7
|
-
(mocha.configs.flat.recommended as Record<"rules", Record<string, "off">>)
|
8
|
-
.rules,
|
9
|
-
] as const;
|
1
|
+
import { recommended } from "../_strings.js";
|
2
|
+
import mocha from "eslint-plugin-mocha";
|
3
|
+
|
4
|
+
// REMOVE shared config once manually configured
|
5
|
+
export default [
|
6
|
+
recommended,
|
7
|
+
(mocha.configs.flat.recommended as Record<"rules", Record<string, "off">>)
|
8
|
+
.rules,
|
9
|
+
] as const;
|
package/src/rules/mocha.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import Recommended from "./mocha/enable_recommended.js";
|
2
|
-
import Enable from "./html/enable.js";
|
3
|
-
|
4
|
-
export default [Recommended, Enable] as const;
|
1
|
+
import Recommended from "./mocha/enable_recommended.js";
|
2
|
+
import Enable from "./html/enable.js";
|
3
|
+
|
4
|
+
export default [Recommended, Enable] as const;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { disable, OFF } from "../_strings.js";
|
2
|
-
|
3
|
-
export default [
|
4
|
-
disable,
|
5
|
-
{
|
6
|
-
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
7
|
-
"no-inner-declarations": OFF /* also disabled in SvelteDisableConflictJs per Svelte base config */,
|
8
|
-
},
|
9
|
-
] as const;
|
1
|
+
import { disable, OFF } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [
|
4
|
+
disable,
|
5
|
+
{
|
6
|
+
// http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
7
|
+
"no-inner-declarations": OFF /* also disabled in SvelteDisableConflictJs per Svelte base config */,
|
8
|
+
},
|
9
|
+
] as const;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { OFF } from "../_strings.js";
|
2
|
-
|
3
|
-
export default [
|
4
|
-
"disable-js",
|
5
|
-
{
|
6
|
-
// Recommended by Svelte base config
|
7
|
-
// http://github.com/sveltejs/eslint-plugin-svelte/tree/main/src/configs/flat
|
8
|
-
"no-inner-declarations": OFF /* ESLint Core */,
|
9
|
-
"no-self-assign": OFF /* ESLint Core */,
|
10
|
-
},
|
11
|
-
] as const;
|
1
|
+
import { OFF } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [
|
4
|
+
"disable-js",
|
5
|
+
{
|
6
|
+
// Recommended by Svelte base config
|
7
|
+
// http://github.com/sveltejs/eslint-plugin-svelte/tree/main/src/configs/flat
|
8
|
+
"no-inner-declarations": OFF /* ESLint Core */,
|
9
|
+
"no-self-assign": OFF /* ESLint Core */,
|
10
|
+
},
|
11
|
+
] as const;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { OFF } from "../_strings.js";
|
2
|
-
|
3
|
-
export default [
|
4
|
-
"disable-ts",
|
5
|
-
{
|
6
|
-
"no-unused-vars": OFF /* ESLint Core */,
|
7
|
-
"@typescript-eslint/no-unused-vars": OFF /* TS Extension */,
|
8
|
-
},
|
9
|
-
] as const;
|
1
|
+
import { OFF } from "../_strings.js";
|
2
|
+
|
3
|
+
export default [
|
4
|
+
"disable-ts",
|
5
|
+
{
|
6
|
+
"no-unused-vars": OFF /* ESLint Core */,
|
7
|
+
"@typescript-eslint/no-unused-vars": OFF /* TS Extension */,
|
8
|
+
},
|
9
|
+
] as const;
|