@eslinted/core 1.0.0 → 2.0.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. package/dist/boundary/boundary.d.ts +4 -0
  2. package/dist/boundary/boundary.d.ts.map +1 -0
  3. package/dist/boundary/boundary.js +2 -0
  4. package/dist/boundary/boundary.js.map +1 -0
  5. package/dist/boundary/input/files/files.d.ts +4 -6
  6. package/dist/boundary/input/files/files.d.ts.map +1 -1
  7. package/dist/boundary/input/files/list/list.d.ts +3 -0
  8. package/dist/boundary/input/files/list/list.d.ts.map +1 -0
  9. package/dist/boundary/input/files/list/list.js +2 -0
  10. package/dist/boundary/input/files/list/list.js.map +1 -0
  11. package/dist/boundary/input/input.d.ts +6 -20
  12. package/dist/boundary/input/input.d.ts.map +1 -1
  13. package/dist/boundary/input/overrides/overrides.d.ts +4 -4
  14. package/dist/boundary/input/overrides/overrides.d.ts.map +1 -1
  15. package/dist/boundary/input/parsers/parsers.d.ts +3 -6
  16. package/dist/boundary/input/parsers/parsers.d.ts.map +1 -1
  17. package/dist/boundary/input/plugins/plugins.d.ts +5 -6
  18. package/dist/boundary/input/plugins/plugins.d.ts.map +1 -1
  19. package/dist/boundary/input/rules/entry/entry.d.ts +3 -3
  20. package/dist/boundary/input/rules/entry/entry.d.ts.map +1 -1
  21. package/dist/boundary/input/rules/entry/object/object.d.ts +3 -3
  22. package/dist/boundary/input/rules/entry/object/object.d.ts.map +1 -1
  23. package/dist/boundary/input/rules/entry/object/state/level.d.ts +3 -0
  24. package/dist/boundary/input/rules/entry/object/state/level.d.ts.map +1 -0
  25. package/dist/boundary/input/rules/entry/object/state/level.js +2 -0
  26. package/dist/boundary/input/rules/entry/object/state/level.js.map +1 -0
  27. package/dist/boundary/input/rules/rules.d.ts +4 -5
  28. package/dist/boundary/input/rules/rules.d.ts.map +1 -1
  29. package/dist/boundary/output/config/config.d.ts +2 -2
  30. package/dist/boundary/output/config/config.d.ts.map +1 -1
  31. package/dist/boundary/output/output.d.ts +2 -2
  32. package/dist/dependency/dependency.d.ts +4 -0
  33. package/dist/dependency/dependency.d.ts.map +1 -0
  34. package/dist/dependency/dependency.js +2 -0
  35. package/dist/dependency/dependency.js.map +1 -0
  36. package/dist/dependency/parsers/index.d.ts +3 -0
  37. package/dist/dependency/parsers/index.d.ts.map +1 -0
  38. package/dist/dependency/parsers/index.js +2 -0
  39. package/dist/dependency/parsers/index.js.map +1 -0
  40. package/dist/dependency/plugins/index.d.ts +3 -0
  41. package/dist/dependency/plugins/index.d.ts.map +1 -0
  42. package/dist/dependency/plugins/index.js +2 -0
  43. package/dist/dependency/plugins/index.js.map +1 -0
  44. package/dist/factory/factory.d.ts +1 -1
  45. package/dist/factory/factory.js +1 -1
  46. package/dist/factory/files/Files.d.ts +2 -2
  47. package/dist/factory/files/Files.d.ts.map +1 -1
  48. package/dist/factory/options/{options.d.ts → Options.d.ts} +1 -1
  49. package/dist/factory/options/{options.d.ts.map → Options.d.ts.map} +1 -1
  50. package/dist/factory/options/{options.js → Options.js} +1 -1
  51. package/dist/factory/options/{options.js.map → Options.js.map} +1 -1
  52. package/dist/factory/options/option/Option.d.ts +4 -3
  53. package/dist/factory/options/option/Option.d.ts.map +1 -1
  54. package/dist/factory/options/option/Option.js.map +1 -1
  55. package/dist/factory/ruleset/Ruleset.d.ts +3 -4
  56. package/dist/factory/ruleset/Ruleset.d.ts.map +1 -1
  57. package/dist/factory/ruleset/Ruleset.js.map +1 -1
  58. package/dist/factory/ruleset/rule/Rule.d.ts +1 -1
  59. package/dist/factory/ruleset/rule/Rule.d.ts.map +1 -1
  60. package/dist/index.d.ts +4 -5
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +25 -19
  63. package/dist/index.js.map +1 -1
  64. package/dist/scopes/{scopes.d.ts → Scopes.d.ts} +1 -1
  65. package/dist/scopes/Scopes.d.ts.map +1 -0
  66. package/dist/scopes/{scopes.js → Scopes.js} +1 -1
  67. package/dist/scopes/Scopes.js.map +1 -0
  68. package/package.json +7 -5
  69. package/src/boundary/boundary.ts +4 -0
  70. package/src/boundary/input/files/files.ts +7 -4
  71. package/src/boundary/input/files/list/list.ts +6 -0
  72. package/src/boundary/input/input.ts +12 -21
  73. package/src/boundary/input/overrides/overrides.ts +7 -4
  74. package/src/boundary/input/parsers/parsers.ts +7 -8
  75. package/src/boundary/input/plugins/plugins.ts +7 -4
  76. package/src/boundary/input/rules/entry/entry.ts +6 -3
  77. package/src/boundary/input/rules/entry/object/object.ts +10 -3
  78. package/src/boundary/input/rules/entry/object/state/level.ts +9 -0
  79. package/src/boundary/input/rules/rules.ts +4 -6
  80. package/src/boundary/output/config/config.ts +2 -2
  81. package/src/boundary/output/output.ts +2 -2
  82. package/src/dependency/dependency.ts +4 -0
  83. package/src/dependency/parsers/index.ts +9 -0
  84. package/src/dependency/plugins/index.ts +10 -0
  85. package/src/factory/factory.ts +1 -1
  86. package/src/factory/files/Files.ts +2 -2
  87. package/src/factory/options/option/Option.ts +4 -3
  88. package/src/factory/ruleset/Ruleset.ts +2 -3
  89. package/src/factory/ruleset/rule/Rule.ts +1 -1
  90. package/src/index.ts +42 -31
  91. package/dist/boundary/input/files/array/filearray.d.ts +0 -3
  92. package/dist/boundary/input/files/array/filearray.d.ts.map +0 -1
  93. package/dist/boundary/input/files/array/filearray.js +0 -2
  94. package/dist/boundary/input/files/array/filearray.js.map +0 -1
  95. package/dist/boundary/input/parsers.d.ts +0 -7
  96. package/dist/boundary/input/parsers.d.ts.map +0 -1
  97. package/dist/boundary/input/parsers.js +0 -2
  98. package/dist/boundary/input/parsers.js.map +0 -1
  99. package/dist/boundary/input/plugins.d.ts +0 -7
  100. package/dist/boundary/input/plugins.d.ts.map +0 -1
  101. package/dist/boundary/input/plugins.js +0 -2
  102. package/dist/boundary/input/plugins.js.map +0 -1
  103. package/dist/boundary/input/ruleRecord.d.ts +0 -6
  104. package/dist/boundary/input/ruleRecord.d.ts.map +0 -1
  105. package/dist/boundary/input/ruleRecord.js +0 -2
  106. package/dist/boundary/input/ruleRecord.js.map +0 -1
  107. package/dist/boundary/input/rules/entry/object/state/severity.d.ts +0 -3
  108. package/dist/boundary/input/rules/entry/object/state/severity.d.ts.map +0 -1
  109. package/dist/boundary/input/rules/entry/object/state/severity.js +0 -2
  110. package/dist/boundary/input/rules/entry/object/state/severity.js.map +0 -1
  111. package/dist/boundary/input.d.ts +0 -10
  112. package/dist/boundary/input.d.ts.map +0 -1
  113. package/dist/boundary/input.js +0 -2
  114. package/dist/boundary/input.js.map +0 -1
  115. package/dist/boundary/output/IConfig.d.ts +0 -19
  116. package/dist/boundary/output/IConfig.d.ts.map +0 -1
  117. package/dist/boundary/output/IConfig.js +0 -2
  118. package/dist/boundary/output/IConfig.js.map +0 -1
  119. package/dist/boundary/output.d.ts +0 -3
  120. package/dist/boundary/output.d.ts.map +0 -1
  121. package/dist/boundary/output.js +0 -2
  122. package/dist/boundary/output.js.map +0 -1
  123. package/dist/scopes/scopes.d.ts.map +0 -1
  124. package/dist/scopes/scopes.js.map +0 -1
  125. package/src/boundary/input/files/array/filearray.ts +0 -3
  126. package/src/boundary/input/rules/entry/object/state/severity.ts +0 -6
  127. /package/{types/project → src}/OmitFilesRuleset.d.ts +0 -0
  128. /package/src/factory/options/{options.ts → Options.ts} +0 -0
  129. /package/src/scopes/{scopes.ts → Scopes.ts} +0 -0
