@eslinted/core 11.0.0-rc.2 → 11.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/options/json.d.ts +3 -8
- package/dist/factory/options/json.d.ts.map +1 -1
- package/dist/factory/options/json.js +3 -5
- package/dist/factory/options/json.js.map +1 -1
- package/dist/factory/options/jsonc.d.ts +3 -9
- package/dist/factory/options/jsonc.d.ts.map +1 -1
- package/dist/factory/options/jsonc.js +3 -6
- package/dist/factory/options/jsonc.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/input/imports/parsers.d.ts +1 -1
- package/dist/input/imports/parsers.d.ts.map +1 -1
- package/dist/input/imports/plugins.d.ts +1 -1
- package/dist/input/imports/plugins.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/factory/options/json.ts +7 -11
- package/src/factory/options/jsonc.ts +6 -11
- package/src/index.ts +4 -4
- package/src/input/imports/parsers.ts +1 -0
- package/src/input/imports/plugins.ts +1 -1
@@ -1,15 +1,10 @@
|
|
1
1
|
import Option from "./option/index.js";
|
2
|
-
export default class Json extends Option<"json", "
|
3
|
-
language: "json/json";
|
4
|
-
}> {
|
2
|
+
export default class Json extends Option<"json", "jsonc", false, true, 1> {
|
5
3
|
readonly scope = "json";
|
6
4
|
readonly processor: {};
|
7
|
-
readonly language: {
|
8
|
-
readonly language: "json/json";
|
9
|
-
};
|
5
|
+
readonly language: {};
|
10
6
|
get languageOptions(): {
|
11
|
-
readonly
|
12
|
-
readonly sourceType: "module";
|
7
|
+
readonly parser: unknown;
|
13
8
|
};
|
14
9
|
}
|
15
10
|
//# sourceMappingURL=json.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/factory/options/json.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAAM,CACtC,MAAM,EACN,
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/factory/options/json.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAAM,CACtC,MAAM,EACN,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -2,12 +2,10 @@ import Option from "./option/index.js";
|
|
2
2
|
export default class Json extends Option {
|
3
3
|
scope = "json";
|
4
4
|
processor = {};
|
5
|
-
language = {
|
5
|
+
language = {};
|
6
6
|
get languageOptions() {
|
7
|
-
|
8
|
-
|
9
|
-
sourceType: "module",
|
10
|
-
};
|
7
|
+
const [parser] = this.parser;
|
8
|
+
return { parser };
|
11
9
|
}
|
12
10
|
}
|
13
11
|
//# sourceMappingURL=json.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/factory/options/json.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/factory/options/json.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAMjC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
|
@@ -1,17 +1,11 @@
|
|
1
1
|
import Option from "./option/index.js";
|
2
2
|
import type Json from "./json.js";
|
3
|
-
export default class Jsonc extends Option<"jsonc", keyof Json["plugins"],
|
4
|
-
language: "json/jsonc";
|
5
|
-
}> {
|
3
|
+
export default class Jsonc extends Option<"jsonc", keyof Json["plugins"], false, true, ConstructorParameters<typeof Json>[1]["length"]> {
|
6
4
|
readonly scope = "jsonc";
|
7
5
|
readonly processor: {};
|
8
|
-
readonly language: {
|
9
|
-
readonly language: "json/jsonc";
|
10
|
-
};
|
6
|
+
readonly language: {};
|
11
7
|
get languageOptions(): {
|
12
|
-
readonly
|
13
|
-
readonly ecmaVersion: "latest";
|
14
|
-
readonly sourceType: "module";
|
8
|
+
readonly parser: unknown;
|
15
9
|
};
|
16
10
|
}
|
17
11
|
//# sourceMappingURL=jsonc.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/options/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAE/B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,MAAM,IAAI,CAAC,SAAS,CAAC,EACrB,IAAI,EACJ,
|
1
|
+
{"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/options/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAE/B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,MAAM,IAAI,CAAC,SAAS,CAAC,EACrB,KAAK,EACL,IAAI,EACJ,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAChD;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;MAIzB;CACF"}
|
@@ -2,13 +2,10 @@ import Option from "./option/index.js";
|
|
2
2
|
export default class Jsonc extends Option {
|
3
3
|
scope = "jsonc";
|
4
4
|
processor = {};
|
5
|
-
language = {
|
5
|
+
language = {};
|
6
6
|
get languageOptions() {
|
7
|
-
|
8
|
-
|
9
|
-
ecmaVersion: "latest",
|
10
|
-
sourceType: "module",
|
11
|
-
};
|
7
|
+
const [parser] = this.parser;
|
8
|
+
return { parser };
|
12
9
|
}
|
13
10
|
}
|
14
11
|
//# sourceMappingURL=jsonc.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/options/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,
|
1
|
+
{"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/options/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAMlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
|
package/dist/index.js
CHANGED
@@ -14,9 +14,9 @@ export default function (input) {
|
|
14
14
|
html: new Options
|
15
15
|
.html({ "@html-eslint": plugins["@html-eslint"] }, [parsers.html], ...factory.produce("html")).configs,
|
16
16
|
json: new Options
|
17
|
-
.json({
|
17
|
+
.json({ jsonc: plugins.jsonc }, [parsers.jsonc], ...factory.produce("json")).configs,
|
18
18
|
jsonc: new Options
|
19
|
-
.jsonc({
|
19
|
+
.jsonc({ jsonc: plugins.jsonc }, [parsers.jsonc], ...factory.produce("jsonc")).configs,
|
20
20
|
yml: new Options
|
21
21
|
.yml({ yml: plugins.yml }, [parsers.yml], ...factory.produce("yml")).configs,
|
22
22
|
};
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,OAAO,EACP,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,KAAY;IACnC,IAAI,CAAC;QACH,MAAM,EACJ,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,GACN,GAAG,KAAK,EACT,OAAO,GAAG,IAAI,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,EACnC,OAAO,GAAiF;YACtF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,EACvC,EAAE,EACF,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CACzB,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,EAC5F,CAAC,OAAO,CAAC,EAAE,CAAC,EACZ,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CACzB,CAAC,OAAO;YACX,MAAM,EAAE,IAAI,OAAO;iBAChB,MAAM,CACL,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,EACpH,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,EAC5B,GAAG,OAAO,CAAC,OAAO,CAAC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ACf,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAC5B,CAAC,OAAO;YACX,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,CAAC,OAAO,CAAC,GAAG,CAAC,EACb,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAC1B,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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/input/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG,KAAK,GACvB,CACE,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,KAAK,CACV,CAAC"}
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/input/imports/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG,KAAK,GACvB,CACE,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,KAAK,CACV,CAAC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export type Plugins = ("@stylistic" | "@typescript-eslint" | "svelte" | "mocha" | "@html-eslint" | "
|
1
|
+
export type Plugins = ("@stylistic" | "@typescript-eslint" | "svelte" | "mocha" | "@html-eslint" | "jsonc" | "yml");
|
2
2
|
//# sourceMappingURL=plugins.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/input/imports/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/input/imports/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAClB,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,OAAO,GACP,KAAK,CACR,CAAC"}
|
package/package.json
CHANGED
@@ -2,22 +2,18 @@ import Option from "./option";
|
|
2
2
|
|
3
3
|
export default class Json extends Option<
|
4
4
|
"json",
|
5
|
-
"
|
6
|
-
true,
|
5
|
+
"jsonc",
|
7
6
|
false,
|
8
|
-
|
9
|
-
|
10
|
-
never,
|
11
|
-
{ language: "json/json" }
|
7
|
+
true,
|
8
|
+
1
|
12
9
|
> {
|
13
10
|
public readonly scope = "json";
|
14
11
|
public readonly processor = {};
|
15
|
-
public readonly language = {
|
12
|
+
public readonly language = {};
|
16
13
|
|
17
14
|
public get languageOptions() {
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
} as const;
|
15
|
+
const [parser] = this.parser;
|
16
|
+
|
17
|
+
return { parser } as const;
|
22
18
|
}
|
23
19
|
}
|
@@ -4,22 +4,17 @@ import type Json from "./json";
|
|
4
4
|
export default class Jsonc extends Option<
|
5
5
|
"jsonc",
|
6
6
|
keyof Json["plugins"],
|
7
|
-
true,
|
8
7
|
false,
|
9
|
-
|
10
|
-
|
11
|
-
never,
|
12
|
-
{ language: "json/jsonc" }
|
8
|
+
true,
|
9
|
+
ConstructorParameters<typeof Json>[1]["length"]
|
13
10
|
> {
|
14
11
|
public readonly scope = "jsonc";
|
15
12
|
public readonly processor = {};
|
16
|
-
public readonly language = {
|
13
|
+
public readonly language = {};
|
17
14
|
|
18
15
|
public get languageOptions() {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
sourceType: "module",
|
23
|
-
} as const;
|
16
|
+
const [parser] = this.parser;
|
17
|
+
|
18
|
+
return { parser } as const;
|
24
19
|
}
|
25
20
|
}
|
package/src/index.ts
CHANGED
@@ -53,14 +53,14 @@ export default function (input: Input): Output {
|
|
53
53
|
).configs,
|
54
54
|
json: new Options
|
55
55
|
.json(
|
56
|
-
{
|
57
|
-
[],
|
56
|
+
{ jsonc: plugins.jsonc },
|
57
|
+
[parsers.jsonc],
|
58
58
|
...factory.produce("json"),
|
59
59
|
).configs,
|
60
60
|
jsonc: new Options
|
61
61
|
.jsonc(
|
62
|
-
{
|
63
|
-
[],
|
62
|
+
{ jsonc: plugins.jsonc },
|
63
|
+
[parsers.jsonc],
|
64
64
|
...factory.produce("jsonc"),
|
65
65
|
).configs,
|
66
66
|
yml: new Options
|