@eslinted/defaults 20.4.0 → 21.0.1
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 +504 -523
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/{state.d.ts → _state.d.ts} +1 -1
- package/dist/rules/_state.d.ts.map +1 -0
- package/dist/rules/_state.js +2 -0
- package/dist/rules/_state.js.map +1 -0
- package/dist/rules/{css/index.d.ts → css.d.ts} +3 -3
- package/dist/rules/css.d.ts.map +1 -0
- package/dist/rules/css.js +17 -0
- package/dist/rules/css.js.map +1 -0
- package/dist/rules/{html/index.d.ts → html.d.ts} +3 -3
- package/dist/rules/html.d.ts.map +1 -0
- package/dist/rules/html.js +41 -0
- package/dist/rules/html.js.map +1 -0
- package/dist/rules/index.d.ts +504 -523
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/index.js +7 -7
- package/dist/rules/js.d.ts +219 -221
- package/dist/rules/js.d.ts.map +1 -1
- package/dist/rules/js.js +545 -7
- package/dist/rules/js.js.map +1 -1
- package/dist/rules/{json/jsonc.d.ts → json.d.ts} +4 -2
- package/dist/rules/json.d.ts.map +1 -0
- package/dist/rules/{json/jsonc.js → json.js} +3 -1
- package/dist/rules/json.js.map +1 -0
- package/dist/rules/{jsonc/index.d.ts → jsonc.d.ts} +3 -3
- package/dist/rules/jsonc.d.ts.map +1 -0
- package/dist/rules/jsonc.js +10 -0
- package/dist/rules/jsonc.js.map +1 -0
- package/dist/rules/{svelte/svelte.d.ts → svelte.d.ts} +16 -1
- package/dist/rules/svelte.d.ts.map +1 -0
- package/dist/rules/{svelte/svelte.js → svelte.js} +15 -0
- package/dist/rules/svelte.js.map +1 -0
- package/dist/rules/{ts/ts.d.ts → ts.d.ts} +51 -1
- package/dist/rules/ts.d.ts.map +1 -0
- package/dist/rules/{ts/ts.js → ts.js} +50 -0
- package/dist/rules/ts.js.map +1 -0
- package/dist/rules/{yml/index.d.ts → yml.d.ts} +3 -3
- package/dist/rules/yml.d.ts.map +1 -0
- package/dist/rules/yml.js +32 -0
- package/dist/rules/yml.js.map +1 -0
- package/package.json +1 -1
- package/src/rules/css.ts +22 -0
- package/src/rules/html.ts +82 -0
- package/src/rules/js.ts +621 -6
- package/src/rules/{json/jsonc.ts → json.ts} +7 -1
- package/src/rules/jsonc.ts +11 -0
- package/src/rules/{svelte/svelte.ts → svelte.ts} +39 -2
- package/src/rules/{ts/ts.ts → ts.ts} +67 -2
- package/src/rules/yml.ts +56 -0
- package/dist/rules/css/index.d.ts.map +0 -1
- package/dist/rules/css/index.js +0 -19
- package/dist/rules/css/index.js.map +0 -1
- package/dist/rules/html/index.d.ts.map +0 -1
- package/dist/rules/html/index.js +0 -43
- package/dist/rules/html/index.js.map +0 -1
- package/dist/rules/js.eslint.d.ts +0 -289
- package/dist/rules/js.eslint.d.ts.map +0 -1
- package/dist/rules/js.eslint.js +0 -285
- package/dist/rules/js.eslint.js.map +0 -1
- package/dist/rules/js.stylistic.d.ts +0 -271
- package/dist/rules/js.stylistic.d.ts.map +0 -1
- package/dist/rules/js.stylistic.js +0 -265
- package/dist/rules/js.stylistic.js.map +0 -1
- package/dist/rules/json/index.d.ts +0 -33
- 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/json/json.d.ts +0 -9
- package/dist/rules/json/json.d.ts.map +0 -1
- package/dist/rules/json/json.js +0 -7
- package/dist/rules/json/json.js.map +0 -1
- package/dist/rules/json/jsonc.d.ts.map +0 -1
- package/dist/rules/json/jsonc.js.map +0 -1
- package/dist/rules/jsonc/index.d.ts.map +0 -1
- package/dist/rules/jsonc/index.js +0 -12
- package/dist/rules/jsonc/index.js.map +0 -1
- package/dist/rules/state.d.ts.map +0 -1
- package/dist/rules/state.js +0 -2
- package/dist/rules/state.js.map +0 -1
- package/dist/rules/svelte/disable.d.ts +0 -17
- package/dist/rules/svelte/disable.d.ts.map +0 -1
- package/dist/rules/svelte/disable.js +0 -15
- package/dist/rules/svelte/disable.js.map +0 -1
- package/dist/rules/svelte/extend.d.ts +0 -13
- package/dist/rules/svelte/extend.d.ts.map +0 -1
- package/dist/rules/svelte/extend.js +0 -11
- package/dist/rules/svelte/extend.js.map +0 -1
- package/dist/rules/svelte/html.d.ts +0 -14
- package/dist/rules/svelte/html.d.ts.map +0 -1
- package/dist/rules/svelte/html.js +0 -12
- package/dist/rules/svelte/html.js.map +0 -1
- package/dist/rules/svelte/index.d.ts +0 -115
- package/dist/rules/svelte/index.d.ts.map +0 -1
- package/dist/rules/svelte/index.js +0 -9
- package/dist/rules/svelte/index.js.map +0 -1
- package/dist/rules/svelte/svelte.d.ts.map +0 -1
- package/dist/rules/svelte/svelte.js.map +0 -1
- package/dist/rules/ts/disable.d.ts +0 -26
- package/dist/rules/ts/disable.d.ts.map +0 -1
- package/dist/rules/ts/disable.js +0 -24
- package/dist/rules/ts/disable.js.map +0 -1
- package/dist/rules/ts/extend.d.ts +0 -38
- package/dist/rules/ts/extend.d.ts.map +0 -1
- package/dist/rules/ts/extend.js +0 -36
- package/dist/rules/ts/extend.js.map +0 -1
- package/dist/rules/ts/index.d.ts +0 -242
- package/dist/rules/ts/index.d.ts.map +0 -1
- package/dist/rules/ts/index.js +0 -9
- package/dist/rules/ts/index.js.map +0 -1
- package/dist/rules/ts/ts.d.ts.map +0 -1
- package/dist/rules/ts/ts.js.map +0 -1
- package/dist/rules/yml/index.d.ts.map +0 -1
- package/dist/rules/yml/index.js +0 -34
- package/dist/rules/yml/index.js.map +0 -1
- package/src/rules/css/index.ts +0 -24
- package/src/rules/html/index.ts +0 -84
- package/src/rules/js.eslint.ts +0 -348
- package/src/rules/js.stylistic.ts +0 -279
- package/src/rules/json/index.ts +0 -7
- package/src/rules/json/json.ts +0 -13
- package/src/rules/jsonc/index.ts +0 -13
- package/src/rules/svelte/disable.ts +0 -21
- package/src/rules/svelte/extend.ts +0 -14
- package/src/rules/svelte/html.ts +0 -14
- package/src/rules/svelte/index.ts +0 -11
- package/src/rules/ts/disable.ts +0 -26
- package/src/rules/ts/extend.ts +0 -42
- package/src/rules/ts/index.ts +0 -9
- package/src/rules/yml/index.ts +0 -58
- /package/src/rules/{state.ts → _state.ts} +0 -0
|
@@ -1,8 +1,34 @@
|
|
|
1
|
-
import { State } from "
|
|
1
|
+
import { State } from "./_state";
|
|
2
2
|
|
|
3
|
-
// DOC:
|
|
3
|
+
// DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
|
|
4
4
|
export default {
|
|
5
5
|
rules: {
|
|
6
|
+
// #region DISABLE
|
|
7
|
+
// ESLint core rules known to cause problems with `.svelte`.
|
|
8
|
+
"no-inner-declarations": State.OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. INFO: also extended by svelte */,
|
|
9
|
+
"no-self-assign": State.OFF /* Self assign is one of way to update reactive value in Svelte. */,
|
|
10
|
+
"no-unused-vars": State.OFF /* breaks use of svelte global */,
|
|
11
|
+
"ts/no-unused-vars": State.OFF /* breaks use of svelte global */,
|
|
12
|
+
"prefer-const": State.OFF /* svelte/prefer-const */,
|
|
13
|
+
// My own
|
|
14
|
+
"stylistic/indent": State.OFF /* @CONFLICT: with `svelte/indent` */,
|
|
15
|
+
"ts/no-confusing-void-expression": State.OFF /* @CONFLICT: errors on render() */,
|
|
16
|
+
// My own (dprint)
|
|
17
|
+
"stylistic/member-delimiter-style": State.OFF,
|
|
18
|
+
"stylistic/object-curly-spacing": State.OFF,
|
|
19
|
+
"stylistic/semi": State.OFF,
|
|
20
|
+
// #endregion
|
|
21
|
+
|
|
22
|
+
// #region EXTEND
|
|
23
|
+
// DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
|
24
|
+
"svelte/no-inner-declarations": [
|
|
25
|
+
State.ON,
|
|
26
|
+
"both",
|
|
27
|
+
] /* same options: no-inner-declarations */,
|
|
28
|
+
/* @OVERRIDE */ "stylistic/no-trailing-spaces": State.OFF /* replaces `no-trailing-spaces` */,
|
|
29
|
+
// "svelte/no-trailing-spaces": State.OFF,
|
|
30
|
+
// #endregion
|
|
31
|
+
|
|
6
32
|
// #region ERRORS
|
|
7
33
|
// DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
|
|
8
34
|
"svelte/infinite-reactive-loop": State.ON,
|
|
@@ -122,5 +148,16 @@ export default {
|
|
|
122
148
|
"svelte/comment-directive": State.ON,
|
|
123
149
|
"svelte/system": State.ON,
|
|
124
150
|
// #endregion
|
|
151
|
+
|
|
152
|
+
//#region Future (HTML)
|
|
153
|
+
// DOC: https://html-eslint.org/docs/svelte/rules
|
|
154
|
+
// "html/svelte/class-spacing": State.OFF,
|
|
155
|
+
// "html/svelte/use-baseline": State.WARN,
|
|
156
|
+
// "html/svelte/no-obsolete-tags": State.WARN,
|
|
157
|
+
// "html/svelte/no-obsolete-attrs": State.WARN,
|
|
158
|
+
// "html/svelte/no-ineffective-attrs": State.WARN,
|
|
159
|
+
// "html/svelte/no-duplicate-class": State.WARN,
|
|
160
|
+
// "html/svelte/no-invalid-attr-value": State.ON,
|
|
161
|
+
//#endregion
|
|
125
162
|
} as const,
|
|
126
163
|
};
|
|
@@ -1,8 +1,72 @@
|
|
|
1
|
-
import { State } from "
|
|
1
|
+
import { State } from "./_state";
|
|
2
2
|
|
|
3
|
-
// DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
|
4
3
|
export default {
|
|
5
4
|
rules: {
|
|
5
|
+
//#region DISABLE
|
|
6
|
+
// Handled by TypeScript compiler
|
|
7
|
+
"consistent-return": State.OFF /* TSLint BUT @tsc */,
|
|
8
|
+
"constructor-super": State.OFF,
|
|
9
|
+
"getter-return": State.OFF,
|
|
10
|
+
"no-class-assign": State.OFF,
|
|
11
|
+
"no-const-assign": State.OFF,
|
|
12
|
+
"no-dupe-args": State.OFF,
|
|
13
|
+
"no-dupe-class-members": State.OFF /* supports TypeScript BUT @tsc */,
|
|
14
|
+
"no-dupe-keys": State.OFF,
|
|
15
|
+
"no-func-assign": State.OFF,
|
|
16
|
+
"no-import-assign": State.OFF,
|
|
17
|
+
"no-invalid-this": State.OFF /* supports TypeScript BUT @tsc */,
|
|
18
|
+
"no-new-native-nonconstructor": State.OFF,
|
|
19
|
+
"no-obj-calls": State.OFF,
|
|
20
|
+
"no-redeclare": State.OFF /* TSLint BUT @tsc */,
|
|
21
|
+
"no-setter-return": State.OFF,
|
|
22
|
+
"no-this-before-super": State.OFF,
|
|
23
|
+
"no-undef": State.OFF,
|
|
24
|
+
"no-unreachable": State.OFF,
|
|
25
|
+
"no-unsafe-negation": State.OFF,
|
|
26
|
+
//#endregion
|
|
27
|
+
|
|
28
|
+
// #region EXTEND
|
|
29
|
+
// DOC: https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
|
|
30
|
+
/* @OVERRIDE */ "dot-notation": State.OFF,
|
|
31
|
+
"ts/dot-notation": [
|
|
32
|
+
State.WARN,
|
|
33
|
+
{
|
|
34
|
+
// TS-only:
|
|
35
|
+
allowPrivateClassPropertyAccess: true,
|
|
36
|
+
allowProtectedClassPropertyAccess: true,
|
|
37
|
+
allowIndexSignaturePropertyAccess: true,
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
/* @OVERRIDE */ "no-implied-eval": State.OFF,
|
|
41
|
+
"ts/no-implied-eval": State.ON,
|
|
42
|
+
// "ts/no-redeclare": State.OFF /* @tsc: (let, const, -var) */,
|
|
43
|
+
/* @OVERRIDE */ "no-restricted-imports": State.OFF,
|
|
44
|
+
// "ts/no-restricted-imports": State.OFF,
|
|
45
|
+
/* @OVERRIDE */ "no-unused-vars": State.OFF,
|
|
46
|
+
"ts/no-unused-vars": State.WARN,
|
|
47
|
+
/* @OVERRIDE */ "no-throw-literal": State.OFF,
|
|
48
|
+
"ts/only-throw-error": [
|
|
49
|
+
State.WARN,
|
|
50
|
+
{
|
|
51
|
+
allowThrowingAny: false,
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
/* @OVERRIDE */ "prefer-destructuring": State.OFF,
|
|
55
|
+
// "ts/prefer-destructuring": State.OFF /* @preference: too prescriptive */,
|
|
56
|
+
/* @OVERRIDE */ "prefer-promise-reject-errors": State.OFF,
|
|
57
|
+
"ts/prefer-promise-reject-errors": [
|
|
58
|
+
State.WARN,
|
|
59
|
+
{
|
|
60
|
+
allowThrowingUnknown: true,
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
/* @OVERRIDE */ "require-await": State.OFF,
|
|
64
|
+
"ts/require-await": State.ON,
|
|
65
|
+
// #endregion
|
|
66
|
+
|
|
67
|
+
// #region ...
|
|
68
|
+
// DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
|
69
|
+
|
|
6
70
|
// "ts/adjacent-overload-signatures": State.OFF,
|
|
7
71
|
// "ts/array-type": State.OFF /* @preference: ideally, I'd like to don't-care mutable arrays while requiring readonly [] syntax for immutable arrays, but there is no way to do that with the current rule options */,
|
|
8
72
|
"ts/await-thenable": State.ON,
|
|
@@ -206,5 +270,6 @@ export default {
|
|
|
206
270
|
],
|
|
207
271
|
// "ts/unified-signatures": State.OFF /* BUG: https://github.com/typescript-eslint/typescript-eslint/issues/11732 */,
|
|
208
272
|
"ts/use-unknown-in-catch-callback-variable": State.ON,
|
|
273
|
+
// #endregion
|
|
209
274
|
} as const,
|
|
210
275
|
};
|
package/src/rules/yml.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { State } from "./_state";
|
|
2
|
+
|
|
3
|
+
// DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
|
|
4
|
+
export default {
|
|
5
|
+
rules: {
|
|
6
|
+
//#region Custom
|
|
7
|
+
"yml/block-mapping-colon-indicator-newline": State.WARN,
|
|
8
|
+
"yml/block-mapping-question-indicator-newline": State.WARN,
|
|
9
|
+
"yml/block-mapping": State.WARN,
|
|
10
|
+
"yml/block-sequence-hyphen-indicator-newline": State.WARN,
|
|
11
|
+
"yml/block-sequence": State.WARN,
|
|
12
|
+
// "yml/file-extension": State.OFF,
|
|
13
|
+
// "yml/indent": State.OFF,
|
|
14
|
+
// "yml/key-name-casing": State.OFF,
|
|
15
|
+
// "yml/no-empty-document": State.OFF,
|
|
16
|
+
"yml/no-empty-key": State.WARN,
|
|
17
|
+
// "yml/no-empty-mapping-value": State.OFF /* @preference: breaks Home Assistant integration enablement shorthand style (would require a `{}` after) */,
|
|
18
|
+
"yml/no-empty-sequence-entry": State.WARN,
|
|
19
|
+
"yml/no-tab-indent": State.WARN,
|
|
20
|
+
// "yml/no-trailing-zeros": State.OFF,
|
|
21
|
+
// "yml/plain-scalar": State.OFF /* @CONFLICT: breaks any holdovers from YAML 1.1 or non-YAML 1.2 core implementers */,
|
|
22
|
+
// "yml/quotes": State.OFF,
|
|
23
|
+
"yml/require-string-key": State.WARN,
|
|
24
|
+
// "yml/sort-keys": State.OFF,
|
|
25
|
+
// "yml/sort-sequence-values": State.OFF,
|
|
26
|
+
// "yml/vue-custom-block/no-parsing-error": State.OFF,
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
//#region Extension
|
|
30
|
+
// "yml/flow-mapping-curly-newline": State.OFF,
|
|
31
|
+
// "yml/flow-mapping-curly-spacing": State.OFF,
|
|
32
|
+
// "yml/flow-sequence-bracket-newline": State.OFF,
|
|
33
|
+
// "yml/flow-sequence-bracket-spacing": State.OFF,
|
|
34
|
+
// "yml/key-spacing": State.OFF,
|
|
35
|
+
"yml/no-irregular-whitespace": State.ON,
|
|
36
|
+
// "yml/no-multiple-empty-lines": State.OFF,
|
|
37
|
+
"yml/spaced-comment": [
|
|
38
|
+
State.WARN,
|
|
39
|
+
"always",
|
|
40
|
+
{
|
|
41
|
+
exceptions: ["#"],
|
|
42
|
+
markers: [
|
|
43
|
+
"-",
|
|
44
|
+
"#",
|
|
45
|
+
"##",
|
|
46
|
+
"###",
|
|
47
|
+
"####",
|
|
48
|
+
"#####",
|
|
49
|
+
"region",
|
|
50
|
+
"endregion",
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
//#endregion
|
|
55
|
+
} as const,
|
|
56
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/css/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;AAGjC,wBAoBE"}
|
package/dist/rules/css/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export default [
|
|
2
|
-
{
|
|
3
|
-
rules: {
|
|
4
|
-
"css/font-family-fallbacks": 1,
|
|
5
|
-
"css/no-duplicate-imports": 1,
|
|
6
|
-
"css/no-duplicate-keyframe-selectors": 1,
|
|
7
|
-
"css/no-empty-blocks": 1,
|
|
8
|
-
"css/no-important": 1,
|
|
9
|
-
"css/no-invalid-at-rule-placement": 2,
|
|
10
|
-
"css/no-invalid-at-rules": 2,
|
|
11
|
-
"css/no-invalid-named-grid-areas": 2,
|
|
12
|
-
"css/no-unmatchable-selectors": 1,
|
|
13
|
-
"css/prefer-logical-properties": 1,
|
|
14
|
-
"css/relative-font-units": 1,
|
|
15
|
-
"css/use-baseline": 1,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
];
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/css/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb;QACE,KAAK,EAAE;YACL,2BAA2B,GAAY;YACvC,0BAA0B,GAAY;YACtC,qCAAqC,GAAY;YACjD,qBAAqB,GAAY;YACjC,kBAAkB,GAAY;YAC9B,kCAAkC,GAAU;YAC5C,yBAAyB,GAAU;YACnC,iCAAiC,GAAU;YAE3C,8BAA8B,GAAY;YAC1C,+BAA+B,GAAY;YAC3C,yBAAyB,GAAY;YAErC,kBAAkB,GAAY;SAEtB;KACX;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBAgFE"}
|
package/dist/rules/html/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export default [
|
|
2
|
-
{
|
|
3
|
-
rules: {
|
|
4
|
-
"html/css-no-empty-blocks": 1,
|
|
5
|
-
"html/head-order": 2,
|
|
6
|
-
"html/no-duplicate-attrs": 1,
|
|
7
|
-
"html/no-duplicate-class": 1,
|
|
8
|
-
"html/no-duplicate-id": 1,
|
|
9
|
-
"html/no-duplicate-in-head": 1,
|
|
10
|
-
"html/no-ineffective-attrs": 1,
|
|
11
|
-
"html/no-invalid-attr-value": 2,
|
|
12
|
-
"html/no-invalid-entity": 2,
|
|
13
|
-
"html/no-nested-interactive": 1,
|
|
14
|
-
"html/no-obsolete-tags": 1,
|
|
15
|
-
"html/no-target-blank": 1,
|
|
16
|
-
"html/no-whitespace-only-children": 1,
|
|
17
|
-
"html/require-button-type": 1,
|
|
18
|
-
"html/require-closing-tags": 1,
|
|
19
|
-
"html/require-doctype": 1,
|
|
20
|
-
"html/require-li-container": 1,
|
|
21
|
-
"html/require-meta-charset": 1,
|
|
22
|
-
"html/use-baseline": 1,
|
|
23
|
-
"html/no-multiple-h1": 1,
|
|
24
|
-
"html/require-lang": 1,
|
|
25
|
-
"html/no-abstract-roles": 1,
|
|
26
|
-
"html/no-accesskey-attrs": 1,
|
|
27
|
-
"html/no-aria-hidden-body": 1,
|
|
28
|
-
"html/no-aria-hidden-on-focusable": 1,
|
|
29
|
-
"html/no-empty-headings": 1,
|
|
30
|
-
"html/no-heading-inside-button": 1,
|
|
31
|
-
"html/no-invalid-role": 1,
|
|
32
|
-
"html/no-non-scalable-viewport": 1,
|
|
33
|
-
"html/no-positive-tabindex": 1,
|
|
34
|
-
"html/no-redundant-role": 1,
|
|
35
|
-
"html/require-form-method": 1,
|
|
36
|
-
"html/require-frame-title": 1,
|
|
37
|
-
"html/require-img-alt": 1,
|
|
38
|
-
"html/require-input-label": 1,
|
|
39
|
-
"html/require-meta-viewport": 1,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
];
|
|
43
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/html/index.ts"],"names":[],"mappings":"AAGA,eAAe;IACb;QACE,KAAK,EAAE;YAGL,0BAA0B,GAAY;YACtC,iBAAiB,GAAU;YAE3B,yBAAyB,GAAY;YACrC,yBAAyB,GAAY;YACrC,sBAAsB,GAAY;YAClC,2BAA2B,GAAY;YACvC,2BAA2B,GAAY;YAEvC,4BAA4B,GAAU;YACtC,wBAAwB,GAAU;YAClC,4BAA4B,GAAY;YACxC,uBAAuB,GAAY;YAKnC,sBAAsB,GAAY;YAClC,kCAAkC,GAAY;YAG9C,0BAA0B,GAAY;YACtC,2BAA2B,GAAY;YACvC,sBAAsB,GAAY;YAElC,2BAA2B,GAAY;YACvC,2BAA2B,GAAY;YACvC,mBAAmB,GAAY;YAK/B,qBAAqB,GAAY;YACjC,mBAAmB,GAAY;YAQ/B,wBAAwB,GAAY;YACpC,yBAAyB,GAAY;YACrC,0BAA0B,GAAY;YACtC,kCAAkC,GAAY;YAC9C,wBAAwB,GAAY;YACpC,+BAA+B,GAAY;YAC3C,sBAAsB,GAAY;YAClC,+BAA+B,GAAY;YAC3C,2BAA2B,GAAY;YACvC,wBAAwB,GAAY;YAEpC,0BAA0B,GAAY;YACtC,0BAA0B,GAAY;YACtC,sBAAsB,GAAY;YAClC,0BAA0B,GAAY;YACtC,4BAA4B,GAAY;SAiBhC;KACX;CACF,CAAC"}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
import { State } from "./state.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
rules: {
|
|
4
|
-
readonly "array-callback-return": readonly [
|
|
5
|
-
State.ON,
|
|
6
|
-
{
|
|
7
|
-
readonly checkForEach: true;
|
|
8
|
-
readonly allowVoid: true;
|
|
9
|
-
}
|
|
10
|
-
];
|
|
11
|
-
readonly "constructor-super": State.ON;
|
|
12
|
-
readonly "for-direction": State.ON;
|
|
13
|
-
readonly "getter-return": State.ON;
|
|
14
|
-
readonly "no-async-promise-executor": State.ON;
|
|
15
|
-
readonly "no-await-in-loop": State.ON;
|
|
16
|
-
readonly "no-class-assign": State.ON;
|
|
17
|
-
readonly "no-compare-neg-zero": State.ON;
|
|
18
|
-
readonly "no-cond-assign": State.ON;
|
|
19
|
-
readonly "no-const-assign": State.ON;
|
|
20
|
-
readonly "no-constant-binary-expression": State.ON;
|
|
21
|
-
readonly "no-constant-condition": readonly [
|
|
22
|
-
State.ON,
|
|
23
|
-
{
|
|
24
|
-
readonly checkLoops: "all";
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
readonly "no-constructor-return": State.ON;
|
|
28
|
-
readonly "no-control-regex": State.ON;
|
|
29
|
-
readonly "no-debugger": State.ON;
|
|
30
|
-
readonly "no-dupe-args": State.ON;
|
|
31
|
-
readonly "no-dupe-class-members": State.ON;
|
|
32
|
-
readonly "no-dupe-else-if": State.ON;
|
|
33
|
-
readonly "no-dupe-keys": State.ON;
|
|
34
|
-
readonly "no-duplicate-case": State.ON;
|
|
35
|
-
readonly "no-duplicate-imports": readonly [
|
|
36
|
-
State.ON,
|
|
37
|
-
{
|
|
38
|
-
readonly includeExports: true;
|
|
39
|
-
readonly allowSeparateTypeImports: true;
|
|
40
|
-
}
|
|
41
|
-
];
|
|
42
|
-
readonly "no-empty-character-class": State.ON;
|
|
43
|
-
readonly "no-empty-pattern": State.ON;
|
|
44
|
-
readonly "no-ex-assign": State.ON;
|
|
45
|
-
readonly "no-fallthrough": State.ON;
|
|
46
|
-
readonly "no-func-assign": State.ON;
|
|
47
|
-
readonly "no-import-assign": State.ON;
|
|
48
|
-
readonly "no-inner-declarations": readonly [
|
|
49
|
-
State.ON,
|
|
50
|
-
"both"
|
|
51
|
-
];
|
|
52
|
-
readonly "no-invalid-regexp": State.ON;
|
|
53
|
-
readonly "no-irregular-whitespace": State.ON;
|
|
54
|
-
readonly "no-loss-of-precision": State.ON;
|
|
55
|
-
readonly "no-misleading-character-class": State.ON;
|
|
56
|
-
readonly "no-new-native-nonconstructor": State.ON;
|
|
57
|
-
readonly "no-obj-calls": State.ON;
|
|
58
|
-
readonly "no-promise-executor-return": readonly [
|
|
59
|
-
State.ON,
|
|
60
|
-
{
|
|
61
|
-
readonly allowVoid: true;
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
readonly "no-prototype-builtins": State.ON;
|
|
65
|
-
readonly "no-self-assign": State.ON;
|
|
66
|
-
readonly "no-self-compare": State.ON;
|
|
67
|
-
readonly "no-setter-return": State.ON;
|
|
68
|
-
readonly "no-sparse-arrays": State.ON;
|
|
69
|
-
readonly "no-template-curly-in-string": State.ON;
|
|
70
|
-
readonly "no-this-before-super": State.ON;
|
|
71
|
-
readonly "no-unassigned-vars": State.ON;
|
|
72
|
-
readonly "no-undef": State.ON;
|
|
73
|
-
readonly "no-unexpected-multiline": State.ON;
|
|
74
|
-
readonly "no-unmodified-loop-condition": State.ON;
|
|
75
|
-
readonly "no-unreachable": State.WARN;
|
|
76
|
-
readonly "no-unreachable-loop": State.WARN;
|
|
77
|
-
readonly "no-unsafe-finally": State.ON;
|
|
78
|
-
readonly "no-unsafe-negation": readonly [
|
|
79
|
-
State.ON,
|
|
80
|
-
{
|
|
81
|
-
readonly enforceForOrderingRelations: true;
|
|
82
|
-
}
|
|
83
|
-
];
|
|
84
|
-
readonly "no-unsafe-optional-chaining": readonly [
|
|
85
|
-
State.ON,
|
|
86
|
-
{
|
|
87
|
-
readonly disallowArithmeticOperators: true;
|
|
88
|
-
}
|
|
89
|
-
];
|
|
90
|
-
readonly "no-unused-private-class-members": State.WARN;
|
|
91
|
-
readonly "no-unused-vars": State.WARN;
|
|
92
|
-
readonly "no-use-before-define": readonly [
|
|
93
|
-
State.ON,
|
|
94
|
-
{
|
|
95
|
-
readonly typedefs: false;
|
|
96
|
-
}
|
|
97
|
-
];
|
|
98
|
-
readonly "no-useless-assignment": State.ON;
|
|
99
|
-
readonly "no-useless-backreference": State.ON;
|
|
100
|
-
readonly "require-atomic-updates": State.ON;
|
|
101
|
-
readonly "use-isnan": readonly [
|
|
102
|
-
State.ON,
|
|
103
|
-
{
|
|
104
|
-
readonly enforceForIndexOf: true;
|
|
105
|
-
}
|
|
106
|
-
];
|
|
107
|
-
readonly "valid-typeof": readonly [
|
|
108
|
-
State.ON,
|
|
109
|
-
{
|
|
110
|
-
readonly requireStringLiterals: true;
|
|
111
|
-
}
|
|
112
|
-
];
|
|
113
|
-
readonly "accessor-pairs": readonly [
|
|
114
|
-
State.ON,
|
|
115
|
-
{
|
|
116
|
-
readonly enforceForTSTypes: true;
|
|
117
|
-
}
|
|
118
|
-
];
|
|
119
|
-
readonly "arrow-body-style": State.WARN;
|
|
120
|
-
readonly "block-scoped-var": State.ON;
|
|
121
|
-
readonly "consistent-return": State.ON;
|
|
122
|
-
readonly "consistent-this": State.ON;
|
|
123
|
-
readonly curly: readonly [
|
|
124
|
-
State.WARN,
|
|
125
|
-
"multi"
|
|
126
|
-
];
|
|
127
|
-
readonly "default-case-last": State.ON;
|
|
128
|
-
readonly "default-param-last": State.ON;
|
|
129
|
-
readonly "dot-notation": State.WARN;
|
|
130
|
-
readonly eqeqeq: State.ON;
|
|
131
|
-
readonly "init-declarations": State.WARN;
|
|
132
|
-
readonly "logical-assignment-operators": readonly [
|
|
133
|
-
State.WARN,
|
|
134
|
-
"always",
|
|
135
|
-
{
|
|
136
|
-
readonly enforceForIfStatements: true;
|
|
137
|
-
}
|
|
138
|
-
];
|
|
139
|
-
readonly "no-alert": State.ON;
|
|
140
|
-
readonly "no-array-constructor": State.ON;
|
|
141
|
-
readonly "no-bitwise": State.ON;
|
|
142
|
-
readonly "no-caller": State.ON;
|
|
143
|
-
readonly "no-case-declarations": State.ON;
|
|
144
|
-
readonly "no-continue": State.ON;
|
|
145
|
-
readonly "no-delete-var": State.ON;
|
|
146
|
-
readonly "no-div-regex": State.ON;
|
|
147
|
-
readonly "no-else-return": State.ON;
|
|
148
|
-
readonly "no-empty": State.ON;
|
|
149
|
-
readonly "no-empty-function": readonly [
|
|
150
|
-
State.WARN,
|
|
151
|
-
{
|
|
152
|
-
readonly allow: readonly [
|
|
153
|
-
"constructors",
|
|
154
|
-
"privateConstructors",
|
|
155
|
-
"protectedConstructors",
|
|
156
|
-
"decoratedFunctions",
|
|
157
|
-
"overrideMethods"
|
|
158
|
-
];
|
|
159
|
-
}
|
|
160
|
-
];
|
|
161
|
-
readonly "no-empty-static-block": State.WARN;
|
|
162
|
-
readonly "no-eq-null": State.ON;
|
|
163
|
-
readonly "no-eval": State.ON;
|
|
164
|
-
readonly "no-extend-native": State.ON;
|
|
165
|
-
readonly "no-extra-bind": State.ON;
|
|
166
|
-
readonly "no-extra-boolean-cast": readonly [
|
|
167
|
-
State.WARN,
|
|
168
|
-
{
|
|
169
|
-
readonly enforceForLogicalOperands: true;
|
|
170
|
-
}
|
|
171
|
-
];
|
|
172
|
-
readonly "no-extra-label": State.WARN;
|
|
173
|
-
readonly "no-global-assign": State.ON;
|
|
174
|
-
readonly "no-implicit-coercion": State.ON;
|
|
175
|
-
readonly "no-implied-eval": State.ON;
|
|
176
|
-
readonly "no-invalid-this": readonly [
|
|
177
|
-
State.ON,
|
|
178
|
-
{
|
|
179
|
-
readonly capIsConstructor: false;
|
|
180
|
-
}
|
|
181
|
-
];
|
|
182
|
-
readonly "no-iterator": State.ON;
|
|
183
|
-
readonly "no-label-var": State.WARN;
|
|
184
|
-
readonly "no-lone-blocks": State.ON;
|
|
185
|
-
readonly "no-loop-func": State.ON;
|
|
186
|
-
readonly "no-multi-assign": State.ON;
|
|
187
|
-
readonly "no-multi-str": State.WARN;
|
|
188
|
-
readonly "no-new": State.ON;
|
|
189
|
-
readonly "no-new-func": State.ON;
|
|
190
|
-
readonly "no-new-wrappers": State.ON;
|
|
191
|
-
readonly "no-nonoctal-decimal-escape": State.ON;
|
|
192
|
-
readonly "no-object-constructor": State.ON;
|
|
193
|
-
readonly "no-octal": State.ON;
|
|
194
|
-
readonly "no-octal-escape": State.ON;
|
|
195
|
-
readonly "no-param-reassign": State.ON;
|
|
196
|
-
readonly "no-plusplus": readonly [
|
|
197
|
-
State.ON,
|
|
198
|
-
{
|
|
199
|
-
readonly allowForLoopAfterthoughts: true;
|
|
200
|
-
}
|
|
201
|
-
];
|
|
202
|
-
readonly "no-proto": State.ON;
|
|
203
|
-
readonly "no-script-url": State.ON;
|
|
204
|
-
readonly "no-sequences": State.ON;
|
|
205
|
-
readonly "no-shadow-restricted-names": State.ON;
|
|
206
|
-
readonly "no-throw-literal": State.WARN;
|
|
207
|
-
readonly "no-undef-init": State.ON;
|
|
208
|
-
readonly "no-unneeded-ternary": State.WARN;
|
|
209
|
-
readonly "no-unused-expressions": readonly [
|
|
210
|
-
State.WARN,
|
|
211
|
-
{
|
|
212
|
-
readonly allowShortCircuit: true;
|
|
213
|
-
readonly allowTernary: true;
|
|
214
|
-
}
|
|
215
|
-
];
|
|
216
|
-
readonly "no-unused-labels": State.WARN;
|
|
217
|
-
readonly "no-useless-call": State.WARN;
|
|
218
|
-
readonly "no-useless-catch": State.WARN;
|
|
219
|
-
readonly "no-useless-computed-key": State.WARN;
|
|
220
|
-
readonly "no-useless-concat": State.WARN;
|
|
221
|
-
readonly "no-useless-constructor": State.WARN;
|
|
222
|
-
readonly "no-useless-escape": readonly [
|
|
223
|
-
State.WARN,
|
|
224
|
-
{
|
|
225
|
-
readonly allowRegexCharacters: readonly [
|
|
226
|
-
"-"
|
|
227
|
-
];
|
|
228
|
-
}
|
|
229
|
-
];
|
|
230
|
-
readonly "no-useless-rename": State.WARN;
|
|
231
|
-
readonly "no-useless-return": State.WARN;
|
|
232
|
-
readonly "no-var": State.WARN;
|
|
233
|
-
readonly "no-void": readonly [
|
|
234
|
-
State.ON,
|
|
235
|
-
{
|
|
236
|
-
readonly allowAsStatement: true;
|
|
237
|
-
}
|
|
238
|
-
];
|
|
239
|
-
readonly "no-with": State.ON;
|
|
240
|
-
readonly "object-shorthand": State.WARN;
|
|
241
|
-
readonly "one-var": readonly [
|
|
242
|
-
State.WARN,
|
|
243
|
-
{
|
|
244
|
-
readonly var: "consecutive";
|
|
245
|
-
readonly let: "consecutive";
|
|
246
|
-
readonly const: "consecutive";
|
|
247
|
-
readonly using: "consecutive";
|
|
248
|
-
readonly awaitUsing: "consecutive";
|
|
249
|
-
readonly separateRequires: true;
|
|
250
|
-
}
|
|
251
|
-
];
|
|
252
|
-
readonly "operator-assignment": State.WARN;
|
|
253
|
-
readonly "prefer-arrow-callback": State.WARN;
|
|
254
|
-
readonly "prefer-const": readonly [
|
|
255
|
-
State.WARN,
|
|
256
|
-
{
|
|
257
|
-
readonly destructuring: "all";
|
|
258
|
-
}
|
|
259
|
-
];
|
|
260
|
-
readonly "prefer-exponentiation-operator": State.WARN;
|
|
261
|
-
readonly "prefer-numeric-literals": State.WARN;
|
|
262
|
-
readonly "prefer-object-has-own": State.WARN;
|
|
263
|
-
readonly "prefer-object-spread": State.WARN;
|
|
264
|
-
readonly "prefer-promise-reject-errors": State.WARN;
|
|
265
|
-
readonly "prefer-regex-literals": readonly [
|
|
266
|
-
State.WARN,
|
|
267
|
-
{
|
|
268
|
-
readonly disallowRedundantWrapping: true;
|
|
269
|
-
}
|
|
270
|
-
];
|
|
271
|
-
readonly "prefer-rest-params": State.WARN;
|
|
272
|
-
readonly "prefer-spread": State.WARN;
|
|
273
|
-
readonly "preserve-caught-error": readonly [
|
|
274
|
-
State.ON,
|
|
275
|
-
{
|
|
276
|
-
readonly requireCatchParameter: true;
|
|
277
|
-
}
|
|
278
|
-
];
|
|
279
|
-
readonly radix: State.ON;
|
|
280
|
-
readonly "require-await": State.ON;
|
|
281
|
-
readonly "require-unicode-regexp": State.ON;
|
|
282
|
-
readonly "require-yield": State.ON;
|
|
283
|
-
readonly "vars-on-top": State.WARN;
|
|
284
|
-
readonly yoda: State.WARN;
|
|
285
|
-
readonly "unicode-bom": State.WARN;
|
|
286
|
-
};
|
|
287
|
-
};
|
|
288
|
-
export default _default;
|
|
289
|
-
//# sourceMappingURL=js.eslint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"js.eslint.d.ts","sourceRoot":"","sources":["../../src/rules/js.eslint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhC,wBAwVE"}
|