@eslinted/core 11.1.0 → 11.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/dist/factory/index.d.ts +2 -3
  2. package/dist/factory/index.d.ts.map +1 -1
  3. package/dist/factory/index.js.map +1 -1
  4. package/dist/factory/options/index.d.ts +1 -1
  5. package/dist/factory/options/index.d.ts.map +1 -1
  6. package/dist/factory/options/index.js.map +1 -1
  7. package/dist/factory/options/option/index.d.ts +3 -2
  8. package/dist/factory/options/option/index.d.ts.map +1 -1
  9. package/dist/factory/options/option/index.js +1 -0
  10. package/dist/factory/options/option/index.js.map +1 -1
  11. package/dist/factory/options/option/template/index.d.ts +0 -1
  12. package/dist/factory/options/option/template/index.d.ts.map +1 -1
  13. package/dist/factory/rulesets/index.d.ts +1 -1
  14. package/dist/factory/rulesets/index.d.ts.map +1 -1
  15. package/dist/factory/rulesets/index.js.map +1 -1
  16. package/dist/factory/rulesets/ruleset.d.ts +3 -6
  17. package/dist/factory/rulesets/ruleset.d.ts.map +1 -1
  18. package/dist/factory/rulesets/ruleset.js.map +1 -1
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +17 -14
  22. package/dist/index.js.map +1 -1
  23. package/dist/interface/index.d.ts +4 -0
  24. package/dist/interface/index.d.ts.map +1 -0
  25. package/dist/{input/rules → interface}/index.js.map +1 -1
  26. package/dist/interface/input/imports/index.d.ts +8 -0
  27. package/dist/interface/input/imports/index.d.ts.map +1 -0
  28. package/dist/interface/input/imports/index.js.map +1 -0
  29. package/dist/interface/input/imports/parsers/index.d.ts +4 -0
  30. package/dist/interface/input/imports/parsers/index.d.ts.map +1 -0
  31. package/dist/interface/input/imports/parsers/index.js.map +1 -0
  32. package/dist/interface/input/imports/parsers/parser.d.ts +3 -0
  33. package/dist/interface/input/imports/parsers/parser.d.ts.map +1 -0
  34. package/dist/interface/input/imports/parsers/parser.js +2 -0
  35. package/dist/interface/input/imports/parsers/parser.js.map +1 -0
  36. package/dist/interface/input/imports/plugins.d.ts +3 -0
  37. package/dist/interface/input/imports/plugins.d.ts.map +1 -0
  38. package/dist/interface/input/imports/plugins.js.map +1 -0
  39. package/dist/interface/input/index.d.ts +5 -0
  40. package/dist/interface/input/index.d.ts.map +1 -0
  41. package/dist/interface/input/index.js.map +1 -0
  42. package/dist/interface/input/user/files/defaults.d.ts +3 -0
  43. package/dist/interface/input/user/files/defaults.d.ts.map +1 -0
  44. package/dist/interface/input/user/files/defaults.js +2 -0
  45. package/dist/interface/input/user/files/defaults.js.map +1 -0
  46. package/dist/interface/input/user/files/includes.d.ts +3 -0
  47. package/dist/interface/input/user/files/includes.d.ts.map +1 -0
  48. package/dist/interface/input/user/files/includes.js +2 -0
  49. package/dist/interface/input/user/files/includes.js.map +1 -0
  50. package/dist/interface/input/user/files/index.d.ts +8 -0
  51. package/dist/interface/input/user/files/index.d.ts.map +1 -0
  52. package/dist/interface/input/user/files/index.js +2 -0
  53. package/dist/interface/input/user/files/index.js.map +1 -0
  54. package/dist/interface/input/user/index.d.ts +8 -0
  55. package/dist/interface/input/user/index.d.ts.map +1 -0
  56. package/dist/interface/input/user/index.js +2 -0
  57. package/dist/interface/input/user/index.js.map +1 -0
  58. package/dist/interface/input/user/rules/defaults.d.ts +3 -0
  59. package/dist/interface/input/user/rules/defaults.d.ts.map +1 -0
  60. package/dist/interface/input/user/rules/defaults.js +2 -0
  61. package/dist/interface/input/user/rules/defaults.js.map +1 -0
  62. package/dist/interface/input/user/rules/index.d.ts +8 -0
  63. package/dist/interface/input/user/rules/index.d.ts.map +1 -0
  64. package/dist/interface/input/user/rules/index.js +2 -0
  65. package/dist/interface/input/user/rules/index.js.map +1 -0
  66. package/dist/interface/input/user/rules/overrides.d.ts +4 -0
  67. package/dist/interface/input/user/rules/overrides.d.ts.map +1 -0
  68. package/dist/interface/input/user/rules/overrides.js +2 -0
  69. package/dist/interface/input/user/rules/overrides.js.map +1 -0
  70. package/dist/interface/output/global/ignores.d.ts +5 -0
  71. package/dist/interface/output/global/ignores.d.ts.map +1 -0
  72. package/dist/interface/output/global/ignores.js +2 -0
  73. package/dist/interface/output/global/ignores.js.map +1 -0
  74. package/dist/interface/output/global/index.d.ts +8 -0
  75. package/dist/interface/output/global/index.d.ts.map +1 -0
  76. package/dist/interface/output/global/index.js +2 -0
  77. package/dist/interface/output/global/index.js.map +1 -0
  78. package/dist/interface/output/global/system.d.ts +14 -0
  79. package/dist/interface/output/global/system.d.ts.map +1 -0
  80. package/dist/interface/output/global/system.js +2 -0
  81. package/dist/interface/output/global/system.js.map +1 -0
  82. package/dist/interface/output/index.d.ts +8 -0
  83. package/dist/interface/output/index.d.ts.map +1 -0
  84. package/dist/interface/output/index.js +2 -0
  85. package/dist/interface/output/index.js.map +1 -0
  86. package/dist/interface/output/scoped.d.ts +3 -0
  87. package/dist/interface/output/scoped.d.ts.map +1 -0
  88. package/dist/interface/output/scoped.js +2 -0
  89. package/dist/interface/output/scoped.js.map +1 -0
  90. package/dist/objects/config/index.d.ts +16 -0
  91. package/dist/objects/config/index.d.ts.map +1 -0
  92. package/dist/objects/config/index.js +2 -0
  93. package/dist/objects/config/index.js.map +1 -0
  94. package/dist/objects/config/property.d.ts +2 -0
  95. package/dist/objects/config/property.d.ts.map +1 -0
  96. package/dist/objects/config/property.js +2 -0
  97. package/dist/objects/config/property.js.map +1 -0
  98. package/dist/objects/index.d.ts +4 -0
  99. package/dist/objects/index.d.ts.map +1 -0
  100. package/dist/objects/index.js +2 -0
  101. package/dist/{input → objects}/index.js.map +1 -1
  102. package/dist/objects/plugins/index.d.ts +5 -0
  103. package/dist/objects/plugins/index.d.ts.map +1 -0
  104. package/dist/objects/plugins/index.js +2 -0
  105. package/dist/objects/plugins/index.js.map +1 -0
  106. package/dist/objects/plugins/plugin.d.ts +2 -0
  107. package/dist/objects/plugins/plugin.d.ts.map +1 -0
  108. package/dist/objects/plugins/plugin.js +2 -0
  109. package/dist/objects/plugins/plugin.js.map +1 -0
  110. package/dist/{input/rules/entry → objects/rule}/index.d.ts +2 -4
  111. package/dist/objects/rule/index.d.ts.map +1 -0
  112. package/dist/objects/rule/index.js +2 -0
  113. package/dist/objects/rule/index.js.map +1 -0
  114. package/dist/{input/rules/entry → objects/rule}/record/index.d.ts +1 -0
  115. package/dist/objects/rule/record/index.d.ts.map +1 -0
  116. package/dist/objects/rule/record/index.js +2 -0
  117. package/dist/objects/rule/record/index.js.map +1 -0
  118. package/dist/objects/rule/record/state.d.ts.map +1 -0
  119. package/dist/objects/rule/record/state.js.map +1 -0
  120. package/dist/{scopes.d.ts → scopes/index.d.ts} +1 -1
  121. package/dist/scopes/index.d.ts.map +1 -0
  122. package/dist/{scopes.js → scopes/index.js} +1 -1
  123. package/dist/scopes/index.js.map +1 -0
  124. package/dist/scopes/index.spec.d.ts +2 -0
  125. package/dist/scopes/index.spec.d.ts.map +1 -0
  126. package/dist/{scopes.spec.js → scopes/index.spec.js} +2 -2
  127. package/dist/scopes/index.spec.js.map +1 -0
  128. package/package.json +1 -1
  129. package/src/factory/index.ts +9 -4
  130. package/src/factory/options/index.ts +4 -1
  131. package/src/factory/options/option/index.ts +91 -87
  132. package/src/factory/options/option/template/index.ts +3 -3
  133. package/src/factory/rulesets/index.ts +5 -3
  134. package/src/factory/rulesets/ruleset.ts +7 -4
  135. package/src/index.ts +31 -16
  136. package/src/interface/index.ts +9 -0
  137. package/src/interface/input/imports/index.ts +12 -0
  138. package/src/interface/input/imports/parsers/index.ts +8 -0
  139. package/src/{input/imports/parsers.ts → interface/input/imports/parsers/parser.ts} +2 -2
  140. package/src/interface/input/imports/plugins.ts +3 -0
  141. package/src/interface/input/index.ts +11 -0
  142. package/src/interface/input/user/files/defaults.ts +6 -0
  143. package/src/interface/input/user/files/includes.ts +5 -0
  144. package/src/interface/input/user/files/index.ts +9 -0
  145. package/src/interface/input/user/index.ts +13 -0
  146. package/src/interface/input/user/rules/defaults.ts +9 -0
  147. package/src/interface/input/user/rules/index.ts +13 -0
  148. package/src/interface/input/user/rules/overrides.ts +7 -0
  149. package/src/interface/output/global/ignores.ts +11 -0
  150. package/src/interface/output/global/index.ts +12 -0
  151. package/src/interface/output/global/system.ts +48 -0
  152. package/src/interface/output/index.ts +13 -0
  153. package/src/interface/output/scoped.ts +3 -0
  154. package/src/objects/config/index.ts +16 -0
  155. package/src/objects/config/property.ts +12 -0
  156. package/src/objects/index.ts +10 -0
  157. package/src/objects/plugins/index.ts +6 -0
  158. package/src/{input/imports/plugins.ts → objects/plugins/plugin.ts} +1 -1
  159. package/src/objects/rule/index.ts +8 -0
  160. package/src/objects/rule/record/index.ts +7 -0
  161. package/src/{scopes.spec.ts → scopes/index.spec.ts} +1 -1
  162. package/dist/input/files.d.ts +0 -6
  163. package/dist/input/files.d.ts.map +0 -1
  164. package/dist/input/files.js +0 -2
  165. package/dist/input/files.js.map +0 -1
  166. package/dist/input/imports/parsers.d.ts +0 -3
  167. package/dist/input/imports/parsers.d.ts.map +0 -1
  168. package/dist/input/imports/parsers.js +0 -2
  169. package/dist/input/imports/parsers.js.map +0 -1
  170. package/dist/input/imports/plugins.d.ts +0 -2
  171. package/dist/input/imports/plugins.d.ts.map +0 -1
  172. package/dist/input/imports/plugins.js.map +0 -1
  173. package/dist/input/index.d.ts +0 -22
  174. package/dist/input/index.d.ts.map +0 -1
  175. package/dist/input/parsers.d.ts +0 -3
  176. package/dist/input/parsers.d.ts.map +0 -1
  177. package/dist/input/parsers.js +0 -2
  178. package/dist/input/parsers.js.map +0 -1
  179. package/dist/input/plugins.d.ts +0 -5
  180. package/dist/input/plugins.d.ts.map +0 -1
  181. package/dist/input/plugins.js +0 -2
  182. package/dist/input/plugins.js.map +0 -1
  183. package/dist/input/rules/entry/index.d.ts.map +0 -1
  184. package/dist/input/rules/entry/index.js.map +0 -1
  185. package/dist/input/rules/entry/record/index.d.ts.map +0 -1
  186. package/dist/input/rules/entry/record/index.js.map +0 -1
  187. package/dist/input/rules/entry/record/state.d.ts.map +0 -1
  188. package/dist/input/rules/entry/record/state.js.map +0 -1
  189. package/dist/input/rules/index.d.ts +0 -14
  190. package/dist/input/rules/index.d.ts.map +0 -1
  191. package/dist/output.d.ts +0 -30
  192. package/dist/output.d.ts.map +0 -1
  193. package/dist/output.js +0 -2
  194. package/dist/output.js.map +0 -1
  195. package/dist/scopes.d.ts.map +0 -1
  196. package/dist/scopes.js.map +0 -1
  197. package/dist/scopes.spec.d.ts +0 -2
  198. package/dist/scopes.spec.d.ts.map +0 -1
  199. package/dist/scopes.spec.js.map +0 -1
  200. package/src/input/files.ts +0 -6
  201. package/src/input/index.ts +0 -23
  202. package/src/input/parsers.ts +0 -3
  203. package/src/input/plugins.ts +0 -3
  204. package/src/input/rules/entry/index.ts +0 -7
  205. package/src/input/rules/entry/record/index.ts +0 -3
  206. package/src/input/rules/index.ts +0 -14
  207. package/src/output.ts +0 -68
  208. /package/dist/{input → interface}/index.js +0 -0
  209. /package/dist/{input/rules/entry → interface/input/imports}/index.js +0 -0
  210. /package/dist/{input/rules/entry/record → interface/input/imports/parsers}/index.js +0 -0
  211. /package/dist/{input → interface/input}/imports/plugins.js +0 -0
  212. /package/dist/{input/rules → interface/input}/index.js +0 -0
  213. /package/dist/{input/rules/entry → objects/rule}/record/state.d.ts +0 -0
  214. /package/dist/{input/rules/entry → objects/rule}/record/state.js +0 -0
  215. /package/src/{input/rules/entry → objects/rule}/record/state.ts +0 -0
  216. /package/src/{scopes.ts → scopes/index.ts} +0 -0
