@eslinted/core 18.1.0 → 18.1.2

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.
Files changed (48) hide show
  1. package/.github/workflows/RELEASE.yml +36 -36
  2. package/.github/workflows/rc.yml +36 -36
  3. package/.markdownlint.jsonc +126 -126
  4. package/LICENSE +21 -21
  5. package/README.md +4 -4
  6. package/SECURITY.md +8 -8
  7. package/eslint.config.js +3 -3
  8. package/package.json +91 -95
  9. package/src/factory/index.ts +141 -141
  10. package/src/factory/manifests.ts +21 -21
  11. package/src/factory/scopes/css.ts +17 -17
  12. package/src/factory/scopes/html.ts +14 -14
  13. package/src/factory/scopes/js.ts +11 -11
  14. package/src/factory/scopes/json.ts +11 -11
  15. package/src/factory/scopes/jsonc.ts +11 -11
  16. package/src/factory/scopes/manifest/index.ts +16 -16
  17. package/src/factory/scopes/mocha.ts +24 -24
  18. package/src/factory/scopes/svelte.ts +24 -24
  19. package/src/factory/scopes/ts.ts +25 -25
  20. package/src/factory/scopes/yml.ts +15 -15
  21. package/src/index.input.spec.ts +150 -150
  22. package/src/index.spec.ts +51 -51
  23. package/src/index.ts +24 -24
  24. package/src/interface/index.ts +3 -3
  25. package/src/interface/input/imports.ts +12 -12
  26. package/src/interface/input/index.ts +12 -12
  27. package/src/interface/input/scopes/defaults.ts +8 -8
  28. package/src/interface/input/scopes/extensions.ts +18 -18
  29. package/src/interface/input/scopes/index.ts +2 -2
  30. package/src/interface/output/configs/global/ignores.ts +6 -6
  31. package/src/interface/output/configs/global/index.ts +3 -3
  32. package/src/interface/output/configs/global/plugins.ts +7 -7
  33. package/src/interface/output/configs/global/settings.ts +7 -7
  34. package/src/interface/output/configs/index.ts +2 -2
  35. package/src/interface/output/configs/scoped/index.ts +2 -2
  36. package/src/interface/output/configs/scoped/rules.ts +8 -8
  37. package/src/interface/output/configs/scoped/settings.ts +12 -12
  38. package/src/interface/output/index.ts +9 -9
  39. package/src/interface/proto/config/index.ts +43 -43
  40. package/src/interface/proto/config/rule/index.ts +14 -14
  41. package/src/interface/proto/config/utility/index.ts +25 -25
  42. package/src/interface/proto/index.ts +1 -1
  43. package/src/scope/index.spec.ts +43 -43
  44. package/src/scope/index.ts +13 -13
  45. package/src/scope/tree/index.spec.ts +48 -48
  46. package/src/scope/tree/index.ts +8 -8
  47. package/src/scope/types/index.ts +24 -24
  48. package/tsconfig.json +165 -165
