linted 22.0.0 → 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
package/src/rules/yml/enable.ts
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable,
|
3
|
-
ERROR,
|
4
|
-
OFF,
|
5
|
-
Never,
|
6
|
-
Always,
|
7
|
-
Double,
|
8
|
-
} from "../../_strings";
|
9
|
-
|
10
|
-
export default [
|
11
|
-
enable,
|
12
|
-
{
|
13
|
-
// https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
|
14
|
-
"yml/block-mapping-colon-indicator-newline": [
|
15
|
-
ERROR,
|
16
|
-
Never,
|
17
|
-
],
|
18
|
-
"yml/block-mapping-question-indicator-newline": [
|
19
|
-
ERROR,
|
20
|
-
Never,
|
21
|
-
],
|
22
|
-
"yml/block-mapping": [
|
23
|
-
ERROR,
|
24
|
-
{
|
25
|
-
singleline: Never,
|
26
|
-
multiline: Always,
|
27
|
-
},
|
28
|
-
],
|
29
|
-
"yml/block-sequence-hyphen-indicator-newline": [
|
30
|
-
ERROR,
|
31
|
-
Never,
|
32
|
-
{
|
33
|
-
nestedHyphen: Always,
|
34
|
-
blockMapping: Never,
|
35
|
-
},
|
36
|
-
],
|
37
|
-
"yml/block-sequence": [
|
38
|
-
ERROR,
|
39
|
-
{
|
40
|
-
singleline: Always,
|
41
|
-
multiline: Always,
|
42
|
-
},
|
43
|
-
],
|
44
|
-
"yml/file-extension": OFF,
|
45
|
-
"yml/indent": [
|
46
|
-
ERROR,
|
47
|
-
2,
|
48
|
-
{
|
49
|
-
indentBlockSequences: true,
|
50
|
-
indicatorValueIndent: 2,
|
51
|
-
},
|
52
|
-
],
|
53
|
-
"yml/key-name-casing": OFF,
|
54
|
-
"yml/no-empty-document": ERROR,
|
55
|
-
"yml/no-empty-key": ERROR,
|
56
|
-
"yml/no-empty-mapping-value": ERROR,
|
57
|
-
"yml/no-empty-sequence-entry": ERROR,
|
58
|
-
"yml/no-tab-indent": ERROR,
|
59
|
-
"yml/no-trailing-zeros": ERROR,
|
60
|
-
"yml/plain-scalar": [
|
61
|
-
ERROR,
|
62
|
-
Always,
|
63
|
-
],
|
64
|
-
"yml/quotes": [
|
65
|
-
ERROR,
|
66
|
-
{
|
67
|
-
prefer: Double,
|
68
|
-
avoidEscape: true,
|
69
|
-
},
|
70
|
-
],
|
71
|
-
"yml/require-string-key": ERROR,
|
72
|
-
"yml/sort-keys": OFF,
|
73
|
-
"yml/sort-sequence-values": OFF,
|
74
|
-
"yml/vue-custom-block/no-parsing-error": ERROR,
|
75
|
-
},
|
76
|
-
] as const;
|
@@ -1,73 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
enable_x,
|
3
|
-
ERROR,
|
4
|
-
Never,
|
5
|
-
Always,
|
6
|
-
Strict,
|
7
|
-
} from "../../_strings";
|
8
|
-
|
9
|
-
export default [
|
10
|
-
enable_x,
|
11
|
-
{
|
12
|
-
// https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
|
13
|
-
"yml/flow-mapping-curly-newline": [
|
14
|
-
ERROR,
|
15
|
-
{
|
16
|
-
consistent: false,
|
17
|
-
multiline: true,
|
18
|
-
minProperties: 2,
|
19
|
-
},
|
20
|
-
],
|
21
|
-
"yml/flow-mapping-curly-spacing": [
|
22
|
-
ERROR,
|
23
|
-
Always,
|
24
|
-
{
|
25
|
-
arraysInObjects: true,
|
26
|
-
objectsInObjects: true,
|
27
|
-
},
|
28
|
-
],
|
29
|
-
"yml/flow-sequence-bracket-newline": [
|
30
|
-
ERROR,
|
31
|
-
{
|
32
|
-
multiline: true,
|
33
|
-
minItems: null,
|
34
|
-
},
|
35
|
-
],
|
36
|
-
"yml/flow-sequence-bracket-spacing": [
|
37
|
-
ERROR,
|
38
|
-
Never,
|
39
|
-
{
|
40
|
-
singleValue: false,
|
41
|
-
objectsInArrays: false,
|
42
|
-
arraysInArrays: false,
|
43
|
-
},
|
44
|
-
],
|
45
|
-
"yml/key-spacing": [
|
46
|
-
ERROR,
|
47
|
-
{
|
48
|
-
beforeColon: false,
|
49
|
-
afterColon: true,
|
50
|
-
mode: Strict,
|
51
|
-
},
|
52
|
-
],
|
53
|
-
"yml/no-irregular-whitespace": [
|
54
|
-
ERROR,
|
55
|
-
{
|
56
|
-
skipQuotedScalars: true,
|
57
|
-
skipComments: false,
|
58
|
-
},
|
59
|
-
],
|
60
|
-
"yml/no-multiple-empty-lines": [
|
61
|
-
ERROR,
|
62
|
-
{
|
63
|
-
max: 1,
|
64
|
-
maxEOF: 1,
|
65
|
-
maxBOF: 0,
|
66
|
-
},
|
67
|
-
],
|
68
|
-
"yml/spaced-comment": [
|
69
|
-
ERROR,
|
70
|
-
Always,
|
71
|
-
],
|
72
|
-
},
|
73
|
-
] as const;
|
package/src/rules/yml/index.ts
DELETED
package/src/settings.ts
DELETED
File without changes
|
File without changes
|
File without changes
|