@eslinted/core 13.4.0-rc.4 → 13.4.0-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/index.d.ts +9 -146
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +18 -22
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/{settings.d.ts → manifests.d.ts} +2 -2
- package/dist/factory/manifests.d.ts.map +1 -0
- package/dist/factory/{settings.js → manifests.js} +2 -2
- package/dist/factory/manifests.js.map +1 -0
- package/dist/factory/scopes/html.d.ts +3 -1
- package/dist/factory/scopes/html.d.ts.map +1 -1
- package/dist/factory/scopes/html.js +1 -1
- package/dist/factory/scopes/html.js.map +1 -1
- package/dist/factory/scopes/js.d.ts +6 -2
- package/dist/factory/scopes/js.d.ts.map +1 -1
- package/dist/factory/scopes/js.js +2 -2
- package/dist/factory/scopes/js.js.map +1 -1
- package/dist/factory/scopes/json.d.ts +3 -1
- package/dist/factory/scopes/json.d.ts.map +1 -1
- package/dist/factory/scopes/json.js +1 -1
- package/dist/factory/scopes/json.js.map +1 -1
- package/dist/factory/scopes/jsonc.d.ts +3 -1
- package/dist/factory/scopes/jsonc.d.ts.map +1 -1
- package/dist/factory/scopes/jsonc.js +1 -1
- package/dist/factory/scopes/jsonc.js.map +1 -1
- package/dist/factory/scopes/manifest/index.d.ts +14 -10
- package/dist/factory/scopes/manifest/index.d.ts.map +1 -1
- package/dist/factory/scopes/manifest/index.js.map +1 -1
- package/dist/factory/scopes/mocha.d.ts +4 -5
- package/dist/factory/scopes/mocha.d.ts.map +1 -1
- package/dist/factory/scopes/mocha.js +4 -5
- package/dist/factory/scopes/mocha.js.map +1 -1
- package/dist/factory/scopes/svelte.d.ts +12 -16
- package/dist/factory/scopes/svelte.d.ts.map +1 -1
- package/dist/factory/scopes/svelte.js +6 -10
- package/dist/factory/scopes/svelte.js.map +1 -1
- package/dist/factory/scopes/ts.d.ts +7 -10
- package/dist/factory/scopes/ts.d.ts.map +1 -1
- package/dist/factory/scopes/ts.js +5 -8
- package/dist/factory/scopes/ts.js.map +1 -1
- package/dist/factory/scopes/yml.d.ts +3 -1
- package/dist/factory/scopes/yml.d.ts.map +1 -1
- package/dist/factory/scopes/yml.js +1 -1
- package/dist/factory/scopes/yml.js.map +1 -1
- package/dist/interface/output/common/settings.d.ts +1 -1
- package/dist/interface/output/common/settings.d.ts.map +1 -1
- package/dist/interface/output/scope/settings.d.ts +1 -1
- package/dist/interface/output/scope/settings.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/factory/index.ts +31 -28
- package/src/factory/{settings.ts → manifests.ts} +1 -1
- package/src/factory/scopes/html.ts +2 -4
- package/src/factory/scopes/js.ts +2 -2
- package/src/factory/scopes/json.ts +2 -4
- package/src/factory/scopes/jsonc.ts +2 -4
- package/src/factory/scopes/manifest/index.ts +7 -9
- package/src/factory/scopes/mocha.ts +4 -5
- package/src/factory/scopes/svelte.ts +9 -15
- package/src/factory/scopes/ts.ts +8 -14
- package/src/factory/scopes/yml.ts +1 -1
- package/src/interface/output/common/settings.ts +1 -1
- package/src/interface/output/scope/settings.ts +1 -1
- package/dist/factory/settings.d.ts.map +0 -1
- package/dist/factory/settings.js.map +0 -1
package/dist/factory/index.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifests } from "./manifests.js";
|
2
2
|
import type { Input } from "../interface/index.js";
|
3
3
|
import type { tree as Tree } from "../scopes/index.js";
|
4
4
|
export declare class Factory {
|
5
5
|
readonly parsers: Input["imports"]["parsers"];
|
6
6
|
readonly common: {
|
7
7
|
readonly settings: {
|
8
|
-
readonly name: "linted
|
8
|
+
readonly name: "linted/*/";
|
9
9
|
readonly linterOptions: {
|
10
10
|
readonly noInlineConfig: boolean;
|
11
11
|
readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
|
@@ -26,7 +26,7 @@ export declare class Factory {
|
|
26
26
|
readonly rules: Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", import("../interface/shared/config/rule/index.js").NamedBag[]>>;
|
27
27
|
};
|
28
28
|
constructor(tree: typeof Tree, parsers: Input["imports"]["parsers"], { settings: defaultSettings, files: defaultFiles, ignores: defaultIgnores, rules: defaultRules, }: Input["defaults"], { "*": commonExtension, ...scopeExtensions }?: Input["extensions"]);
|
29
|
-
scope<S extends keyof typeof
|
29
|
+
scope<S extends keyof typeof ScopeManifests>(scope: S): readonly [
|
30
30
|
] | ({
|
31
31
|
readonly name: `linted/${S}/${string}`;
|
32
32
|
readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
|
@@ -36,12 +36,7 @@ export declare class Factory {
|
|
36
36
|
...unknown[]
|
37
37
|
]>>;
|
38
38
|
} | {
|
39
|
-
readonly processor?: "svelte/svelte";
|
40
|
-
readonly name: `linted/${S}`;
|
41
|
-
readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
|
42
|
-
readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
|
43
39
|
readonly languageOptions: {
|
44
|
-
parser: unknown;
|
45
40
|
readonly parserOptions?: {
|
46
41
|
readonly parser?: unknown;
|
47
42
|
readonly project: "tsconfig.json";
|
@@ -49,124 +44,30 @@ export declare class Factory {
|
|
49
44
|
readonly ecmaVersion: 2023;
|
50
45
|
} | {
|
51
46
|
readonly parser?: unknown;
|
52
|
-
readonly project: "tsconfig.json";
|
53
|
-
readonly sourceType: "module";
|
54
|
-
readonly ecmaVersion: 2023;
|
55
47
|
} | {
|
56
|
-
parser: unknown;
|
57
|
-
readonly project: "tsconfig.json";
|
58
|
-
readonly sourceType: "module";
|
59
|
-
readonly ecmaVersion: 2023;
|
60
|
-
readonly extraFileExtensions: readonly [
|
61
|
-
".svelte"
|
62
|
-
];
|
63
|
-
};
|
64
|
-
} | {
|
65
|
-
readonly parser?: unknown;
|
66
|
-
readonly parserOptions?: {
|
67
48
|
readonly parser?: unknown;
|
68
|
-
readonly project: "tsconfig.json";
|
69
|
-
readonly sourceType: "module";
|
70
|
-
readonly ecmaVersion: 2023;
|
71
49
|
} | {
|
72
50
|
readonly parser?: unknown;
|
73
|
-
readonly project: "tsconfig.json";
|
74
|
-
readonly sourceType: "module";
|
75
|
-
readonly ecmaVersion: 2023;
|
76
51
|
} | {
|
77
|
-
parser: unknown;
|
78
|
-
readonly project: "tsconfig.json";
|
79
|
-
readonly sourceType: "module";
|
80
|
-
readonly ecmaVersion: 2023;
|
81
|
-
readonly extraFileExtensions: readonly [
|
82
|
-
".svelte"
|
83
|
-
];
|
84
|
-
};
|
85
|
-
} | {
|
86
|
-
parser: unknown;
|
87
|
-
readonly parserOptions?: {
|
88
52
|
readonly parser?: unknown;
|
89
|
-
readonly project: "tsconfig.json";
|
90
|
-
readonly sourceType: "module";
|
91
|
-
readonly ecmaVersion: 2023;
|
92
53
|
} | {
|
93
54
|
readonly parser?: unknown;
|
94
|
-
readonly project: "tsconfig.json";
|
95
|
-
readonly sourceType: "module";
|
96
|
-
readonly ecmaVersion: 2023;
|
97
55
|
} | {
|
98
|
-
parser: unknown;
|
99
|
-
readonly project: "tsconfig.json";
|
100
|
-
readonly sourceType: "module";
|
101
|
-
readonly ecmaVersion: 2023;
|
102
|
-
readonly extraFileExtensions: readonly [
|
103
|
-
".svelte"
|
104
|
-
];
|
105
|
-
};
|
106
|
-
} | {
|
107
|
-
parser: unknown;
|
108
|
-
readonly parserOptions?: {
|
109
56
|
readonly parser?: unknown;
|
110
57
|
readonly project: "tsconfig.json";
|
111
58
|
readonly sourceType: "module";
|
112
59
|
readonly ecmaVersion: 2023;
|
113
60
|
} | {
|
114
61
|
readonly parser?: unknown;
|
115
|
-
readonly project: "tsconfig.json";
|
116
|
-
readonly sourceType: "module";
|
117
|
-
readonly ecmaVersion: 2023;
|
118
|
-
} | {
|
119
|
-
parser: unknown;
|
120
|
-
readonly project: "tsconfig.json";
|
121
|
-
readonly sourceType: "module";
|
122
|
-
readonly ecmaVersion: 2023;
|
123
62
|
readonly extraFileExtensions: readonly [
|
124
63
|
".svelte"
|
125
64
|
];
|
126
|
-
};
|
127
|
-
} | {
|
128
|
-
parser: unknown;
|
129
|
-
readonly parserOptions?: {
|
130
|
-
readonly parser?: unknown;
|
131
|
-
readonly project: "tsconfig.json";
|
132
|
-
readonly sourceType: "module";
|
133
|
-
readonly ecmaVersion: 2023;
|
134
|
-
} | {
|
135
|
-
readonly parser?: unknown;
|
136
|
-
readonly project: "tsconfig.json";
|
137
|
-
readonly sourceType: "module";
|
138
|
-
readonly ecmaVersion: 2023;
|
139
|
-
} | {
|
140
|
-
parser: unknown;
|
141
65
|
readonly project: "tsconfig.json";
|
142
66
|
readonly sourceType: "module";
|
143
67
|
readonly ecmaVersion: 2023;
|
144
|
-
readonly extraFileExtensions: readonly [
|
145
|
-
".svelte"
|
146
|
-
];
|
147
68
|
};
|
148
|
-
|
149
|
-
|
150
|
-
readonly parserOptions?: {
|
151
|
-
readonly parser?: unknown;
|
152
|
-
readonly project: "tsconfig.json";
|
153
|
-
readonly sourceType: "module";
|
154
|
-
readonly ecmaVersion: 2023;
|
155
|
-
} | {
|
156
|
-
readonly parser?: unknown;
|
157
|
-
readonly project: "tsconfig.json";
|
158
|
-
readonly sourceType: "module";
|
159
|
-
readonly ecmaVersion: 2023;
|
160
|
-
} | {
|
161
|
-
parser: unknown;
|
162
|
-
readonly project: "tsconfig.json";
|
163
|
-
readonly sourceType: "module";
|
164
|
-
readonly ecmaVersion: 2023;
|
165
|
-
readonly extraFileExtensions: readonly [
|
166
|
-
".svelte"
|
167
|
-
];
|
168
|
-
};
|
169
|
-
readonly globals: {
|
69
|
+
readonly parser?: unknown;
|
70
|
+
readonly globals?: {
|
170
71
|
readonly after: false;
|
171
72
|
readonly afterEach: false;
|
172
73
|
readonly before: false;
|
@@ -188,49 +89,11 @@ export declare class Factory {
|
|
188
89
|
readonly xit: false;
|
189
90
|
readonly xspecify: false;
|
190
91
|
};
|
191
|
-
} | {
|
192
|
-
parser: unknown;
|
193
|
-
readonly parserOptions?: {
|
194
|
-
readonly parser?: unknown;
|
195
|
-
readonly project: "tsconfig.json";
|
196
|
-
readonly sourceType: "module";
|
197
|
-
readonly ecmaVersion: 2023;
|
198
|
-
} | {
|
199
|
-
readonly parser?: unknown;
|
200
|
-
readonly project: "tsconfig.json";
|
201
|
-
readonly sourceType: "module";
|
202
|
-
readonly ecmaVersion: 2023;
|
203
|
-
} | {
|
204
|
-
parser: unknown;
|
205
|
-
readonly project: "tsconfig.json";
|
206
|
-
readonly sourceType: "module";
|
207
|
-
readonly ecmaVersion: 2023;
|
208
|
-
readonly extraFileExtensions: readonly [
|
209
|
-
".svelte"
|
210
|
-
];
|
211
|
-
};
|
212
|
-
} | {
|
213
|
-
parser: unknown;
|
214
|
-
readonly parserOptions?: {
|
215
|
-
readonly parser?: unknown;
|
216
|
-
readonly project: "tsconfig.json";
|
217
|
-
readonly sourceType: "module";
|
218
|
-
readonly ecmaVersion: 2023;
|
219
|
-
} | {
|
220
|
-
readonly parser?: unknown;
|
221
|
-
readonly project: "tsconfig.json";
|
222
|
-
readonly sourceType: "module";
|
223
|
-
readonly ecmaVersion: 2023;
|
224
|
-
} | {
|
225
|
-
parser: unknown;
|
226
|
-
readonly project: "tsconfig.json";
|
227
|
-
readonly sourceType: "module";
|
228
|
-
readonly ecmaVersion: 2023;
|
229
|
-
readonly extraFileExtensions: readonly [
|
230
|
-
".svelte"
|
231
|
-
];
|
232
|
-
};
|
233
92
|
};
|
93
|
+
readonly processor?: "svelte/svelte";
|
94
|
+
readonly name: `linted/${S}/`;
|
95
|
+
readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
|
96
|
+
readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "json" | "js", string[]>>[S];
|
234
97
|
})[];
|
235
98
|
}
|
236
99
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAE9C,qBAAa,OAAO;aAMA,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;IALtD,SAAgB,MAAM;;;;;;;;;;;;;;;;MAAC;IACvB,SAAgB,MAAM;;;;MAAC;gBAGrB,IAAI,EAAE,OAAO,IAAI,EACD,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;IA2D/E,KAAK,CAAC,CAAC,SAAS,MAAM,OAAO,cAAc,EAAE,KAAK,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD7D"}
|
package/dist/factory/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifests } from "./manifests.js";
|
2
2
|
export class Factory {
|
3
3
|
parsers;
|
4
4
|
common;
|
@@ -8,7 +8,7 @@ export class Factory {
|
|
8
8
|
const { noInlineConfig = defaultSettings.noInlineConfig, reportUnusedDisableDirectives = defaultSettings.reportUnusedDisableDirectives, sourceType = defaultSettings.sourceType, ecmaVersion = defaultSettings.ecmaVersion, ignores = [], override = false, } = commonExtension;
|
9
9
|
this.common = {
|
10
10
|
settings: {
|
11
|
-
name: "linted
|
11
|
+
name: "linted/*/",
|
12
12
|
linterOptions: { noInlineConfig, reportUnusedDisableDirectives },
|
13
13
|
languageOptions: { sourceType, ecmaVersion },
|
14
14
|
},
|
@@ -40,34 +40,30 @@ export class Factory {
|
|
40
40
|
}
|
41
41
|
}
|
42
42
|
scope(scope) {
|
43
|
-
const { files: { [scope]: files
|
44
|
-
...languageOptions,
|
45
|
-
..."parserOptions" in parserOptions
|
46
|
-
? {
|
47
|
-
parserOptions: {
|
48
|
-
...parserOptions.parserOptions,
|
49
|
-
..."parser" in parserOptions.parserOptions
|
50
|
-
? { parser: this.parsers[parserOptions.parserOptions.parser] }
|
51
|
-
: {},
|
52
|
-
},
|
53
|
-
}
|
54
|
-
: {},
|
55
|
-
..."parser" in languageOptions
|
56
|
-
? { parser: this.parsers[languageOptions.parser] }
|
57
|
-
: {},
|
58
|
-
};
|
43
|
+
const { files: { [scope]: files }, ignores: { [scope]: ignores }, rules: { [scope]: rules }, } = this.scopes, ruleset = rules.map(([id, rules]) => ({ id: `${scope}/${id}`, rules })), { processor, language, languageOptions: { parser = null, ...languageOptionsStatic }, parserOptions: { parser: subparser = null, ...parserOptionsStatic }, } = new ScopeManifests[scope]();
|
59
44
|
return files.length < 1
|
60
45
|
? []
|
61
46
|
: ruleset.length < 1
|
62
47
|
? []
|
63
48
|
: [
|
64
49
|
{
|
65
|
-
name: `linted/${scope}
|
50
|
+
name: `linted/${scope}/`,
|
66
51
|
files,
|
67
52
|
ignores,
|
68
|
-
|
69
|
-
...
|
70
|
-
|
53
|
+
...processor,
|
54
|
+
...language,
|
55
|
+
languageOptions: {
|
56
|
+
...languageOptionsStatic,
|
57
|
+
...parser === null ? {} : { parser: this.parsers[parser] },
|
58
|
+
...Object.keys(parserOptionsStatic).length < 1 && subparser === null
|
59
|
+
? {}
|
60
|
+
: {
|
61
|
+
parserOptions: {
|
62
|
+
...parserOptionsStatic,
|
63
|
+
...subparser === null ? {} : { parser: this.parsers[subparser] },
|
64
|
+
},
|
65
|
+
},
|
66
|
+
},
|
71
67
|
},
|
72
68
|
...ruleset.map(({ id, rules }) => ({
|
73
69
|
name: `linted/${id}`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI7C,MAAM,OAAO,OAAO;IAMA;IALF,MAAM,CAAC;IACP,MAAM,CAAC;IAEvB,YACE,IAAiB,EACD,OAAoC,EACpD,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;QAPpE,YAAO,GAAP,OAAO,CAA6B;QASpD,MAAM,EACJ,cAAc,GAAG,eAAe,CAAC,cAAc,EAC/C,6BAA6B,GAAG,eAAe,CAAC,6BAA6B,EAC7E,UAAU,GAAG,eAAe,CAAC,UAAU,EACvC,WAAW,GAAG,eAAe,CAAC,WAAW,EACzC,OAAO,GAAG,EAAW,EACrB,QAAQ,GAAG,KAAK,GACjB,GAAG,eAAe,CAAC;QAEpB,IAAI,CAAC,MAAM,GAAG;YACZ,QAAQ,EAAE;gBACR,IAAI,EAAE,WAAW;gBACjB,aAAa,EAAE,EAAE,cAAc,EAAE,6BAA6B,EAAW;gBACzE,eAAe,EAAE,EAAE,UAAU,EAAE,WAAW,EAAW;aAC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,CAAC,EAAW;4BAC5E,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,KAAK,IAAI;gCAClE,CAAC,CAAC,EAAW;gCACb,CAAC,CAAC;oCACE,aAAa,EAAE;wCACb,GAAG,mBAAmB;wCACtB,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,EAAW,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAW;qCACnF;iCACO;yBACN;qBACF;oBACV,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;wBACjC,IAAI,EAAE,UAAU,EAAE,EAAE;wBACpB,KAAK;wBACL,OAAO;wBACP,KAAK;qBACI,CAAA,CAAC;iBACb,CAAC;IACV,CAAC;CACF"}
|
@@ -6,7 +6,7 @@ import html from "./scopes/html.js";
|
|
6
6
|
import json from "./scopes/json.js";
|
7
7
|
import jsonc from "./scopes/jsonc.js";
|
8
8
|
import yml from "./scopes/yml.js";
|
9
|
-
export declare const
|
9
|
+
export declare const ScopeManifests: {
|
10
10
|
readonly js: typeof js;
|
11
11
|
readonly ts: typeof ts;
|
12
12
|
readonly svelte: typeof svelte;
|
@@ -16,4 +16,4 @@ export declare const ScopeSettings: {
|
|
16
16
|
readonly jsonc: typeof jsonc;
|
17
17
|
readonly yml: typeof yml;
|
18
18
|
};
|
19
|
-
//# sourceMappingURL=
|
19
|
+
//# sourceMappingURL=manifests.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"manifests.d.ts","sourceRoot":"","sources":["../../src/factory/manifests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,eAAO,MAAM,cAAc;;;;;;;;;CASjB,CAAC"}
|
@@ -6,7 +6,7 @@ import html from "./scopes/html.js";
|
|
6
6
|
import json from "./scopes/json.js";
|
7
7
|
import jsonc from "./scopes/jsonc.js";
|
8
8
|
import yml from "./scopes/yml.js";
|
9
|
-
export const
|
9
|
+
export const ScopeManifests = {
|
10
10
|
js,
|
11
11
|
ts,
|
12
12
|
svelte,
|
@@ -16,4 +16,4 @@ export const ScopeSettings = {
|
|
16
16
|
jsonc,
|
17
17
|
yml,
|
18
18
|
};
|
19
|
-
//# sourceMappingURL=
|
19
|
+
//# sourceMappingURL=manifests.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"manifests.js","sourceRoot":"","sources":["../../src/factory/manifests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|
@@ -2,7 +2,9 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class HtmlManifest extends ScopeManifest<"html"> {
|
3
3
|
readonly processor: {};
|
4
4
|
readonly language: {};
|
5
|
-
readonly parserOptions: {
|
5
|
+
readonly parserOptions: {
|
6
|
+
readonly parser: null;
|
7
|
+
};
|
6
8
|
readonly languageOptions: {
|
7
9
|
readonly parser: "html";
|
8
10
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAa,
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAa,CAAC,MAAM,CAAC;IAC7D,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;MAA6B;IAC1D,SAAgB,eAAe;;MAA+B;CAC/D"}
|
@@ -2,7 +2,7 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class HtmlManifest extends ScopeManifest {
|
3
3
|
processor = {};
|
4
4
|
language = {};
|
5
|
-
parserOptions = {};
|
5
|
+
parserOptions = { parser: null };
|
6
6
|
languageOptions = { parser: "html" };
|
7
7
|
}
|
8
8
|
//# sourceMappingURL=html.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/factory/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/factory/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAqB;IAC7C,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAE,MAAM,EAAE,IAAI,EAAW,CAAC;IAC1C,eAAe,GAAG,EAAE,MAAM,EAAE,MAAM,EAAW,CAAC;CAC/D"}
|
@@ -2,7 +2,11 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class JsManifest extends ScopeManifest {
|
3
3
|
readonly processor: {};
|
4
4
|
readonly language: {};
|
5
|
-
readonly parserOptions: {
|
6
|
-
|
5
|
+
readonly parserOptions: {
|
6
|
+
readonly parser: null;
|
7
|
+
};
|
8
|
+
readonly languageOptions: {
|
9
|
+
readonly parser: null;
|
10
|
+
};
|
7
11
|
}
|
8
12
|
//# sourceMappingURL=js.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa;IACnD,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa
|
1
|
+
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa;IACnD,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;MAA6B;IAC1D,SAAgB,eAAe;;MAA6B;CAC7D"}
|
@@ -2,7 +2,7 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class JsManifest extends ScopeManifest {
|
3
3
|
processor = {};
|
4
4
|
language = {};
|
5
|
-
parserOptions = {};
|
6
|
-
languageOptions = {};
|
5
|
+
parserOptions = { parser: null };
|
6
|
+
languageOptions = { parser: null };
|
7
7
|
}
|
8
8
|
//# sourceMappingURL=js.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/factory/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa;IACnC,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;
|
1
|
+
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/factory/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa;IACnC,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAE,MAAM,EAAE,IAAI,EAAW,CAAC;IAC1C,eAAe,GAAG,EAAE,MAAM,EAAE,IAAI,EAAW,CAAC;CAC7D"}
|
@@ -2,7 +2,9 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class JsonManifest extends ScopeManifest<"jsonc"> {
|
3
3
|
readonly processor: {};
|
4
4
|
readonly language: {};
|
5
|
-
readonly parserOptions: {
|
5
|
+
readonly parserOptions: {
|
6
|
+
readonly parser: null;
|
7
|
+
};
|
6
8
|
readonly languageOptions: {
|
7
9
|
readonly parser: "jsonc";
|
8
10
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAa,
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAa,CAAC,OAAO,CAAC;IAC9D,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;MAA6B;IAC1D,SAAgB,eAAe;;MAAgC;CAChE"}
|
@@ -2,7 +2,7 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class JsonManifest extends ScopeManifest {
|
3
3
|
processor = {};
|
4
4
|
language = {};
|
5
|
-
parserOptions = {};
|
5
|
+
parserOptions = { parser: null };
|
6
6
|
languageOptions = { parser: "jsonc" };
|
7
7
|
}
|
8
8
|
//# sourceMappingURL=json.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/factory/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/factory/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAsB;IAC9C,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAE,MAAM,EAAE,IAAI,EAAW,CAAC;IAC1C,eAAe,GAAG,EAAE,MAAM,EAAE,OAAO,EAAW,CAAC;CAChE"}
|
@@ -2,7 +2,9 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class JsoncManifest extends ScopeManifest<"jsonc"> {
|
3
3
|
readonly processor: {};
|
4
4
|
readonly language: {};
|
5
|
-
readonly parserOptions: {
|
5
|
+
readonly parserOptions: {
|
6
|
+
readonly parser: null;
|
7
|
+
};
|
6
8
|
readonly languageOptions: {
|
7
9
|
readonly parser: "jsonc";
|
8
10
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,aAAa,
|
1
|
+
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,aAAa,CAAC,OAAO,CAAC;IAC/D,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;MAA6B;IAC1D,SAAgB,eAAe;;MAAgC;CAChE"}
|
@@ -2,7 +2,7 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class JsoncManifest extends ScopeManifest {
|
3
3
|
processor = {};
|
4
4
|
language = {};
|
5
|
-
parserOptions = {};
|
5
|
+
parserOptions = { parser: null };
|
6
6
|
languageOptions = { parser: "jsonc" };
|
7
7
|
}
|
8
8
|
//# sourceMappingURL=jsonc.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,
|
1
|
+
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,aAAsB;IAC/C,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAE,MAAM,EAAE,IAAI,EAAW,CAAC;IAC1C,eAAe,GAAG,EAAE,MAAM,EAAE,OAAO,EAAW,CAAC;CAChE"}
|
@@ -12,18 +12,20 @@ export declare abstract class ScopeManifest<Parser extends Parsers | false = fal
|
|
12
12
|
readonly language: L;
|
13
13
|
} : Record<string, never>);
|
14
14
|
abstract readonly parserOptions: (ParserOptions extends {
|
15
|
-
readonly parserOptions: infer PO;
|
16
|
-
} ? PO extends {
|
17
15
|
readonly parser: infer P;
|
18
|
-
} ? P extends Parser ? ParserOptions :
|
16
|
+
} ? P extends Parser ? ParserOptions : (Omit<ParserOptions, "parser"> & {
|
17
|
+
readonly parser: null;
|
18
|
+
}) : ParserOptions & {
|
19
|
+
readonly parser: null;
|
20
|
+
});
|
19
21
|
abstract readonly languageOptions: ([
|
20
22
|
Parser
|
21
23
|
] extends [
|
22
24
|
boolean
|
23
25
|
] ? {
|
24
|
-
readonly parser
|
26
|
+
readonly parser: null;
|
25
27
|
} : {
|
26
|
-
parser: Parser;
|
28
|
+
readonly parser: Parser;
|
27
29
|
}) & (Global extends boolean ? {
|
28
30
|
readonly globals?: never;
|
29
31
|
} : {
|
@@ -35,18 +37,20 @@ export declare abstract class ScopeManifest<Parser extends Parsers | false = fal
|
|
35
37
|
] extends [
|
36
38
|
boolean
|
37
39
|
] ? {
|
38
|
-
readonly parser
|
40
|
+
readonly parser: null;
|
39
41
|
} : {
|
40
|
-
parser: Parser;
|
42
|
+
readonly parser: Parser;
|
41
43
|
}) & (Global extends boolean ? {
|
42
44
|
readonly globals?: never;
|
43
45
|
} : {
|
44
46
|
readonly globals: Readonly<Record<string, unknown>>;
|
45
47
|
}) & (ParserOptions extends {
|
46
|
-
readonly parserOptions: infer PO;
|
47
|
-
} ? PO extends {
|
48
48
|
readonly parser: infer P;
|
49
|
-
} ? P extends Parser ? ParserOptions :
|
49
|
+
} ? P extends Parser ? ParserOptions : Omit<ParserOptions, "parser"> & {
|
50
|
+
readonly parser: null;
|
51
|
+
} : ParserOptions & {
|
52
|
+
readonly parser: null;
|
53
|
+
});
|
50
54
|
} & (Processor extends {
|
51
55
|
readonly processor: infer P_1;
|
52
56
|
} ? string extends P_1 ? Record<string, never> : {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/scopes/manifest/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,8BAAsB,aAAa,CACjC,MAAM,SAAS,OAAO,GAAG,KAAK,GAAG,KAAK,EACtC,aAAa,SAAS,MAAM,GAAG,MAAM,EACrC,MAAM,SAAS,MAAM,OAAO,OAAO,GAAG,KAAK,GAAG,KAAK,EACnD,SAAS,SAAS,MAAM,GAAG,MAAM,EACjC,QAAQ,SAAS,MAAM,GAAG,MAAM;IAEhC,kBAAyB,SAAS,EAAE,CAAC,SAAS,SAAS;QAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;KAAE,GAClF,MAAM,SAAS,CAAC,GACd,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB;QAAE,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAA;KAAE,GAC3B,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;IAC3B,kBAAyB,QAAQ,EAAE,CAAC,QAAQ,SAAS;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;KAAE,GAC/E,MAAM,SAAS,CAAC,GACd,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACrB;QAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAA;KAAE,GAC1B,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/scopes/manifest/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B,MAAM,OAAgB,aAAa;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/scopes/manifest/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B,MAAM,OAAgB,aAAa;IAiCjC,IAAW,MAAM;QACf,MAAM,EACJ,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,GACpD,GAAG,IAAI,CAAC;QAET,OAAO;YACL,eAAe,EAAE;gBACf,GAAG,eAAe;gBAClB,GAAG,aAAa;aACjB;YACD,GAAG,SAAS;YACZ,GAAG,QAAQ;SACH,CAAC;IACb,CAAC;IAES,OAAO,CAAC,MAAqC;QACrD,IAAI,OAAO,MAAM,KAAK,SAAS;YAC7B,MAAM,IAAI,SAAS,CAAC,oDAAoD,CAAC,CAAC;QAE5E,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;CACF"}
|
@@ -7,11 +7,10 @@ export default class MochaManifest extends ScopeManifest<"ts", TsManifest["parse
|
|
7
7
|
"mocha"
|
8
8
|
];
|
9
9
|
readonly parserOptions: {
|
10
|
-
readonly
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
};
|
10
|
+
readonly parser: null;
|
11
|
+
readonly project: "tsconfig.json";
|
12
|
+
readonly sourceType: "module";
|
13
|
+
readonly ecmaVersion: 2023;
|
15
14
|
};
|
16
15
|
readonly languageOptions: {
|
17
16
|
readonly parser: "ts";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,MAAM,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,aAAa,CACtD,IAAI,EACJ,UAAU,CAAC,eAAe,CAAC,EAC3B,OAAO,CACR;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,KAAK,qBAAsB;IAC3C,SAAgB,aAAa
|
1
|
+
{"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,MAAM,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,aAAa,CACtD,IAAI,EACJ,UAAU,CAAC,eAAe,CAAC,EAC3B,OAAO,CACR;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,KAAK,qBAAsB;IAC3C,SAAgB,aAAa;;;;;MAKlB;IACX,SAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;MAGpB;CACZ"}
|
@@ -4,11 +4,10 @@ export default class MochaManifest extends ScopeManifest {
|
|
4
4
|
language = {};
|
5
5
|
types = ["mocha"];
|
6
6
|
parserOptions = {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
},
|
7
|
+
parser: null,
|
8
|
+
project: "tsconfig.json",
|
9
|
+
sourceType: "module",
|
10
|
+
ecmaVersion: 2023,
|
12
11
|
};
|
13
12
|
languageOptions = {
|
14
13
|
parser: "ts",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/factory/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,aAI1C;IACiB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAC3B,aAAa,GAAG;QAC9B,
|
1
|
+
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/factory/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,aAI1C;IACiB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAC3B,aAAa,GAAG;QAC9B,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KACT,CAAC;IACK,eAAe,GAAG;QAChC,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;KACtB,CAAC;CACZ"}
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { ScopeManifest } from "./manifest/index.js";
|
2
2
|
import type TsManifest from "./ts.js";
|
3
|
-
export default class SvelteManifest extends ScopeManifest<"svelte" | "ts", TsManifest["parserOptions"] & {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
];
|
9
|
-
};
|
3
|
+
export default class SvelteManifest extends ScopeManifest<"svelte" | "ts", Omit<TsManifest["parserOptions"], "parser"> & {
|
4
|
+
readonly parser: "ts";
|
5
|
+
readonly extraFileExtensions: readonly [
|
6
|
+
".svelte"
|
7
|
+
];
|
10
8
|
}, false, {
|
11
9
|
readonly processor: "svelte/svelte";
|
12
10
|
}> {
|
@@ -15,15 +13,13 @@ export default class SvelteManifest extends ScopeManifest<"svelte" | "ts", TsMan
|
|
15
13
|
};
|
16
14
|
readonly language: {};
|
17
15
|
readonly parserOptions: {
|
18
|
-
readonly
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
];
|
26
|
-
};
|
16
|
+
readonly parser: "ts";
|
17
|
+
readonly extraFileExtensions: readonly [
|
18
|
+
".svelte"
|
19
|
+
];
|
20
|
+
readonly project: "tsconfig.json";
|
21
|
+
readonly sourceType: "module";
|
22
|
+
readonly ecmaVersion: 2023;
|
27
23
|
};
|
28
24
|
readonly languageOptions: {
|
29
25
|
readonly parser: "svelte";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,MAAM,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,aAAa,CACvD,QAAQ,GAAG,IAAI,EACf,UAAU,CAAC,eAAe,CAAC,
|
1
|
+
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,MAAM,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,aAAa,CACvD,QAAQ,GAAG,IAAI,EACf,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,QAAQ,CAAC,GAAG;IAC5C,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;IACtB,QAAQ,CAAC,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACpD,EACD,KAAK,EACL;IAAE,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CACxC;IACC,SAAgB,SAAS;;MAA2C;IACpE,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;;;;;MAMlB;IACX,SAAgB,eAAe;;MAAiC;CACjE"}
|
@@ -3,16 +3,12 @@ export default class SvelteManifest extends ScopeManifest {
|
|
3
3
|
processor = { processor: "svelte/svelte" };
|
4
4
|
language = {};
|
5
5
|
parserOptions = {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
extraFileExtensions: [".svelte"],
|
12
|
-
},
|
13
|
-
};
|
14
|
-
languageOptions = {
|
15
|
-
parser: "svelte",
|
6
|
+
parser: "ts",
|
7
|
+
extraFileExtensions: [".svelte"],
|
8
|
+
project: "tsconfig.json",
|
9
|
+
sourceType: "module",
|
10
|
+
ecmaVersion: 2023,
|
16
11
|
};
|
12
|
+
languageOptions = { parser: "svelte" };
|
17
13
|
}
|
18
14
|
//# sourceMappingURL=svelte.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,
|
1
|
+
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,aAQ3C;IACiB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IACpD,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG;QAC9B,MAAM,EAAE,IAAI;QACZ,mBAAmB,EAAE,CAAC,SAAS,CAAU;QACzC,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KACT,CAAC;IACK,eAAe,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAW,CAAC;CACjE"}
|
@@ -1,19 +1,16 @@
|
|
1
1
|
import { ScopeManifest } from "./manifest/index.js";
|
2
2
|
export default class TsManifest extends ScopeManifest<"ts", {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
readonly ecmaVersion: 2023;
|
7
|
-
};
|
3
|
+
readonly project: "tsconfig.json";
|
4
|
+
readonly sourceType: "module";
|
5
|
+
readonly ecmaVersion: 2023;
|
8
6
|
}> {
|
9
7
|
readonly processor: {};
|
10
8
|
readonly language: {};
|
11
9
|
readonly parserOptions: {
|
12
|
-
readonly
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
};
|
10
|
+
readonly parser: null;
|
11
|
+
readonly project: "tsconfig.json";
|
12
|
+
readonly sourceType: "module";
|
13
|
+
readonly ecmaVersion: 2023;
|
17
14
|
};
|
18
15
|
readonly languageOptions: {
|
19
16
|
readonly parser: "ts";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa,CACnD,IAAI,EACJ;IACE,
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAAa,CACnD,IAAI,EACJ;IACE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;CAC5B,CACF;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;;;;MAKlB;IACX,SAAgB,eAAe;;MAA6B;CAC7D"}
|
@@ -3,14 +3,11 @@ export default class TsManifest extends ScopeManifest {
|
|
3
3
|
processor = {};
|
4
4
|
language = {};
|
5
5
|
parserOptions = {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
},
|
11
|
-
};
|
12
|
-
languageOptions = {
|
13
|
-
parser: "ts",
|
6
|
+
parser: null,
|
7
|
+
project: "tsconfig.json",
|
8
|
+
sourceType: "module",
|
9
|
+
ecmaVersion: 2023,
|
14
10
|
};
|
11
|
+
languageOptions = { parser: "ts" };
|
15
12
|
}
|
16
13
|
//# sourceMappingURL=ts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,aAOvC;IACiB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG;QAC9B,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,eAAe;QACxB,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,IAAI;KACT,CAAC;IACK,eAAe,GAAG,EAAE,MAAM,EAAE,IAAI,EAAW,CAAC;CAC7D"}
|
@@ -2,7 +2,9 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class YmlManifest extends ScopeManifest<"yml"> {
|
3
3
|
readonly processor: {};
|
4
4
|
readonly language: {};
|
5
|
-
readonly parserOptions: {
|
5
|
+
readonly parserOptions: {
|
6
|
+
readonly parser: null;
|
7
|
+
};
|
6
8
|
readonly languageOptions: {
|
7
9
|
readonly parser: "yml";
|
8
10
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa,CACpD,KAAK,CACN;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa
|
1
|
+
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAAa,CACpD,KAAK,CACN;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;MAA6B;IAC1D,SAAgB,eAAe;;MAA8B;CAC9D"}
|
@@ -2,7 +2,7 @@ import { ScopeManifest } from "./manifest/index.js";
|
|
2
2
|
export default class YmlManifest extends ScopeManifest {
|
3
3
|
processor = {};
|
4
4
|
language = {};
|
5
|
-
parserOptions = {};
|
5
|
+
parserOptions = { parser: null };
|
6
6
|
languageOptions = { parser: "yml" };
|
7
7
|
}
|
8
8
|
//# sourceMappingURL=yml.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAExC;IACiB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;
|
1
|
+
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,aAExC;IACiB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAE,MAAM,EAAE,IAAI,EAAW,CAAC;IAC1C,eAAe,GAAG,EAAE,MAAM,EAAE,KAAK,EAAW,CAAC;CAC9D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/common/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,aAAa,CACxC;IAAE,QAAQ,CAAC,IAAI,EAAE,
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/common/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,aAAa,CACxC;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,EAC5B,eAAe,GACf,iBAAiB,CACpB,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Config } from "../../shared/index.js";
|
2
2
|
export type ScopeSettings<Scopes extends string> = {
|
3
|
-
readonly name: `linted/${Scopes}
|
3
|
+
readonly name: `linted/${Scopes}/`;
|
4
4
|
readonly languageOptions: object;
|
5
5
|
} & Pick<Config, "files" | "ignores" | "processor" | "language" | "settings">;
|
6
6
|
//# sourceMappingURL=settings.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,MAAM,IAAI;IACjD,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,aAAa,CAAC,MAAM,SAAS,MAAM,IAAI;IACjD,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,GAAG,CAAC;IACnC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/factory/index.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifests } from "./manifests";
|
2
2
|
import type { Input } from "../interface";
|
3
3
|
import type { tree as Tree } from "../scopes";
|
4
4
|
|
@@ -28,7 +28,7 @@ export class Factory {
|
|
28
28
|
|
29
29
|
this.common = {
|
30
30
|
settings: {
|
31
|
-
name: "linted
|
31
|
+
name: "linted/*/",
|
32
32
|
linterOptions: { noInlineConfig, reportUnusedDisableDirectives } as const,
|
33
33
|
languageOptions: { sourceType, ecmaVersion } as const,
|
34
34
|
} as const,
|
@@ -74,33 +74,25 @@ export class Factory {
|
|
74
74
|
}
|
75
75
|
}
|
76
76
|
|
77
|
-
public scope<S extends keyof typeof
|
77
|
+
public scope<S extends keyof typeof ScopeManifests>(scope: S) {
|
78
78
|
const {
|
79
|
-
files: {
|
80
|
-
[scope]: files,
|
81
|
-
},
|
79
|
+
files: { [scope]: files },
|
82
80
|
ignores: { [scope]: ignores },
|
83
81
|
rules: { [scope]: rules },
|
84
82
|
} = this.scopes,
|
85
83
|
ruleset = rules.map(([id, rules]) => ({ id: `${scope}/${id}`, rules } as const)),
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
} as const
|
99
|
-
: {} as const,
|
100
|
-
..."parser" in languageOptions
|
101
|
-
? { parser: this.parsers[languageOptions.parser] } as const
|
102
|
-
: {} as const,
|
103
|
-
} as const;
|
84
|
+
{
|
85
|
+
processor,
|
86
|
+
language,
|
87
|
+
languageOptions: {
|
88
|
+
parser = null,
|
89
|
+
...languageOptionsStatic
|
90
|
+
},
|
91
|
+
parserOptions: {
|
92
|
+
parser: subparser = null,
|
93
|
+
...parserOptionsStatic
|
94
|
+
},
|
95
|
+
} = new ScopeManifests[scope]();
|
104
96
|
|
105
97
|
return files.length < 1
|
106
98
|
? [] as const
|
@@ -108,12 +100,23 @@ export class Factory {
|
|
108
100
|
? [] as const
|
109
101
|
: [
|
110
102
|
{
|
111
|
-
name: `linted/${scope}
|
103
|
+
name: `linted/${scope}/`,
|
112
104
|
files,
|
113
105
|
ignores,
|
114
|
-
|
115
|
-
...
|
116
|
-
|
106
|
+
...processor,
|
107
|
+
...language,
|
108
|
+
languageOptions: {
|
109
|
+
...languageOptionsStatic,
|
110
|
+
...parser === null ? {} as const : { parser: this.parsers[parser] } as const,
|
111
|
+
...Object.keys(parserOptionsStatic).length < 1 && subparser === null
|
112
|
+
? {} as const
|
113
|
+
: {
|
114
|
+
parserOptions: {
|
115
|
+
...parserOptionsStatic,
|
116
|
+
...subparser === null ? {} as const : { parser: this.parsers[subparser] } as const,
|
117
|
+
},
|
118
|
+
} as const,
|
119
|
+
} as const,
|
117
120
|
} as const,
|
118
121
|
...ruleset.map(({ id, rules }) => ({
|
119
122
|
name: `linted/${id}`,
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class HtmlManifest extends ScopeManifest<
|
4
|
-
"html"
|
5
|
-
> {
|
3
|
+
export default class HtmlManifest extends ScopeManifest<"html"> {
|
6
4
|
public readonly processor = {} as const;
|
7
5
|
public readonly language = {} as const;
|
8
|
-
public readonly parserOptions = {} as const;
|
6
|
+
public readonly parserOptions = { parser: null } as const;
|
9
7
|
public readonly languageOptions = { parser: "html" } as const;
|
10
8
|
}
|
package/src/factory/scopes/js.ts
CHANGED
@@ -3,6 +3,6 @@ import { ScopeManifest } from "./manifest";
|
|
3
3
|
export default class JsManifest extends ScopeManifest {
|
4
4
|
public readonly processor = {} as const;
|
5
5
|
public readonly language = {} as const;
|
6
|
-
public readonly parserOptions = {} as const;
|
7
|
-
public readonly languageOptions = {} as const;
|
6
|
+
public readonly parserOptions = { parser: null } as const;
|
7
|
+
public readonly languageOptions = { parser: null } as const;
|
8
8
|
}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class JsonManifest extends ScopeManifest<
|
4
|
-
"jsonc"
|
5
|
-
> {
|
3
|
+
export default class JsonManifest extends ScopeManifest<"jsonc"> {
|
6
4
|
public readonly processor = {} as const;
|
7
5
|
public readonly language = {} as const;
|
8
|
-
public readonly parserOptions = {} as const;
|
6
|
+
public readonly parserOptions = { parser: null } as const;
|
9
7
|
public readonly languageOptions = { parser: "jsonc" } as const;
|
10
8
|
}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class JsoncManifest extends ScopeManifest<
|
4
|
-
"jsonc"
|
5
|
-
> {
|
3
|
+
export default class JsoncManifest extends ScopeManifest<"jsonc"> {
|
6
4
|
public readonly processor = {} as const;
|
7
5
|
public readonly language = {} as const;
|
8
|
-
public readonly parserOptions = {} as const;
|
6
|
+
public readonly parserOptions = { parser: null } as const;
|
9
7
|
public readonly languageOptions = { parser: "jsonc" } as const;
|
10
8
|
}
|
@@ -18,17 +18,15 @@ export abstract class ScopeManifest<
|
|
18
18
|
? Record<string, never>
|
19
19
|
: { readonly language: L }
|
20
20
|
: Record<string, never>);
|
21
|
-
public abstract readonly parserOptions: (ParserOptions extends { readonly
|
22
|
-
?
|
23
|
-
?
|
24
|
-
|
25
|
-
|
26
|
-
: ParserOptions
|
27
|
-
: Record<string, never>);
|
21
|
+
public abstract readonly parserOptions: (ParserOptions extends { readonly parser: infer P }
|
22
|
+
? P extends Parser
|
23
|
+
? ParserOptions
|
24
|
+
: (Omit<ParserOptions, "parser"> & { readonly parser: null })
|
25
|
+
: ParserOptions & { readonly parser: null });
|
28
26
|
public abstract readonly languageOptions: (
|
29
27
|
[Parser] extends [boolean]
|
30
|
-
? { readonly parser
|
31
|
-
: { parser: Parser }
|
28
|
+
? { readonly parser: null }
|
29
|
+
: { readonly parser: Parser }
|
32
30
|
|
33
31
|
) & (
|
34
32
|
Global extends boolean
|
@@ -10,11 +10,10 @@ export default class MochaManifest extends ScopeManifest<
|
|
10
10
|
public readonly language = {} as const;
|
11
11
|
public readonly types = ["mocha"] as const;
|
12
12
|
public readonly parserOptions = {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
} as const,
|
13
|
+
parser: null,
|
14
|
+
project: "tsconfig.json",
|
15
|
+
sourceType: "module",
|
16
|
+
ecmaVersion: 2023,
|
18
17
|
} as const;
|
19
18
|
public readonly languageOptions = {
|
20
19
|
parser: "ts",
|
@@ -3,11 +3,9 @@ import type TsManifest from "./ts";
|
|
3
3
|
|
4
4
|
export default class SvelteManifest extends ScopeManifest<
|
5
5
|
"svelte" | "ts",
|
6
|
-
TsManifest["parserOptions"] & {
|
7
|
-
|
8
|
-
|
9
|
-
readonly extraFileExtensions: readonly [".svelte"];
|
10
|
-
};
|
6
|
+
Omit<TsManifest["parserOptions"], "parser"> & {
|
7
|
+
readonly parser: "ts";
|
8
|
+
readonly extraFileExtensions: readonly [".svelte"];
|
11
9
|
},
|
12
10
|
false,
|
13
11
|
{ readonly processor: "svelte/svelte" }
|
@@ -15,15 +13,11 @@ export default class SvelteManifest extends ScopeManifest<
|
|
15
13
|
public readonly processor = { processor: "svelte/svelte" } as const;
|
16
14
|
public readonly language = {} as const;
|
17
15
|
public readonly parserOptions = {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
extraFileExtensions: [".svelte"] as const,
|
24
|
-
} as const,
|
25
|
-
} as const;
|
26
|
-
public readonly languageOptions = {
|
27
|
-
parser: "svelte",
|
16
|
+
parser: "ts",
|
17
|
+
extraFileExtensions: [".svelte"] as const,
|
18
|
+
project: "tsconfig.json",
|
19
|
+
sourceType: "module",
|
20
|
+
ecmaVersion: 2023,
|
28
21
|
} as const;
|
22
|
+
public readonly languageOptions = { parser: "svelte" } as const;
|
29
23
|
}
|
package/src/factory/scopes/ts.ts
CHANGED
@@ -3,24 +3,18 @@ import { ScopeManifest } from "./manifest";
|
|
3
3
|
export default class TsManifest extends ScopeManifest<
|
4
4
|
"ts",
|
5
5
|
{
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
readonly ecmaVersion: 2023;
|
10
|
-
};
|
6
|
+
readonly project: "tsconfig.json";
|
7
|
+
readonly sourceType: "module";
|
8
|
+
readonly ecmaVersion: 2023;
|
11
9
|
}
|
12
10
|
> {
|
13
11
|
public readonly processor = {} as const;
|
14
12
|
public readonly language = {} as const;
|
15
13
|
public readonly parserOptions = {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
} as const,
|
21
|
-
} as const;
|
22
|
-
public readonly languageOptions = {
|
23
|
-
parser: "ts",
|
24
|
-
|
14
|
+
parser: null,
|
15
|
+
project: "tsconfig.json",
|
16
|
+
sourceType: "module",
|
17
|
+
ecmaVersion: 2023,
|
25
18
|
} as const;
|
19
|
+
public readonly languageOptions = { parser: "ts" } as const;
|
26
20
|
}
|
@@ -5,6 +5,6 @@ export default class YmlManifest extends ScopeManifest<
|
|
5
5
|
> {
|
6
6
|
public readonly processor = {} as const;
|
7
7
|
public readonly language = {} as const;
|
8
|
-
public readonly parserOptions = {} as const;
|
8
|
+
public readonly parserOptions = { parser: null } as const;
|
9
9
|
public readonly languageOptions = { parser: "yml" } as const;
|
10
10
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Config } from "../../shared";
|
2
2
|
|
3
3
|
export type ScopeSettings<Scopes extends string> = {
|
4
|
-
readonly name: `linted/${Scopes}
|
4
|
+
readonly name: `linted/${Scopes}/`;
|
5
5
|
readonly languageOptions: object;
|
6
6
|
} & Pick<Config, "files" | "ignores" | "processor" | "language" | "settings">;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/factory/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/factory/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|