@@ -1,48 +1,48 @@
1
- import { expect } from "chai";
2
- import { tree } from ".";
3
-
4
- const nodes = tree.map(([scope]) => scope);
5
-
6
- describe("Scope Tree", function () {
7
- describe("shape", function () {
8
- it("is an array", function () {
9
- expect(tree)
10
- .an("array");
11
- });
12
- });
13
- describe("members", function () {
14
- it("are unique", function () {
15
- expect(tree.length)
16
- .equals(new Set(nodes).size);
17
- });
18
- it("omit `js`", function () {
19
- expect(nodes)
20
- .to.not.include.members(["js"]);
21
- });
22
- });
23
- describe("order", function () {
24
- it("`jsonc` < [`json`]?", function () {
25
- expect(nodes)
26
- .includes.members(["jsonc"]);
27
- expect(nodes.indexOf("jsonc"))
28
- .lessThan(-nodes.indexOf("json") * tree.length);
29
- });
30
- it("`mocha` < `ts`", function () {
31
- expect(nodes)
32
- .includes.members(["mocha", "ts"]);
33
- expect(nodes.indexOf("mocha"))
34
- .lessThan(nodes.indexOf("ts"));
35
- });
36
- it("`svelte` < `ts`", function () {
37
- expect(nodes).includes.members(["svelte", "ts"]);
38
- expect(nodes.indexOf("svelte"))
39
- .lessThan(nodes.indexOf("ts"));
40
- });
41
- it("`ts` is last", function () {
42
- expect(nodes)
43
- .includes.members(["ts"]);
44
- expect(nodes.indexOf("ts"))
45
- .equals(tree.length - 1);
46
- });
47
- });
48
- });
1
+ import { expect } from "chai";
2
+ import { tree } from ".";
3
+
4
+ const nodes = tree.map(([scope]) => scope);
5
+
6
+ describe("Scope Tree", function () {
7
+ describe("shape", function () {
8
+ it("is an array", function () {
9
+ expect(tree)
10
+ .an("array");
11
+ });
12
+ });
13
+ describe("members", function () {
14
+ it("are unique", function () {
15
+ expect(tree.length)
16
+ .equals(new Set(nodes).size);
17
+ });
18
+ it("omit `js`", function () {
19
+ expect(nodes)
20
+ .to.not.include.members(["js"]);
21
+ });
22
+ });
23
+ describe("order", function () {
24
+ it("`jsonc` < [`json`]?", function () {
25
+ expect(nodes)
26
+ .includes.members(["jsonc"]);
27
+ expect(nodes.indexOf("jsonc"))
28
+ .lessThan(-nodes.indexOf("json") * tree.length);
29
+ });
30
+ it("`mocha` < `ts`", function () {
31
+ expect(nodes)
32
+ .includes.members(["mocha", "ts"]);
33
+ expect(nodes.indexOf("mocha"))
34
+ .lessThan(nodes.indexOf("ts"));
35
+ });
36
+ it("`svelte` < `ts`", function () {
37
+ expect(nodes).includes.members(["svelte", "ts"]);
38
+ expect(nodes.indexOf("svelte"))
39
+ .lessThan(nodes.indexOf("ts"));
40
+ });
41
+ it("`ts` is last", function () {
42
+ expect(nodes)
43
+ .includes.members(["ts"]);
44
+ expect(nodes.indexOf("ts"))
45
+ .equals(tree.length - 1);
46
+ });
47
+ });
48
+ });
@@ -1,8 +1,8 @@
1
- import type { Scope } from "..";
2
-
3
- export const tree: [Scope, readonly Scope[]][] = [
4
- ["jsonc", ["json"] as const] as const,
5
- ["mocha", ["ts"] as const] as const,
6
- ["svelte", ["ts"] as const] as const,
7
- ["ts", ["js"] as const] as const,
8
- ] as const;
1
+ import type { Scope } from "..";
2
+
3
+ export const tree: [Scope, readonly Scope[]][] = [
4
+ ["jsonc", ["json"] as const] as const,
5
+ ["mocha", ["ts"] as const] as const,
6
+ ["svelte", ["ts"] as const] as const,
7
+ ["ts", ["js"] as const] as const,
8
+ ] as const;
@@ -1,24 +1,24 @@
1
- import type { scopes } from "..";
2
-
3
- export type Scope = typeof scopes[number];
4
- export namespace Import {
5
- export type Plugin = (
6
- | "@stylistic"
7
- | "@typescript-eslint"
8
- | "mocha"
9
- | "chai-friendly"
10
- | "chai-expect"
11
- | "svelte"
12
- | "@html-eslint"
13
- | "css"
14
- | "jsonc"
15
- | "yml"
16
- );
17
- export type Parser = Scope & (
18
- | "ts"
19
- | "svelte"
20
- | "html"
21
- | "jsonc"
22
- | "yml"
23
- );
24
- }
1
+ import type { scopes } from "..";
2
+
3
+ export type Scope = typeof scopes[number];
4
+ export namespace Import {
5
+ export type Plugin = (
6
+ | "@stylistic"
7
+ | "@typescript-eslint"
8
+ | "mocha"
9
+ | "chai-friendly"
10
+ | "chai-expect"
11
+ | "svelte"
12
+ | "@html-eslint"
13
+ | "css"
14
+ | "jsonc"
15
+ | "yml"
16
+ );
17
+ export type Parser = Scope & (
18
+ | "ts"
19
+ | "svelte"
20
+ | "html"
21
+ | "jsonc"
22
+ | "yml"
23
+ );
24
+ }
package/tsconfig.json CHANGED
@@ -1,165 +1,165 @@
1
- {
2
- "display": "@prototypic/tsconfig",
3
- "version": "5.8.0",
4
- "$schema": "https://json.schemastore.org/tsconfig",
5
- "$help": "https://www.typescriptlang.org/tsconfig/#quick-nav-Top%20Level",
6
- // #region SCOPE
7
- "include": [
8
- "*.config.ts",
9
- "src/**/*.ts",
10
- "tests/**/*.ts",
11
- "typings/**/*.d.ts",
12
- ],
13
- "exclude": [],
14
- // #endregion
15
- "compilerOptions": {
16
- // #region TYPE CHECKING
17
- "allowUnreachableCode": false,
18
- "allowUnusedLabels": false,
19
- "alwaysStrict": true,
20
- "exactOptionalPropertyTypes": true,
21
- "noFallthroughCasesInSwitch": true,
22
- "noImplicitAny": true,
23
- "noImplicitOverride": true,
24
- "noImplicitReturns": true,
25
- "noImplicitThis": true,
26
- "noPropertyAccessFromIndexSignature": true,
27
- "noUncheckedIndexedAccess": true,
28
- "noUnusedLocals": true,
29
- "noUnusedParameters": true,
30
- "strict": true,
31
- "strictBindCallApply": true,
32
- "strictFunctionTypes": true,
33
- "strictNullChecks": true,
34
- "strictPropertyInitialization": true,
35
- "useUnknownInCatchVariables": true,
36
- // #endregion
37
- /*
38
- */
39
- // #region MODULES
40
- "allowArbitraryExtensions": true,
41
- // "allowImportingTsExtensions": true,
42
- // "allowUmdGlobalAccess": true,
43
- // "baseUrl": "./",
44
- // "customConditions": [],
45
- "module": "es2022",
46
- "moduleResolution": "bundler",
47
- // "moduleSuffixes": [],
48
- // "noResolve": true,
49
- // "paths": { "*": ["node_modules/*"] },
50
- // "resolveJsonModule": true,
51
- // "resolvePackageJsonExports": true,
52
- // "resolvePackageJsonImports": true,
53
- "rootDir": "src",
54
- // "rootDirs": [],
55
- // "typeRoots": [],
56
- "types": [
57
- "mocha",
58
- "chai",
59
- /* {CONFIGURE} */
60
- ],
61
- // #endregion
62
- /*
63
- */
64
- // #region EMIT
65
- "declaration": true,
66
- "declarationDir": "dist",
67
- "declarationMap": true,
68
- // "downlevelIteration": true,
69
- // "emitBOM": true,
70
- // "emitDeclarationOnly": true,
71
- // "importHelpers": true,
72
- // "inlineSourceMap": true,
73
- // "inlineSources": true,
74
- // "mapRoot": "",
75
- // "newLine": "crlf",
76
- // "noEmit": true,
77
- // "noEmitHelpers": true,
78
- "noEmitOnError": true,
79
- "outDir": "dist",
80
- // "outFile": "./",
81
- // "preserveConstEnums": true,
82
- "removeComments": true,
83
- "sourceMap": true,
84
- // "sourceRoot": "",
85
- // "stripInternal": true,
86
- // #endregion
87
- /*
88
- */
89
- // #region JAVASCRIPT SUPPORT
90
- // "allowJs": true,
91
- // "checkJs": true,
92
- // "maxNodeModuleJsDepth": 1,
93
- // #endregion
94
- /*
95
- */
96
- // #region EDITOR SUPPORT
97
- // "disableSizeLimit": false,
98
- // "plugins": [],
99
- // #endregion
100
- /*
101
- */
102
- // #region INTEROP CONSTRAINTS
103
- "allowSyntheticDefaultImports": true,
104
- "esModuleInterop": true,
105
- "forceConsistentCasingInFileNames": true,
106
- // "isolatedDeclarations": false,
107
- // "isolatedModules": true,
108
- // "preserveSymlinks": true,
109
- "verbatimModuleSyntax": true,
110
- // #endregion
111
- /*
112
- */
113
- // #region LANGUAGE & ENVIRONMENT
114
- // "emitDecoratorMetadata": true,
115
- // "experimentalDecorators": true,
116
- // "jsx": "preserve",
117
- // "jsxFactory": "",
118
- // "jsxFragmentFactory": "",
119
- // "jsxImportSource": "",
120
- "lib": [
121
- "es2023",
122
- /* {CONFIGURE} */
123
- ],
124
- // "moduleDetection": "auto",
125
- // "noLib": true,
126
- // "reactNamespace": "",
127
- "target": "es2022",
128
- // "useDefineForClassFields": true /* @default: target > es2022 : true; else : false*/,
129
- // #endregion
130
- /*
131
- */
132
- // #region COMPILER DIAGNOSTICS
133
- // "diagnostics": true,
134
- // "explainFiles": true,
135
- // "extendedDiagnostics": true,
136
- // "generateCpuProfile": "profile.cpuprofile",
137
- // "listEmittedFiles": true,
138
- // "listFiles": true,
139
- // "noCheck": true,
140
- // "traceResolution": true,
141
- // #endregion
142
- /*
143
- */
144
- // #region PROJECTS
145
- // "composite": true,
146
- // "disableReferencedProjectLoad": true,
147
- // "disableSolutionSearching": true,
148
- // "disableSourceOfProjectReferenceRedirect": true,
149
- "incremental": true,
150
- "tsBuildInfoFile": "dist/.tsbuildinfo",
151
- // #endregion
152
- /*
153
- */
154
- // #region OUTPUT FORMATTING
155
- // "noErrorTruncation": true,
156
- // "preserveWatchOutput": true,
157
- // "pretty": true,
158
- // #endregion
159
- /*
160
- */
161
- // #region COMPLETENESS
162
- "skipLibCheck": false,
163
- // #endregion
164
- },
165
- }
1
+ {
2
+ "display": "@prototypic/tsconfig",
3
+ "version": "5.8.0",
4
+ "$schema": "https://json.schemastore.org/tsconfig",
5
+ "$help": "https://www.typescriptlang.org/tsconfig/#quick-nav-Top%20Level",
6
+ // #region SCOPE
7
+ "include": [
8
+ "*.config.ts",
9
+ "src/**/*.ts",
10
+ "tests/**/*.ts",
11
+ "typings/**/*.d.ts",
12
+ ],
13
+ "exclude": [],
14
+ // #endregion
15
+ "compilerOptions": {
16
+ // #region TYPE CHECKING
17
+ "allowUnreachableCode": false,
18
+ "allowUnusedLabels": false,
19
+ "alwaysStrict": true,
20
+ "exactOptionalPropertyTypes": true,
21
+ "noFallthroughCasesInSwitch": true,
22
+ "noImplicitAny": true,
23
+ "noImplicitOverride": true,
24
+ "noImplicitReturns": true,
25
+ "noImplicitThis": true,
26
+ "noPropertyAccessFromIndexSignature": true,
27
+ "noUncheckedIndexedAccess": true,
28
+ "noUnusedLocals": true,
29
+ "noUnusedParameters": true,
30
+ "strict": true,
31
+ "strictBindCallApply": true,
32
+ "strictFunctionTypes": true,
33
+ "strictNullChecks": true,
34
+ "strictPropertyInitialization": true,
35
+ "useUnknownInCatchVariables": true,
36
+ // #endregion
37
+ /*
38
+ */
39
+ // #region MODULES
40
+ "allowArbitraryExtensions": true,
41
+ // "allowImportingTsExtensions": true,
42
+ // "allowUmdGlobalAccess": true,
43
+ // "baseUrl": "./",
44
+ // "customConditions": [],
45
+ "module": "es2022",
46
+ "moduleResolution": "bundler",
47
+ // "moduleSuffixes": [],
48
+ // "noResolve": true,
49
+ // "paths": { "*": ["node_modules/*"] },
50
+ // "resolveJsonModule": true,
51
+ // "resolvePackageJsonExports": true,
52
+ // "resolvePackageJsonImports": true,
53
+ "rootDir": "src",
54
+ // "rootDirs": [],
55
+ // "typeRoots": [],
56
+ "types": [
57
+ "mocha",
58
+ "chai",
59
+ /* {CONFIGURE} */
60
+ ],
61
+ // #endregion
62
+ /*
63
+ */
64
+ // #region EMIT
65
+ "declaration": true,
66
+ "declarationDir": "dist",
67
+ "declarationMap": true,
68
+ // "downlevelIteration": true,
69
+ // "emitBOM": true,
70
+ // "emitDeclarationOnly": true,
71
+ // "importHelpers": true,
72
+ // "inlineSourceMap": true,
73
+ // "inlineSources": true,
74
+ // "mapRoot": "",
75
+ // "newLine": "crlf",
76
+ // "noEmit": true,
77
+ // "noEmitHelpers": true,
78
+ "noEmitOnError": true,
79
+ "outDir": "dist",
80
+ // "outFile": "./",
81
+ // "preserveConstEnums": true,
82
+ "removeComments": true,
83
+ "sourceMap": true,
84
+ // "sourceRoot": "",
85
+ // "stripInternal": true,
86
+ // #endregion
87
+ /*
88
+ */
89
+ // #region JAVASCRIPT SUPPORT
90
+ // "allowJs": true,
91
+ // "checkJs": true,
92
+ // "maxNodeModuleJsDepth": 1,
93
+ // #endregion
94
+ /*
95
+ */
96
+ // #region EDITOR SUPPORT
97
+ // "disableSizeLimit": false,
98
+ // "plugins": [],
99
+ // #endregion
100
+ /*
101
+ */
102
+ // #region INTEROP CONSTRAINTS
103
+ "allowSyntheticDefaultImports": true,
104
+ "esModuleInterop": true,
105
+ "forceConsistentCasingInFileNames": true,
106
+ // "isolatedDeclarations": false,
107
+ // "isolatedModules": true,
108
+ // "preserveSymlinks": true,
109
+ "verbatimModuleSyntax": true,
110
+ // #endregion
111
+ /*
112
+ */
113
+ // #region LANGUAGE & ENVIRONMENT
114
+ // "emitDecoratorMetadata": true,
115
+ // "experimentalDecorators": true,
116
+ // "jsx": "preserve",
117
+ // "jsxFactory": "",
118
+ // "jsxFragmentFactory": "",
119
+ // "jsxImportSource": "",
120
+ "lib": [
121
+ "es2023",
122
+ /* {CONFIGURE} */
123
+ ],
124
+ // "moduleDetection": "auto",
125
+ // "noLib": true,
126
+ // "reactNamespace": "",
127
+ "target": "es2022",
128
+ // "useDefineForClassFields": true /* @default: target > es2022 : true; else : false*/,
129
+ // #endregion
130
+ /*
131
+ */
132
+ // #region COMPILER DIAGNOSTICS
133
+ // "diagnostics": true,
134
+ // "explainFiles": true,
135
+ // "extendedDiagnostics": true,
136
+ // "generateCpuProfile": "profile.cpuprofile",
137
+ // "listEmittedFiles": true,
138
+ // "listFiles": true,
139
+ // "noCheck": true,
140
+ // "traceResolution": true,
141
+ // #endregion
142
+ /*
143
+ */
144
+ // #region PROJECTS
145
+ // "composite": true,
146
+ // "disableReferencedProjectLoad": true,
147
+ // "disableSolutionSearching": true,
148
+ // "disableSourceOfProjectReferenceRedirect": true,
149
+ "incremental": true,
150
+ "tsBuildInfoFile": "dist/.tsbuildinfo",
151
+ // #endregion
152
+ /*
153
+ */
154
+ // #region OUTPUT FORMATTING
155
+ // "noErrorTruncation": true,
156
+ // "preserveWatchOutput": true,
157
+ // "pretty": true,
158
+ // #endregion
159
+ /*
160
+ */
161
+ // #region COMPLETENESS
162
+ "skipLibCheck": false,
163
+ // #endregion
164
+ },
165
+ }