package/package.json CHANGED
@@ -1,16 +1,21 @@
1
1
  {
2
+ "_schemaVersion": "20.13.0",
2
3
  "name": "@eslinted/core",
3
- "version": "1.0.0",
4
+ "version": "2.0.0-rc.1",
4
5
  "description": "Core ESLint flat config factory npm package `linted`.",
5
6
  "keywords": [],
6
7
  "license": "MIT",
7
8
  "private": false,
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
8
12
  "repository": "github:jimmy-zhening-luo/linted-core",
9
13
  "homepage": "https://github.com/jimmy-zhening-luo/linted-core#readme",
10
14
  "bugs": "https://github.com/jimmy-zhening-luo/linted-core/issues",
11
15
  "type": "module",
12
16
  "main": "dist/index.js",
13
17
  "types": "dist/index.d.ts",
18
+ "engineStrict": true,
14
19
  "engines": {
15
20
  "node": ">=20.15.0",
16
21
  "npm": ">=10.7.0"
@@ -21,7 +26,7 @@
21
26
  "dependencies": {},
22
27
  "devDependencies": {
23
28
  "eslint": "~8.57.0",
24
- "linted": "~15.4.10",
29
+ "linted": "~15.4.14",
25
30
  "npm-run-all": "^4.1.5",
26
31
  "typescript": "^5.5.4"
27
32
  },
@@ -45,8 +50,5 @@
45
50
  "predeploy": "npm test",
46
51
  "deploy": ""
47
52
  },
48
- "config": {
49
- "PACKAGE_JSON": "20.12.0"
50
- },
51
53
  "author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
52
54
  }
