@eslinted/core 11.0.0-rc.2 → 11.0.0-rc.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,10 @@
1
1
  import Option from "./option/index.js";
2
- export default class Json extends Option<"json", "json", true, false, 0, never, never, {
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 ecmaVersion: "latest";
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,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,EACD,KAAK,EACL,KAAK,EACL;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAC1B;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ;;MAAsC;IAE9D,IAAW,eAAe;;;MAKzB;CACF"}
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 = { language: "json/json" };
5
+ language = {};
6
6
  get languageOptions() {
7
- return {
8
- ecmaVersion: "latest",
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,MASjC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,QAAQ,EAAE,WAAW,EAAW,CAAC;IAE9D,IAAW,eAAe;QACxB,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACZ,CAAC;IACb,CAAC;CACF"}
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"], true, false, ConstructorParameters<typeof Json>[1]["length"], never, never, {
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 allowTrailingCommas: true;
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,KAAK,EACL,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAC/C,KAAK,EACL,KAAK,EACL;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,CAC3B;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ;;MAAuC;IAE/D,IAAW,eAAe;;;;MAMzB;CACF"}
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 = { language: "json/jsonc" };
5
+ language = {};
6
6
  get languageOptions() {
7
- return {
8
- allowTrailingCommas: true,
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,MASlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,QAAQ,EAAE,YAAY,EAAW,CAAC;IAE/D,IAAW,eAAe;QACxB,OAAO;YACL,mBAAmB,EAAE,IAAI;YACzB,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACZ,CAAC;IACb,CAAC;CACF"}
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({ json: plugins.json }, [], ...factory.produce("json")).configs,
17
+ .json({ jsonc: plugins.jsonc }, [parsers.jsonc], ...factory.produce("json")).configs,
18
18
  jsonc: new Options
19
- .jsonc({ json: plugins.json }, [], ...factory.produce("jsonc")).configs,
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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C,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,3 +1,3 @@
1
1
  import type { Scope } from "../index.js";
2
- export type Parsers = Scope & ("ts" | "svelte" | "html" | "yml");
2
+ export type Parsers = Scope & ("ts" | "svelte" | "html" | "jsonc" | "yml");
3
3
  //# sourceMappingURL=parsers.d.ts.map
@@ -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" | "json" | "yml");
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,MAAM,GACN,KAAK,CACR,CAAC"}
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "@eslinted/core",
4
- "version": "11.0.0-rc.2",
4
+ "version": "11.0.0-rc.3",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -2,22 +2,18 @@ import Option from "./option";
2
2
 
3
3
  export default class Json extends Option<
4
4
  "json",
5
- "json",
6
- true,
5
+ "jsonc",
7
6
  false,
8
- 0,
9
- never,
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 = { language: "json/json" } as const;
12
+ public readonly language = {};
16
13
 
17
14
  public get languageOptions() {
18
- return {
19
- ecmaVersion: "latest",
20
- sourceType: "module",
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
- ConstructorParameters<typeof Json>[1]["length"],
10
- never,
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 = { language: "json/jsonc" } as const;
13
+ public readonly language = {};
17
14
 
18
15
  public get languageOptions() {
19
- return {
20
- allowTrailingCommas: true,
21
- ecmaVersion: "latest",
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
- { json: plugins.json },
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
- { json: plugins.json },
63
- [],
62
+ { jsonc: plugins.jsonc },
63
+ [parsers.jsonc],
64
64
  ...factory.produce("jsonc"),
65
65
  ).configs,
66
66
  yml: new Options
@@ -5,5 +5,6 @@ export type Parsers = Scope
5
5
  | "ts"
6
6
  | "svelte"
7
7
  | "html"
8
+ | "jsonc"
8
9
  | "yml"
9
10
  );
@@ -4,6 +4,6 @@ export type Plugins = (
4
4
  | "svelte"
5
5
  | "mocha"
6
6
  | "@html-eslint"
7
- | "json"
7
+ | "jsonc"
8
8
  | "yml"
9
9
  );