@eslinted/core 3.1.0 → 3.1.1-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/index.d.ts +4 -2
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +4 -2
- package/dist/factory/index.js.map +1 -1
- package/dist/factory/options/option/index.d.ts +1 -1
- package/dist/factory/options/option/index.d.ts.map +1 -1
- package/dist/factory/rulesets/index.d.ts +10 -0
- package/dist/factory/rulesets/index.d.ts.map +1 -0
- package/dist/factory/rulesets/index.js +19 -0
- package/dist/factory/rulesets/index.js.map +1 -0
- package/dist/factory/rulesets/ruleset/index.d.ts +13 -0
- package/dist/factory/rulesets/ruleset/index.d.ts.map +1 -0
- package/dist/factory/rulesets/ruleset/index.js +38 -0
- package/dist/factory/rulesets/ruleset/index.js.map +1 -0
- package/dist/factory/rulesets/ruleset/rule/index.d.ts +7 -0
- package/dist/factory/rulesets/ruleset/rule/index.d.ts.map +1 -0
- package/dist/factory/rulesets/ruleset/rule/index.js +9 -0
- package/dist/factory/rulesets/ruleset/rule/index.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -25
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/factory/index.ts +5 -7
- package/src/factory/options/option/index.ts +1 -1
- package/src/factory/rulesets/index.ts +18 -0
- package/src/factory/{ruleset → rulesets/ruleset}/index.ts +1 -1
- package/src/factory/{ruleset → rulesets/ruleset}/rule/index.ts +1 -1
- package/src/index.ts +33 -52
package/dist/factory/index.d.ts
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import Rulesets from "./rulesets/index.js";
|
2
2
|
import Files from "./files/index.js";
|
3
3
|
import Options from "./options/index.js";
|
4
|
-
export
|
4
|
+
export declare class Factory {
|
5
|
+
}
|
6
|
+
export { Options, Files, Rulesets };
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,qBAAa,OAAO;CAEnB;AACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/factory/index.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import Rulesets from "./rulesets/index.js";
|
2
2
|
import Files from "./files/index.js";
|
3
3
|
import Options from "./options/index.js";
|
4
|
-
export
|
4
|
+
export class Factory {
|
5
|
+
}
|
6
|
+
export { Options, Files, Rulesets };
|
5
7
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAEzC,MAAM,OAAO,OAAO;CAEnB;AACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import globals from "globals";
|
2
2
|
import type { Scope } from "../../../scopes/index.js";
|
3
|
-
import type
|
3
|
+
import type Ruleset from "../../rulesets/ruleset/index.js";
|
4
4
|
import type { Plugins } from "../../../dependency/index.js";
|
5
5
|
import type { Output } from "../../../boundary/index.js";
|
6
6
|
export default abstract class Option<S extends Scope, PluginId extends Plugins, IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, GlobalTypes extends keyof typeof globals = never, Processor extends object = never> {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,QAAQ,SAAS,OAAO,EACxB,MAAM,SAAS,OAAO,GAAG,IAAI,EAC7B,aAAa,SAAS,MAAM,GAAG,OAAO,GAAG,KAAK,EAC9C,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,WAAW,SAAS,MAAM,OAAO,OAAO,GAAG,KAAK,EAChD,SAAS,SAAS,MAAM,GAAG,KAAK;aAYd,KAAK,EAAE,SAAS,MAAM,EAAE;aACxB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;aACnB,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC;aAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IAbrD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA6E;IAE3G,kBAAyB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9C,kBAAyB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import Ruleset from "./ruleset/index.js";
|
2
|
+
import type { Input } from "../../boundary/index.js";
|
3
|
+
import type { Scope } from "../../scopes/index.js";
|
4
|
+
export default class {
|
5
|
+
private readonly preset;
|
6
|
+
private readonly overrides;
|
7
|
+
constructor(preset: Input.Rules.Preset, overrides: Input.Rules.Overrides);
|
8
|
+
ruleset<S extends Scope>(scope: literalful<S>): Ruleset<S>;
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,CAAC,OAAO;IAEV,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;gBADT,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAC1B,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS;IAG5C,OAAO,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAOlE"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import Ruleset, { Rule } from "./ruleset/index.js";
|
2
|
+
export default class {
|
3
|
+
preset;
|
4
|
+
overrides;
|
5
|
+
constructor(preset, overrides) {
|
6
|
+
this.preset = preset;
|
7
|
+
this.overrides = overrides;
|
8
|
+
}
|
9
|
+
ruleset(scope) {
|
10
|
+
try {
|
11
|
+
return new Ruleset(scope, ...this.preset[scope].map(args => new Rule(...args)))
|
12
|
+
.override(this.overrides[scope]);
|
13
|
+
}
|
14
|
+
catch (e) {
|
15
|
+
throw new Error(`linted.factory.Rulesets/ruleset/scope:${scope}`, { cause: e });
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/factory/rulesets/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAInD,MAAM,CAAC,OAAO;IAEO;IACA;IAFnB,YACmB,MAA0B,EAC1B,SAAgC;QADhC,WAAM,GAAN,MAAM,CAAoB;QAC1B,cAAS,GAAT,SAAS,CAAuB;IAChD,CAAC;IAEG,OAAO,CAAkB,KAAoB;QAClD,IAAI,CAAC;YACH,OAAO,IAAI,OAAO,CAAI,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;iBAC/E,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,yCAAyC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IAChG,CAAC;CACF"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { Scope } from "../../../scopes/index.js";
|
2
|
+
import Rule from "./rule/index.js";
|
3
|
+
export { Rule };
|
4
|
+
export default class Ruleset<S extends Scope> {
|
5
|
+
private readonly scope;
|
6
|
+
readonly ruleset: readonly Rule[];
|
7
|
+
overrides: Null<Rule>;
|
8
|
+
constructor(scope: literalful<S>, ...rules: readonly Rule[]);
|
9
|
+
get id(): literalful<S>;
|
10
|
+
get records(): (readonly [string, Readonly<Record<string, import("../../../boundary/input/rules/preset/entry/object/state/index.js").Level | readonly [import("../../../boundary/input/rules/preset/entry/object/state/index.js").Level, ...unknown[]]>>])[];
|
11
|
+
override(overrides: undefined | Rule["rules"]): this;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/rulesets/ruleset/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAI9B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHlC,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAEP,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAO5E,IAAW,EAAE,kBAIZ;IAED,IAAW,OAAO,kPAUjB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;CAMrD"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import Rule from "./rule/index.js";
|
2
|
+
export { Rule };
|
3
|
+
export default class Ruleset {
|
4
|
+
scope;
|
5
|
+
ruleset;
|
6
|
+
overrides = null;
|
7
|
+
constructor(scope, ...rules) {
|
8
|
+
this.scope = scope;
|
9
|
+
try {
|
10
|
+
this.ruleset = [...rules];
|
11
|
+
}
|
12
|
+
catch (e) {
|
13
|
+
throw new Error(`linted.factory.Ruleset`, { cause: e });
|
14
|
+
}
|
15
|
+
}
|
16
|
+
get id() {
|
17
|
+
const { scope } = this;
|
18
|
+
return scope;
|
19
|
+
}
|
20
|
+
get records() {
|
21
|
+
try {
|
22
|
+
const { ruleset, overrides } = this;
|
23
|
+
return [
|
24
|
+
...ruleset.map(rules => [rules.id, rules.rules]),
|
25
|
+
...overrides === null ? [] : [[overrides.id, overrides.rules]],
|
26
|
+
];
|
27
|
+
}
|
28
|
+
catch (e) {
|
29
|
+
throw new Error(`linted.factory.Ruleset: records`, { cause: e });
|
30
|
+
}
|
31
|
+
}
|
32
|
+
override(overrides) {
|
33
|
+
if (typeof overrides !== "undefined")
|
34
|
+
this.overrides = new Rule("override", overrides);
|
35
|
+
return this;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/rulesets/ruleset/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,iBAAiB,CAAC;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO;IAIG;IAHb,OAAO,CAAkB;IAClC,SAAS,GAAe,IAAI,CAAC;IAEpC,YAA6B,KAAoB,EAAE,GAAG,KAAsB;QAA/C,UAAK,GAAL,KAAK,CAAe;QAC/C,IAAI,CAAC;YACH,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC,CA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,MAAM,CAAC,KAAK,CAAC,MAAM;gBADtC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;CAEzD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/rulesets/ruleset/rule/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO;IAEM;IACA;IAFlB,YACkB,EAAU,EACV,KAAsC;QADtC,OAAE,GAAF,EAAE,CAAQ;QACV,UAAK,GAAL,KAAK,CAAiC;IACrD,CAAC;CACL"}
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAGrD,YAAY,EAAE,QAAQ,EAAE,CAAC;AACzB,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,EAC/B,KAAK,EAAE;IACL,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;IAChC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;CACzC,EACD,KAAK,EAAE;IACL,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;CAC3C,GACA,QAAQ,CAAC,MAAM,EAAE,CAoFnB"}
|
package/dist/index.js
CHANGED
@@ -1,18 +1,8 @@
|
|
1
1
|
import scopes, {} from "./scopes/index.js";
|
2
|
-
import { Options, Files,
|
2
|
+
import { Options, Files, Rulesets } from "./factory/index.js";
|
3
3
|
export default function (plugins, parsers, files, rules) {
|
4
4
|
try {
|
5
|
-
const
|
6
|
-
js: new Ruleset("js", ...rules.preset.js.map(args => new Rule(...args))),
|
7
|
-
ts: new Ruleset("ts", ...rules.preset.ts.map(args => new Rule(...args))),
|
8
|
-
svelte: new Ruleset("svelte", ...rules.preset.svelte.map(args => new Rule(...args))),
|
9
|
-
mocha: new Ruleset("mocha", ...rules.preset.mocha.map(args => new Rule(...args))),
|
10
|
-
html: new Ruleset("html", ...rules.preset.html.map(args => new Rule(...args))),
|
11
|
-
json: new Ruleset("json", ...rules.preset.json.map(args => new Rule(...args))),
|
12
|
-
jsonc: new Ruleset("jsonc", ...rules.preset.jsonc.map(args => new Rule(...args))),
|
13
|
-
yml: new Ruleset("yml", ...rules.preset.yml.map(args => new Rule(...args))),
|
14
|
-
md: new Ruleset("md", ...rules.preset.md.map(args => new Rule(...args))),
|
15
|
-
}, scopedParsers = {
|
5
|
+
const F = new Files(files.base, files.includes), R = new Rulesets(rules.preset, rules.overrides), Pa = {
|
16
6
|
js: [],
|
17
7
|
ts: [parsers.ts],
|
18
8
|
svelte: [parsers.svelte, parsers.ts],
|
@@ -22,28 +12,25 @@ export default function (plugins, parsers, files, rules) {
|
|
22
12
|
jsonc: [parsers.jsonc],
|
23
13
|
yml: [parsers.yml],
|
24
14
|
md: [parsers.md],
|
25
|
-
}
|
26
|
-
for (const scope of scopes)
|
27
|
-
rulesets[scope].override(rules.overrides[scope]);
|
28
|
-
const options = {
|
15
|
+
}, options = {
|
29
16
|
js: new Options
|
30
|
-
.js(
|
17
|
+
.js(F.files("js"), R.ruleset("js"), { "@stylistic": plugins["@stylistic"] }, Pa.js).configs,
|
31
18
|
ts: new Options
|
32
|
-
.ts(
|
19
|
+
.ts(F.files("ts"), R.ruleset("ts"), { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"] }, Pa.ts).configs,
|
33
20
|
svelte: new Options
|
34
|
-
.svelte(
|
21
|
+
.svelte(F.files("svelte"), R.ruleset("svelte"), { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], svelte: plugins.svelte }, Pa.svelte).configs,
|
35
22
|
mocha: new Options
|
36
|
-
.mocha(
|
23
|
+
.mocha(F.files("mocha"), R.ruleset("mocha"), { "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], mocha: plugins.mocha }, Pa.mocha).configs,
|
37
24
|
html: new Options
|
38
|
-
.html(
|
25
|
+
.html(F.files("html"), R.ruleset("html"), { "@html-eslint": plugins["@html-eslint"] }, Pa.html).configs,
|
39
26
|
json: new Options
|
40
|
-
.json(
|
27
|
+
.json(F.files("json"), R.ruleset("json"), { jsonc: plugins.jsonc }, Pa.json).configs,
|
41
28
|
jsonc: new Options
|
42
|
-
.jsonc(
|
29
|
+
.jsonc(F.files("jsonc"), R.ruleset("jsonc"), { jsonc: plugins.jsonc }, Pa.jsonc).configs,
|
43
30
|
yml: new Options
|
44
|
-
.yml(
|
31
|
+
.yml(F.files("yml"), R.ruleset("yml"), { yml: plugins.yml }, Pa.yml).configs,
|
45
32
|
md: new Options
|
46
|
-
.md(
|
33
|
+
.md(F.files("md"), R.ruleset("md"), { markdownlint: plugins.markdownlint }, Pa.md).configs,
|
47
34
|
};
|
48
35
|
return scopes.flatMap(scope => options[scope]);
|
49
36
|
}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,mBAAmB,CAAC;AAEvD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,mBAAmB,CAA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,CAAC,OAAO,CAAC,EAClB,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EACxB,EAAE,CAAC,KAAK,CACT,CAAC,OAAO;YACX,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EACd,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAChB,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,EAAE,CAAC,GAAG,CACP,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EACb,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EACf,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,EACtC,EAAE,CAAC,EAAE,CACN,CAAC,OAAO;SACZ,CAAC;QAEF,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_schemaVersion": "20.15.0",
|
3
3
|
"name": "@eslinted/core",
|
4
|
-
"version": "3.1.
|
4
|
+
"version": "3.1.1-rc.1",
|
5
5
|
"description": "Core ESLint flat config factory npm package `linted`.",
|
6
6
|
"keywords": [],
|
7
7
|
"license": "MIT",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
28
|
"eslint": "~9.9.0",
|
29
|
-
"linted": "~16.2.0
|
29
|
+
"linted": "~16.2.0",
|
30
30
|
"npm-run-all": "^4.1.5",
|
31
31
|
"typescript": "^5.5.4"
|
32
32
|
},
|
package/src/factory/index.ts
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import Rulesets from "./rulesets/index.js";
|
2
2
|
import Files from "./files/index.js";
|
3
3
|
import Options from "./options/index.js";
|
4
4
|
|
5
|
-
export {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
Rule,
|
10
|
-
};
|
5
|
+
export class Factory {
|
6
|
+
|
7
|
+
}
|
8
|
+
export { Options, Files, Rulesets };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import globals from "globals";
|
2
2
|
import type { Scope } from "../../../scopes/index.js";
|
3
|
-
import type
|
3
|
+
import type Ruleset from "../../rulesets/ruleset/index.js";
|
4
4
|
import type { Plugins } from "../../../dependency/index.js";
|
5
5
|
import type { Output } from "../../../boundary/index.js";
|
6
6
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import Ruleset, { Rule } from "./ruleset/index.js";
|
2
|
+
import type { Input } from "../../boundary/index.js";
|
3
|
+
import type { Scope } from "../../scopes/index.js";
|
4
|
+
|
5
|
+
export default class {
|
6
|
+
constructor(
|
7
|
+
private readonly preset: Input.Rules.Preset,
|
8
|
+
private readonly overrides: Input.Rules.Overrides,
|
9
|
+
) {}
|
10
|
+
|
11
|
+
public ruleset<S extends Scope>(scope: literalful<S>): Ruleset<S> {
|
12
|
+
try {
|
13
|
+
return new Ruleset<S>(scope, ...this.preset[scope].map(args => new Rule(...args)))
|
14
|
+
.override(this.overrides[scope]);
|
15
|
+
}
|
16
|
+
catch (e) { throw new Error(`linted.factory.Rulesets/ruleset/scope:${scope}`, { cause: e }); }
|
17
|
+
}
|
18
|
+
}
|
package/src/index.ts
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
import scopes, { type Scope } from "./scopes/index.js";
|
2
2
|
import type * as Boundary from "./boundary/index.js";
|
3
|
-
import {
|
4
|
-
Options,
|
5
|
-
Files,
|
6
|
-
Ruleset,
|
7
|
-
Rule,
|
8
|
-
} from "./factory/index.js";
|
3
|
+
import { Options, Files, Rulesets } from "./factory/index.js";
|
9
4
|
|
10
5
|
export type { Boundary };
|
11
6
|
export default function (
|
@@ -21,19 +16,9 @@ export default function (
|
|
21
16
|
},
|
22
17
|
): Boundary.Output[] {
|
23
18
|
try {
|
24
|
-
const
|
25
|
-
|
26
|
-
|
27
|
-
ts: new Ruleset("ts", ...rules.preset.ts.map(args => new Rule(...args))),
|
28
|
-
svelte: new Ruleset("svelte", ...rules.preset.svelte.map(args => new Rule(...args))),
|
29
|
-
mocha: new Ruleset("mocha", ...rules.preset.mocha.map(args => new Rule(...args))),
|
30
|
-
html: new Ruleset("html", ...rules.preset.html.map(args => new Rule(...args))),
|
31
|
-
json: new Ruleset("json", ...rules.preset.json.map(args => new Rule(...args))),
|
32
|
-
jsonc: new Ruleset("jsonc", ...rules.preset.jsonc.map(args => new Rule(...args))),
|
33
|
-
yml: new Ruleset("yml", ...rules.preset.yml.map(args => new Rule(...args))),
|
34
|
-
md: new Ruleset("md", ...rules.preset.md.map(args => new Rule(...args))),
|
35
|
-
},
|
36
|
-
scopedParsers: { [S in Scope]: ConstructorParameters<typeof Options[S]>[3] } = {
|
19
|
+
const F = new Files(files.base, files.includes),
|
20
|
+
R = new Rulesets(rules.preset, rules.overrides),
|
21
|
+
Pa: { [S in Scope]: ConstructorParameters<typeof Options[S]>[3] } = {
|
37
22
|
js: [] as const,
|
38
23
|
ts: [parsers.ts] as const,
|
39
24
|
svelte: [parsers.svelte, parsers.ts] as const,
|
@@ -43,74 +28,70 @@ export default function (
|
|
43
28
|
jsonc: [parsers.jsonc] as const,
|
44
29
|
yml: [parsers.yml] as const,
|
45
30
|
md: [parsers.md] as const,
|
46
|
-
} as const
|
47
|
-
|
48
|
-
for (const scope of scopes)
|
49
|
-
rulesets[scope].override(rules.overrides[scope]);
|
50
|
-
|
51
|
-
const options: { [S in Scope]: InstanceType<typeof Options[S]>["configs"] } = {
|
31
|
+
} as const,
|
32
|
+
options: { [S in Scope]: InstanceType<typeof Options[S]>["configs"] } = {
|
52
33
|
js: new Options
|
53
34
|
.js(
|
54
|
-
|
55
|
-
|
35
|
+
F.files("js"),
|
36
|
+
R.ruleset("js"),
|
56
37
|
{ "@stylistic": plugins["@stylistic"] },
|
57
|
-
|
38
|
+
Pa.js,
|
58
39
|
).configs,
|
59
40
|
ts: new Options
|
60
41
|
.ts(
|
61
|
-
|
62
|
-
|
42
|
+
F.files("ts"),
|
43
|
+
R.ruleset("ts"),
|
63
44
|
{ "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"] },
|
64
|
-
|
45
|
+
Pa.ts,
|
65
46
|
).configs,
|
66
47
|
svelte: new Options
|
67
48
|
.svelte(
|
68
|
-
|
69
|
-
|
49
|
+
F.files("svelte"),
|
50
|
+
R.ruleset("svelte"),
|
70
51
|
{ "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], svelte: plugins.svelte },
|
71
|
-
|
52
|
+
Pa.svelte,
|
72
53
|
).configs,
|
73
54
|
mocha: new Options
|
74
55
|
.mocha(
|
75
|
-
|
76
|
-
|
56
|
+
F.files("mocha"),
|
57
|
+
R.ruleset("mocha"),
|
77
58
|
{ "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], mocha: plugins.mocha },
|
78
|
-
|
59
|
+
Pa.mocha,
|
79
60
|
).configs,
|
80
61
|
html: new Options
|
81
62
|
.html(
|
82
|
-
|
83
|
-
|
63
|
+
F.files("html"),
|
64
|
+
R.ruleset("html"),
|
84
65
|
{ "@html-eslint": plugins["@html-eslint"] },
|
85
|
-
|
66
|
+
Pa.html,
|
86
67
|
).configs,
|
87
68
|
json: new Options
|
88
69
|
.json(
|
89
|
-
|
90
|
-
|
70
|
+
F.files("json"),
|
71
|
+
R.ruleset("json"),
|
91
72
|
{ jsonc: plugins.jsonc },
|
92
|
-
|
73
|
+
Pa.json,
|
93
74
|
).configs,
|
94
75
|
jsonc: new Options
|
95
76
|
.jsonc(
|
96
|
-
|
97
|
-
|
77
|
+
F.files("jsonc"),
|
78
|
+
R.ruleset("jsonc"),
|
98
79
|
{ jsonc: plugins.jsonc },
|
99
|
-
|
80
|
+
Pa.jsonc,
|
100
81
|
).configs,
|
101
82
|
yml: new Options
|
102
83
|
.yml(
|
103
|
-
|
104
|
-
|
84
|
+
F.files("yml"),
|
85
|
+
R.ruleset("yml"),
|
105
86
|
{ yml: plugins.yml },
|
106
|
-
|
87
|
+
Pa.yml,
|
107
88
|
).configs,
|
108
89
|
md: new Options
|
109
90
|
.md(
|
110
|
-
|
111
|
-
|
91
|
+
F.files("md"),
|
92
|
+
R.ruleset("md"),
|
112
93
|
{ markdownlint: plugins.markdownlint },
|
113
|
-
|
94
|
+
Pa.md,
|
114
95
|
).configs,
|
115
96
|
};
|
116
97
|
|