@eslinted/core 13.3.0-rc.2 → 13.3.0-rc.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/index.d.ts +230 -2
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +65 -2
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/{settings/scopes → scopes}/html.d.ts +1 -1
- package/dist/factory/scopes/html.d.ts.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/html.js +1 -1
- package/dist/factory/scopes/html.js.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/js.d.ts +1 -1
- package/dist/factory/scopes/js.d.ts.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/js.js +1 -1
- package/dist/factory/scopes/js.js.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/json.d.ts +1 -1
- package/dist/factory/scopes/json.d.ts.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/json.js +1 -1
- package/dist/factory/scopes/json.js.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/jsonc.d.ts +1 -1
- package/dist/factory/scopes/jsonc.d.ts.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/jsonc.js +1 -1
- package/dist/factory/scopes/jsonc.js.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/mocha.d.ts +1 -1
- package/dist/factory/scopes/mocha.d.ts.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/mocha.js +1 -1
- package/dist/factory/scopes/mocha.js.map +1 -0
- package/dist/factory/{settings/setting.d.ts → scopes/setting/index.d.ts} +2 -2
- package/dist/factory/{settings/setting.d.ts.map → scopes/setting/index.d.ts.map} +1 -1
- package/dist/factory/{settings/setting.js → scopes/setting/index.js} +1 -1
- package/dist/factory/scopes/setting/index.js.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/svelte.d.ts +1 -1
- package/dist/factory/scopes/svelte.d.ts.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/svelte.js +1 -1
- package/dist/factory/scopes/svelte.js.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/ts.d.ts +1 -1
- package/dist/factory/scopes/ts.d.ts.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/ts.js +1 -1
- package/dist/factory/scopes/ts.js.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/yml.d.ts +1 -1
- package/dist/factory/scopes/yml.d.ts.map +1 -0
- package/dist/factory/{settings/scopes → scopes}/yml.js +1 -1
- package/dist/factory/scopes/yml.js.map +1 -0
- package/dist/factory/{settings/index.d.ts → settings.d.ts} +1 -2
- package/dist/factory/settings.d.ts.map +1 -0
- package/dist/factory/{settings/index.js → settings.js} +1 -1
- package/dist/factory/settings.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/factory/index.ts +104 -2
- package/src/factory/{settings/scopes → scopes}/html.ts +1 -1
- package/src/factory/{settings/scopes → scopes}/js.ts +1 -1
- package/src/factory/{settings/scopes → scopes}/json.ts +1 -1
- package/src/factory/{settings/scopes → scopes}/jsonc.ts +1 -1
- package/src/factory/{settings/scopes → scopes}/mocha.ts +1 -1
- package/src/factory/{settings/setting.ts → scopes/setting/index.ts} +1 -1
- package/src/factory/{settings/scopes → scopes}/svelte.ts +1 -1
- package/src/factory/{settings/scopes → scopes}/ts.ts +1 -1
- package/src/factory/{settings/scopes → scopes}/yml.ts +1 -1
- package/src/factory/{settings/index.ts → settings.ts} +0 -1
- package/src/index.ts +3 -13
- package/dist/factory/factory.d.ts +0 -231
- package/dist/factory/factory.d.ts.map +0 -1
- package/dist/factory/factory.js +0 -65
- package/dist/factory/factory.js.map +0 -1
- package/dist/factory/settings/index.d.ts.map +0 -1
- package/dist/factory/settings/index.js.map +0 -1
- package/dist/factory/settings/scopes/html.d.ts.map +0 -1
- package/dist/factory/settings/scopes/html.js.map +0 -1
- package/dist/factory/settings/scopes/js.d.ts.map +0 -1
- package/dist/factory/settings/scopes/js.js.map +0 -1
- package/dist/factory/settings/scopes/json.d.ts.map +0 -1
- package/dist/factory/settings/scopes/json.js.map +0 -1
- package/dist/factory/settings/scopes/jsonc.d.ts.map +0 -1
- package/dist/factory/settings/scopes/jsonc.js.map +0 -1
- package/dist/factory/settings/scopes/mocha.d.ts.map +0 -1
- package/dist/factory/settings/scopes/mocha.js.map +0 -1
- package/dist/factory/settings/scopes/svelte.d.ts.map +0 -1
- package/dist/factory/settings/scopes/svelte.js.map +0 -1
- package/dist/factory/settings/scopes/ts.d.ts.map +0 -1
- package/dist/factory/settings/scopes/ts.js.map +0 -1
- package/dist/factory/settings/scopes/yml.d.ts.map +0 -1
- package/dist/factory/settings/scopes/yml.js.map +0 -1
- package/dist/factory/settings/setting.js.map +0 -1
- package/src/factory/factory.ts +0 -103
package/dist/factory/index.d.ts
CHANGED
@@ -1,3 +1,231 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { ScopeSettings } from "./settings.js";
|
2
|
+
import type { Input } from "../interface/index.js";
|
3
|
+
export declare class Factory {
|
4
|
+
readonly parsers: Input["imports"]["parsers"];
|
5
|
+
readonly common: {
|
6
|
+
readonly settings: {
|
7
|
+
readonly name: "linted/*/settings";
|
8
|
+
readonly linterOptions: {
|
9
|
+
readonly noInlineConfig: boolean;
|
10
|
+
readonly reportUnusedDisableDirectives: "error" | "warn" | "off";
|
11
|
+
};
|
12
|
+
readonly languageOptions: {
|
13
|
+
readonly sourceType: "module" | "script";
|
14
|
+
readonly ecmaVersion: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
readonly ignores: {
|
18
|
+
readonly name: "linted/*/ignores";
|
19
|
+
readonly ignores: readonly string[];
|
20
|
+
};
|
21
|
+
};
|
22
|
+
readonly scopes: {
|
23
|
+
readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>;
|
24
|
+
readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>;
|
25
|
+
readonly rules: Readonly<Record<"svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", import("../interface/shared/config/rule/index.js").NamedBag[]>>;
|
26
|
+
};
|
27
|
+
constructor(parsers: Input["imports"]["parsers"], { settings: defaultSettings, files: defaultFiles, ignores: defaultIgnores, rules: defaultRules, }: Input["defaults"], { "*": commonExtension, ...scopeExtensions }?: Input["extensions"]);
|
28
|
+
scope<S extends keyof typeof ScopeSettings>(scope: S): readonly [
|
29
|
+
] | {
|
30
|
+
readonly processor?: "svelte/svelte";
|
31
|
+
readonly name: `linted/${S}:${string}`;
|
32
|
+
readonly files: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
|
33
|
+
readonly ignores: Readonly<Record<"*" | "svelte" | "mocha" | "jsonc" | "yml" | "ts" | "html" | "js" | "json", string[]>>[S];
|
34
|
+
readonly rules: Readonly<Record<string, import("../interface/shared/config/rule/index.js").State | readonly [
|
35
|
+
import("../interface/shared/config/rule/index.js").State,
|
36
|
+
...unknown[]
|
37
|
+
]>>;
|
38
|
+
readonly languageOptions: {
|
39
|
+
readonly parser?: unknown;
|
40
|
+
readonly parserOptions?: {
|
41
|
+
readonly parser?: unknown;
|
42
|
+
readonly project: "tsconfig.json";
|
43
|
+
readonly sourceType: "module";
|
44
|
+
readonly ecmaVersion: 2023;
|
45
|
+
} | {
|
46
|
+
parser: unknown;
|
47
|
+
readonly project: "tsconfig.json";
|
48
|
+
readonly sourceType: "module";
|
49
|
+
readonly ecmaVersion: 2023;
|
50
|
+
readonly extraFileExtensions: readonly [
|
51
|
+
".svelte"
|
52
|
+
];
|
53
|
+
} | {
|
54
|
+
readonly parser?: unknown;
|
55
|
+
readonly project: "tsconfig.json";
|
56
|
+
readonly sourceType: "module";
|
57
|
+
readonly ecmaVersion: 2023;
|
58
|
+
};
|
59
|
+
} | {
|
60
|
+
parser: unknown;
|
61
|
+
readonly parserOptions?: {
|
62
|
+
readonly parser?: unknown;
|
63
|
+
readonly project: "tsconfig.json";
|
64
|
+
readonly sourceType: "module";
|
65
|
+
readonly ecmaVersion: 2023;
|
66
|
+
} | {
|
67
|
+
parser: unknown;
|
68
|
+
readonly project: "tsconfig.json";
|
69
|
+
readonly sourceType: "module";
|
70
|
+
readonly ecmaVersion: 2023;
|
71
|
+
readonly extraFileExtensions: readonly [
|
72
|
+
".svelte"
|
73
|
+
];
|
74
|
+
} | {
|
75
|
+
readonly parser?: unknown;
|
76
|
+
readonly project: "tsconfig.json";
|
77
|
+
readonly sourceType: "module";
|
78
|
+
readonly ecmaVersion: 2023;
|
79
|
+
};
|
80
|
+
} | {
|
81
|
+
parser: unknown;
|
82
|
+
readonly parserOptions?: {
|
83
|
+
readonly parser?: unknown;
|
84
|
+
readonly project: "tsconfig.json";
|
85
|
+
readonly sourceType: "module";
|
86
|
+
readonly ecmaVersion: 2023;
|
87
|
+
} | {
|
88
|
+
parser: unknown;
|
89
|
+
readonly project: "tsconfig.json";
|
90
|
+
readonly sourceType: "module";
|
91
|
+
readonly ecmaVersion: 2023;
|
92
|
+
readonly extraFileExtensions: readonly [
|
93
|
+
".svelte"
|
94
|
+
];
|
95
|
+
} | {
|
96
|
+
readonly parser?: unknown;
|
97
|
+
readonly project: "tsconfig.json";
|
98
|
+
readonly sourceType: "module";
|
99
|
+
readonly ecmaVersion: 2023;
|
100
|
+
};
|
101
|
+
} | {
|
102
|
+
parser: unknown;
|
103
|
+
readonly parserOptions?: {
|
104
|
+
readonly parser?: unknown;
|
105
|
+
readonly project: "tsconfig.json";
|
106
|
+
readonly sourceType: "module";
|
107
|
+
readonly ecmaVersion: 2023;
|
108
|
+
} | {
|
109
|
+
parser: unknown;
|
110
|
+
readonly project: "tsconfig.json";
|
111
|
+
readonly sourceType: "module";
|
112
|
+
readonly ecmaVersion: 2023;
|
113
|
+
readonly extraFileExtensions: readonly [
|
114
|
+
".svelte"
|
115
|
+
];
|
116
|
+
} | {
|
117
|
+
readonly parser?: unknown;
|
118
|
+
readonly project: "tsconfig.json";
|
119
|
+
readonly sourceType: "module";
|
120
|
+
readonly ecmaVersion: 2023;
|
121
|
+
};
|
122
|
+
readonly globals: {
|
123
|
+
readonly after: false;
|
124
|
+
readonly afterEach: false;
|
125
|
+
readonly before: false;
|
126
|
+
readonly beforeEach: false;
|
127
|
+
readonly context: false;
|
128
|
+
readonly describe: false;
|
129
|
+
readonly it: false;
|
130
|
+
readonly mocha: false;
|
131
|
+
readonly run: false;
|
132
|
+
readonly setup: false;
|
133
|
+
readonly specify: false;
|
134
|
+
readonly suite: false;
|
135
|
+
readonly suiteSetup: false;
|
136
|
+
readonly suiteTeardown: false;
|
137
|
+
readonly teardown: false;
|
138
|
+
readonly test: false;
|
139
|
+
readonly xcontext: false;
|
140
|
+
readonly xdescribe: false;
|
141
|
+
readonly xit: false;
|
142
|
+
readonly xspecify: false;
|
143
|
+
};
|
144
|
+
} | {
|
145
|
+
parser: unknown;
|
146
|
+
readonly parserOptions?: {
|
147
|
+
readonly parser?: unknown;
|
148
|
+
readonly project: "tsconfig.json";
|
149
|
+
readonly sourceType: "module";
|
150
|
+
readonly ecmaVersion: 2023;
|
151
|
+
} | {
|
152
|
+
parser: unknown;
|
153
|
+
readonly project: "tsconfig.json";
|
154
|
+
readonly sourceType: "module";
|
155
|
+
readonly ecmaVersion: 2023;
|
156
|
+
readonly extraFileExtensions: readonly [
|
157
|
+
".svelte"
|
158
|
+
];
|
159
|
+
} | {
|
160
|
+
readonly parser?: unknown;
|
161
|
+
readonly project: "tsconfig.json";
|
162
|
+
readonly sourceType: "module";
|
163
|
+
readonly ecmaVersion: 2023;
|
164
|
+
};
|
165
|
+
} | {
|
166
|
+
parser: unknown;
|
167
|
+
readonly parserOptions?: {
|
168
|
+
readonly parser?: unknown;
|
169
|
+
readonly project: "tsconfig.json";
|
170
|
+
readonly sourceType: "module";
|
171
|
+
readonly ecmaVersion: 2023;
|
172
|
+
} | {
|
173
|
+
parser: unknown;
|
174
|
+
readonly project: "tsconfig.json";
|
175
|
+
readonly sourceType: "module";
|
176
|
+
readonly ecmaVersion: 2023;
|
177
|
+
readonly extraFileExtensions: readonly [
|
178
|
+
".svelte"
|
179
|
+
];
|
180
|
+
} | {
|
181
|
+
readonly parser?: unknown;
|
182
|
+
readonly project: "tsconfig.json";
|
183
|
+
readonly sourceType: "module";
|
184
|
+
readonly ecmaVersion: 2023;
|
185
|
+
};
|
186
|
+
} | {
|
187
|
+
parser: unknown;
|
188
|
+
readonly parserOptions?: {
|
189
|
+
readonly parser?: unknown;
|
190
|
+
readonly project: "tsconfig.json";
|
191
|
+
readonly sourceType: "module";
|
192
|
+
readonly ecmaVersion: 2023;
|
193
|
+
} | {
|
194
|
+
parser: unknown;
|
195
|
+
readonly project: "tsconfig.json";
|
196
|
+
readonly sourceType: "module";
|
197
|
+
readonly ecmaVersion: 2023;
|
198
|
+
readonly extraFileExtensions: readonly [
|
199
|
+
".svelte"
|
200
|
+
];
|
201
|
+
} | {
|
202
|
+
readonly parser?: unknown;
|
203
|
+
readonly project: "tsconfig.json";
|
204
|
+
readonly sourceType: "module";
|
205
|
+
readonly ecmaVersion: 2023;
|
206
|
+
};
|
207
|
+
} | {
|
208
|
+
parser: unknown;
|
209
|
+
readonly parserOptions?: {
|
210
|
+
readonly parser?: unknown;
|
211
|
+
readonly project: "tsconfig.json";
|
212
|
+
readonly sourceType: "module";
|
213
|
+
readonly ecmaVersion: 2023;
|
214
|
+
} | {
|
215
|
+
parser: unknown;
|
216
|
+
readonly project: "tsconfig.json";
|
217
|
+
readonly sourceType: "module";
|
218
|
+
readonly ecmaVersion: 2023;
|
219
|
+
readonly extraFileExtensions: readonly [
|
220
|
+
".svelte"
|
221
|
+
];
|
222
|
+
} | {
|
223
|
+
readonly parser?: unknown;
|
224
|
+
readonly project: "tsconfig.json";
|
225
|
+
readonly sourceType: "module";
|
226
|
+
readonly ecmaVersion: 2023;
|
227
|
+
};
|
228
|
+
};
|
229
|
+
}[];
|
230
|
+
}
|
3
231
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC5D"}
|
package/dist/factory/index.js
CHANGED
@@ -1,3 +1,66 @@
|
|
1
|
-
|
2
|
-
export
|
1
|
+
import { ScopeSettings } from "./settings.js";
|
2
|
+
export class Factory {
|
3
|
+
parsers;
|
4
|
+
common;
|
5
|
+
scopes;
|
6
|
+
constructor(parsers, { settings: defaultSettings, files: defaultFiles, ignores: defaultIgnores, rules: defaultRules, }, { "*": commonExtension = {}, ...scopeExtensions } = {}) {
|
7
|
+
this.parsers = parsers;
|
8
|
+
const { noInlineConfig = defaultSettings.noInlineConfig, reportUnusedDisableDirectives = defaultSettings.reportUnusedDisableDirectives, sourceType = defaultSettings.sourceType, ecmaVersion = defaultSettings.ecmaVersion, ignores = [], override = false, } = commonExtension;
|
9
|
+
this.common = {
|
10
|
+
settings: {
|
11
|
+
name: "linted/*/settings",
|
12
|
+
linterOptions: { noInlineConfig, reportUnusedDisableDirectives },
|
13
|
+
languageOptions: { sourceType, ecmaVersion },
|
14
|
+
},
|
15
|
+
ignores: {
|
16
|
+
name: "linted/*/ignores",
|
17
|
+
ignores: [
|
18
|
+
...override ? [] : defaultIgnores["*"],
|
19
|
+
...ignores,
|
20
|
+
],
|
21
|
+
},
|
22
|
+
};
|
23
|
+
this.scopes = {
|
24
|
+
files: defaultFiles,
|
25
|
+
ignores: defaultIgnores,
|
26
|
+
rules: defaultRules,
|
27
|
+
};
|
28
|
+
for (const s in scopeExtensions) {
|
29
|
+
const { [s]: { files: moreFiles = [], ignores: moreIgnores = [], rules: moreRules = null, } = {}, } = scopeExtensions;
|
30
|
+
this.scopes.files[s].push(...moreFiles);
|
31
|
+
this.scopes.ignores[s].push(...moreIgnores);
|
32
|
+
if (moreRules !== null)
|
33
|
+
this.scopes.rules[s].push([`${s}:override`, moreRules]);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
scope(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
|
+
...languageOptions,
|
39
|
+
..."parserOptions" in parserOptions
|
40
|
+
? {
|
41
|
+
parserOptions: {
|
42
|
+
...parserOptions.parserOptions,
|
43
|
+
..."parser" in parserOptions.parserOptions
|
44
|
+
? { parser: this.parsers[parserOptions.parserOptions.parser] }
|
45
|
+
: {},
|
46
|
+
},
|
47
|
+
}
|
48
|
+
: {},
|
49
|
+
..."parser" in languageOptions
|
50
|
+
? { parser: this.parsers[languageOptions.parser] }
|
51
|
+
: {},
|
52
|
+
};
|
53
|
+
return files.length < 1
|
54
|
+
? []
|
55
|
+
: ruleset.map(({ id, rules }) => ({
|
56
|
+
name: `linted/${id}`,
|
57
|
+
files,
|
58
|
+
ignores,
|
59
|
+
rules,
|
60
|
+
languageOptions: loadedLanguageOptions,
|
61
|
+
...settings.processor,
|
62
|
+
...settings.language,
|
63
|
+
}));
|
64
|
+
}
|
65
|
+
}
|
3
66
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;
|
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,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,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,KAAK;gBACL,eAAe,EAAE,qBAAqB;gBACtC,GAAG,QAAQ,CAAC,SAAS;gBACrB,GAAG,QAAQ,CAAC,QAAQ;aACX,CAAA,CAAC,CAAC;IACjB,CAAC;CACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,MAAM,CACP;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAA+B;CAC/D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/factory/scopes/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAExC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAE,MAAM,EAAE,MAAM,EAAW,CAAC;CAC/D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACjD,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe,KAAe;CAC/C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/factory/scopes/js.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACjC,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAW,CAAC;CAC/C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY,CACnD,OAAO,CACR;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAAgC;CAChE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/factory/scopes/json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAExC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAE,MAAM,EAAE,OAAO,EAAW,CAAC;CAChE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAAgC;CAChE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/scopes/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAEzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAE,MAAM,EAAE,OAAO,EAAW,CAAC;CAChE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY,CACpD,IAAI,EACJ,SAAS,CAAC,eAAe,CAAC,EAC1B,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,KAAK,qBAAsB;IAC3C,SAAgB,aAAa;;;;;;MAMlB;IACX,SAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;MAGpB;CACZ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/factory/scopes/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAIzC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAC3B,aAAa,GAAG;QAC9B,aAAa,EAAE;YACb,OAAO,EAAE,eAAe;YACxB,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,IAAI;SACT;KACF,CAAC;IACK,eAAe,GAAG;QAChC,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;KACtB,CAAC;CACZ"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import globals from "globals";
|
2
|
-
import type { Scopes } from "
|
2
|
+
import type { Scopes } from "../../../scopes/index.js";
|
3
3
|
export declare abstract class ScopeSetting<Parser extends Scopes | false = false, ParserOptions extends object = object, Global extends keyof typeof globals | false = false, Processor extends object = object, Language extends object = object> {
|
4
4
|
abstract readonly scope: Scopes;
|
5
5
|
abstract readonly processor: (Processor extends {
|
@@ -6001,4 +6001,4 @@ export declare abstract class ScopeSetting<Parser extends Scopes | false = false
|
|
6001
6001
|
};
|
6002
6002
|
}];
|
6003
6003
|
}
|
6004
|
-
//# sourceMappingURL=
|
6004
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/scopes/setting/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,8BAAsB,YAAY,CAChC,MAAM,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,EACrC,aAAa,SAAS,MAAM,GAAG,MAAM,EACrC,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxD"}
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY,CACrD,QAAQ,GAAG,IAAI,EACf,SAAS,CAAC,eAAe,CAAC,GAAG;IAC3B,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,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IACpE,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;;;;;;;MAQlB;IACX,SAAgB,eAAe;;MAEpB;CACZ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/scopes/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAU1C;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY,CACjD,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,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa;;;;;;MAMlB;IACX,SAAgB,eAAe;;MAGpB;CACZ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/scopes/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAStC;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY,CAClD,KAAK,CACN;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IACxC,SAAgB,QAAQ,KAAe;IACvC,SAAgB,aAAa,KAAe;IAC5C,SAAgB,eAAe;;MAA8B;CAC9D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/scopes/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAEvC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,SAAS,GAAG,EAAW,CAAC;IACxB,QAAQ,GAAG,EAAW,CAAC;IACvB,aAAa,GAAG,EAAW,CAAC;IAC5B,eAAe,GAAG,EAAE,MAAM,EAAE,KAAK,EAAW,CAAC;CAC9D"}
|
@@ -6,7 +6,6 @@ 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 type * from "./setting.js";
|
10
9
|
export declare const ScopeSettings: {
|
11
10
|
readonly js: typeof js;
|
12
11
|
readonly ts: typeof ts;
|
@@ -17,4 +16,4 @@ export declare const ScopeSettings: {
|
|
17
16
|
readonly jsonc: typeof jsonc;
|
18
17
|
readonly yml: typeof yml;
|
19
18
|
};
|
20
|
-
//# sourceMappingURL=
|
19
|
+
//# sourceMappingURL=settings.d.ts.map
|
@@ -0,0 +1 @@
|
|
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"}
|
@@ -0,0 +1 @@
|
|
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"}
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIjD,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,UAAU,CAAC;AAC9B,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACX,EAAE,KAAK,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAIjD,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,UAAU,CAAC;AAC9B,MAAM,CAAC,OAAO,WAAW,EACvB,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC7B,QAAQ,EACR,UAAU,GACX,EAAE,KAAK,GAAG,MAAM,CAchB"}
|
package/dist/index.js
CHANGED
@@ -1,22 +1,13 @@
|
|
1
1
|
import { scopes } from "./scopes/index.js";
|
2
|
-
import { Factory
|
2
|
+
import { Factory } from "./factory/index.js";
|
3
3
|
export default function ({ imports: { plugins, parsers }, defaults, extensions, }) {
|
4
4
|
try {
|
5
|
-
const factory = new Factory(parsers, defaults, extensions)
|
6
|
-
js: new ScopeSettings.js(),
|
7
|
-
ts: new ScopeSettings.ts(),
|
8
|
-
svelte: new ScopeSettings.svelte(),
|
9
|
-
mocha: new ScopeSettings.mocha(),
|
10
|
-
html: new ScopeSettings.html(),
|
11
|
-
json: new ScopeSettings.json(),
|
12
|
-
jsonc: new ScopeSettings.jsonc(),
|
13
|
-
yml: new ScopeSettings.yml(),
|
14
|
-
};
|
5
|
+
const factory = new Factory(parsers, defaults, extensions);
|
15
6
|
return [
|
16
7
|
{ name: `linted/*/plugins`, plugins },
|
17
8
|
factory.common.settings,
|
18
9
|
factory.common.ignores,
|
19
|
-
...scopes.flatMap(scope => factory.scope(scope
|
10
|
+
...scopes.flatMap(scope => factory.scope(scope)),
|
20
11
|
];
|
21
12
|
}
|
22
13
|
catch (e) {
|