@@ -0,0 +1,4 @@
1
+ import type Output from "./output/output.js";
2
+
3
+ export type * as Input from "./input/input.js";
4
+ export type { Output };
@@ -1,6 +1,9 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type FileArray from "./array/filearray.js";
1
+ import type { Scope } from "../../../scopes/Scopes.js";
2
+ import type * as Files from "./list/list.js";
3
3
 
4
- type Files = { readonly [S in Scope]: FileArray };
4
+ type Files = Readonly<Record<Scope, Files.List>>;
5
5
 
6
- export type { Files as default };
6
+ export type {
7
+ Files as default,
8
+ Files,
9
+ };
@@ -0,0 +1,6 @@
1
+ type List = readonly string[];
2
+
3
+ export type {
4
+ List as default,
5
+ List,
6
+ };
@@ -1,22 +1,13 @@
1
- import type plugins from "./plugins/plugins.js";
2
- import type parsers from "./parsers/parsers.js";
3
- import type files from "./files/files.js";
4
- import type rules from "./rules/rules.js";
5
- import type { RuleEntry, RuleObject } from "./rules/rules.js";
6
- import type overrides from "./overrides/overrides.js";
1
+ import type Plugins from "./plugins/plugins.js";
2
+ import type Parsers from "./parsers/parsers.js";
3
+ import type Files from "./files/files.js";
4
+ import type Rules from "./rules/rules.js";
5
+ import type Overrides from "./overrides/overrides.js";
7
6
 
