@eslinted/defaults 12.10.0 → 12.11.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/.github/workflows/RELEASE.yml +36 -36
- package/.github/workflows/rc.yml +36 -36
- package/.markdownlint.jsonc +97 -97
- package/.mocharc.yml +15 -15
- package/LICENSE +20 -20
- package/README.md +4 -4
- package/dist/index.d.ts +99 -912
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +99 -492
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/scopes/enable.d.ts +0 -2
- package/dist/rules/scopes/enable.d.ts.map +1 -1
- package/dist/rules/scopes/enable.js +0 -3
- package/dist/rules/scopes/enable.js.map +1 -1
- package/dist/rules/scopes/enable.style.d.ts +24 -134
- package/dist/rules/scopes/enable.style.d.ts.map +1 -1
- package/dist/rules/scopes/enable.style.js +22 -192
- package/dist/rules/scopes/enable.style.js.map +1 -1
- package/dist/rules/scopes/index.d.ts +24 -136
- package/dist/rules/scopes/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/index.d.ts +7 -20
- package/dist/rules/scopes/json/index.d.ts.map +1 -1
- package/dist/rules/scopes/json/plugin/extension.d.ts +7 -20
- package/dist/rules/scopes/json/plugin/extension.d.ts.map +1 -1
- package/dist/rules/scopes/json/plugin/extension.js +7 -41
- package/dist/rules/scopes/json/plugin/extension.js.map +1 -1
- package/dist/rules/scopes/mocha/chai/index.d.ts +0 -2
- package/dist/rules/scopes/mocha/chai/index.d.ts.map +1 -1
- package/dist/rules/scopes/mocha/chai/index.js +0 -2
- package/dist/rules/scopes/mocha/chai/index.js.map +1 -1
- package/dist/rules/scopes/mocha/enable.d.ts +3 -10
- package/dist/rules/scopes/mocha/enable.d.ts.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +3 -19
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/mocha/index.d.ts +3 -12
- package/dist/rules/scopes/mocha/index.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/enable.d.ts +19 -91
- package/dist/rules/scopes/svelte/enable.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/enable.js +20 -153
- package/dist/rules/scopes/svelte/enable.js.map +1 -1
- package/dist/rules/scopes/svelte/extension/index.d.ts +2 -7
- package/dist/rules/scopes/svelte/extension/index.d.ts.map +1 -1
- package/dist/rules/scopes/svelte/extension/index.js +2 -11
- package/dist/rules/scopes/svelte/extension/index.js.map +1 -1
- package/dist/rules/scopes/svelte/index.d.ts +21 -98
- package/dist/rules/scopes/svelte/index.d.ts.map +1 -1
- package/dist/rules/scopes/ts/enable.d.ts +31 -163
- package/dist/rules/scopes/ts/enable.d.ts.map +1 -1
- package/dist/rules/scopes/ts/enable.js +32 -380
- package/dist/rules/scopes/ts/enable.js.map +1 -1
- package/dist/rules/scopes/ts/extension/index.d.ts +1 -20
- package/dist/rules/scopes/ts/extension/index.d.ts.map +1 -1
- package/dist/rules/scopes/ts/extension/index.js +2 -25
- package/dist/rules/scopes/ts/extension/index.js.map +1 -1
- package/dist/rules/scopes/ts/index.d.ts +32 -183
- package/dist/rules/scopes/ts/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/index.d.ts +12 -43
- package/dist/rules/scopes/yml/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/plugin/extension.d.ts +5 -22
- package/dist/rules/scopes/yml/plugin/extension.d.ts.map +1 -1
- package/dist/rules/scopes/yml/plugin/extension.js +5 -36
- package/dist/rules/scopes/yml/plugin/extension.js.map +1 -1
- package/dist/rules/scopes/yml/plugin/index.d.ts +7 -21
- package/dist/rules/scopes/yml/plugin/index.d.ts.map +1 -1
- package/dist/rules/scopes/yml/plugin/index.js +8 -44
- package/dist/rules/scopes/yml/plugin/index.js.map +1 -1
- package/eslint.config.js +3 -3
- package/package.json +56 -56
- package/src/files/_factory/index.ts +76 -76
- package/src/files/_factory/project/index.ts +2 -2
- package/src/files/_factory/project/roots.ts +4 -4
- package/src/files/_factory/project/subroots.ts +8 -8
- package/src/files/index.ts +23 -23
- package/src/files/scopes/css.ts +5 -5
- package/src/files/scopes/html.ts +5 -5
- package/src/files/scopes/js.ts +5 -5
- package/src/files/scopes/json.ts +5 -5
- package/src/files/scopes/jsonc.ts +5 -5
- package/src/files/scopes/jsoncc.ts +9 -9
- package/src/files/scopes/mocha.ts +5 -5
- package/src/files/scopes/svelte.ts +5 -5
- package/src/files/scopes/ts.ts +5 -5
- package/src/files/scopes/yml.ts +8 -8
- package/src/ignores/global.ts +5 -5
- package/src/ignores/index.ts +25 -25
- package/src/ignores/scopes/css.ts +1 -1
- package/src/ignores/scopes/html.ts +1 -1
- package/src/ignores/scopes/js.ts +1 -1
- package/src/ignores/scopes/json.ts +1 -1
- package/src/ignores/scopes/jsonc.ts +1 -1
- package/src/ignores/scopes/jsoncc.ts +1 -1
- package/src/ignores/scopes/mocha.ts +1 -1
- package/src/ignores/scopes/svelte.ts +1 -1
- package/src/ignores/scopes/ts.ts +1 -1
- package/src/ignores/scopes/yml.ts +1 -1
- package/src/index.ts +10 -10
- package/src/rules/_strings/id.ts +21 -21
- package/src/rules/_strings/index.ts +3 -3
- package/src/rules/_strings/option.ts +30 -30
- package/src/rules/_strings/state.spec.ts +64 -64
- package/src/rules/_strings/state.ts +4 -4
- package/src/rules/index.ts +23 -23
- package/src/rules/scopes/css/enable.ts +31 -31
- package/src/rules/scopes/css/index.ts +3 -3
- package/src/rules/scopes/enable.style.ts +507 -705
- package/src/rules/scopes/enable.ts +390 -401
- package/src/rules/scopes/html/index.ts +3 -3
- package/src/rules/scopes/html/plugin/index.ts +113 -113
- package/src/rules/scopes/index.ts +7 -7
- package/src/rules/scopes/json/enable.ts +18 -18
- package/src/rules/scopes/json/index.ts +9 -9
- package/src/rules/scopes/json/plugin/extension.ts +60 -98
- package/src/rules/scopes/json/plugin/index.ts +35 -35
- package/src/rules/scopes/jsonc/index.ts +3 -3
- package/src/rules/scopes/jsonc/plugin/index.ts +12 -12
- package/src/rules/scopes/jsoncc/index.ts +3 -3
- package/src/rules/scopes/jsoncc/plugin/index.ts +16 -16
- package/src/rules/scopes/mocha/chai/expect.ts +16 -16
- package/src/rules/scopes/mocha/chai/index.ts +18 -20
- package/src/rules/scopes/mocha/disable.ts +13 -13
- package/src/rules/scopes/mocha/enable.ts +36 -52
- package/src/rules/scopes/mocha/index.ts +11 -11
- package/src/rules/scopes/svelte/disable.ts +19 -19
- package/src/rules/scopes/svelte/enable.ts +157 -292
- package/src/rules/scopes/svelte/extension/disable.ts +14 -14
- package/src/rules/scopes/svelte/extension/index.ts +17 -27
- package/src/rules/scopes/svelte/index.ts +11 -11
- package/src/rules/scopes/ts/disable.ts +30 -30
- package/src/rules/scopes/ts/enable.ts +188 -578
- package/src/rules/scopes/ts/extension/disable.ts +35 -35
- package/src/rules/scopes/ts/extension/index.ts +62 -87
- package/src/rules/scopes/ts/index.ts +11 -11
- package/src/rules/scopes/yml/index.ts +7 -7
- package/src/rules/scopes/yml/plugin/extension.ts +55 -88
- package/src/rules/scopes/yml/plugin/index.ts +38 -88
- package/src/settings/global/index.ts +6 -6
- package/src/settings/index.ts +7 -7
- package/src/settings/registry/index.ts +23 -23
- package/src/settings/registry/manifests/css.ts +9 -9
- package/src/settings/registry/manifests/html.ts +10 -10
- package/src/settings/registry/manifests/js.ts +8 -8
- package/src/settings/registry/manifests/json.ts +7 -7
- package/src/settings/registry/manifests/jsonc.ts +9 -9
- package/src/settings/registry/manifests/jsoncc.ts +9 -9
- package/src/settings/registry/manifests/mocha.ts +8 -8
- package/src/settings/registry/manifests/svelte.ts +10 -10
- package/src/settings/registry/manifests/ts.ts +30 -30
- package/src/settings/registry/manifests/yml.ts +9 -9
- package/tsconfig.json +75 -156
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID,
|
|
3
|
-
ON,
|
|
4
|
-
} from "../../../_strings";
|
|
5
|
-
|
|
6
|
-
export const MochaEnablePluginChai = {
|
|
7
|
-
id: `${ID.Enable.Plugin.Plugin}/chai`,
|
|
8
|
-
rules: {
|
|
9
|
-
// DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
|
|
10
|
-
"chai-friendly/no-unused-expressions": [
|
|
11
|
-
ON,
|
|
12
|
-
{
|
|
13
|
-
allowShortCircuit: true,
|
|
14
|
-
allowTernary: true,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} as const,
|
|
20
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
ON,
|
|
4
|
+
} from "../../../_strings";
|
|
5
|
+
|
|
6
|
+
export const MochaEnablePluginChai = {
|
|
7
|
+
id: `${ID.Enable.Plugin.Plugin}/chai`,
|
|
8
|
+
rules: {
|
|
9
|
+
// DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
|
|
10
|
+
"chai-friendly/no-unused-expressions": [
|
|
11
|
+
ON,
|
|
12
|
+
{
|
|
13
|
+
allowShortCircuit: true,
|
|
14
|
+
allowTernary: true,
|
|
15
|
+
},
|
|
16
|
+
] /* TSLint */,
|
|
17
|
+
} as const,
|
|
18
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID,
|
|
3
|
-
OFF,
|
|
4
|
-
} from "../../_strings";
|
|
5
|
-
|
|
6
|
-
export const MochaDisable = {
|
|
7
|
-
id: ID.Disable.Disable,
|
|
8
|
-
rules: {
|
|
9
|
-
"prefer-arrow-callback": OFF /* TS-capable */,
|
|
10
|
-
"no-unused-expressions": OFF /* INFO: looks like these guys got the hint too ;) https://github.com/ihordiachenko/eslint-plugin-chai-friendly/releases/tag/v1.1.0 */,
|
|
11
|
-
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS */,
|
|
12
|
-
} as const,
|
|
13
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
OFF,
|
|
4
|
+
} from "../../_strings";
|
|
5
|
+
|
|
6
|
+
export const MochaDisable = {
|
|
7
|
+
id: ID.Disable.Disable,
|
|
8
|
+
rules: {
|
|
9
|
+
"prefer-arrow-callback": OFF /* TS-capable */,
|
|
10
|
+
"no-unused-expressions": OFF /* INFO: looks like these guys got the hint too ;) https://github.com/ihordiachenko/eslint-plugin-chai-friendly/releases/tag/v1.1.0 */,
|
|
11
|
+
// "@typescript-eslint/no-unused-expressions": OFF /* ESLint now supports TS */,
|
|
12
|
+
} as const,
|
|
13
|
+
};
|
|
@@ -1,52 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID,
|
|
3
|
-
// OFF,
|
|
4
|
-
ON,
|
|
5
|
-
} from "../../_strings";
|
|
6
|
-
|
|
7
|
-
export const MochaEnable = {
|
|
8
|
-
id: ID.Enable.Enable,
|
|
9
|
-
rules: {
|
|
10
|
-
// DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
|
|
11
|
-
// "mocha/consistent-interface": OFF /* unable, must choose BDD or TDD first */,
|
|
12
|
-
// "mocha/consistent-spacing-between-blocks": OFF,
|
|
13
|
-
"mocha/handle-done-callback":
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"mocha/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"mocha/no-
|
|
26
|
-
"mocha/no-
|
|
27
|
-
"mocha/no-
|
|
28
|
-
"mocha/no-
|
|
29
|
-
"mocha/no-
|
|
30
|
-
// "mocha/no-
|
|
31
|
-
|
|
32
|
-
"mocha/
|
|
33
|
-
"mocha/
|
|
34
|
-
"mocha/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"mocha/no-return-from-async": ON,
|
|
38
|
-
// "mocha/no-setup-in-describe": OFF /* pointless and arbitrary */,
|
|
39
|
-
"mocha/no-sibling-hooks": ON,
|
|
40
|
-
// "mocha/no-synchronous-tests": OFF,
|
|
41
|
-
"mocha/no-top-level-hooks": ON,
|
|
42
|
-
"mocha/prefer-arrow-callback": [
|
|
43
|
-
ON,
|
|
44
|
-
{
|
|
45
|
-
allowNamedFunctions: false,
|
|
46
|
-
allowUnboundThis: true,
|
|
47
|
-
},
|
|
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 */,
|
|
51
|
-
} as const,
|
|
52
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
// OFF,
|
|
4
|
+
ON,
|
|
5
|
+
} from "../../_strings";
|
|
6
|
+
|
|
7
|
+
export const MochaEnable = {
|
|
8
|
+
id: ID.Enable.Enable,
|
|
9
|
+
rules: {
|
|
10
|
+
// DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
|
|
11
|
+
// "mocha/consistent-interface": OFF /* unable, must choose BDD or TDD first */,
|
|
12
|
+
// "mocha/consistent-spacing-between-blocks": OFF,
|
|
13
|
+
"mocha/handle-done-callback": ON,
|
|
14
|
+
"mocha/max-top-level-suites": ON,
|
|
15
|
+
"mocha/no-async-suite": ON,
|
|
16
|
+
"mocha/no-empty-title": ON,
|
|
17
|
+
"mocha/no-exclusive-tests": ON,
|
|
18
|
+
"mocha/no-exports": ON,
|
|
19
|
+
"mocha/no-global-tests": ON,
|
|
20
|
+
// "mocha/no-hooks-for-single-case": OFF,
|
|
21
|
+
// "mocha/no-hooks": OFF,
|
|
22
|
+
"mocha/no-identical-title": ON,
|
|
23
|
+
"mocha/no-mocha-arrows": ON,
|
|
24
|
+
"mocha/no-nested-tests": ON,
|
|
25
|
+
"mocha/no-pending-tests": ON,
|
|
26
|
+
"mocha/no-return-and-callback": ON,
|
|
27
|
+
"mocha/no-return-from-async": ON,
|
|
28
|
+
// "mocha/no-setup-in-describe": OFF /* pointless and arbitrary */,
|
|
29
|
+
"mocha/no-sibling-hooks": ON,
|
|
30
|
+
// "mocha/no-synchronous-tests": OFF,
|
|
31
|
+
"mocha/no-top-level-hooks": ON,
|
|
32
|
+
"mocha/prefer-arrow-callback": ON /* MUST match ../js/enable.ts, which is TS-capable -- is this?? */,
|
|
33
|
+
// "mocha/valid-suite-title": OFF /* preference */,
|
|
34
|
+
// "mocha/valid-test-title": OFF /* preference */,
|
|
35
|
+
} as const,
|
|
36
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { MochaDisable } from "./disable";
|
|
2
|
-
import { MochaEnable } from "./enable";
|
|
3
|
-
import { MochaEnablePluginChai } from "./chai";
|
|
4
|
-
import { MochaEnablePluginChaiExpect } from "./chai/expect";
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
MochaDisable,
|
|
8
|
-
MochaEnable,
|
|
9
|
-
MochaEnablePluginChai,
|
|
10
|
-
MochaEnablePluginChaiExpect,
|
|
11
|
-
];
|
|
1
|
+
import { MochaDisable } from "./disable";
|
|
2
|
+
import { MochaEnable } from "./enable";
|
|
3
|
+
import { MochaEnablePluginChai } from "./chai";
|
|
4
|
+
import { MochaEnablePluginChaiExpect } from "./chai/expect";
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
MochaDisable,
|
|
8
|
+
MochaEnable,
|
|
9
|
+
MochaEnablePluginChai,
|
|
10
|
+
MochaEnablePluginChaiExpect,
|
|
11
|
+
];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID,
|
|
3
|
-
OFF,
|
|
4
|
-
} from "../../_strings";
|
|
5
|
-
|
|
6
|
-
export const SvelteDisable = {
|
|
7
|
-
id: ID.Disable.Disable,
|
|
8
|
-
rules: {
|
|
9
|
-
// ESLint core rules known to cause problems with `.svelte`.
|
|
10
|
-
// DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
|
|
11
|
-
"no-inner-declarations": OFF /* The AST generated by svelte-eslint-parser will false
|
|
12
|
-
"no-self-assign": OFF /* Self assign is one of way to update reactive value in Svelte */,
|
|
13
|
-
"no-unused-vars": OFF /* breaks use of svelte global */,
|
|
14
|
-
"@typescript-eslint/no-unused-vars": OFF /* TS: breaks use of svelte global */,
|
|
15
|
-
"prefer-const": OFF /* svelte/prefer-const */,
|
|
16
|
-
// My own
|
|
17
|
-
"@stylistic/indent": OFF /* Conflicts with `svelte/indent` */,
|
|
18
|
-
} as const,
|
|
19
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
OFF,
|
|
4
|
+
} from "../../_strings";
|
|
5
|
+
|
|
6
|
+
export const SvelteDisable = {
|
|
7
|
+
id: ID.Disable.Disable,
|
|
8
|
+
rules: {
|
|
9
|
+
// ESLint core rules known to cause problems with `.svelte`.
|
|
10
|
+
// DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
|
|
11
|
+
"no-inner-declarations": OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. */,
|
|
12
|
+
"no-self-assign": OFF /* Self assign is one of way to update reactive value in Svelte */,
|
|
13
|
+
"no-unused-vars": OFF /* breaks use of svelte global */,
|
|
14
|
+
"@typescript-eslint/no-unused-vars": OFF /* TS: breaks use of svelte global */,
|
|
15
|
+
"prefer-const": OFF /* svelte/prefer-const */,
|
|
16
|
+
// My own
|
|
17
|
+
"@stylistic/indent": OFF /* Conflicts with `svelte/indent` */,
|
|
18
|
+
} as const,
|
|
19
|
+
};
|