@eslinted/defaults 12.8.0 → 12.9.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/index.d.ts +0 -60
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +0 -60
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.d.ts +0 -2
- package/dist/rules/scopes/css/enable.d.ts.map +1 -1
- package/dist/rules/scopes/css/enable.js +5 -3
- package/dist/rules/scopes/css/enable.js.map +1 -1
- package/dist/rules/scopes/css/index.d.ts +0 -2
- package/dist/rules/scopes/css/index.d.ts.map +1 -1
- package/dist/rules/scopes/enable.style.d.ts +0 -5
- package/dist/rules/scopes/enable.style.d.ts.map +1 -1
- package/dist/rules/scopes/enable.style.js +5 -5
- package/dist/rules/scopes/enable.style.js.map +1 -1
- package/dist/rules/scopes/html/index.d.ts +0 -13
- package/dist/rules/scopes/html/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.d.ts +0 -13
- package/dist/rules/scopes/html/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/html/plugin/index.js +16 -14
- package/dist/rules/scopes/html/plugin/index.js.map +1 -1
- package/dist/rules/scopes/index.d.ts +0 -5
- 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 +5 -3
- 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 +4 -2
- 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 +7 -5
- package/dist/rules/scopes/json/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 +4 -2
- package/dist/rules/scopes/mocha/chai/expect.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 +11 -9
- 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/enable.d.ts +0 -3
- package/dist/rules/scopes/svelte/enable.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/enable.js +6 -4
- package/dist/rules/scopes/svelte/enable.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/enable.d.ts +0 -14
- package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
- package/dist/rules/scopes/ts/enable.js +17 -15
- package/dist/rules/scopes/ts/enable.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 +4 -2
- 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/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 -7
- package/dist/rules/scopes/yml/plugin/index.js.map +1 -1
- package/package.json +13 -8
- package/src/rules/scopes/css/enable.ts +3 -3
- package/src/rules/scopes/enable.style.ts +5 -5
- package/src/rules/scopes/html/plugin/index.ts +14 -14
- 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/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$pkg": "2211.1
|
|
2
|
+
"$pkg": "2211.2.1",
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "12.
|
|
6
|
+
"version": "12.9.0",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"private": false,
|
|
9
9
|
"engineStrict": true,
|
|
@@ -26,18 +26,23 @@
|
|
|
26
26
|
"scripts": {
|
|
27
27
|
"clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .svelte-kit .eslintcache",
|
|
28
28
|
"prebuild": "npm run clean",
|
|
29
|
-
"build": "
|
|
29
|
+
"build": "cmd --% /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || npm run build-unix",
|
|
30
|
+
"build-unix": "if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi",
|
|
31
|
+
"build:ts": "tsc && ts-add-js-extension --dir=dist",
|
|
30
32
|
"build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
|
|
31
33
|
"postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
|
|
32
|
-
"lint": "eslint --cache --fix
|
|
34
|
+
"lint": "eslint --cache --fix",
|
|
33
35
|
"pretest": "npm run build",
|
|
34
|
-
"test": "mocha",
|
|
36
|
+
"test": "npm run --if-present test:mocha",
|
|
37
|
+
"test:mocha": "mocha",
|
|
35
38
|
"prestart": "npm test",
|
|
36
|
-
"start": "
|
|
39
|
+
"start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || npm run start-unix",
|
|
40
|
+
"start-unix": "if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi",
|
|
41
|
+
"start:ts": "node .",
|
|
37
42
|
"start:svelte": "vite preview --open",
|
|
38
43
|
"prepublishOnly": "npm test",
|
|
39
|
-
"postpublish": "cmd --% /c \"for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest\" || npm run postpublish
|
|
40
|
-
"postpublish
|
|
44
|
+
"postpublish": "cmd --% /c \"for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest\" || npm run postpublish-unix",
|
|
45
|
+
"postpublish-unix": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
|
|
41
46
|
"predeploy": "npm test",
|
|
42
47
|
"deploy": ""
|
|
43
48
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
} from "../../_strings";
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ export const CssEnable = {
|
|
|
14
14
|
"css/no-invalid-at-rule-placement": ON,
|
|
15
15
|
"css/no-invalid-at-rules": ON,
|
|
16
16
|
"css/no-invalid-named-grid-areas": ON,
|
|
17
|
-
"css/no-invalid-properties": OFF /* BUG: disabled with PREJUDICE (see commit: https://github.com/jimmy-zhening-luo/linted-defaults/commit/702e6632328813e84df92cade730469661ee85db) */,
|
|
17
|
+
// "css/no-invalid-properties": OFF /* BUG: disabled with PREJUDICE (see commit: https://github.com/jimmy-zhening-luo/linted-defaults/commit/702e6632328813e84df92cade730469661ee85db) */,
|
|
18
18
|
"css/prefer-logical-properties": [
|
|
19
19
|
ON,
|
|
20
20
|
{
|
|
@@ -37,6 +37,6 @@ export const CssEnable = {
|
|
|
37
37
|
available: "widely" /* 2023 | number (year) | `newly` | @default `widely` */,
|
|
38
38
|
},
|
|
39
39
|
],
|
|
40
|
-
"css/use-layers": OFF, /* not recommended by docs: https://github.com/eslint/css?tab=readme-ov-file#rules; also BUG: ESLint config inspector: css/use-layers: Invalid rule has no description [INVALID] */
|
|
40
|
+
// "css/use-layers": OFF, /* not recommended by docs: https://github.com/eslint/css?tab=readme-ov-file#rules; also BUG: ESLint config inspector: css/use-layers: Invalid rule has no description [INVALID] */
|
|
41
41
|
} as const,
|
|
42
42
|
};
|
|
@@ -236,8 +236,8 @@ export const EnableStyle = {
|
|
|
236
236
|
overrides: {},
|
|
237
237
|
},
|
|
238
238
|
],
|
|
239
|
-
"@stylistic/line-comment-position": OFF,
|
|
240
|
-
"@stylistic/lines-around-comment": OFF,
|
|
239
|
+
// "@stylistic/line-comment-position": OFF,
|
|
240
|
+
// "@stylistic/lines-around-comment": OFF,
|
|
241
241
|
"@stylistic/lines-between-class-members": [
|
|
242
242
|
ON,
|
|
243
243
|
{
|
|
@@ -297,7 +297,7 @@ export const EnableStyle = {
|
|
|
297
297
|
multilineDetection: "brackets",
|
|
298
298
|
},
|
|
299
299
|
],
|
|
300
|
-
"@stylistic/multiline-comment-style": OFF,
|
|
300
|
+
// "@stylistic/multiline-comment-style": OFF,
|
|
301
301
|
"@stylistic/multiline-ternary": [
|
|
302
302
|
ON,
|
|
303
303
|
always_multiline,
|
|
@@ -312,7 +312,7 @@ export const EnableStyle = {
|
|
|
312
312
|
ignoreChainWithDepth: 2,
|
|
313
313
|
},
|
|
314
314
|
],
|
|
315
|
-
"@stylistic/no-confusing-arrow": OFF,
|
|
315
|
+
// "@stylistic/no-confusing-arrow": OFF,
|
|
316
316
|
"@stylistic/no-extra-parens": [
|
|
317
317
|
ON,
|
|
318
318
|
all,
|
|
@@ -337,7 +337,7 @@ export const EnableStyle = {
|
|
|
337
337
|
],
|
|
338
338
|
"@stylistic/no-extra-semi": ON,
|
|
339
339
|
"@stylistic/no-floating-decimal": ON,
|
|
340
|
-
"@stylistic/no-mixed-operators": OFF,
|
|
340
|
+
// "@stylistic/no-mixed-operators": OFF,
|
|
341
341
|
"@stylistic/no-mixed-spaces-and-tabs": ON,
|
|
342
342
|
"@stylistic/no-multi-spaces": [
|
|
343
343
|
ON,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
|
-
OFF,
|
|
3
|
+
// OFF,
|
|
4
4
|
ON,
|
|
5
5
|
never,
|
|
6
6
|
} from "../../../_strings";
|
|
@@ -10,21 +10,21 @@ export const HtmlEnablePlugin = {
|
|
|
10
10
|
rules: {
|
|
11
11
|
// #region BEST PRACTICE
|
|
12
12
|
// DOC: https://html-eslint.org/docs/rules#best-practice
|
|
13
|
-
"@html-eslint/max-element-depth": OFF /* @preference: simply do not care */,
|
|
13
|
+
// "@html-eslint/max-element-depth": OFF /* @preference: simply do not care */,
|
|
14
14
|
"@html-eslint/no-duplicate-attrs": ON,
|
|
15
15
|
"@html-eslint/no-duplicate-class": ON,
|
|
16
16
|
"@html-eslint/no-duplicate-id": ON,
|
|
17
17
|
"@html-eslint/no-duplicate-in-head": ON,
|
|
18
|
-
"@html-eslint/no-inline-styles": OFF /* @CONFLICT: breaks Svelte app.html */,
|
|
18
|
+
// "@html-eslint/no-inline-styles": OFF /* @CONFLICT: breaks Svelte app.html */,
|
|
19
19
|
"@html-eslint/no-invalid-entity": ON,
|
|
20
20
|
"@html-eslint/no-nested-interactive": ON,
|
|
21
21
|
"@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,
|
|
22
|
+
// "@html-eslint/no-restricted-attr-values": OFF,
|
|
23
|
+
// "@html-eslint/no-restricted-attrs": OFF,
|
|
24
|
+
// "@html-eslint/no-script-style-type": OFF,
|
|
25
25
|
"@html-eslint/no-target-blank": ON,
|
|
26
|
-
"@html-eslint/prefer-https": OFF /* @CONFLICT: not everything is https */,
|
|
27
|
-
"@html-eslint/require-attrs": OFF,
|
|
26
|
+
// "@html-eslint/prefer-https": OFF /* @CONFLICT: not everything is https */,
|
|
27
|
+
// "@html-eslint/require-attrs": OFF,
|
|
28
28
|
"@html-eslint/require-button-type": ON,
|
|
29
29
|
"@html-eslint/require-closing-tags": [
|
|
30
30
|
ON,
|
|
@@ -34,7 +34,7 @@ export const HtmlEnablePlugin = {
|
|
|
34
34
|
},
|
|
35
35
|
],
|
|
36
36
|
"@html-eslint/require-doctype": ON,
|
|
37
|
-
"@html-eslint/require-explicit-size": OFF /* preference, prefer using css */,
|
|
37
|
+
// "@html-eslint/require-explicit-size": OFF /* preference, prefer using css */,
|
|
38
38
|
"@html-eslint/require-li-container": ON,
|
|
39
39
|
"@html-eslint/require-meta-charset": ON,
|
|
40
40
|
"@html-eslint/use-baseline": [
|
|
@@ -49,9 +49,9 @@ export const HtmlEnablePlugin = {
|
|
|
49
49
|
// DOC: https://html-eslint.org/docs/rules#seo
|
|
50
50
|
"@html-eslint/no-multiple-h1": ON,
|
|
51
51
|
"@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 */,
|
|
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 */,
|
|
55
55
|
// #endregion
|
|
56
56
|
|
|
57
57
|
// #region ACCESSIBILITY
|
|
@@ -94,7 +94,7 @@ export const HtmlEnablePlugin = {
|
|
|
94
94
|
inline: ["$inline"],
|
|
95
95
|
},
|
|
96
96
|
],
|
|
97
|
-
"@html-eslint/id-naming-convention": OFF,
|
|
97
|
+
// "@html-eslint/id-naming-convention": OFF,
|
|
98
98
|
"@html-eslint/indent": [
|
|
99
99
|
ON,
|
|
100
100
|
2,
|
|
@@ -129,7 +129,7 @@ export const HtmlEnablePlugin = {
|
|
|
129
129
|
enforceTemplatedAttrValue: false,
|
|
130
130
|
},
|
|
131
131
|
],
|
|
132
|
-
"@html-eslint/sort-attrs": OFF,
|
|
132
|
+
// "@html-eslint/sort-attrs": OFF,
|
|
133
133
|
// #endregion
|
|
134
134
|
} as const,
|
|
135
135
|
};
|
|
@@ -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
|
};
|