@eslinted/core 13.3.0-rc.1 → 13.3.0-rc.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/factory/factory.d.ts +183 -81
  2. package/dist/factory/factory.d.ts.map +1 -1
  3. package/dist/factory/factory.js +22 -3
  4. package/dist/factory/factory.js.map +1 -1
  5. package/dist/factory/settings/scopes/html.d.ts +4 -3
  6. package/dist/factory/settings/scopes/html.d.ts.map +1 -1
  7. package/dist/factory/settings/scopes/html.js +2 -4
  8. package/dist/factory/settings/scopes/html.js.map +1 -1
  9. package/dist/factory/settings/scopes/js.d.ts +3 -2
  10. package/dist/factory/settings/scopes/js.d.ts.map +1 -1
  11. package/dist/factory/settings/scopes/js.js +2 -3
  12. package/dist/factory/settings/scopes/js.js.map +1 -1
  13. package/dist/factory/settings/scopes/json.d.ts +4 -3
  14. package/dist/factory/settings/scopes/json.d.ts.map +1 -1
  15. package/dist/factory/settings/scopes/json.js +2 -4
  16. package/dist/factory/settings/scopes/json.js.map +1 -1
  17. package/dist/factory/settings/scopes/jsonc.d.ts +4 -3
  18. package/dist/factory/settings/scopes/jsonc.d.ts.map +1 -1
  19. package/dist/factory/settings/scopes/jsonc.js +2 -4
  20. package/dist/factory/settings/scopes/jsonc.js.map +1 -1
  21. package/dist/factory/settings/scopes/mocha.d.ts +5 -3
  22. package/dist/factory/settings/scopes/mocha.d.ts.map +1 -1
  23. package/dist/factory/settings/scopes/mocha.js +11 -12
  24. package/dist/factory/settings/scopes/mocha.js.map +1 -1
  25. package/dist/factory/settings/scopes/svelte.d.ts +16 -12
  26. package/dist/factory/settings/scopes/svelte.d.ts.map +1 -1
  27. package/dist/factory/settings/scopes/svelte.js +12 -13
  28. package/dist/factory/settings/scopes/svelte.js.map +1 -1
  29. package/dist/factory/settings/scopes/ts.d.ts +10 -6
  30. package/dist/factory/settings/scopes/ts.d.ts.map +1 -1
  31. package/dist/factory/settings/scopes/ts.js +10 -11
  32. package/dist/factory/settings/scopes/ts.js.map +1 -1
  33. package/dist/factory/settings/scopes/yml.d.ts +4 -3
  34. package/dist/factory/settings/scopes/yml.d.ts.map +1 -1
  35. package/dist/factory/settings/scopes/yml.js +2 -4
  36. package/dist/factory/settings/scopes/yml.js.map +1 -1
  37. package/dist/factory/settings/setting.d.ts +50 -37
  38. package/dist/factory/settings/setting.d.ts.map +1 -1
  39. package/dist/factory/settings/setting.js +5 -6
  40. package/dist/factory/settings/setting.js.map +1 -1
  41. package/dist/index.js +9 -9
  42. package/dist/index.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/factory/factory.ts +22 -2
  45. package/src/factory/settings/scopes/html.ts +3 -8
  46. package/src/factory/settings/scopes/js.ts +3 -5
  47. package/src/factory/settings/scopes/json.ts +3 -8
  48. package/src/factory/settings/scopes/jsonc.ts +3 -8
  49. package/src/factory/settings/scopes/mocha.ts +13 -17
  50. package/src/factory/settings/scopes/svelte.ts +19 -21
  51. package/src/factory/settings/scopes/ts.ts +16 -17
  52. package/src/factory/settings/scopes/yml.ts +3 -9
  53. package/src/factory/settings/setting.ts +39 -43
  54. package/src/index.ts +9 -9
@@ -1,6 +1,7 @@
1
1
  import type { ScopeSettings } from "./settings/index.js";
2
2
  import type { Input } from "../interface/input/index.js";
