@eslinted/defaults 12.8.1 → 12.10.0
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/ignores/global.js +0 -2
- package/dist/ignores/global.js.map +1 -1
- package/dist/index.d.ts +60 -572
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +60 -385
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.d.ts +2 -9
- package/dist/rules/scopes/css/enable.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.js +3 -17
- package/dist/rules/scopes/css/enable.js.map +1 -1
- package/dist/rules/scopes/css/index.d.ts +2 -9
- package/dist/rules/scopes/css/index.d.ts.map +1 -1
- package/dist/rules/scopes/enable.d.ts +35 -184
- package/dist/rules/scopes/enable.d.ts.map +1 -1
- package/dist/rules/scopes/enable.js +68 -326
- package/dist/rules/scopes/enable.js.map +1 -1
- package/dist/rules/scopes/enable.style.d.ts +18 -121
- package/dist/rules/scopes/enable.style.d.ts.map +1 -1
- package/dist/rules/scopes/enable.style.js +31 -204
- package/dist/rules/scopes/enable.style.js.map +1 -1
- package/dist/rules/scopes/html/index.d.ts +5 -31
- package/dist/rules/scopes/html/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.d.ts +5 -31
- package/dist/rules/scopes/html/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.js +7 -61
- package/dist/rules/scopes/html/plugin/index.js.map +1 -1
- package/dist/rules/scopes/index.d.ts +53 -305
- package/dist/rules/scopes/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable.d.ts +0 -2
- package/dist/rules/scopes/json/enable.d.ts.map +1 -1
- package/dist/rules/scopes/json/enable.js +2 -5
- package/dist/rules/scopes/json/enable.js.map +1 -1
- package/dist/rules/scopes/json/index.d.ts +0 -7
- package/dist/rules/scopes/json/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/plugin/extension.d.ts +0 -1
- package/dist/rules/scopes/json/plugin/extension.d.ts.map +1 -1
- package/dist/rules/scopes/json/plugin/extension.js +7 -10
- package/dist/rules/scopes/json/plugin/extension.js.map +1 -1
- package/dist/rules/scopes/json/plugin/index.d.ts +0 -4
- package/dist/rules/scopes/json/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/plugin/index.js +2 -7
- package/dist/rules/scopes/json/plugin/index.js.map +1 -1
- package/dist/rules/scopes/jsonc/plugin/index.js +1 -2
- package/dist/rules/scopes/jsonc/plugin/index.js.map +1 -1
- package/dist/rules/scopes/jsoncc/plugin/index.js +1 -2
- package/dist/rules/scopes/jsoncc/plugin/index.js.map +1 -1
- package/dist/rules/scopes/mocha/chai/expect.d.ts +0 -1
- package/dist/rules/scopes/mocha/chai/expect.d.ts.map +1 -1
- package/dist/rules/scopes/mocha/chai/expect.js +1 -3
- package/dist/rules/scopes/mocha/chai/expect.js.map +1 -1
- package/dist/rules/scopes/mocha/chai/index.js +1 -2
- package/dist/rules/scopes/mocha/chai/index.js.map +1 -1
- package/dist/rules/scopes/mocha/disable.js +2 -3
- package/dist/rules/scopes/mocha/disable.js.map +1 -1
- package/dist/rules/scopes/mocha/enable.d.ts +0 -8
- package/dist/rules/scopes/mocha/enable.d.ts.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +2 -11
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/mocha/index.d.ts +0 -9
- package/dist/rules/scopes/mocha/index.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/disable.js +6 -9
- package/dist/rules/scopes/svelte/disable.js.map +1 -1
- package/dist/rules/scopes/svelte/enable.d.ts +0 -3
- package/dist/rules/scopes/svelte/enable.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/enable.js +14 -35
- package/dist/rules/scopes/svelte/enable.js.map +1 -1
- package/dist/rules/scopes/svelte/extension/disable.js +2 -3
- package/dist/rules/scopes/svelte/extension/disable.js.map +1 -1
- package/dist/rules/scopes/svelte/extension/index.js +2 -3
- package/dist/rules/scopes/svelte/extension/index.js.map +1 -1
- package/dist/rules/scopes/svelte/index.d.ts +0 -3
- package/dist/rules/scopes/svelte/index.d.ts.map +1 -1
- package/dist/rules/scopes/ts/disable.js +4 -5
- package/dist/rules/scopes/ts/disable.js.map +1 -1
- package/dist/rules/scopes/ts/enable.d.ts +3 -17
- package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
- package/dist/rules/scopes/ts/enable.js +11 -35
- package/dist/rules/scopes/ts/enable.js.map +1 -1
- package/dist/rules/scopes/ts/extension/disable.js +1 -18
- package/dist/rules/scopes/ts/extension/disable.js.map +1 -1
- package/dist/rules/scopes/ts/extension/index.d.ts +0 -1
- package/dist/rules/scopes/ts/extension/index.d.ts.map +1 -1
- package/dist/rules/scopes/ts/extension/index.js +1 -20
- package/dist/rules/scopes/ts/extension/index.js.map +1 -1
- package/dist/rules/scopes/ts/index.d.ts +0 -15
- package/dist/rules/scopes/ts/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/index.d.ts +0 -6
- package/dist/rules/scopes/yml/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/plugin/extension.js +8 -9
- package/dist/rules/scopes/yml/plugin/extension.js.map +1 -1
- package/dist/rules/scopes/yml/plugin/index.d.ts +0 -6
- package/dist/rules/scopes/yml/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/plugin/index.js +9 -26
- package/dist/rules/scopes/yml/plugin/index.js.map +1 -1
- package/dist/settings/registry/manifests/css.js +1 -3
- package/dist/settings/registry/manifests/css.js.map +1 -1
- package/dist/settings/registry/manifests/html.js +1 -2
- package/dist/settings/registry/manifests/html.js.map +1 -1
- package/dist/settings/registry/manifests/js.js +2 -6
- package/dist/settings/registry/manifests/js.js.map +1 -1
- package/dist/settings/registry/manifests/json.js +2 -2
- package/dist/settings/registry/manifests/json.js.map +1 -1
- package/dist/settings/registry/manifests/jsonc.js +2 -6
- package/dist/settings/registry/manifests/jsonc.js.map +1 -1
- package/dist/settings/registry/manifests/jsoncc.js +2 -6
- package/dist/settings/registry/manifests/jsoncc.js.map +1 -1
- package/dist/settings/registry/manifests/mocha.js +2 -6
- package/dist/settings/registry/manifests/mocha.js.map +1 -1
- package/dist/settings/registry/manifests/ts.js +7 -20
- package/dist/settings/registry/manifests/ts.js.map +1 -1
- package/dist/settings/registry/manifests/yml.js +1 -4
- package/dist/settings/registry/manifests/yml.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/scopes/css/enable.ts +5 -16
- package/src/rules/scopes/enable.style.ts +56 -182
- package/src/rules/scopes/enable.ts +141 -316
- package/src/rules/scopes/html/plugin/index.ts +32 -54
- package/src/rules/scopes/json/enable.ts +3 -3
- package/src/rules/scopes/json/plugin/extension.ts +2 -2
- package/src/rules/scopes/json/plugin/index.ts +5 -5
- package/src/rules/scopes/mocha/chai/expect.ts +2 -2
- package/src/rules/scopes/mocha/enable.ts +9 -9
- package/src/rules/scopes/svelte/enable.ts +4 -4
- package/src/rules/scopes/ts/enable.ts +15 -15
- package/src/rules/scopes/ts/extension/index.ts +2 -2
- package/src/rules/scopes/yml/plugin/index.ts +7 -7
- package/tsconfig.json +2 -2
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
|
-
never,
|
|
6
5
|
} from "../../../_strings";
|
|
7
6
|
|
|
8
7
|
export const HtmlEnablePlugin = {
|
|
@@ -10,48 +9,37 @@ export const HtmlEnablePlugin = {
|
|
|
10
9
|
rules: {
|
|
11
10
|
// #region BEST PRACTICE
|
|
12
11
|
// DOC: https://html-eslint.org/docs/rules#best-practice
|
|
13
|
-
"@html-eslint/max-element-depth": OFF /* @preference: simply do not care */,
|
|
12
|
+
// "@html-eslint/max-element-depth": OFF /* @preference: simply do not care */,
|
|
14
13
|
"@html-eslint/no-duplicate-attrs": ON,
|
|
15
14
|
"@html-eslint/no-duplicate-class": ON,
|
|
16
15
|
"@html-eslint/no-duplicate-id": ON,
|
|
17
16
|
"@html-eslint/no-duplicate-in-head": ON,
|
|
18
|
-
"@html-eslint/no-inline-styles": OFF /* @CONFLICT: breaks Svelte app.html */,
|
|
17
|
+
// "@html-eslint/no-inline-styles": OFF /* @CONFLICT: breaks Svelte app.html */,
|
|
19
18
|
"@html-eslint/no-invalid-entity": ON,
|
|
20
19
|
"@html-eslint/no-nested-interactive": ON,
|
|
21
20
|
"@html-eslint/no-obsolete-tags": ON,
|
|
22
|
-
"@html-eslint/no-restricted-attr-values": OFF,
|
|
23
|
-
"@html-eslint/no-restricted-attrs": OFF,
|
|
24
|
-
"@html-eslint/no-script-style-type": OFF,
|
|
21
|
+
// "@html-eslint/no-restricted-attr-values": OFF,
|
|
22
|
+
// "@html-eslint/no-restricted-attrs": OFF,
|
|
23
|
+
// "@html-eslint/no-script-style-type": OFF,
|
|
25
24
|
"@html-eslint/no-target-blank": ON,
|
|
26
|
-
"@html-eslint/prefer-https": OFF /* @CONFLICT: not everything is https */,
|
|
27
|
-
"@html-eslint/require-attrs": OFF,
|
|
25
|
+
// "@html-eslint/prefer-https": OFF /* @CONFLICT: not everything is https */,
|
|
26
|
+
// "@html-eslint/require-attrs": OFF,
|
|
28
27
|
"@html-eslint/require-button-type": ON,
|
|
29
|
-
"@html-eslint/require-closing-tags":
|
|
30
|
-
ON,
|
|
31
|
-
{
|
|
32
|
-
selfClosing: never,
|
|
33
|
-
selfClosingCustomPatterns: [""] /* @CONFIGURE: regex[] = custom pattern */,
|
|
34
|
-
},
|
|
35
|
-
],
|
|
28
|
+
"@html-eslint/require-closing-tags": ON,
|
|
36
29
|
"@html-eslint/require-doctype": ON,
|
|
37
|
-
"@html-eslint/require-explicit-size": OFF /* preference, prefer using css */,
|
|
30
|
+
// "@html-eslint/require-explicit-size": OFF /* preference, prefer using css */,
|
|
38
31
|
"@html-eslint/require-li-container": ON,
|
|
39
32
|
"@html-eslint/require-meta-charset": ON,
|
|
40
|
-
"@html-eslint/use-baseline":
|
|
41
|
-
ON,
|
|
42
|
-
{
|
|
43
|
-
available: "widely" /* "widely" | "newly" | integer (year) */,
|
|
44
|
-
},
|
|
45
|
-
],
|
|
33
|
+
"@html-eslint/use-baseline": ON,
|
|
46
34
|
// #endregion
|
|
47
35
|
|
|
48
36
|
// #region SEO
|
|
49
37
|
// DOC: https://html-eslint.org/docs/rules#seo
|
|
50
38
|
"@html-eslint/no-multiple-h1": ON,
|
|
51
39
|
"@html-eslint/require-lang": ON,
|
|
52
|
-
"@html-eslint/require-meta-description": OFF /* @CONFLICT: breaks Svelte which leaves meta descriptions to route leaves */,
|
|
53
|
-
"@html-eslint/require-open-graph-protocol": OFF /* idk what this is, also it probably breaks Svelte */,
|
|
54
|
-
"@html-eslint/require-title": OFF /* @CONFLICT: breaks Svelte which leaves title to route leaves */,
|
|
40
|
+
// "@html-eslint/require-meta-description": OFF /* @CONFLICT: breaks Svelte which leaves meta descriptions to route leaves */,
|
|
41
|
+
// "@html-eslint/require-open-graph-protocol": OFF /* idk what this is, also it probably breaks Svelte */,
|
|
42
|
+
// "@html-eslint/require-title": OFF /* @CONFLICT: breaks Svelte which leaves title to route leaves */,
|
|
55
43
|
// #endregion
|
|
56
44
|
|
|
57
45
|
// #region ACCESSIBILITY
|
|
@@ -68,12 +56,7 @@ export const HtmlEnablePlugin = {
|
|
|
68
56
|
"@html-eslint/no-skip-heading-levels": ON,
|
|
69
57
|
"@html-eslint/require-form-method": ON,
|
|
70
58
|
"@html-eslint/require-frame-title": ON,
|
|
71
|
-
"@html-eslint/require-img-alt":
|
|
72
|
-
ON,
|
|
73
|
-
{
|
|
74
|
-
substitute: [],
|
|
75
|
-
},
|
|
76
|
-
],
|
|
59
|
+
"@html-eslint/require-img-alt": ON,
|
|
77
60
|
"@html-eslint/require-input-label": ON,
|
|
78
61
|
"@html-eslint/require-meta-viewport": ON,
|
|
79
62
|
// #endregion
|
|
@@ -84,7 +67,7 @@ export const HtmlEnablePlugin = {
|
|
|
84
67
|
ON,
|
|
85
68
|
{
|
|
86
69
|
ifAttrsMoreThan: 0,
|
|
87
|
-
closeStyle: "newline"
|
|
70
|
+
// closeStyle: "newline" /* sameline | @default newline */,
|
|
88
71
|
},
|
|
89
72
|
],
|
|
90
73
|
"@html-eslint/element-newline": [
|
|
@@ -94,42 +77,37 @@ export const HtmlEnablePlugin = {
|
|
|
94
77
|
inline: ["$inline"],
|
|
95
78
|
},
|
|
96
79
|
],
|
|
97
|
-
"@html-eslint/id-naming-convention": OFF,
|
|
80
|
+
// "@html-eslint/id-naming-convention": OFF,
|
|
98
81
|
"@html-eslint/indent": [
|
|
99
82
|
ON,
|
|
100
|
-
2
|
|
83
|
+
2 /* tab | number | @default 4 */,
|
|
84
|
+
// {
|
|
85
|
+
// Attribute: 1 /* number | @default 1 */,
|
|
86
|
+
// tagChildrenIndent: {
|
|
87
|
+
// html: 0 /* number */,
|
|
88
|
+
// } /* @default {} */,
|
|
89
|
+
// },
|
|
101
90
|
] /* TBD: @CONFIGURE: indents for specific child tags: https://html-eslint.org/docs/rules/indent */,
|
|
102
91
|
"@html-eslint/lowercase": ON,
|
|
103
92
|
"@html-eslint/no-extra-spacing-attrs": [
|
|
104
93
|
ON,
|
|
105
94
|
{
|
|
106
|
-
enforceBeforeSelfClose: false
|
|
107
|
-
disallowMissing: true
|
|
108
|
-
disallowTabs: true
|
|
109
|
-
disallowInAssignment: true
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
"@html-eslint/no-extra-spacing-text": [
|
|
113
|
-
ON,
|
|
114
|
-
{
|
|
115
|
-
skip: [],
|
|
95
|
+
// enforceBeforeSelfClose: false /* @default false */,
|
|
96
|
+
disallowMissing: true /* @default false */,
|
|
97
|
+
disallowTabs: true /* @default false */,
|
|
98
|
+
disallowInAssignment: true /* @default false */,
|
|
116
99
|
},
|
|
117
100
|
],
|
|
101
|
+
"@html-eslint/no-extra-spacing-text": ON,
|
|
118
102
|
"@html-eslint/no-multiple-empty-lines": [
|
|
119
103
|
ON,
|
|
120
104
|
{
|
|
121
|
-
max: 1
|
|
105
|
+
max: 1 /* number | @default 2 */,
|
|
122
106
|
},
|
|
123
107
|
],
|
|
124
108
|
"@html-eslint/no-trailing-spaces": ON,
|
|
125
|
-
"@html-eslint/quotes":
|
|
126
|
-
|
|
127
|
-
"double",
|
|
128
|
-
{
|
|
129
|
-
enforceTemplatedAttrValue: false,
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
"@html-eslint/sort-attrs": OFF,
|
|
109
|
+
"@html-eslint/quotes": ON,
|
|
110
|
+
// "@html-eslint/sort-attrs": OFF,
|
|
133
111
|
// #endregion
|
|
134
112
|
} as const,
|
|
135
113
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
} from "../../_strings";
|
|
6
6
|
|
|
@@ -9,10 +9,10 @@ export const JsonEnable = {
|
|
|
9
9
|
rules: {
|
|
10
10
|
// DOC: https://github.com/eslint/json?tab=readme-ov-file#rules
|
|
11
11
|
"json/no-duplicate-keys": ON /* replaces jsonc/no-dupe-keys */,
|
|
12
|
-
"json/no-empty-keys": OFF /* preference: I use empty keys or keys with only whitespace sometimes, as does `package-lock.json` per DOC: "jsonc/no-dupe-keys": ON /* ESLint: json/no-duplicate-keys */,
|
|
12
|
+
// "json/no-empty-keys": OFF /* preference: I use empty keys or keys with only whitespace sometimes, as does `package-lock.json` per DOC: "jsonc/no-dupe-keys": ON /* ESLint: json/no-duplicate-keys */,
|
|
13
13
|
"json/no-unsafe-values": ON,
|
|
14
14
|
"json/no-unnormalized-keys": ON,
|
|
15
|
-
"json/sort-keys": OFF /* replaces jsonc/sort-keys BUT preference: I don't like sorting keys, it makes diffs harder to read, and I don't see the point of it in JSON */,
|
|
15
|
+
// "json/sort-keys": OFF /* replaces jsonc/sort-keys BUT preference: I don't like sorting keys, it makes diffs harder to read, and I don't see the point of it in JSON */,
|
|
16
16
|
"json/top-level-interop": ON,
|
|
17
17
|
} as const,
|
|
18
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
always,
|
|
6
6
|
consistent,
|
|
@@ -14,7 +14,7 @@ export const JsonEnablePluginExtension = {
|
|
|
14
14
|
id: ID.Enable.Plugin.Extension,
|
|
15
15
|
rules: {
|
|
16
16
|
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
|
17
|
-
"jsonc/array-bracket-newline": OFF /* @OVERRIDE: BIGGER BUG: i mean this basically just doesn't work, even with multiple lines it will still fail| BUG: the spec says: `requires line breaks if the number of elements is at least the given integer. If this is 0, this condition will act the same as the option "always". If this is null (the default), this condition is disabled`. However, when null, the jsonc plugin actually errors when there are linebreaks with a single item | (was: MUST match @stylistic/array-bracket-newline) */,
|
|
17
|
+
// "jsonc/array-bracket-newline": OFF /* @OVERRIDE: BIGGER BUG: i mean this basically just doesn't work, even with multiple lines it will still fail| BUG: the spec says: `requires line breaks if the number of elements is at least the given integer. If this is 0, this condition will act the same as the option "always". If this is null (the default), this condition is disabled`. However, when null, the jsonc plugin actually errors when there are linebreaks with a single item | (was: MUST match @stylistic/array-bracket-newline) */,
|
|
18
18
|
"jsonc/array-bracket-spacing": [
|
|
19
19
|
ON,
|
|
20
20
|
never,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
} from "../../../_strings";
|
|
6
6
|
|
|
@@ -8,8 +8,8 @@ export const JsonEnablePlugin = {
|
|
|
8
8
|
id: ID.Enable.Plugin.Plugin,
|
|
9
9
|
rules: {
|
|
10
10
|
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
|
|
11
|
-
"jsonc/auto": OFF,
|
|
12
|
-
"jsonc/key-name-casing": OFF,
|
|
11
|
+
// "jsonc/auto": OFF,
|
|
12
|
+
// "jsonc/key-name-casing": OFF,
|
|
13
13
|
"jsonc/no-bigint-literals": ON,
|
|
14
14
|
"jsonc/no-binary-expression": ON,
|
|
15
15
|
"jsonc/no-binary-numeric-literals": ON,
|
|
@@ -27,8 +27,8 @@ export const JsonEnablePlugin = {
|
|
|
27
27
|
"jsonc/no-template-literals": ON,
|
|
28
28
|
"jsonc/no-undefined-value": ON,
|
|
29
29
|
"jsonc/no-unicode-codepoint-escapes": ON,
|
|
30
|
-
"jsonc/sort-array-values": OFF /* preference: this makes no sense, arrays can be ordered */,
|
|
31
|
-
"jsonc/sort-keys": OFF /* ESLint: json/sort-keys BUT preference: only sort keys manually when I'd like */,
|
|
30
|
+
// "jsonc/sort-array-values": OFF /* preference: this makes no sense, arrays can be ordered */,
|
|
31
|
+
// "jsonc/sort-keys": OFF /* ESLint: json/sort-keys BUT preference: only sort keys manually when I'd like */,
|
|
32
32
|
"jsonc/valid-json-number": ON,
|
|
33
33
|
"jsonc/vue-custom-block/no-parsing-error": ON,
|
|
34
34
|
} as const,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
} from "../../../_strings";
|
|
6
6
|
|
|
@@ -11,6 +11,6 @@ export const MochaEnablePluginChaiExpect = {
|
|
|
11
11
|
"chai-expect/no-inner-compare": ON,
|
|
12
12
|
"chai-expect/no-inner-literal": ON,
|
|
13
13
|
"chai-expect/missing-assertion": ON,
|
|
14
|
-
"chai-expect/terminating-properties": OFF,
|
|
14
|
+
// "chai-expect/terminating-properties": OFF,
|
|
15
15
|
} as const,
|
|
16
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
} from "../../_strings";
|
|
6
6
|
|
|
@@ -8,8 +8,8 @@ export const MochaEnable = {
|
|
|
8
8
|
id: ID.Enable.Enable,
|
|
9
9
|
rules: {
|
|
10
10
|
// DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
|
|
11
|
-
"mocha/consistent-interface": OFF
|
|
12
|
-
"mocha/consistent-spacing-between-blocks": OFF,
|
|
11
|
+
// "mocha/consistent-interface": OFF /* unable, must choose BDD or TDD first */,
|
|
12
|
+
// "mocha/consistent-spacing-between-blocks": OFF,
|
|
13
13
|
"mocha/handle-done-callback": [
|
|
14
14
|
ON,
|
|
15
15
|
{
|
|
@@ -27,17 +27,17 @@ export const MochaEnable = {
|
|
|
27
27
|
"mocha/no-exclusive-tests": ON,
|
|
28
28
|
"mocha/no-exports": ON,
|
|
29
29
|
"mocha/no-global-tests": ON,
|
|
30
|
-
"mocha/no-hooks-for-single-case": OFF,
|
|
31
|
-
"mocha/no-hooks": OFF,
|
|
30
|
+
// "mocha/no-hooks-for-single-case": OFF,
|
|
31
|
+
// "mocha/no-hooks": OFF,
|
|
32
32
|
"mocha/no-identical-title": ON,
|
|
33
33
|
"mocha/no-mocha-arrows": ON,
|
|
34
34
|
"mocha/no-nested-tests": ON,
|
|
35
35
|
"mocha/no-pending-tests": ON,
|
|
36
36
|
"mocha/no-return-and-callback": ON,
|
|
37
37
|
"mocha/no-return-from-async": ON,
|
|
38
|
-
"mocha/no-setup-in-describe": OFF /* pointless and arbitrary */,
|
|
38
|
+
// "mocha/no-setup-in-describe": OFF /* pointless and arbitrary */,
|
|
39
39
|
"mocha/no-sibling-hooks": ON,
|
|
40
|
-
"mocha/no-synchronous-tests": OFF,
|
|
40
|
+
// "mocha/no-synchronous-tests": OFF,
|
|
41
41
|
"mocha/no-top-level-hooks": ON,
|
|
42
42
|
"mocha/prefer-arrow-callback": [
|
|
43
43
|
ON,
|
|
@@ -46,7 +46,7 @@ export const MochaEnable = {
|
|
|
46
46
|
allowUnboundThis: true,
|
|
47
47
|
},
|
|
48
48
|
] /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
|
|
49
|
-
"mocha/valid-suite-title": OFF /* preference */,
|
|
50
|
-
"mocha/valid-test-title": OFF /* preference */,
|
|
49
|
+
// "mocha/valid-suite-title": OFF /* preference */,
|
|
50
|
+
// "mocha/valid-test-title": OFF /* preference */,
|
|
51
51
|
} as const,
|
|
52
52
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
all,
|
|
6
6
|
always,
|
|
@@ -105,7 +105,7 @@ export const SvelteEnable = {
|
|
|
105
105
|
allowReassign: false,
|
|
106
106
|
},
|
|
107
107
|
],
|
|
108
|
-
"svelte/no-unused-class-name": OFF /* incompatible: breaks if css class is located in another file; BUG: ESLint error if array empty */,
|
|
108
|
+
// "svelte/no-unused-class-name": OFF /* incompatible: breaks if css class is located in another file; BUG: ESLint error if array empty */,
|
|
109
109
|
"svelte/no-unused-props": [
|
|
110
110
|
ON,
|
|
111
111
|
{
|
|
@@ -229,7 +229,7 @@ export const SvelteEnable = {
|
|
|
229
229
|
},
|
|
230
230
|
],
|
|
231
231
|
"svelte/no-extra-reactive-curlies": ON,
|
|
232
|
-
"svelte/no-restricted-html-elements": OFF,
|
|
232
|
+
// "svelte/no-restricted-html-elements": OFF,
|
|
233
233
|
"svelte/no-spaces-around-equal-signs-in-attribute": ON,
|
|
234
234
|
"svelte/prefer-class-directive": [
|
|
235
235
|
ON,
|
|
@@ -256,7 +256,7 @@ export const SvelteEnable = {
|
|
|
256
256
|
prefer: always,
|
|
257
257
|
},
|
|
258
258
|
],
|
|
259
|
-
"svelte/sort-attributes": OFF /* INVESTIGATE: */,
|
|
259
|
+
// "svelte/sort-attributes": OFF /* INVESTIGATE: */,
|
|
260
260
|
"svelte/spaced-html-comment": [
|
|
261
261
|
ON,
|
|
262
262
|
always,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
never,
|
|
6
6
|
explicit,
|
|
@@ -10,8 +10,8 @@ export const TsEnable = {
|
|
|
10
10
|
id: ID.Enable.Enable,
|
|
11
11
|
rules: {
|
|
12
12
|
// DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
|
13
|
-
"@typescript-eslint/adjacent-overload-signatures": OFF,
|
|
14
|
-
"@typescript-eslint/array-type": 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 */,
|
|
13
|
+
// "@typescript-eslint/adjacent-overload-signatures": OFF,
|
|
14
|
+
// "@typescript-eslint/array-type": 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 */,
|
|
15
15
|
"@typescript-eslint/await-thenable": ON,
|
|
16
16
|
"@typescript-eslint/ban-ts-comment": [
|
|
17
17
|
ON,
|
|
@@ -46,7 +46,7 @@ export const TsEnable = {
|
|
|
46
46
|
objectLiteralTypeAssertions: never,
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
|
-
"@typescript-eslint/consistent-type-definitions": OFF,
|
|
49
|
+
// "@typescript-eslint/consistent-type-definitions": OFF,
|
|
50
50
|
"@typescript-eslint/consistent-type-exports": [
|
|
51
51
|
ON,
|
|
52
52
|
{
|
|
@@ -61,7 +61,7 @@ export const TsEnable = {
|
|
|
61
61
|
prefer: "type-imports",
|
|
62
62
|
},
|
|
63
63
|
],
|
|
64
|
-
"@typescript-eslint/explicit-function-return-type": OFF,
|
|
64
|
+
// "@typescript-eslint/explicit-function-return-type": OFF,
|
|
65
65
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
66
66
|
ON,
|
|
67
67
|
{
|
|
@@ -76,7 +76,7 @@ export const TsEnable = {
|
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
78
|
],
|
|
79
|
-
"@typescript-eslint/explicit-module-boundary-types": OFF,
|
|
79
|
+
// "@typescript-eslint/explicit-module-boundary-types": OFF,
|
|
80
80
|
"@typescript-eslint/member-ordering": [
|
|
81
81
|
ON,
|
|
82
82
|
{
|
|
@@ -250,7 +250,7 @@ export const TsEnable = {
|
|
|
250
250
|
ON,
|
|
251
251
|
"property",
|
|
252
252
|
],
|
|
253
|
-
"@typescript-eslint/naming-convention": OFF,
|
|
253
|
+
// "@typescript-eslint/naming-convention": OFF,
|
|
254
254
|
"@typescript-eslint/no-array-delete": ON,
|
|
255
255
|
"@typescript-eslint/no-base-to-string": [
|
|
256
256
|
ON,
|
|
@@ -273,7 +273,7 @@ export const TsEnable = {
|
|
|
273
273
|
ignoreVoidReturningFunctions: true,
|
|
274
274
|
},
|
|
275
275
|
],
|
|
276
|
-
"@typescript-eslint/no-deprecated": OFF /* incompatible: Cannot be used with jsDocParsingMode: "none" */,
|
|
276
|
+
// "@typescript-eslint/no-deprecated": OFF /* incompatible: Cannot be used with jsDocParsingMode: "none" */,
|
|
277
277
|
"@typescript-eslint/no-duplicate-enum-values": ON,
|
|
278
278
|
"@typescript-eslint/no-duplicate-type-constituents": [
|
|
279
279
|
ON,
|
|
@@ -360,12 +360,12 @@ export const TsEnable = {
|
|
|
360
360
|
},
|
|
361
361
|
],
|
|
362
362
|
"@typescript-eslint/no-mixed-enums": ON,
|
|
363
|
-
"@typescript-eslint/no-namespace": OFF,
|
|
363
|
+
// "@typescript-eslint/no-namespace": OFF,
|
|
364
364
|
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": ON,
|
|
365
365
|
"@typescript-eslint/no-non-null-asserted-optional-chain": ON,
|
|
366
|
-
"@typescript-eslint/no-non-null-assertion": OFF /* preference */,
|
|
366
|
+
// "@typescript-eslint/no-non-null-assertion": OFF /* preference */,
|
|
367
367
|
"@typescript-eslint/no-redundant-type-constituents": ON,
|
|
368
|
-
"@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban */,
|
|
368
|
+
// "@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban */,
|
|
369
369
|
"@typescript-eslint/no-require-imports": [
|
|
370
370
|
ON,
|
|
371
371
|
{
|
|
@@ -415,11 +415,11 @@ export const TsEnable = {
|
|
|
415
415
|
"@typescript-eslint/no-unsafe-function-type": ON,
|
|
416
416
|
"@typescript-eslint/no-unsafe-member-access": ON,
|
|
417
417
|
"@typescript-eslint/no-unsafe-return": ON,
|
|
418
|
-
"@typescript-eslint/no-unsafe-type-assertion": OFF,
|
|
418
|
+
// "@typescript-eslint/no-unsafe-type-assertion": OFF,
|
|
419
419
|
"@typescript-eslint/no-unsafe-unary-minus": ON,
|
|
420
420
|
"@typescript-eslint/no-useless-empty-export": ON,
|
|
421
421
|
"@typescript-eslint/no-wrapper-object-types": ON,
|
|
422
|
-
"@typescript-eslint/non-nullable-type-assertion-style": OFF /* preference */,
|
|
422
|
+
// "@typescript-eslint/non-nullable-type-assertion-style": OFF /* preference */,
|
|
423
423
|
"@typescript-eslint/parameter-properties": [
|
|
424
424
|
ON,
|
|
425
425
|
{
|
|
@@ -475,7 +475,7 @@ export const TsEnable = {
|
|
|
475
475
|
onlyInlineLambdas: false,
|
|
476
476
|
},
|
|
477
477
|
],
|
|
478
|
-
"@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
|
|
478
|
+
// "@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
|
|
479
479
|
"@typescript-eslint/prefer-reduce-type-parameter": ON,
|
|
480
480
|
"@typescript-eslint/prefer-regexp-exec": ON,
|
|
481
481
|
"@typescript-eslint/prefer-return-this-type": ON,
|
|
@@ -560,7 +560,7 @@ export const TsEnable = {
|
|
|
560
560
|
types: never /** always | never | prefer-import */,
|
|
561
561
|
},
|
|
562
562
|
],
|
|
563
|
-
"@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
|
563
|
+
// "@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
|
|
564
564
|
"@typescript-eslint/unbound-method": [
|
|
565
565
|
ON,
|
|
566
566
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
all,
|
|
6
6
|
} from "../../../_strings";
|
|
@@ -33,7 +33,7 @@ export const TsEnableExtension = {
|
|
|
33
33
|
// "@typescript-eslint/no-loop-func": OFF /* ESLint now supports TS */,
|
|
34
34
|
// "@typescript-eslint/no-magic-numbers": OFF /* preference, although ESLint now supports TS */,
|
|
35
35
|
// "@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
|
|
36
|
-
"@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
|
36
|
+
// "@typescript-eslint/no-restricted-imports": OFF /* preference */,
|
|
37
37
|
// "@typescript-eslint/no-shadow": OFF /* ESLint now supports TS (was: investigate) */,
|
|
38
38
|
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS (preference -- eslint:OFF) */,
|
|
39
39
|
"@typescript-eslint/no-unused-vars": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
always,
|
|
6
6
|
double,
|
|
@@ -42,7 +42,7 @@ export const YmlEnablePlugin = {
|
|
|
42
42
|
multiline: always /* @default always | never | ignore */,
|
|
43
43
|
},
|
|
44
44
|
],
|
|
45
|
-
"yml/file-extension": OFF,
|
|
45
|
+
// "yml/file-extension": OFF,
|
|
46
46
|
"yml/indent": [
|
|
47
47
|
ON,
|
|
48
48
|
2,
|
|
@@ -52,10 +52,10 @@ export const YmlEnablePlugin = {
|
|
|
52
52
|
indicatorValueIndent: 2 /* @default: number option */,
|
|
53
53
|
},
|
|
54
54
|
],
|
|
55
|
-
"yml/key-name-casing": OFF,
|
|
56
|
-
"yml/no-empty-document": OFF,
|
|
55
|
+
// "yml/key-name-casing": OFF,
|
|
56
|
+
// "yml/no-empty-document": OFF,
|
|
57
57
|
"yml/no-empty-key": ON,
|
|
58
|
-
"yml/no-empty-mapping-value": OFF /* PREFERENCE: breaks Home Assistant integration enablement shorthand style (would require a `{}` after) */,
|
|
58
|
+
// "yml/no-empty-mapping-value": OFF /* PREFERENCE: breaks Home Assistant integration enablement shorthand style (would require a `{}` after) */,
|
|
59
59
|
"yml/no-empty-sequence-entry": ON,
|
|
60
60
|
"yml/no-tab-indent": ON,
|
|
61
61
|
"yml/no-trailing-zeros": ON,
|
|
@@ -81,8 +81,8 @@ export const YmlEnablePlugin = {
|
|
|
81
81
|
},
|
|
82
82
|
],
|
|
83
83
|
"yml/require-string-key": ON,
|
|
84
|
-
"yml/sort-keys": OFF,
|
|
85
|
-
"yml/sort-sequence-values": OFF,
|
|
84
|
+
// "yml/sort-keys": OFF,
|
|
85
|
+
// "yml/sort-sequence-values": OFF,
|
|
86
86
|
"yml/vue-custom-block/no-parsing-error": ON,
|
|
87
87
|
} as const,
|
|
88
88
|
};
|
package/tsconfig.json
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"outDir": "dist",
|
|
77
77
|
// "outFile": "./",
|
|
78
78
|
// "preserveConstEnums": true,
|
|
79
|
-
|
|
79
|
+
"removeComments": true /* @OVERRIDE */,
|
|
80
80
|
"sourceMap": true,
|
|
81
81
|
// "sourceRoot": "",
|
|
82
82
|
// "stripInternal": true,
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
// "esModuleInterop": true,
|
|
100
100
|
"forceConsistentCasingInFileNames": true,
|
|
101
101
|
// "isolatedDeclarations": false,
|
|
102
|
-
|
|
102
|
+
"isolatedModules": true /* @OVERRIDE */,
|
|
103
103
|
// "preserveSymlinks": true,
|
|
104
104
|
"verbatimModuleSyntax": true,
|
|
105
105
|
// #endregion
|