8
- namespace Input {
9
- export type Plugins = plugins;
10
- export type Parsers = parsers;
11
- export type Files = files;
12
- export type Rules = rules;
13
- export namespace Rules {
14
- export type Entry = RuleEntry;
15
- export namespace Entry {
16
- export type Object = RuleObject;
17
- }
18
- }
19
- export type Overrides = overrides;
20
- }
21
-
22
- export type { Input as default };
7
+ export type {
8
+ Plugins,
9
+ Parsers,
10
+ Files,
11
+ Rules,
12
+ Overrides,
13
+ };
@@ -1,6 +1,9 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type Input from "../input.js";
1
+ import type { Scope } from "../../../scopes/Scopes.js";
2
+ import type { Rules } from "../input.js";
3
3
 
4
- type Overrides = Particord<Scope, Input.Rules.Entry.Object>;
4
+ type Overrides = Readonly<Particord<Scope, Rules.Entry.Object>>;
5
5
 
6
- export type { Overrides as default };
6
+ export type {
7
+ Overrides as default,
8
+ Overrides,
9
+ };
@@ -1,10 +1,9 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type { Options } from "../../../factory/factory.js";
1
+ import type { Parsers as Dependencies } from "../../../dependency/dependency.js";
3
2
 
4
- type Parsers = {
5
- readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]]
6
- ? unknown
7
- : null
8
- };
3
+ type Parsers = Readonly<Record<Dependencies, unknown>>;
9
4
 
10
- export type { Parsers as default };
5
+ export type {
6
+ Parsers as default,
7
+ Parsers,
8
+ Dependencies,
9
+ };
@@ -1,6 +1,9 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type { Options } from "../../../factory/factory.js";
1
+ import type { Plugins as Dependencies } from "../../../dependency/dependency.js";
3
2
 