3
3
  export declare class Factory {
4
+ readonly parsers: Input["imports"]["parsers"];
4
5
  readonly common: {
5
6
  readonly settings: {
6
7
  readonly name: "linted/*/settings";
@@ -23,17 +24,10 @@ export declare class Factory {
23
24
  readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>;
24
25
  readonly rules: Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", import("../interface/shared/config/rule/index.js").NamedBag[]>>;
25
26
  };
26
- constructor({ settings: defaultSettings, files: defaultFiles, ignores: defaultIgnores, rules: defaultRules, }: Input["defaults"], { "*": commonExtension, ...scopeExtensions }?: Input["extensions"]);
27
+ constructor(parsers: Input["imports"]["parsers"], { settings: defaultSettings, files: defaultFiles, ignores: defaultIgnores, rules: defaultRules, }: Input["defaults"], { "*": commonExtension, ...scopeExtensions }?: Input["extensions"]);
27
28
  scope<S extends keyof typeof ScopeSettings>(scope: S, settings: InstanceType<typeof ScopeSettings[S]>): readonly [
28
- ] | ({
29
- readonly languageOptions: {
30
- readonly parser: unknown;
31
- readonly parserOptions: {
32
- readonly project: "tsconfig.json";
33
- readonly sourceType: "module";
34
- readonly ecmaVersion: 2023;
35
- };
36
- };
29
+ ] | {
30
+ readonly processor?: "svelte/svelte";
37
31
  readonly name: `linted/${S}:${string}`;
38
32
  readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
39
33
  readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
@@ -41,89 +35,197 @@ export declare class Factory {
41
35
  import("../interface/shared/config/rule/index.js").State,
42
36
  ...unknown[]
43
37
  ]>>;
44
- } | {
45
- readonly languageOptions: object;
46
- readonly name: `linted/${S}:${string}`;
47
- readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
48
- readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
49
- readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
50
- import("../interface/shared/config/rule/index.js").State,
51
- ...unknown[]
52
- ]>>;
53
- } | {
54
38
  readonly languageOptions: {
55
- readonly parser: unknown;
56
- readonly parserOptions: {
57
- readonly parser: unknown;
39
+ readonly parser?: unknown;
40
+ readonly parserOptions?: {
41
+ readonly parser?: unknown;
42
+ readonly project: "tsconfig.json";
43
+ readonly sourceType: "module";
44
+ readonly ecmaVersion: 2023;
45
+ } | {
46
+ parser: unknown;
47
+ readonly project: "tsconfig.json";
48
+ readonly sourceType: "module";
49
+ readonly ecmaVersion: 2023;
58
50
  readonly extraFileExtensions: readonly [
59
51
  ".svelte"
60
52
  ];
61
- } & {
53
+ } | {
54
+ readonly parser?: unknown;
62
55
  readonly project: "tsconfig.json";
63
56
  readonly sourceType: "module";
64
57
  readonly ecmaVersion: 2023;
65
58
  };
66
- };
67
- readonly processor: "svelte/svelte";
68
- readonly name: `linted/${S}:${string}`;
69
- readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
70
- readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
71
- readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
72
- import("../interface/shared/config/rule/index.js").State,
73
- ...unknown[]
74
- ]>>;
75
- } | {
76
- readonly languageOptions: {
77
- readonly parser: unknown;
78
- readonly parserOptions: {
59
+ } | {
60
+ parser: unknown;
61
+ readonly parserOptions?: {
62
+ readonly parser?: unknown;
63
+ readonly project: "tsconfig.json";
64
+ readonly sourceType: "module";
65
+ readonly ecmaVersion: 2023;
66
+ } | {
67
+ parser: unknown;
68
+ readonly project: "tsconfig.json";
69
+ readonly sourceType: "module";
70
+ readonly ecmaVersion: 2023;
71
+ readonly extraFileExtensions: readonly [
72
+ ".svelte"
73
+ ];
74
+ } | {
75
+ readonly parser?: unknown;
76
+ readonly project: "tsconfig.json";
77
+ readonly sourceType: "module";
78
+ readonly ecmaVersion: 2023;
79
+ };
80
+ } | {
81
+ parser: unknown;
82
+ readonly parserOptions?: {
83
+ readonly parser?: unknown;
84
+ readonly project: "tsconfig.json";
85
+ readonly sourceType: "module";
86
+ readonly ecmaVersion: 2023;
87
+ } | {
88
+ parser: unknown;
89
+ readonly project: "tsconfig.json";
90
+ readonly sourceType: "module";
91
+ readonly ecmaVersion: 2023;
92
+ readonly extraFileExtensions: readonly [
93
+ ".svelte"
94
+ ];
95
+ } | {
96
+ readonly parser?: unknown;
97
+ readonly project: "tsconfig.json";
98
+ readonly sourceType: "module";
99
+ readonly ecmaVersion: 2023;
100
+ };
101
+ } | {
102
+ parser: unknown;
103
+ readonly parserOptions?: {
104
+ readonly parser?: unknown;
105
+ readonly project: "tsconfig.json";
106
+ readonly sourceType: "module";
107
+ readonly ecmaVersion: 2023;
108
+ } | {
109
+ parser: unknown;
110
+ readonly project: "tsconfig.json";
111
+ readonly sourceType: "module";
112
+ readonly ecmaVersion: 2023;
113
+ readonly extraFileExtensions: readonly [
114
+ ".svelte"
115
+ ];
116
+ } | {
117
+ readonly parser?: unknown;
118
+ readonly project: "tsconfig.json";
119
+ readonly sourceType: "module";
120
+ readonly ecmaVersion: 2023;
121
+ };
122
+ readonly globals: {
123
+ readonly after: false;
124
+ readonly afterEach: false;
125
+ readonly before: false;
126
+ readonly beforeEach: false;
127
+ readonly context: false;
128
+ readonly describe: false;
129
+ readonly it: false;
130
+ readonly mocha: false;
131
+ readonly run: false;
132
+ readonly setup: false;
133
+ readonly specify: false;
134
+ readonly suite: false;
135
+ readonly suiteSetup: false;
136
+ readonly suiteTeardown: false;
137
+ readonly teardown: false;
138
+ readonly test: false;
139
+ readonly xcontext: false;
140
+ readonly xdescribe: false;
141
+ readonly xit: false;
142
+ readonly xspecify: false;
143
+ };
144
+ } | {
145
+ parser: unknown;
146
+ readonly parserOptions?: {
147
+ readonly parser?: unknown;
148
+ readonly project: "tsconfig.json";
149
+ readonly sourceType: "module";
150
+ readonly ecmaVersion: 2023;
151
+ } | {
152
+ parser: unknown;
153
+ readonly project: "tsconfig.json";
154
+ readonly sourceType: "module";
155
+ readonly ecmaVersion: 2023;
156
+ readonly extraFileExtensions: readonly [
157
+ ".svelte"
158
+ ];
159
+ } | {
160
+ readonly parser?: unknown;
161
+ readonly project: "tsconfig.json";
162
+ readonly sourceType: "module";
163
+ readonly ecmaVersion: 2023;
164
+ };
165
+ } | {
166
+ parser: unknown;
167
+ readonly parserOptions?: {
168
+ readonly parser?: unknown;
169
+ readonly project: "tsconfig.json";
170
+ readonly sourceType: "module";
171
+ readonly ecmaVersion: 2023;
172
+ } | {
173
+ parser: unknown;
174
+ readonly project: "tsconfig.json";
175
+ readonly sourceType: "module";
176
+ readonly ecmaVersion: 2023;
177
+ readonly extraFileExtensions: readonly [
178
+ ".svelte"
179
+ ];
180
+ } | {
181
+ readonly parser?: unknown;
182
+ readonly project: "tsconfig.json";
183
+ readonly sourceType: "module";
184
+ readonly ecmaVersion: 2023;
185
+ };
186
+ } | {
187
+ parser: unknown;
188
+ readonly parserOptions?: {
189
+ readonly parser?: unknown;
190
+ readonly project: "tsconfig.json";
191
+ readonly sourceType: "module";
192
+ readonly ecmaVersion: 2023;
193
+ } | {
194
+ parser: unknown;
195
+ readonly project: "tsconfig.json";
196
+ readonly sourceType: "module";
197
+ readonly ecmaVersion: 2023;
198
+ readonly extraFileExtensions: readonly [
199
+ ".svelte"
200
+ ];
201
+ } | {
202
+ readonly parser?: unknown;
203
+ readonly project: "tsconfig.json";
204
+ readonly sourceType: "module";
205
+ readonly ecmaVersion: 2023;
206
+ };
207
+ } | {
208
+ parser: unknown;
209
+ readonly parserOptions?: {
210
+ readonly parser?: unknown;
211
+ readonly project: "tsconfig.json";
212
+ readonly sourceType: "module";
213
+ readonly ecmaVersion: 2023;
214
+ } | {
215
+ parser: unknown;
216
+ readonly project: "tsconfig.json";
217
+ readonly sourceType: "module";
218
+ readonly ecmaVersion: 2023;
219
+ readonly extraFileExtensions: readonly [
220
+ ".svelte"
221
+ ];
222
+ } | {
223
+ readonly parser?: unknown;
79
224
  readonly project: "tsconfig.json";
80
225
  readonly sourceType: "module";
81
226
  readonly ecmaVersion: 2023;
82
227
  };
83
228
  };
84
- readonly name: `linted/${S}:${string}`;
85
- readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
86
- readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
87
- readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
88
- import("../interface/shared/config/rule/index.js").State,
89
- ...unknown[]
90
- ]>>;
91
- } | {
92
- readonly languageOptions: object;
93
- readonly name: `linted/${S}:${string}`;
94
- readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
95
- readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
96
- readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
97
- import("../interface/shared/config/rule/index.js").State,
98
- ...unknown[]
99
- ]>>;
100
- } | {
101
- readonly languageOptions: object;
102
- readonly name: `linted/${S}:${string}`;
103
- readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
104
- readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
105
- readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
106
- import("../interface/shared/config/rule/index.js").State,
107
- ...unknown[]
108
- ]>>;
109
- } | {
110
- readonly languageOptions: object;
111
- readonly name: `linted/${S}:${string}`;
112
- readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
113
- readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
114
- readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
115
- import("../interface/shared/config/rule/index.js").State,
116
- ...unknown[]
117
- ]>>;
118
- } | {
119
- readonly languageOptions: object;
120
- readonly name: `linted/${S}:${string}`;
121
- readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
122
- readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
123
- readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
124
- import("../interface/shared/config/rule/index.js").State,
125
- ...unknown[]
126
- ]>>;
127
- })[];
229
+ }[];
128
230
  }
