@eslinted/core 13.3.0-rc.4 → 13.4.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/index.d.ts +61 -57
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +19 -10
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/scopes/html.d.ts +2 -3
- package/dist/factory/scopes/html.d.ts.map +1 -1
- package/dist/factory/scopes/html.js +2 -3
- package/dist/factory/scopes/html.js.map +1 -1
- package/dist/factory/scopes/js.d.ts +2 -3
- package/dist/factory/scopes/js.d.ts.map +1 -1
- package/dist/factory/scopes/js.js +2 -3
- package/dist/factory/scopes/js.js.map +1 -1
- package/dist/factory/scopes/json.d.ts +2 -3
- package/dist/factory/scopes/json.d.ts.map +1 -1
- package/dist/factory/scopes/json.js +2 -3
- package/dist/factory/scopes/json.js.map +1 -1
- package/dist/factory/scopes/jsonc.d.ts +2 -3
- package/dist/factory/scopes/jsonc.d.ts.map +1 -1
- package/dist/factory/scopes/jsonc.js +2 -3
- package/dist/factory/scopes/jsonc.js.map +1 -1
- package/dist/factory/scopes/{setting → manifest}/index.d.ts +2 -3
- package/dist/factory/scopes/{setting → manifest}/index.d.ts.map +1 -1
- package/dist/factory/scopes/{setting → manifest}/index.js +1 -1
- package/dist/factory/scopes/manifest/index.js.map +1 -0
- package/dist/factory/scopes/mocha.d.ts +3 -4
- package/dist/factory/scopes/mocha.d.ts.map +1 -1
- package/dist/factory/scopes/mocha.js +2 -3
- package/dist/factory/scopes/mocha.js.map +1 -1
- package/dist/factory/scopes/svelte.d.ts +3 -4
- package/dist/factory/scopes/svelte.d.ts.map +1 -1
- package/dist/factory/scopes/svelte.js +2 -3
- package/dist/factory/scopes/svelte.js.map +1 -1
- package/dist/factory/scopes/ts.d.ts +2 -3
- package/dist/factory/scopes/ts.d.ts.map +1 -1
- package/dist/factory/scopes/ts.js +2 -3
- package/dist/factory/scopes/ts.js.map +1 -1
- package/dist/factory/scopes/yml.d.ts +2 -3
- package/dist/factory/scopes/yml.d.ts.map +1 -1
- package/dist/factory/scopes/yml.js +2 -3
- package/dist/factory/scopes/yml.js.map +1 -1
- package/dist/interface/index.d.ts +1 -1
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/output/index.d.ts +2 -2
- package/dist/interface/output/index.d.ts.map +1 -1
- package/dist/interface/output/scope/index.d.ts +3 -0
- package/dist/interface/output/scope/index.d.ts.map +1 -0
- package/dist/interface/output/scope/index.js +2 -0
- package/dist/interface/output/scope/index.js.map +1 -0
- package/dist/interface/output/scope/rules.d.ts +5 -0
- package/dist/interface/output/scope/rules.d.ts.map +1 -0
- package/dist/interface/output/scope/rules.js +2 -0
- package/dist/interface/output/scope/rules.js.map +1 -0
- package/dist/interface/output/scope/settings.d.ts +6 -0
- package/dist/interface/output/scope/settings.d.ts.map +1 -0
- package/dist/interface/output/scope/settings.js +2 -0
- package/dist/interface/output/scope/settings.js.map +1 -0
- package/package.json +1 -1
- package/src/factory/index.ts +19 -10
- package/src/factory/scopes/html.ts +2 -3
- package/src/factory/scopes/js.ts +2 -3
- package/src/factory/scopes/json.ts +2 -3
- package/src/factory/scopes/jsonc.ts +2 -3
- package/src/factory/scopes/{setting → manifest}/index.ts +3 -4
- package/src/factory/scopes/mocha.ts +4 -5
- package/src/factory/scopes/svelte.ts +4 -5
- package/src/factory/scopes/ts.ts +2 -3
- package/src/factory/scopes/yml.ts +2 -3
- package/src/interface/index.ts +1 -1
- package/src/interface/output/index.ts +5 -2
- package/src/interface/output/scope/index.ts +2 -0
- package/src/interface/output/scope/rules.ts +5 -0
- package/src/interface/output/scope/settings.ts +6 -0
- package/dist/factory/scopes/setting/index.js.map +0 -1
- package/dist/interface/output/scope.d.ts +0 -6
- package/dist/interface/output/scope.d.ts.map +0 -1
- package/dist/interface/output/scope.js +0 -2
- package/dist/interface/output/scope.js.map +0 -1
- package/src/interface/output/scope.ts +0 -6
package/dist/factory/index.d.ts
CHANGED
@@ -26,22 +26,31 @@ export declare class Factory {
|
|
26
26
|
};
|
27
27
|
constructor(parsers: Input["imports"]["parsers"], { settings: defaultSettings, files: defaultFiles, ignores: defaultIgnores, rules: defaultRules, }: Input["defaults"], { "*": commonExtension, ...scopeExtensions }?: Input["extensions"]);
|
28
28
|
scope<S extends keyof typeof ScopeSettings>(scope: S): readonly [
|
29
|
-
] | {
|
30
|
-
readonly
|
31
|
-
readonly name: `linted/${S}:${string}`;
|
29
|
+
] | ({
|
30
|
+
readonly name: `linted/${S}/${string}`;
|
32
31
|
readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
|
33
32
|
readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
|
34
33
|
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
35
34
|
import("../interface/shared/config/rule/index.js").State,
|
36
35
|
...unknown[]
|
37
36
|
]>>;
|
37
|
+
} | {
|
38
|
+
readonly processor?: "svelte/svelte";
|
39
|
+
readonly name: `linted/${S}/settings`;
|
40
|
+
readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
|
41
|
+
readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
|
38
42
|
readonly languageOptions: {
|
39
|
-
|
43
|
+
parser: unknown;
|
40
44
|
readonly parserOptions?: {
|
41
45
|
readonly parser?: unknown;
|
42
46
|
readonly project: "tsconfig.json";
|
43
47
|
readonly sourceType: "module";
|
44
48
|
readonly ecmaVersion: 2023;
|
49
|
+
} | {
|
50
|
+
readonly parser?: unknown;
|
51
|
+
readonly project: "tsconfig.json";
|
52
|
+
readonly sourceType: "module";
|
53
|
+
readonly ecmaVersion: 2023;
|
45
54
|
} | {
|
46
55
|
parser: unknown;
|
47
56
|
readonly project: "tsconfig.json";
|
@@ -50,15 +59,15 @@ export declare class Factory {
|
|
50
59
|
readonly extraFileExtensions: readonly [
|
51
60
|
".svelte"
|
52
61
|
];
|
53
|
-
}
|
62
|
+
};
|
63
|
+
} | {
|
64
|
+
readonly parser?: unknown;
|
65
|
+
readonly parserOptions?: {
|
54
66
|
readonly parser?: unknown;
|
55
67
|
readonly project: "tsconfig.json";
|
56
68
|
readonly sourceType: "module";
|
57
69
|
readonly ecmaVersion: 2023;
|
58
|
-
}
|
59
|
-
} | {
|
60
|
-
parser: unknown;
|
61
|
-
readonly parserOptions?: {
|
70
|
+
} | {
|
62
71
|
readonly parser?: unknown;
|
63
72
|
readonly project: "tsconfig.json";
|
64
73
|
readonly sourceType: "module";
|
@@ -71,11 +80,6 @@ export declare class Factory {
|
|
71
80
|
readonly extraFileExtensions: readonly [
|
72
81
|
".svelte"
|
73
82
|
];
|
74
|
-
} | {
|
75
|
-
readonly parser?: unknown;
|
76
|
-
readonly project: "tsconfig.json";
|
77
|
-
readonly sourceType: "module";
|
78
|
-
readonly ecmaVersion: 2023;
|
79
83
|
};
|
80
84
|
} | {
|
81
85
|
parser: unknown;
|
@@ -84,6 +88,11 @@ export declare class Factory {
|
|
84
88
|
readonly project: "tsconfig.json";
|
85
89
|
readonly sourceType: "module";
|
86
90
|
readonly ecmaVersion: 2023;
|
91
|
+
} | {
|
92
|
+
readonly parser?: unknown;
|
93
|
+
readonly project: "tsconfig.json";
|
94
|
+
readonly sourceType: "module";
|
95
|
+
readonly ecmaVersion: 2023;
|
87
96
|
} | {
|
88
97
|
parser: unknown;
|
89
98
|
readonly project: "tsconfig.json";
|
@@ -92,11 +101,27 @@ export declare class Factory {
|
|
92
101
|
readonly extraFileExtensions: readonly [
|
93
102
|
".svelte"
|
94
103
|
];
|
104
|
+
};
|
105
|
+
} | {
|
106
|
+
parser: unknown;
|
107
|
+
readonly parserOptions?: {
|
108
|
+
readonly parser?: unknown;
|
109
|
+
readonly project: "tsconfig.json";
|
110
|
+
readonly sourceType: "module";
|
111
|
+
readonly ecmaVersion: 2023;
|
95
112
|
} | {
|
96
113
|
readonly parser?: unknown;
|
97
114
|
readonly project: "tsconfig.json";
|
98
115
|
readonly sourceType: "module";
|
99
116
|
readonly ecmaVersion: 2023;
|
117
|
+
} | {
|
118
|
+
parser: unknown;
|
119
|
+
readonly project: "tsconfig.json";
|
120
|
+
readonly sourceType: "module";
|
121
|
+
readonly ecmaVersion: 2023;
|
122
|
+
readonly extraFileExtensions: readonly [
|
123
|
+
".svelte"
|
124
|
+
];
|
100
125
|
};
|
101
126
|
} | {
|
102
127
|
parser: unknown;
|
@@ -105,6 +130,11 @@ export declare class Factory {
|
|
105
130
|
readonly project: "tsconfig.json";
|
106
131
|
readonly sourceType: "module";
|
107
132
|
readonly ecmaVersion: 2023;
|
133
|
+
} | {
|
134
|
+
readonly parser?: unknown;
|
135
|
+
readonly project: "tsconfig.json";
|
136
|
+
readonly sourceType: "module";
|
137
|
+
readonly ecmaVersion: 2023;
|
108
138
|
} | {
|
109
139
|
parser: unknown;
|
110
140
|
readonly project: "tsconfig.json";
|
@@ -113,11 +143,27 @@ export declare class Factory {
|
|
113
143
|
readonly extraFileExtensions: readonly [
|
114
144
|
".svelte"
|
115
145
|
];
|
146
|
+
};
|
147
|
+
} | {
|
148
|
+
parser: unknown;
|
149
|
+
readonly parserOptions?: {
|
150
|
+
readonly parser?: unknown;
|
151
|
+
readonly project: "tsconfig.json";
|
152
|
+
readonly sourceType: "module";
|
153
|
+
readonly ecmaVersion: 2023;
|
116
154
|
} | {
|
117
155
|
readonly parser?: unknown;
|
118
156
|
readonly project: "tsconfig.json";
|
119
157
|
readonly sourceType: "module";
|
120
158
|
readonly ecmaVersion: 2023;
|
159
|
+
} | {
|
160
|
+
parser: unknown;
|
161
|
+
readonly project: "tsconfig.json";
|
162
|
+
readonly sourceType: "module";
|
163
|
+
readonly ecmaVersion: 2023;
|
164
|
+
readonly extraFileExtensions: readonly [
|
165
|
+
".svelte"
|
166
|
+
];
|
121
167
|
};
|
122
168
|
readonly globals: {
|
123
169
|
readonly after: false;
|
@@ -148,27 +194,11 @@ export declare class Factory {
|
|
148
194
|
readonly project: "tsconfig.json";
|
149
195
|
readonly sourceType: "module";
|
150
196
|
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
197
|
} | {
|
160
198
|
readonly parser?: unknown;
|
161
199
|
readonly project: "tsconfig.json";
|
162
200
|
readonly sourceType: "module";
|
163
201
|
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
202
|
} | {
|
173
203
|
parser: unknown;
|
174
204
|
readonly project: "tsconfig.json";
|
@@ -177,11 +207,6 @@ export declare class Factory {
|
|
177
207
|
readonly extraFileExtensions: readonly [
|
178
208
|
".svelte"
|
179
209
|
];
|
180
|
-
} | {
|
181
|
-
readonly parser?: unknown;
|
182
|
-
readonly project: "tsconfig.json";
|
183
|
-
readonly sourceType: "module";
|
184
|
-
readonly ecmaVersion: 2023;
|
185
210
|
};
|
186
211
|
} | {
|
187
212
|
parser: unknown;
|
@@ -190,27 +215,11 @@ export declare class Factory {
|
|
190
215
|
readonly project: "tsconfig.json";
|
191
216
|
readonly sourceType: "module";
|
192
217
|
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
218
|
} | {
|
202
219
|
readonly parser?: unknown;
|
203
220
|
readonly project: "tsconfig.json";
|
204
221
|
readonly sourceType: "module";
|
205
222
|
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
223
|
} | {
|
215
224
|
parser: unknown;
|
216
225
|
readonly project: "tsconfig.json";
|
@@ -219,13 +228,8 @@ export declare class Factory {
|
|
219
228
|
readonly extraFileExtensions: readonly [
|
220
229
|
".svelte"
|
221
230
|
];
|
222
|
-
} | {
|
223
|
-
readonly parser?: unknown;
|
224
|
-
readonly project: "tsconfig.json";
|
225
|
-
readonly sourceType: "module";
|
226
|
-
readonly ecmaVersion: 2023;
|
227
231
|
};
|
228
232
|
};
|
229
|
-
}[];
|
233
|
+
})[];
|
230
234
|
}
|
231
235
|
//# 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,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,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
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiD5D"}
|
package/dist/factory/index.js
CHANGED
@@ -34,7 +34,7 @@ export class Factory {
|
|
34
34
|
}
|
35
35
|
}
|
36
36
|
scope(scope) {
|
37
|
-
const { files: { [scope]: files, }, ignores: { [scope]: ignores }, rules: { [scope]: rules }, } = this.scopes, ruleset = rules.map(([id, rules]) => ({ id: `${scope}
|
37
|
+
const { files: { [scope]: files, }, ignores: { [scope]: ignores }, rules: { [scope]: rules }, } = this.scopes, ruleset = rules.map(([id, rules]) => ({ id: `${scope}/${id}`, rules })), settings = new ScopeSettings[scope](), { languageOptions, parserOptions } = settings, loadedLanguageOptions = {
|
38
38
|
...languageOptions,
|
39
39
|
..."parserOptions" in parserOptions
|
40
40
|
? {
|
@@ -52,15 +52,24 @@ export class Factory {
|
|
52
52
|
};
|
53
53
|
return files.length < 1
|
54
54
|
? []
|
55
|
-
: ruleset.
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
55
|
+
: ruleset.length < 1
|
56
|
+
? []
|
57
|
+
: [
|
58
|
+
{
|
59
|
+
name: `linted/${scope}/settings`,
|
60
|
+
files,
|
61
|
+
ignores,
|
62
|
+
languageOptions: loadedLanguageOptions,
|
63
|
+
...settings.processor,
|
64
|
+
...settings.language,
|
65
|
+
},
|
66
|
+
...ruleset.map(({ id, rules }) => ({
|
67
|
+
name: `linted/${id}`,
|
68
|
+
files,
|
69
|
+
ignores,
|
70
|
+
rules,
|
71
|
+
})),
|
72
|
+
];
|
64
73
|
}
|
65
74
|
}
|
66
75
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,MAAM,OAAO,OAAO;IAKA;IAJF,MAAM,CAAC;IACP,MAAM,CAAC;IAEvB,YACkB,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,YAA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BACb,GAAG,aAAa,CAAC,aAAa;wBAC9B,GAAG,QAAQ,IAAI,aAAa,CAAC,aAAa;4BACxC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,EAAW;4BACvE,CAAC,CAAC,EAAW;qBACP;iBACF;gBACZ,CAAC,CAAC,EAAW;YACf,GAAG,QAAQ,IAAI,eAAe;gBAC5B,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,EAAW;gBAC3D,CAAC,CAAC,EAAW;SACP,CAAC;QAEX,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;YACrB,CAAC,CAAC,EAAW;YACb,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;gBAClB,CAAC,CAAC,EAAW;gBACb,CAAC,CAAC;oBACE;wBACE,IAAI,EAAE,UAAU,KAAK,WAAW;wBAChC,KAAK;wBACL,OAAO;wBACP,eAAe,EAAE,qBAAqB;wBACtC,GAAG,QAAQ,CAAC,SAAS;wBACrB,GAAG,QAAQ,CAAC,QAAQ;qBACZ;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"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
readonly scope = "html";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class HtmlManifest extends ScopeManifest<"html"> {
|
4
3
|
readonly processor: {};
|
5
4
|
readonly language: {};
|
6
5
|
readonly parserOptions: {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,CACrD,MAAM,CACP;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAA+B;CAC/D"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
scope = "html";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class HtmlManifest extends ScopeManifest {
|
4
3
|
processor = {};
|
5
4
|
language = {};
|
6
5
|
parserOptions = {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/factory/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,aAEzC;IACiB,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,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
readonly scope = "js";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class JsManifest extends ScopeManifest {
|
4
3
|
readonly processor: {};
|
5
4
|
readonly language: {};
|
6
5
|
readonly parserOptions: {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,KAAe;IAC5C,SAAgB,eAAe,KAAe;CAC/C"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
scope = "js";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class JsManifest extends ScopeManifest {
|
4
3
|
processor = {};
|
5
4
|
language = {};
|
6
5
|
parserOptions = {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/factory/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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;IAC5B,eAAe,GAAG,EAAW,CAAC;CAC/C"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
readonly scope = "json";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class JsonManifest extends ScopeManifest<"jsonc"> {
|
4
3
|
readonly processor: {};
|
5
4
|
readonly language: {};
|
6
5
|
readonly parserOptions: {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,CACrD,OAAO,CACR;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAAgC;CAChE"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
scope = "json";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class JsonManifest extends ScopeManifest {
|
4
3
|
processor = {};
|
5
4
|
language = {};
|
6
5
|
parserOptions = {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/factory/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,aAEzC;IACiB,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,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
readonly scope = "jsonc";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class JsoncManifest extends ScopeManifest<"jsonc"> {
|
4
3
|
readonly processor: {};
|
5
4
|
readonly language: {};
|
6
5
|
readonly parserOptions: {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,CACtD,OAAO,CACR;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAAgC;CAChE"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
scope = "jsonc";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class JsoncManifest extends ScopeManifest {
|
4
3
|
processor = {};
|
5
4
|
language = {};
|
6
5
|
parserOptions = {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,aAE1C;IACiB,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,7 +1,6 @@
|
|
1
1
|
import globals from "globals";
|
2
|
-
import type {
|
3
|
-
export declare abstract class
|
4
|
-
abstract readonly scope: Scopes;
|
2
|
+
import type { Parsers } from "../../../scopes/index.js";
|
3
|
+
export declare abstract class ScopeManifest<Parser extends Parsers | false = false, ParserOptions extends object = object, Global extends keyof typeof globals | false = false, Processor extends object = object, Language extends object = object> {
|
5
4
|
abstract readonly processor: (Processor extends {
|
6
5
|
readonly processor: infer P;
|
7
6
|
} ? string extends P ? Record<string, never> : {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/scopes/
|
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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Z,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"}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import type
|
3
|
-
export default class
|
4
|
-
readonly scope = "mocha";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
import type TsManifest from "./ts.js";
|
3
|
+
export default class MochaManifest extends ScopeManifest<"ts", TsManifest["parserOptions"], "mocha"> {
|
5
4
|
readonly processor: {};
|
6
5
|
readonly language: {};
|
7
6
|
readonly types: readonly [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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;;;;;;MAMlB;IACX,SAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;MAGpB;CACZ"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
scope = "mocha";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class MochaManifest extends ScopeManifest {
|
4
3
|
processor = {};
|
5
4
|
language = {};
|
6
5
|
types = ["mocha"];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/factory/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,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"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import type
|
3
|
-
export default class
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
import type TsManifest from "./ts.js";
|
3
|
+
export default class SvelteManifest extends ScopeManifest<"svelte" | "ts", TsManifest["parserOptions"] & {
|
4
4
|
parserOptions: {
|
5
5
|
readonly parser: "ts";
|
6
6
|
readonly extraFileExtensions: readonly [
|
@@ -10,7 +10,6 @@ export default class SvelteSetting extends ScopeSetting<"svelte" | "ts", TsSetti
|
|
10
10
|
}, false, {
|
11
11
|
readonly processor: "svelte/svelte";
|
12
12
|
}> {
|
13
|
-
readonly scope = "svelte";
|
14
13
|
readonly processor: {
|
15
14
|
readonly processor: "svelte/svelte";
|
16
15
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,GAAG;IAC5B,aAAa,EAAE;QACb,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC;QACtB,QAAQ,CAAC,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;KACpD,CAAC;CACH,EACD,KAAK,EACL;IAAE,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CACxC;IACC,SAAgB,SAAS;;MAA2C;IACpE,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;;;;;;;MAQlB;IACX,SAAgB,eAAe;;MAEpB;CACZ"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
scope = "svelte";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class SvelteManifest extends ScopeManifest {
|
4
3
|
processor = { processor: "svelte/svelte" };
|
5
4
|
language = {};
|
6
5
|
parserOptions = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,aAU3C;IACiB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IACpD,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG;QAC9B,aAAa,EAAE;YACb,OAAO,EAAE,eAAe;YACxB,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,IAAI;YACjB,MAAM,EAAE,IAAI;YACZ,mBAAmB,EAAE,CAAC,SAAS,CAAU;SACjC;KACF,CAAC;IACK,eAAe,GAAG;QAChC,MAAM,EAAE,QAAQ;KACR,CAAC;CACZ"}
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class TsManifest extends ScopeManifest<"ts", {
|
3
3
|
parserOptions: {
|
4
4
|
readonly project: "tsconfig.json";
|
5
5
|
readonly sourceType: "module";
|
6
6
|
readonly ecmaVersion: 2023;
|
7
7
|
};
|
8
8
|
}> {
|
9
|
-
readonly scope = "ts";
|
10
9
|
readonly processor: {};
|
11
10
|
readonly language: {};
|
12
11
|
readonly parserOptions: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,aAAa,EAAE;QACb,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;QAClC,QAAQ,CAAC,UAAU,EAAE,QAAQ,CAAC;QAC9B,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;KAC5B,CAAC;CACH,CACF;IACC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;;;;;MAMlB;IACX,SAAgB,eAAe;;MAGpB;CACZ"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
scope = "ts";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class TsManifest extends ScopeManifest {
|
4
3
|
processor = {};
|
5
4
|
language = {};
|
6
5
|
parserOptions = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,aASvC;IACiB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,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;KAEJ,CAAC;CACZ"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
readonly scope = "yml";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class YmlManifest extends ScopeManifest<"yml"> {
|
4
3
|
readonly processor: {};
|
5
4
|
readonly language: {};
|
6
5
|
readonly parserOptions: {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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,KAAe;IAC5C,SAAgB,eAAe;;MAA8B;CAC9D"}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export default class
|
3
|
-
scope = "yml";
|
1
|
+
import { ScopeManifest } from "./manifest/index.js";
|
2
|
+
export default class YmlManifest extends ScopeManifest {
|
4
3
|
processor = {};
|
5
4
|
language = {};
|
6
5
|
parserOptions = {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
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;IAC5B,eAAe,GAAG,EAAE,MAAM,EAAE,KAAK,EAAW,CAAC;CAC9D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC;AAC9B,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,UAAU,CAAC;AAC9B,YAAY,KAAK,MAAM,MAAM,UAAU,CAAC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { CommonPlugins, CommonSettings, CommonIgnores } from "./common/index.js";
|
2
|
-
import type {
|
2
|
+
import type { ScopeSettings, ScopeRules } from "./scope/index.js";
|
3
3
|
import type { Plugins, Scopes } from "../../scopes/index.js";
|
4
4
|
export type Output = readonly [
|
5
5
|
CommonPlugins<Plugins>,
|
6
6
|
CommonSettings,
|
7
7
|
CommonIgnores,
|
8
|
-
...readonly
|
8
|
+
...readonly (ScopeSettings<Scopes> | ScopeRules<Scopes>)[]
|
9
9
|
];
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,MAAM,GAAG,SAAS;IAC5B,aAAa,CAAC,OAAO,CAAC;IACtB,cAAc;IACd,aAAa;IACb,GAAG,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE;CAC3D,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,SAAS,CAAC;AAC7B,mBAAmB,YAAY,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/output/scope/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/interface/output/scope/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,MAAM,IAAI;IAC9C,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7C,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/interface/output/scope/rules.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { Config } from "../../shared/index.js";
|
2
|
+
export type ScopeSettings<Scopes extends string> = {
|
3
|
+
readonly name: `linted/${Scopes}/settings`;
|
4
|
+
readonly languageOptions: object;
|
5
|
+
} & Pick<Config, "files" | "ignores" | "processor" | "language" | "settings">;
|
6
|
+
//# sourceMappingURL=settings.d.ts.map
|
@@ -0,0 +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,WAAW,CAAC;IAC3C,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/interface/output/scope/settings.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/src/factory/index.ts
CHANGED
@@ -69,7 +69,7 @@ export class Factory {
|
|
69
69
|
ignores: { [scope]: ignores },
|
70
70
|
rules: { [scope]: rules },
|
71
71
|
} = this.scopes,
|
72
|
-
ruleset = rules.map(([id, rules]) => ({ id: `${scope}
|
72
|
+
ruleset = rules.map(([id, rules]) => ({ id: `${scope}/${id}`, rules } as const)),
|
73
73
|
settings = new ScopeSettings[scope](),
|
74
74
|
{ languageOptions, parserOptions } = settings,
|
75
75
|
loadedLanguageOptions = {
|
@@ -91,14 +91,23 @@ export class Factory {
|
|
91
91
|
|
92
92
|
return files.length < 1
|
93
93
|
? [] as const
|
94
|
-
: ruleset.
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
94
|
+
: ruleset.length < 1
|
95
|
+
? [] as const
|
96
|
+
: [
|
97
|
+
{
|
98
|
+
name: `linted/${scope}/settings`,
|
99
|
+
files,
|
100
|
+
ignores,
|
101
|
+
languageOptions: loadedLanguageOptions,
|
102
|
+
...settings.processor,
|
103
|
+
...settings.language,
|
104
|
+
} as const,
|
105
|
+
...ruleset.map(({ id, rules }) => ({
|
106
|
+
name: `linted/${id}`,
|
107
|
+
files,
|
108
|
+
ignores,
|
109
|
+
rules,
|
110
|
+
} as const)),
|
111
|
+
];
|
103
112
|
}
|
104
113
|
}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class
|
3
|
+
export default class HtmlManifest extends ScopeManifest<
|
4
4
|
"html"
|
5
5
|
> {
|
6
|
-
public readonly scope = "html";
|
7
6
|
public readonly processor = {} as const;
|
8
7
|
public readonly language = {} as const;
|
9
8
|
public readonly parserOptions = {} as const;
|
package/src/factory/scopes/js.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class
|
4
|
-
public readonly scope = "js";
|
3
|
+
export default class JsManifest extends ScopeManifest {
|
5
4
|
public readonly processor = {} as const;
|
6
5
|
public readonly language = {} as const;
|
7
6
|
public readonly parserOptions = {} as const;
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class
|
3
|
+
export default class JsonManifest extends ScopeManifest<
|
4
4
|
"jsonc"
|
5
5
|
> {
|
6
|
-
public readonly scope = "json";
|
7
6
|
public readonly processor = {} as const;
|
8
7
|
public readonly language = {} as const;
|
9
8
|
public readonly parserOptions = {} as const;
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class
|
3
|
+
export default class JsoncManifest extends ScopeManifest<
|
4
4
|
"jsonc"
|
5
5
|
> {
|
6
|
-
public readonly scope = "jsonc";
|
7
6
|
public readonly processor = {} as const;
|
8
7
|
public readonly language = {} as const;
|
9
8
|
public readonly parserOptions = {} as const;
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import globals from "globals";
|
2
|
-
import type {
|
2
|
+
import type { Parsers } from "../../../scopes";
|
3
3
|
|
4
|
-
export abstract class
|
5
|
-
Parser extends
|
4
|
+
export abstract class ScopeManifest<
|
5
|
+
Parser extends Parsers | false = false,
|
6
6
|
ParserOptions extends object = object,
|
7
7
|
Global extends keyof typeof globals | false = false,
|
8
8
|
Processor extends object = object,
|
9
9
|
Language extends object = object,
|
10
10
|
> {
|
11
|
-
public abstract readonly scope: Scopes;
|
12
11
|
public abstract readonly processor: (Processor extends { readonly processor: infer P }
|
13
12
|
? string extends P
|
14
13
|
? Record<string, never>
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import {
|
2
|
-
import type
|
1
|
+
import { ScopeManifest } from "./manifest";
|
2
|
+
import type TsManifest from "./ts";
|
3
3
|
|
4
|
-
export default class
|
4
|
+
export default class MochaManifest extends ScopeManifest<
|
5
5
|
"ts",
|
6
|
-
|
6
|
+
TsManifest["parserOptions"],
|
7
7
|
"mocha"
|
8
8
|
> {
|
9
|
-
public readonly scope = "mocha";
|
10
9
|
public readonly processor = {} as const;
|
11
10
|
public readonly language = {} as const;
|
12
11
|
public readonly types = ["mocha"] as const;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
import type
|
1
|
+
import { ScopeManifest } from "./manifest";
|
2
|
+
import type TsManifest from "./ts";
|
3
3
|
|
4
|
-
export default class
|
4
|
+
export default class SvelteManifest extends ScopeManifest<
|
5
5
|
"svelte" | "ts",
|
6
|
-
|
6
|
+
TsManifest["parserOptions"] & {
|
7
7
|
parserOptions: {
|
8
8
|
readonly parser: "ts";
|
9
9
|
readonly extraFileExtensions: readonly [".svelte"];
|
@@ -12,7 +12,6 @@ export default class SvelteSetting extends ScopeSetting<
|
|
12
12
|
false,
|
13
13
|
{ readonly processor: "svelte/svelte" }
|
14
14
|
> {
|
15
|
-
public readonly scope = "svelte";
|
16
15
|
public readonly processor = { processor: "svelte/svelte" } as const;
|
17
16
|
public readonly language = {} as const;
|
18
17
|
public readonly parserOptions = {
|
package/src/factory/scopes/ts.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class
|
3
|
+
export default class TsManifest extends ScopeManifest<
|
4
4
|
"ts",
|
5
5
|
{
|
6
6
|
parserOptions: {
|
@@ -10,7 +10,6 @@ export default class TsSetting extends ScopeSetting<
|
|
10
10
|
};
|
11
11
|
}
|
12
12
|
> {
|
13
|
-
public readonly scope = "ts";
|
14
13
|
public readonly processor = {} as const;
|
15
14
|
public readonly language = {} as const;
|
16
15
|
public readonly parserOptions = {
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ScopeManifest } from "./manifest";
|
2
2
|
|
3
|
-
export default class
|
3
|
+
export default class YmlManifest extends ScopeManifest<
|
4
4
|
"yml"
|
5
5
|
> {
|
6
|
-
public readonly scope = "yml";
|
7
6
|
public readonly processor = {} as const;
|
8
7
|
public readonly language = {} as const;
|
9
8
|
public readonly parserOptions = {} as const;
|
package/src/interface/index.ts
CHANGED
@@ -3,12 +3,15 @@ import type {
|
|
3
3
|
CommonSettings,
|
4
4
|
CommonIgnores,
|
5
5
|
} from "./common";
|
6
|
-
import type {
|
6
|
+
import type {
|
7
|
+
ScopeSettings,
|
8
|
+
ScopeRules,
|
9
|
+
} from "./scope";
|
7
10
|
import type { Plugins, Scopes } from "../../scopes";
|
8
11
|
|
9
12
|
export type Output = readonly [
|
10
13
|
CommonPlugins<Plugins>,
|
11
14
|
CommonSettings,
|
12
15
|
CommonIgnores,
|
13
|
-
...readonly
|
16
|
+
...readonly (ScopeSettings<Scopes> | ScopeRules<Scopes>)[],
|
14
17
|
];
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/scopes/setting/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B,MAAM,OAAgB,YAAY;IAoChC,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"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { Config } from "../shared/index.js";
|
2
|
-
export type Scope<Scopes extends string> = {
|
3
|
-
readonly name: `linted/${Scopes}:${string}`;
|
4
|
-
readonly languageOptions: Omit<Config["languageOptions"], "sourceType" | "ecmaVersion">;
|
5
|
-
} & Pick<Config, "files" | "ignores" | "rules" | "processor" | "language" | "settings">;
|
6
|
-
//# sourceMappingURL=scope.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../src/interface/output/scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,KAAK,CAAC,MAAM,SAAS,MAAM,IAAI;IACzC,QAAQ,CAAC,IAAI,EAAE,UAAU,MAAM,IAAI,MAAM,EAAE,CAAC;IAC5C,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC,CAAC;CACzF,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../src/interface/output/scope.ts"],"names":[],"mappings":""}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { Config } from "../shared";
|
2
|
-
|
3
|
-
export type Scope<Scopes extends string> = {
|
4
|
-
readonly name: `linted/${Scopes}:${string}`;
|
5
|
-
readonly languageOptions: Omit<Config["languageOptions"], "sourceType" | "ecmaVersion">;
|
6
|
-
} & Pick<Config, "files" | "ignores" | "rules" | "processor" | "language" | "settings">;
|