@@ -0,0 +1,9 @@
1
+ export type { Scope } from "..";
2
+
3
+ import type { FilesDefaults } from "./defaults";
4
+ import type { FilesIncludes } from "./includes";
5
+
6
+ export interface InputFiles {
7
+ files: FilesDefaults;
8
+ includes: FilesIncludes;
9
+ }
@@ -0,0 +1,13 @@
1
+ export type {
2
+ Scope,
3
+ RuleEntry,
4
+ RuleRecord,
5
+ } from "..";
6
+
7
+ import type { InputFiles } from "./files";
8
+ import type { InputRules } from "./rules";
9
+
10
+ export interface User {
11
+ files: InputFiles;
12
+ rules: InputRules;
13
+ }
@@ -0,0 +1,9 @@
1
+ import type {
2
+ Scope,
3
+ RuleEntry,
4
+ } from ".";
5
+
6
+ export type RulesDefaults = Record<
7
+ Scope,
8
+ RuleEntry[]
9
+ >;
@@ -0,0 +1,13 @@
1
+ export type {
2
+ Scope,
3
+ RuleEntry,
4
+ RuleRecord,
5
+ } from "..";
6
+
7
+ import type { RulesDefaults } from "./defaults";
8
+ import type { RulesOverrides } from "./overrides";
9
+
10
+ export interface InputRules {
11
+ rules: RulesDefaults;
12
+ overrides: RulesOverrides;
13
+ }
@@ -0,0 +1,7 @@
1
+ import type { RuleRecord } from ".";
2
+ import type { RulesDefaults } from "./defaults";
3
+
4
+ export type RulesOverrides = Partially<
5
+ keyof RulesDefaults,
6
+ RuleRecord
7
+ >;
@@ -0,0 +1,11 @@
1
+ import type { ConfigProperty } from ".";
2
+
3
+ export type GlobalConfigIgnores = Partial<Record<
4
+ Exclude<
5
+ ConfigProperty,
6
+ "ignores"
7
+ >,
8
+ never
9
+ >> & {
10
+ ignores: string[];
11
+ };
@@ -0,0 +1,12 @@
1
+ export type {
2
+ Plugins,
3
+ ConfigProperty,
4
+ } from "..";
5
+
6
+ import type { GlobalConfigIgnores } from "./ignores";
7
+ import type { GlobalConfigSystem } from "./system";
8
+
9
+ export type GlobalConfigs = readonly [
10
+ GlobalConfigIgnores,
11
+ GlobalConfigSystem,
12
+ ];
@@ -0,0 +1,48 @@
1
+ import type {
2
+ Plugins,
3
+ ConfigProperty,
4
+ } from ".";
5
+
6
+ export type GlobalConfigSystem = Partial<Record<
7
+ Exclude<
8
+ ConfigProperty,
9
+ | "name"
10
+ | "plugins"
11
+ | "linterOptions"
12
+ | "languageOptions"
13
+ >,
14
+ never
15
+ >> & {
16
+ name: `linted`;
17
+ plugins: Plugins;
18
+ linterOptions: {
19
+ noInlineConfig: boolean;
20
+ reportUnusedDisableDirectives:
21
+ | "error"
22
+ | "warn"
23
+ | "off"
24
+ ;
25
+ };
26
+ languageOptions: {
27
+ sourceType?:
28
+ | "module"
29
+ | "script"
30
+ ;
31
+ ecmaVersion?:
32
+ | "latest"
33
+ | 3
34
+ | 5
35
+ | ToNumber<`20${(
36
+ | 15
37
+ | 16
38
+ | 17
39
+ | 18
40
+ | 19
41
+ | 20
42
+ | 21
43
+ | 22
44
+ | 23
45
+ | 24
46
+ )}`>;
47
+ };
48
+ };
@@ -0,0 +1,13 @@
1
+ export type {
2
+ Plugins,
3
+ Config,
4
+ ConfigProperty,
5
+ } from "..";
6
+
7
+ import type { GlobalConfigs } from "./global";
8
+ import type { ScopedConfig } from "./scoped";
9
+
10
+ export type Output = [
11
+ ...GlobalConfigs,
12
+ ...ScopedConfig[],
13
+ ];
@@ -0,0 +1,3 @@
1
+ import type { Config } from ".";
2
+
3
+ export type ScopedConfig = Config;
@@ -0,0 +1,16 @@
1
+ import type { RuleRecord } from "..";
2
+
3
+ export interface Config {
4
+ name: `linted/${string}`;
5
+ rules: RuleRecord;
6
+ files: string[];
7
+ ignores: string[];
8
+ languageOptions: {
9
+ parser?: unknown;
10
+ parserOptions?: Table;
11
+ globals?: Table<true>;
12
+ };
13
+ processor?: string;
14
+ language?: string;
15
+ }
16
+ export type { ConfigProperty } from "./property";
@@ -0,0 +1,12 @@
1
+ export type ConfigProperty = (
2
+ | "name"
3
+ | "plugins"
4
+ | "files"
5
+ | "ignores"
6
+ | "rules"
7
+ | "linterOptions"
8
+ | "languageOptions"
9
+ | "processor"
10
+ | "language"
11
+ | "settings"
12
+ );
@@ -0,0 +1,10 @@
1
+ export type { Plugins } from "./plugins";
2
+ export type {
3
+ RuleEntry,
4
+ RuleRecord,
5
+ RuleState,
6
+ } from "./rule";
7
+ export type {
8
+ Config,
9
+ ConfigProperty,
10
+ } from "./config";
@@ -0,0 +1,6 @@
1
+ import type { Plugin } from "./plugin";
2
+
3
+ export type Plugins = Record<
4
+ Plugin,
5
+ { configs: unknown }
6
+ >;
@@ -1,4 +1,4 @@
1
- export type Plugins = (
1
+ export type Plugin = (
2
2
  | "@stylistic"
3
3
  | "@typescript-eslint"
4
4
  | "svelte"
@@ -0,0 +1,8 @@
1
+ import type { RuleRecord } from "./record";
2
+
3
+ export type { RuleRecord };
4
+ export type RuleEntry = readonly [
5
+ string,
6
+ RuleRecord,
7
+ ];
8
+ export type { RuleState } from "./record";
@@ -0,0 +1,7 @@
1
+ import type { RuleState } from "./state";
2
+
3
+ export type { RuleState };
4
+ export type RuleRecord = Table<
5
+ | RuleState
6
+ | readonly [RuleState, ...unknown[]]
7
+ >;
@@ -1,5 +1,5 @@
1
1
  import { expect } from "chai";
2
- import { scopes } from "./scopes";
2
+ import { scopes } from ".";
3
3
 
4
4
  describe("Scopes", function () {
5
5
  describe("shape", function () {
@@ -1,6 +0,0 @@
1
- import type { Scope } from "./index.js";
2
- export interface FilesInput {
3
- files: Record<Scope, string[]>;
4
- includes: Partial<FilesInput["files"]>;
5
- }
6
- //# sourceMappingURL=files.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/input/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;CACxC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=files.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/input/files.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { Scope } from "../index.js";
2
- export type Parsers = Scope & ("ts" | "svelte" | "html" | "jsonc" | "yml");
3
- //# sourceMappingURL=parsers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/input/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG,KAAK,GACvB,CACE,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACV,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=parsers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/input/imports/parsers.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export type Plugins = ("@stylistic" | "@typescript-eslint" | "svelte" | "mocha" | "@html-eslint" | "jsonc" | "yml");
2
- //# sourceMappingURL=plugins.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/input/imports/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,OAAO,GACP,KAAK,CACR,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/input/imports/plugins.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- export type { Scope } from "../scopes.js";
2
- import type { PluginsInput } from "./plugins.js";
3
- import type { ParsersInput } from "./parsers.js";
4
- import type { FilesInput } from "./files.js";
5
- import type { RulesInput } from "./rules/index.js";
6
- export interface Input {
7
- plugins: PluginsInput;
8
- parsers: ParsersInput;
9
- files: FilesInput;
10
- rules: RulesInput;
11
- }
12
- export declare namespace Input {
13
- type Rule = RulesInput;
14
- namespace Rule {
15
- type Entry = RulesInput.Entry;
16
- namespace Entry {
17
- type Id = RulesInput.Entry.Id;
18
- type Record = RulesInput.Entry.Record;
19
- }
20
- }
21
- }
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/input/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,UAAU,CAAC;CACnB;AACD,yBAAiB,KAAK,CAAC;IACrB,KAAY,IAAI,GAAG,UAAU,CAAC;IAC9B,UAAiB,IAAI,CAAC;QACpB,KAAY,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QACrC,UAAiB,KAAK,CAAC;YACrB,KAAY,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YACrC,KAAY,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC;SAC9C;KACF;CACF"}
@@ -1,3 +0,0 @@
1
- import type { Parsers } from "./imports/parsers.js";
2
- export type ParsersInput = Record<Parsers, unknown>;
3
- //# sourceMappingURL=parsers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../src/input/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=parsers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/input/parsers.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { Plugins } from "./imports/plugins.js";
2
- export type PluginsInput = Record<Plugins, {
3
- configs: unknown;
4
- }>;
5
- //# sourceMappingURL=plugins.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/input/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=plugins.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/input/plugins.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/input/rules/entry/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AACtD,yBAAiB,SAAS,CAAC;IACzB,KAAY,EAAE,GAAG,MAAM,CAAC;IACxB,KAAY,MAAM,GAAG,UAAU,CAAC;CACjC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/input/rules/entry/index.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/index.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CACpB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/input/rules/entry/record/state.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import type { Scope } from "../index.js";
2
- import type { RuleEntry } from "./entry/index.js";
3
- export interface RulesInput {
4
- rules: Record<Scope, RuleEntry[]>;
5
- overrides: Partial<Record<Scope, RuleEntry.Record>>;
6
- }
7
- export declare namespace RulesInput {
8
- type Entry = RuleEntry;
9
- namespace Entry {
10
- type Id = RuleEntry.Id;
11
- type Record = RuleEntry.Record;
12
- }
13
- }
14
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;CACrD;AACD,yBAAiB,UAAU,CAAC;IAC1B,KAAY,KAAK,GAAG,SAAS,CAAC;IAC9B,UAAiB,KAAK,CAAC;QACrB,KAAY,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC;QAC9B,KAAY,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;KACvC;CACF"}
package/dist/output.d.ts DELETED
@@ -1,30 +0,0 @@
1
- import type { Input } from "./index.js";
2
- export type Output = [
3
- {
4
- name: `linted`;
5
- plugins: Table<Record<"configs", unknown>>;
6
- linterOptions: {
7
- noInlineConfig: true;
8
- reportUnusedDisableDirectives: "error";
9
- };
10
- languageOptions: {
11
- sourceType?: "module" | "script";
12
- ecmaVersion?: "latest" | 3 | 5 | ToNumber<`20${15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24}`>;
13
- };
14
- },
15
- ...({
16
- name: `linted/${string}`;
17
- rules: Input["rules"]["rules"]["html"][number][1];
18
- files: string[];
19
- languageOptions: {
20
- sourceType?: "module" | "script";
21
- ecmaVersion?: "latest" | 3 | 5 | ToNumber<`20${15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24}`>;
22
- globals?: Table<true>;
23
- parser?: unknown;
24
- parserOptions?: Table;
25
- };
26
- processor?: string;
27
- language?: string;
28
- })[]
29
- ];
30
- //# sourceMappingURL=output.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,MAAM,GAAG;IACnB;QACE,IAAI,EAAE,QAAQ,CAAC;QACf,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;QAC3C,aAAa,EAAE;YACb,cAAc,EAAE,IAAI,CAAC;YACrB,6BAA6B,EAAE,OAAO,CAAC;SACxC,CAAC;QACF,eAAe,EAAE;YACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;YACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KACT,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EACF,EAAE,CAAC,CAAC;SACP,CAAC;KACH;IACD,GAAG,CACD;QACE,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;QACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,eAAe,EAAE;YACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;YACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KACT,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EACF,EAAE,CAAC,CAAC;YACN,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB,aAAa,CAAC,EAAE,KAAK,CAAC;SACvB,CAAC;QACF,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CACF,EAAE;CACJ,CAAC"}
package/dist/output.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=output.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output.js","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,eAAO,MAAM,MAAM,0EAST,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=scopes.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.spec.d.ts","sourceRoot":"","sources":["../src/scopes.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scopes.spec.js","sourceRoot":"","sources":["../src/scopes.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,sBAAsB,EAAE;YACzB,MAAM,CAAC,MAAM,CAAC;iBACX,EAAE,CAAC,OAAO,CAAC;iBACX,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,cAAc,EAAE;YACjB,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;YACvC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,SAAS,EAAE;YACZ,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBACzB,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,YAAY,EAAE;YACf,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAC7B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { Scope } from ".";
2
-
3
- export interface FilesInput {
4
- files: Record<Scope, string[]>;
5
- includes: Partial<FilesInput["files"]>;
6
- }
@@ -1,23 +0,0 @@
1
- export type { Scope } from "../scopes";
2
-
3
- import type { PluginsInput } from "./plugins";
4
- import type { ParsersInput } from "./parsers";
5
- import type { FilesInput } from "./files";
6
- import type { RulesInput } from "./rules";
7
-
8
- export interface Input {
9
- plugins: PluginsInput;
10
- parsers: ParsersInput;
11
- files: FilesInput;
12
- rules: RulesInput;
13
- }
14
- export namespace Input {
15
- export type Rule = RulesInput;
16
- export namespace Rule {
17
- export type Entry = RulesInput.Entry;
18
- export namespace Entry {
19
- export type Id = RulesInput.Entry.Id;
20
- export type Record = RulesInput.Entry.Record;
21
- }
22
- }
23
- }
@@ -1,3 +0,0 @@
1
- import type { Parsers } from "./imports/parsers";
2
-
3
- export type ParsersInput = Record<Parsers, unknown>;
@@ -1,3 +0,0 @@
1
- import type { Plugins } from "./imports/plugins";
2
-
3
- export type PluginsInput = Record<Plugins, { configs: unknown }>;
@@ -1,7 +0,0 @@
1
- import type { RuleRecord } from "./record";
2
-
3
- export type RuleEntry = readonly [string, RuleRecord];
4
- export namespace RuleEntry {
5
- export type Id = string;
6
- export type Record = RuleRecord;
7
- }
@@ -1,3 +0,0 @@
1
- import type { RuleState } from "./state";
2
-
3
- export type RuleRecord = Table<RuleState | readonly [RuleState, ...unknown[]]>;
@@ -1,14 +0,0 @@
1
- import type { Scope } from "..";
2
- import type { RuleEntry } from "./entry";
3
-
4
- export interface RulesInput {
5
- rules: Record<Scope, RuleEntry[]>;
6
- overrides: Partial<Record<Scope, RuleEntry.Record>>;
7
- }
8
- export namespace RulesInput {
9
- export type Entry = RuleEntry;
10
- export namespace Entry {
11
- export type Id = RuleEntry.Id;
12
- export type Record = RuleEntry.Record;
13
- }
14
- }
package/src/output.ts DELETED
@@ -1,68 +0,0 @@
1
- import type { Input } from ".";
2
-
3
- export type Output = [
4
- {
5
- name: `linted`;
6
- plugins: Table<Record<"configs", unknown>>;
7
- linterOptions: {
8
- noInlineConfig: true;
9
- reportUnusedDisableDirectives: "error";
10
- };
11
- languageOptions: {
12
- sourceType?:
13
- | "module"
14
- | "script"
15
- ;
16
- ecmaVersion?:
17
- | "latest"
18
- | 3
19
- | 5
20
- | ToNumber<`20${
21
- | 15
22
- | 16
23
- | 17
24
- | 18
25
- | 19
26
- | 20
27
- | 21
28
- | 22
29
- | 23
30
- | 24
31
- }`>;
32
- };
33
- },
34
- ...(
35
- {
36
- name: `linted/${string}`;
37
- rules: Input["rules"]["rules"]["html"][number][1];
38
- files: string[];
39
- languageOptions: {
40
- sourceType?:
41
- | "module"
42
- | "script"
43
- ;
44
- ecmaVersion?:
45
- | "latest"
46
- | 3
47
- | 5
48
- | ToNumber<`20${
49
- | 15
50
- | 16
51
- | 17
52
- | 18
53
- | 19
54
- | 20
55
- | 21
56
- | 22
57
- | 23
58
- | 24
59
- }`>;
60
- globals?: Table<true>;
61
- parser?: unknown;
62
- parserOptions?: Table;
63
- };
64
- processor?: string;
65
- language?: string;
66
- }
67
- )[],
68
- ];
File without changes
File without changes
File without changes