129
231
  //# sourceMappingURL=factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,qBAAa,OAAO;IAClB,SAAgB,MAAM;;;;;;;;;;;;;;;;MAAC;IACvB,SAAgB,MAAM;;;;MAAC;gBAGrB,EACE,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,YAAY,GACpB,EAAE,KAAK,CAAC,UAAU,CAAC,EACpB,EAAE,GAAG,EAAE,eAAoB,EAAE,GAAG,eAAe,EAAE,GAAE,KAAK,CAAC,YAAY,CAAe;IAgD/E,KAAK,CAAC,CAAC,SAAS,MAAM,OAAO,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB7G"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,qBAAa,OAAO;aAKA,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;IAJtD,SAAgB,MAAM;;;;;;;;;;;;;;;;MAAC;IACvB,SAAgB,MAAM;;;;MAAC;gBAGL,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,EACpD,EACE,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,YAAY,GACpB,EAAE,KAAK,CAAC,UAAU,CAAC,EACpB,EAAE,GAAG,EAAE,eAAoB,EAAE,GAAG,eAAe,EAAE,GAAE,KAAK,CAAC,YAAY,CAAe;IAgD/E,KAAK,CAAC,CAAC,SAAS,MAAM,OAAO,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC7G"}
@@ -1,7 +1,9 @@
1
1
  export class Factory {
2
+ parsers;
2
3
  common;
3
4
  scopes;
4
- constructor({ settings: defaultSettings, files: defaultFiles, ignores: defaultIgnores, rules: defaultRules, }, { "*": commonExtension = {}, ...scopeExtensions } = {}) {
5
+ constructor(parsers, { settings: defaultSettings, files: defaultFiles, ignores: defaultIgnores, rules: defaultRules, }, { "*": commonExtension = {}, ...scopeExtensions } = {}) {
6
+ this.parsers = parsers;
5
7
  const { noInlineConfig = defaultSettings.noInlineConfig, reportUnusedDisableDirectives = defaultSettings.reportUnusedDisableDirectives, sourceType = defaultSettings.sourceType, ecmaVersion = defaultSettings.ecmaVersion, ignores = [], override = false, } = commonExtension;
6
8
  this.common = {
7
9
  settings: {
@@ -31,7 +33,22 @@ export class Factory {
31
33
  }
32
34
  }
33
35
  scope(scope, settings) {
34
- const { files: { [scope]: files, }, ignores: { [scope]: ignores }, rules: { [scope]: rules }, } = this.scopes, ruleset = rules.map(([id, rules]) => ({ id: `${scope}:${id}`, rules }));
36
+ const { files: { [scope]: files, }, ignores: { [scope]: ignores }, rules: { [scope]: rules }, } = this.scopes, ruleset = rules.map(([id, rules]) => ({ id: `${scope}:${id}`, rules })), { languageOptions, parserOptions } = settings, loadedLanguageOptions = {
37
+ ...languageOptions,
38
+ ..."parserOptions" in parserOptions
39
+ ? {
40
+ parserOptions: {
41
+ ...parserOptions.parserOptions,
42
+ ..."parser" in parserOptions.parserOptions
43
+ ? { parser: this.parsers[parserOptions.parserOptions.parser] }
44
+ : {},
45
+ },
46
+ }
47
+ : {},
48
+ ..."parser" in languageOptions
49
+ ? { parser: this.parsers[languageOptions.parser] }
50
+ : {},
51
+ };
35
52
  return files.length < 1
36
53
  ? []
37
54
  : ruleset.map(({ id, rules }) => ({
@@ -39,7 +56,9 @@ export class Factory {
39
56
  files,
40
57
  ignores,
41
58
  rules,
42
- ...settings.option,
59
+ languageOptions: loadedLanguageOptions,
60
+ ...settings.processor,
61
+ ...settings.language,
43
62
  }));
44
63
  }
45
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/factory/factory.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,OAAO;IACF,MAAM,CAAC;IACP,MAAM,CAAC;IAEvB,YACE,EACE,QAAQ,EAAE,eAAe,EACzB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,YAAY,GACD,EACpB,EAAE,GAAG,EAAE,eAAe,GAAG,EAAE,EAAE,GAAG,eAAe,KAA0B,EAAW;QAEpF,MAAM,EACJ,cAAc,GAAG,eAAe,CAAC,cAAc,EAC/C,6BAA6B,GAAG,eAAe,CAAC,6BAA6B,EAC7E,UAAU,GAAG,eAAe,CAAC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AAO;gBACP,KAAK;gBACL,eAAe,EAAE,qBAAqB;gBACtC,GAAG,QAAQ,CAAC,SAAS;gBACrB,GAAG,QAAQ,CAAC,QAAQ;aACX,CAAA,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -1,10 +1,11 @@
1
1
  import { ScopeSetting } from "../setting.js";
2
- export default class HtmlSetting extends ScopeSetting<"html", true> {
2
+ export default class HtmlSetting extends ScopeSetting<"html"> {
3
3
  readonly scope = "html";
4
4
  readonly processor: {};
5
5
  readonly language: {};
6
- get languageOptions(): {
7
- readonly parser: unknown;
6
+ readonly parserOptions: {};
7
+ readonly languageOptions: {
8
+ readonly parser: "html";
8
9
  };
9
10
  }
10
11
  //# sourceMappingURL=html.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,MAAM,EACN,IAAI,CACL;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,MAAM,CACP;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAA+B;CAC/D"}
@@ -3,9 +3,7 @@ export default class HtmlSetting extends ScopeSetting {
3
3
  scope = "html";
4
4
  processor = {};
5
5
  language = {};
6
- get languageOptions() {
7
- const [parser] = this.parser;
8
- return { parser };
9
- }
6
+ parserOptions = {};
7
+ languageOptions = { parser: "html" };
10
8
  }
11
9
  //# sourceMappingURL=html.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAGxC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAExC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAE,MAAM,EAAE,MAAM,EAAW,CAAC;CAC/D"}
@@ -1,8 +1,9 @@
1
1
  import { ScopeSetting } from "../setting.js";
2
- export default class JsSetting extends ScopeSetting<"js"> {
2
+ export default class JsSetting extends ScopeSetting {
3
3
  readonly scope = "js";
4
4
  readonly processor: {};
5
5
  readonly language: {};
6
- get languageOptions(): {};
6
+ readonly parserOptions: {};
7
+ readonly languageOptions: {};
7
8
  }
8
9
  //# sourceMappingURL=js.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY,CAAC,IAAI,CAAC;IACvD,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe,OAEzB;CACF"}
1
+ {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACjD,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe,KAAe;CAC/C"}
@@ -3,8 +3,7 @@ export default class JsSetting extends ScopeSetting {
3
3
  scope = "js";
4
4
  processor = {};
5
5
  language = {};
6
- get languageOptions() {
7
- return {};
8
- }
6
+ parserOptions = {};
7
+ languageOptions = {};
9
8
  }
10
9
  //# sourceMappingURL=js.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAkB;IACvC,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,OAAO,EAAW,CAAC;IACrB,CAAC;CACF"}
1
+ {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACjC,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAW,CAAC;CAC/C"}
@@ -1,10 +1,11 @@
1
1
  import { ScopeSetting } from "../setting.js";
2
- export default class JsonSetting extends ScopeSetting<"json", true> {
2
+ export default class JsonSetting extends ScopeSetting<"jsonc"> {
3
3
  readonly scope = "json";
4
4
  readonly processor: {};
5
5
  readonly language: {};
6
- get languageOptions(): {
7
- readonly parser: unknown;
6
+ readonly parserOptions: {};
7
+ readonly languageOptions: {
8
+ readonly parser: "jsonc";
8
9
  };
9
10
  }
10
11
  //# sourceMappingURL=json.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,MAAM,EACN,IAAI,CACL;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,OAAO,CACR;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAAgC;CAChE"}
@@ -3,9 +3,7 @@ export default class JsonSetting extends ScopeSetting {
3
3
  scope = "json";
4
4
  processor = {};
5
5
  language = {};
6
- get languageOptions() {
7
- const [parser] = this.parser;
8
- return { parser };
9
- }
6
+ parserOptions = {};
7
+ languageOptions = { parser: "jsonc" };
10
8
  }
11
9
  //# sourceMappingURL=json.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAGxC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAExC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAE,MAAM,EAAE,OAAO,EAAW,CAAC;CAChE"}
@@ -1,10 +1,11 @@
1
1
  import { ScopeSetting } from "../setting.js";
2
- export default class JsoncSetting extends ScopeSetting<"jsonc", true> {
2
+ export default class JsoncSetting extends ScopeSetting<"jsonc"> {
3
3
  readonly scope = "jsonc";
4
4
  readonly processor: {};
5
5
  readonly language: {};
6
- get languageOptions(): {
7
- readonly parser: unknown;
6
+ readonly parserOptions: {};
7
+ readonly languageOptions: {
8
+ readonly parser: "jsonc";
8
9
  };
9
10
  }
10
11
  //# sourceMappingURL=jsonc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,OAAO,EACP,IAAI,CACL;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IAEvC,IAAW,eAAe;;MAIzB;CACF"}
1
+ {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAAgC;CAChE"}
@@ -3,9 +3,7 @@ export default class JsoncSetting extends ScopeSetting {
3
3
  scope = "jsonc";
4
4
  processor = {};
5
5
  language = {};
6
- get languageOptions() {
7
- const [parser] = this.parser;
8
- return { parser };
9
- }
6
+ parserOptions = {};
7
+ languageOptions = { parser: "jsonc" };
10
8
  }
11
9
  //# sourceMappingURL=jsonc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAGzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IAEvC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAEzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAE,MAAM,EAAE,OAAO,EAAW,CAAC;CAChE"}
@@ -1,19 +1,21 @@
1
1
  import { ScopeSetting } from "../setting.js";
2
2
  import type TsSetting from "./ts.js";
3
- export default class MochaSetting extends ScopeSetting<"mocha", TsSetting["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
3
+ export default class MochaSetting extends ScopeSetting<"ts", TsSetting["parserOptions"], "mocha"> {
4
4
  readonly scope = "mocha";
5
5
  readonly processor: {};
6
6
  readonly language: {};
7
7
  readonly types: readonly [
8
8
  "mocha"
9
9
  ];
10
- get languageOptions(): {
11
- readonly parser: unknown;
10
+ readonly parserOptions: {
12
11
  readonly parserOptions: {
13
12
  readonly project: "tsconfig.json";
14
13
  readonly sourceType: "module";
15
14
  readonly ecmaVersion: 2023;
16
15
  };
16
+ };
17
+ readonly languageOptions: {
18
+ readonly parser: "ts";
17
19
  readonly globals: {
18
20
  readonly after: false;
19
21
  readonly afterEach: false;
@@ -1 +1 @@
1
- {"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,OAAO,EACP,SAAS,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EACvD,CAAC,EACD,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,KAAK,qBAAsB;IAE3C,IAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB;CACF"}
1
+ {"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,IAAI,EACJ,SAAS,CAAC,eAAe,CAAC,EAC1B,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,KAAK,qBAAsB;IAC3C,SAAgB,aAAa;;;;;;MAMlB;IACX,SAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;MAGpB;CACZ"}
@@ -4,17 +4,16 @@ export default class MochaSetting extends ScopeSetting {
4
4
  processor = {};
5
5
  language = {};
6
6
  types = ["mocha"];
7
- get languageOptions() {
8
- const [parser] = this.parser;
9
- return {
10
- parser,
11
- parserOptions: {
12
- project: "tsconfig.json",
13
- sourceType: "module",
14
- ecmaVersion: 2023,
15
- },
16
- globals: this.globals("mocha"),
17
- };
18
- }
7
+ parserOptions = {
8
+ parserOptions: {
9
+ project: "tsconfig.json",
10
+ sourceType: "module",
11
+ ecmaVersion: 2023,
12
+ },
13
+ };
14
+ languageOptions = {
15
+ parser: "ts",
16
+ globals: this.globals("mocha"),
17
+ };
19
18
  }
20
19
  //# sourceMappingURL=mocha.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAKzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAE3C,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,MAAM;YACN,aAAa,EAAE;gBACb,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aACT;YACV,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;SACtB,CAAC;IACb,CAAC;CACF"}
1
+ {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../../src/factory/settings/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAIzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAC3B,aAAa,GAAG;QAC9B,aAAa,EAAE;YACb,OAAO,EAAE,eAAe;YACxB,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,IAAI;SACT;KACF,CAAC;IACK,eAAe,GAAG;QAChC,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;KACtB,CAAC;CACZ"}