4
- type Plugins = { readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"] };
3
+ type Plugins = Readonly<Record<Dependencies, { configs: unknown }>>;
5
4
 
6
- export type { Plugins as default };
5
+ export type {
6
+ Plugins as default,
7
+ Plugins,
8
+ Dependencies,
9
+ };
@@ -1,5 +1,8 @@
1
- import type RuleObject from "./object/object.js";
1
+ import type * as Entry from "./object/object.js";
2
2
 
3
- type RuleEntry = readonly [string, RuleObject];
3
+ type Entry = readonly [string, Entry.Object];
4
4
 
5
- export type { RuleEntry as default };
5
+ export type {
6
+ Entry as default,
7
+ Entry,
8
+ };
@@ -1,5 +1,12 @@
1
- import type Severity from "./state/severity.js";
1
+ import type * as Object from "./state/level.js";
2
2
 
3
- type RuleObject = Record<string, Severity | [Severity, ...unknown[]]>;
3
+ type Object = Readonly<Record<
4
+ string,
5
+ | Object.Level
6
+ | readonly [Object.Level, ...unknown[]]
7
+ >>;
4
8
 
5
- export type { RuleObject as default };
9
+ export type {
10
+ Object as default,
11
+ Object,
12
+ };
@@ -0,0 +1,9 @@
1
+ type Level =
2
+ | "error"
3
+ | "warn"
4
+ | "off";
5
+
6
+ export type {
7
+ Level as default,
8
+ Level,
9
+ };
@@ -1,11 +1,9 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
2
- import type RuleEntry from "./entry/entry.js";
3
- import type RuleObject from "./entry/object/object.js";
1
+ import type { Scope } from "../../../scopes/Scopes.js";
2
+ import type * as Rules from "./entry/entry.js";
4
3
 
5
- type Rules = Record<Scope, readonly RuleEntry[]>;
4
+ type Rules = Readonly<Record<Scope, readonly Rules.Entry[]>>;
6
5
 
7
6
  export type {
8
7
  Rules as default,
9
- RuleEntry,
10
- RuleObject,
8
+ Rules,
11
9
  };
@@ -1,8 +1,8 @@
1
- import type Input from "../../input/input.js";
1
+ import type { Rules } from "../../input/input.js";
2
2
 
3
3
  export default interface Config {
4
4
  name: `linted/scope:${string}/rule:${string}+${string}`;
5
- rules: Input.Rules.Entry.Object;
5
+ rules: Rules.Entry.Object;
6
6
  files: readonly string[];
7
7
  linterOptions: {
8
8
  noInlineConfig: true;
@@ -1,3 +1,3 @@
1
- import type Output from "./config/config.js";
1
+ import type Config from "./config/config.js";
2
2
 
3
- export type { Output as default };
3
+ export type { Config as default };
@@ -0,0 +1,4 @@
1
+ import type Plugins from "./plugins/index.js";
2
+ import type Parsers from "./parsers/index.js";
3
+
4
+ export type { Plugins, Parsers };
@@ -0,0 +1,9 @@
1
+ type Parsers =
2
+ | "ts"
3
+ | "svelte"
4
+ | "html"
5
+ | "jsonc"
6
+ | "yml"
7
+ ;
8
+
9
+ export type { Parsers as default };
@@ -0,0 +1,10 @@
1
+ type Plugins =
2
+ | "@stylistic"
3
+ | "@typescript-eslint"
4
+ | "svelte"
5
+ | "@html-eslint"
6
+ | "jsonc"
7
+ | "yml"
8
+ ;
9
+
10
+ export type { Plugins as default };
@@ -1,6 +1,6 @@
1
1
  import Ruleset, { Rule } from "./ruleset/Ruleset.js";
2
2
  import Files from "./files/Files.js";
3
- import Options from "./options/options.js";
3
+ import Options from "./options/Options.js";
4
4
 
5
5
  export {
6
6
  Options,
@@ -1,5 +1,5 @@
1
- import type { Scope } from "../../scopes/scopes.js";
2
- import type Input from "../../boundary/input/input.js";
1
+ import type { Scope } from "../../scopes/Scopes.js";
2
+ import type { Input } from "../../boundary/boundary.js";
3
3
 
4
4
  export default class Files {
5
5
  constructor(
@@ -1,10 +1,11 @@
1
- import type { Scope } from "../../../scopes/scopes.js";
1
+ import type { Scope } from "../../../scopes/Scopes.js";
2
2
  import type { Ruleset } from "../../factory.js";
3
- import type Output from "../../../boundary/output/output.js";
3
+ import type { Plugins } from "../../../dependency/dependency.js";
4
+ import type { Output } from "../../../boundary/boundary.js";
4
5
 
5
6
  export default abstract class Option<
6
7
  S extends Scope,
7
- PluginId extends string,
8
+ PluginId extends Plugins,
8
9
  IsEcma extends boolean = true,
9
10
  ParserOptions extends object | boolean = false,
10
11
  ParserCount extends 0 | 1 | 2 = 0,
@@ -1,5 +1,4 @@
1
- import type { Scope } from "../../scopes/scopes.js";
2
- import type Input from "../../boundary/input/input.js";
1
+ import type { Scope } from "../../scopes/Scopes.js";
3
2
  import Rule from "./rule/Rule.js";
4
3
 
5
4
  export { Rule };
@@ -53,7 +52,7 @@ export default class Ruleset<S extends Scope> {
53
52
  }
54
53
  }
55
54
 
56
- public override(overrides: undefined | Input.Rules.Entry.Object) {
55
+ public override(overrides: undefined | Rule["rules"]) {
57
56
  try {
58
57
  if (typeof overrides !== "undefined")
59
58
  this.overrides = new Rule(
@@ -1,4 +1,4 @@
1
- import type Input from "../../../boundary/input/input.js";
1
+ import type { Input } from "../../../boundary/boundary.js";
2
2
 
3
3
  export default class {
4
4
  constructor(
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
- import scopes, { type Scope } from "./scopes/scopes.js";
2
- import type Output from "./boundary/output/output.js";
3
- import type Input from "./boundary/input/input.js";
1
+ import scopes, { type Scope } from "./scopes/Scopes.js";
2
+ import type * as Boundary from "./boundary/boundary.js";
4
3
  import {
5
4
  Options,
6
5
  Files,
@@ -10,17 +9,16 @@ import {
10
9
 
11
10
  export type {
12
11
  Scope,
13
- Input,
14
- Output,
12
+ Boundary,
15
13
  };
16
14
  export default function (
17
- plugins: Input.Plugins,
18
- parsers: Input.Parsers,
19
- base: Input.Files,
20
- includes: Partial<Input.Files>,
21
- rules: Input.Rules,
22
- overrides: Input.Overrides,
23
- ): Output[] {
15
+ plugins: Boundary.Input.Plugins,
16
+ parsers: Boundary.Input.Parsers,
17
+ base: Boundary.Input.Files,
18
+ includes: Partial<Boundary.Input.Files>,
19
+ rules: Boundary.Input.Rules,
20
+ overrides: Boundary.Input.Overrides,
21
+ ): Boundary.Output[] {
24
22
  try {
25
23
  const files = new Files(
26
24
  base,
@@ -56,19 +54,16 @@ export default function (
56
54
  ...rules.yml.map(args => new Rule(...args)),
57
55
  ),
58
56
  },
59
- imports: {
60
- [S in Scope]: OmitFilesRuleset<ConstructorParameters<typeof Options[S]>>;
57
+ scopedParsers: {
58
+ [S in Scope]: ConstructorParameters<typeof Options[S]>[3];
61
59
  } = {
62
- js: [plugins.js, []] as const,
63
- ts: [plugins.ts, [parsers.ts]] as const,
64
- svelte: [
65
- plugins.svelte,
66
- [parsers.svelte, parsers.ts],
67
- ] as const,
68
- html: [plugins.html, [parsers.html]] as const,
69
- json: [plugins.json, [parsers.json]] as const,
70
- jsonc: [plugins.jsonc, [parsers.jsonc]] as const,
71
- yml: [plugins.yml, [parsers.yml]] as const,
60
+ js: [] as const,
61
+ ts: [parsers.ts] as const,
62
+ svelte: [parsers.svelte, parsers.ts] as const,
63
+ html: [parsers.html] as const,
64
+ json: [parsers.jsonc] as const,
65
+ jsonc: [parsers.jsonc] as const,
66
+ yml: [parsers.yml] as const,
72
67
  } as const;
73
68
 
74
69
  for (const scope of scopes)
@@ -83,49 +78,65 @@ export default function (
83
78
  .js(
84
79
  files.files("js"),
85
80
  rulesets.js,
86
- ...imports.js,
81
+ {
82
+ "@stylistic": plugins["@stylistic"],
83
+ },
84
+ scopedParsers.js,
87
85
  )
88
86
  .configs,
89
87
  ts: new Options
90
88
  .ts(
91
89
  files.files("ts"),
92
90
  rulesets.ts,
93
- ...imports.ts,
91
+ {
92
+ "@stylistic": plugins["@stylistic"],
93
+ "@typescript-eslint": plugins["@typescript-eslint"],
94
+ },
95
+ scopedParsers.ts,
94
96
  )
95
97
  .configs,
96
98
  svelte: new Options
97
99
  .svelte(
98
100
  files.files("svelte"),
99
101
  rulesets.svelte,
100
- ...imports.svelte,
102
+ {
103
+ "@stylistic": plugins["@stylistic"],
104
+ "@typescript-eslint": plugins["@typescript-eslint"],
105
+ svelte: plugins.svelte,
106
+ },
107
+ scopedParsers.svelte,
101
108
  )
102
109
  .configs,
103
110
  html: new Options
104
111
  .html(
105
112
  files.files("html"),
106
113
  rulesets.html,
107
- ...imports.html,
114
+ { "@html-eslint": plugins["@html-eslint"] },
115
+ scopedParsers.html,
108
116
  )
109
117
  .configs,
110
118
  json: new Options
111
119
  .json(
112
120
  files.files("json"),
113
121
  rulesets.json,
114
- ...imports.json,
122
+ { jsonc: plugins.jsonc },
123
+ scopedParsers.json,
115
124
  )
116
125
  .configs,
117
126
  jsonc: new Options
118
127
  .jsonc(
119
128
  files.files("jsonc"),
120
129
  rulesets.jsonc,
121
- ...imports.jsonc,
130
+ { jsonc: plugins.jsonc },
131
+ scopedParsers.jsonc,
122
132
  )
123
133
  .configs,
124
134
  yml: new Options
125
135
  .yml(
126
136
  files.files("yml"),
127
137
  rulesets.yml,
128
- ...imports.yml,
138
+ { yml: plugins.yml },
139
+ scopedParsers.yml,
129
140
  )
130
141
  .configs,
131
142
  };
@@ -1,3 +0,0 @@
1
- type FileArray = readonly string[];
2
- export type { FileArray as default };
3
- //# sourceMappingURL=filearray.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filearray.d.ts","sourceRoot":"","sources":["../../../../../src/boundary/input/files/array/filearray.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,SAAS,MAAM,EAAE,CAAC;AAEnC,YAAY,EAAE,SAAS,IAAI,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=filearray.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filearray.js","sourceRoot":"","sources":["../../../../../src/boundary/input/files/array/filearray.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import type { Scope } from "../../scopes/scopes.js";
2
- import type { Options } from "../../factory/factory.js";
3
- type Parsers = {
4
- readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
5
- };
6
- export type { Parsers as default };
7
- //# sourceMappingURL=parsers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,GACvG,OAAO,GACP,IAAI;CACT,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=parsers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/boundary/input/parsers.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import type { Scope } from "../../scopes/scopes.js";
2
- import type { Options } from "../../factory/factory.js";
3
- type Plugins = {
4
- readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
5
- };
6
- export type { Plugins as default };
7
- //# sourceMappingURL=plugins.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAExD,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CAClE,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=plugins.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/boundary/input/plugins.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- type RuleRecord = readonly [
2
- string,
3
- Record<string, "error" | "warn" | "off" | ["error" | "warn" | "off", ...unknown[]]>
4
- ];
5
- export type { RuleRecord as default };
6
- //# sourceMappingURL=ruleRecord.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ruleRecord.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/ruleRecord.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,SAAS;IACzB,MAAM;IACN,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;CACpF,CAAC;AAEF,YAAY,EAAE,UAAU,IAAI,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ruleRecord.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ruleRecord.js","sourceRoot":"","sources":["../../../src/boundary/input/ruleRecord.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- type Severity = "error" | "warn" | "off";
2
- export type { Severity as default };
3
- //# sourceMappingURL=severity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/severity.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GACT,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,YAAY,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=severity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"severity.js","sourceRoot":"","sources":["../../../../../../../src/boundary/input/rules/entry/object/state/severity.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- import type plugins from "./input/plugins.js";
2
- import type parsers from "./input/parsers.js";
3
- import type ruleRecord from "./input/ruleRecord.js";
4
- declare namespace Input {
5
- type Plugins = plugins;
6
- type Parsers = parsers;
7
- type RuleRecord = ruleRecord;
8
- }
9
- export type { Input as default };
10
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/boundary/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAEpD,kBAAU,KAAK,CAAC;IACd,KAAY,OAAO,GAAG,OAAO,CAAC;IAC9B,KAAY,OAAO,GAAG,OAAO,CAAC;IAC9B,KAAY,UAAU,GAAG,UAAU,CAAC;CACrC;AAED,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/boundary/input.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- export default interface IConfig {
2
- name: `scope:${string}/rule:${string}+${string}`;
3
- rules: IRule;
4
- files: readonly string[];
5
- linterOptions: {
6
- noInlineConfig: true;
7
- reportUnusedDisableDirectives: "error";
8
- };
9
- languageOptions: {
10
- sourceType?: "module" | "script";
11
- ecmaVersion?: "latest";
12
- globals?: Record<string, true>;
13
- parser?: unknown;
14
- parserOptions?: Record<string, unknown>;
15
- };
16
- plugins: Record<string, Record<"configs", unknown>>;
17
- processor?: string;
18
- }
19
- //# sourceMappingURL=IConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IConfig.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/IConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,OAAO;IAC9B,IAAI,EAAE,SAAS,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACjD,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IConfig.js","sourceRoot":"","sources":["../../../src/boundary/output/IConfig.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type Output from "./output/IConfig.js";
2
- export type { Output as default };
3
- //# sourceMappingURL=output.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/boundary/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAE9C,YAAY,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=output.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/boundary/output.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../src/scopes/scopes.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,MAAM,iEAQF,CAAC;AAEX,eAAe,MAAM,CAAC;AACtB,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../src/scopes/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;IACb,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC;AAEX,eAAe,MAAM,CAAC"}