@eslinted/core 10.1.1 → 11.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/dist/factory/files.d.ts +1 -1
  2. package/dist/factory/index.d.ts +5 -2
  3. package/dist/factory/index.js +1 -1
  4. package/dist/factory/options/html.d.ts +2 -1
  5. package/dist/factory/options/html.d.ts.map +1 -1
  6. package/dist/factory/options/html.js +2 -1
  7. package/dist/factory/options/html.js.map +1 -1
  8. package/dist/factory/options/index.d.ts +1 -1
  9. package/dist/factory/options/index.js +1 -1
  10. package/dist/factory/options/js.d.ts +2 -1
  11. package/dist/factory/options/js.d.ts.map +1 -1
  12. package/dist/factory/options/js.js +2 -1
  13. package/dist/factory/options/js.js.map +1 -1
  14. package/dist/factory/options/json.d.ts +9 -3
  15. package/dist/factory/options/json.d.ts.map +1 -1
  16. package/dist/factory/options/json.js +6 -3
  17. package/dist/factory/options/json.js.map +1 -1
  18. package/dist/factory/options/jsonc.d.ts +10 -3
  19. package/dist/factory/options/jsonc.d.ts.map +1 -1
  20. package/dist/factory/options/jsonc.js +7 -3
  21. package/dist/factory/options/jsonc.js.map +1 -1
  22. package/dist/factory/options/mocha.d.ts +5 -2
  23. package/dist/factory/options/mocha.d.ts.map +1 -1
  24. package/dist/factory/options/mocha.js +2 -1
  25. package/dist/factory/options/mocha.js.map +1 -1
  26. package/dist/factory/options/option/index.d.ts +4 -3
  27. package/dist/factory/options/option/index.d.ts.map +1 -1
  28. package/dist/factory/options/option/index.js +2 -1
  29. package/dist/factory/options/option/index.js.map +1 -1
  30. package/dist/factory/options/option/template/index.d.ts +6 -4
  31. package/dist/factory/options/option/template/index.d.ts.map +1 -1
  32. package/dist/factory/options/option/template/languageOptions/ecma.d.ts.map +1 -0
  33. package/dist/factory/options/option/template/languageOptions/ecma.js.map +1 -0
  34. package/dist/factory/options/option/template/{language → languageOptions}/index.d.ts +1 -1
  35. package/dist/factory/options/option/template/languageOptions/index.d.ts.map +1 -0
  36. package/dist/factory/options/option/template/languageOptions/index.js.map +1 -0
  37. package/dist/factory/options/option/template/languageOptions/source.d.ts.map +1 -0
  38. package/dist/factory/options/option/template/languageOptions/source.js.map +1 -0
  39. package/dist/factory/options/svelte.d.ts +8 -3
  40. package/dist/factory/options/svelte.d.ts.map +1 -1
  41. package/dist/factory/options/svelte.js +2 -1
  42. package/dist/factory/options/svelte.js.map +1 -1
  43. package/dist/factory/options/ts.d.ts +2 -1
  44. package/dist/factory/options/ts.d.ts.map +1 -1
  45. package/dist/factory/options/ts.js +2 -1
  46. package/dist/factory/options/ts.js.map +1 -1
  47. package/dist/factory/options/yml.d.ts +2 -1
  48. package/dist/factory/options/yml.d.ts.map +1 -1
  49. package/dist/factory/options/yml.js +2 -1
  50. package/dist/factory/options/yml.js.map +1 -1
  51. package/dist/factory/rulesets/index.d.ts +1 -1
  52. package/dist/factory/rulesets/index.js +1 -1
  53. package/dist/factory/rulesets/ruleset.d.ts +5 -2
  54. package/dist/index.d.ts +1 -1
  55. package/dist/index.js +4 -4
  56. package/dist/index.js.map +1 -1
  57. package/dist/input/files.d.ts +1 -1
  58. package/dist/input/imports/parsers.d.ts +2 -2
  59. package/dist/input/imports/parsers.d.ts.map +1 -1
  60. package/dist/input/imports/plugins.d.ts +1 -1
  61. package/dist/input/imports/plugins.d.ts.map +1 -1
  62. package/dist/input/index.d.ts +1 -1
  63. package/dist/input/parsers.d.ts +1 -1
  64. package/dist/input/plugins.d.ts +1 -1
  65. package/dist/input/rules/entry/index.d.ts +5 -2
  66. package/dist/input/rules/entry/record/index.d.ts +5 -2
  67. package/dist/input/rules/index.d.ts +1 -1
  68. package/dist/output.d.ts +1 -1
  69. package/dist/scopes.spec.js +1 -1
  70. package/package.json +2 -2
  71. package/src/factory/options/html.ts +2 -1
  72. package/src/factory/options/js.ts +5 -1
  73. package/src/factory/options/json.ts +12 -7
  74. package/src/factory/options/jsonc.ts +13 -7
  75. package/src/factory/options/mocha.ts +2 -1
  76. package/src/factory/options/option/index.ts +10 -1
  77. package/src/factory/options/option/template/index.ts +4 -2
  78. package/src/factory/options/svelte.ts +1 -0
  79. package/src/factory/options/ts.ts +2 -1
  80. package/src/factory/options/yml.ts +2 -1
  81. package/src/index.ts +5 -5
  82. package/src/input/imports/parsers.ts +0 -1
  83. package/src/input/imports/plugins.ts +1 -1
  84. package/dist/factory/options/option/template/language/ecma.d.ts.map +0 -1
  85. package/dist/factory/options/option/template/language/ecma.js.map +0 -1
  86. package/dist/factory/options/option/template/language/index.d.ts.map +0 -1
  87. package/dist/factory/options/option/template/language/index.js.map +0 -1
  88. package/dist/factory/options/option/template/language/source.d.ts.map +0 -1
  89. package/dist/factory/options/option/template/language/source.js.map +0 -1
  90. /package/dist/factory/options/option/template/{language → languageOptions}/ecma.d.ts +0 -0
  91. /package/dist/factory/options/option/template/{language → languageOptions}/ecma.js +0 -0
  92. /package/dist/factory/options/option/template/{language → languageOptions}/index.js +0 -0
  93. /package/dist/factory/options/option/template/{language → languageOptions}/source.d.ts +0 -0
  94. /package/dist/factory/options/option/template/{language → languageOptions}/source.js +0 -0
  95. /package/src/factory/options/option/template/{language → languageOptions}/ecma.ts +0 -0
  96. /package/src/factory/options/option/template/{language → languageOptions}/index.ts +0 -0
  97. /package/src/factory/options/option/template/{language → languageOptions}/source.ts +0 -0
@@ -4,4 +4,4 @@ export declare class Files {
4
4
  constructor(files: Input["files"]);
5
5
  files(scope: string): string[];
6
6
  }
7
- //# sourceMappingURL=files.d.ts.map
7
+ //# sourceMappingURL=files.d.ts.map
@@ -8,6 +8,9 @@ export declare class Factory {
8
8
  readonly files: Files;
9
9
  readonly rulesets: Rulesets;
10
10
  constructor(files: Input["files"], rules: Input["rules"]);
11
- produce(scope: string): readonly [string[], import("./rulesets/ruleset").Ruleset];
11
+ produce(scope: string): readonly [
12
+ string[],
13
+ import("./rulesets/ruleset.js").Ruleset
14
+ ];
12
15
  }
13
- //# sourceMappingURL=index.d.ts.map
16
+ //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,4 @@ export class Factory {
16
16
  ];
17
17
  }
18
18
  }
19
- //# sourceMappingURL=index.js.map
19
+ //# sourceMappingURL=index.js.map
@@ -2,8 +2,9 @@ import Option from "./option/index.js";
2
2
  export default class Html extends Option<"html", "@html-eslint", false, true, 1> {
3
3
  readonly scope = "html";
4
4
  readonly processor: {};
5
+ readonly language: {};
5
6
  get languageOptions(): {
6
7
  readonly parser: unknown;
7
8
  };
8
9
  }
9
- //# sourceMappingURL=html.d.ts.map
10
+ //# sourceMappingURL=html.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/factory/options/html.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAAM,CACtC,MAAM,EACN,cAAc,EACd,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/factory/options/html.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAAM,CACtC,MAAM,EACN,cAAc,EACd,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,9 +2,10 @@ import Option from "./option/index.js";
2
2
  export default class Html extends Option {
3
3
  scope = "html";
4
4
  processor = {};
5
+ language = {};
5
6
  get languageOptions() {
6
7
  const [parser] = this.parser;
7
8
  return { parser };
8
9
  }
9
10
  }
10
- //# sourceMappingURL=html.js.map
11
+ //# sourceMappingURL=html.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/factory/options/html.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,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/factory/options/html.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"}
@@ -18,4 +18,4 @@ declare const _default: {
18
18
  readonly yml: typeof yml;
19
19
  };
20
20
  export default _default;
21
- //# sourceMappingURL=index.d.ts.map
21
+ //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,4 @@ export default {
16
16
  jsonc,
17
17
  yml,
18
18
  };
19
- //# sourceMappingURL=index.js.map
19
+ //# sourceMappingURL=index.js.map
@@ -2,9 +2,10 @@ import Option from "./option/index.js";
2
2
  export default class Js extends Option<"js", "@stylistic"> {
3
3
  readonly scope = "js";
4
4
  readonly processor: {};
5
+ readonly language: {};
5
6
  get languageOptions(): {
6
7
  readonly ecmaVersion: "latest";
7
8
  readonly sourceType: "module";
8
9
  };
9
10
  }
10
- //# sourceMappingURL=js.d.ts.map
11
+ //# sourceMappingURL=js.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../src/factory/options/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC;IACxD,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAE/B,IAAW,eAAe;;;MAKzB;CACF"}
1
+ {"version":3,"file":"js.d.ts","sourceRoot":"","sources":["../../../src/factory/options/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CACpC,IAAI,EACJ,YAAY,CACb;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;;MAKzB;CACF"}
@@ -2,6 +2,7 @@ import Option from "./option/index.js";
2
2
  export default class Js extends Option {
3
3
  scope = "js";
4
4
  processor = {};
5
+ language = {};
5
6
  get languageOptions() {
6
7
  return {
7
8
  ecmaVersion: "latest",
@@ -9,4 +10,4 @@ export default class Js extends Option {
9
10
  };
10
11
  }
11
12
  }
12
- //# sourceMappingURL=js.js.map
13
+ //# sourceMappingURL=js.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/factory/options/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAA0B;IACxC,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAE,CAAC;IAE/B,IAAW,eAAe;QACxB,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACZ,CAAC;IACb,CAAC;CACF"}
1
+ {"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/factory/options/js.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAG/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACZ,CAAC;IACb,CAAC;CACF"}
@@ -1,9 +1,15 @@
1
1
  import Option from "./option/index.js";
2
- export default class Json extends Option<"json", "jsonc", false, true, 1> {
2
+ export default class Json extends Option<"json", "json", true, false, 0, never, never, {
3
+ language: "json/json";
4
+ }> {
3
5
  readonly scope = "json";
4
6
  readonly processor: {};
7
+ readonly language: {
8
+ readonly language: "json/json";
9
+ };
5
10
  get languageOptions(): {
6
- readonly parser: unknown;
11
+ readonly ecmaVersion: "latest";
12
+ readonly sourceType: "module";
7
13
  };
8
14
  }
9
- //# sourceMappingURL=json.d.ts.map
15
+ //# 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,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;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,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"}
@@ -2,9 +2,12 @@ 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
6
  get languageOptions() {
6
- const [parser] = this.parser;
7
- return { parser };
7
+ return {
8
+ ecmaVersion: "latest",
9
+ sourceType: "module",
10
+ };
8
11
  }
9
12
  }
10
- //# sourceMappingURL=json.js.map
13
+ //# 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,MAMjC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,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,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,9 +1,16 @@
1
1
  import Option from "./option/index.js";
2
- export default class Jsonc extends Option<"jsonc", "jsonc", false, true, 1> {
2
+ export default class Jsonc extends Option<"jsonc", "json", true, false, 0, never, never, {
3
+ language: "json/jsonc";
4
+ }> {
3
5
  readonly scope = "jsonc";
4
6
  readonly processor: {};
7
+ readonly language: {
8
+ readonly language: "json/jsonc";
9
+ };
5
10
  get languageOptions(): {
6
- readonly parser: unknown;
11
+ readonly allowTrailingCommas: true;
12
+ readonly ecmaVersion: "latest";
13
+ readonly sourceType: "module";
7
14
  };
8
15
  }
9
- //# sourceMappingURL=jsonc.d.ts.map
16
+ //# 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;AAE9B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
1
+ {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/options/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,MAAM,EACN,IAAI,EACJ,KAAK,EACL,CAAC,EACD,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"}
@@ -2,9 +2,13 @@ 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
6
  get languageOptions() {
6
- const [parser] = this.parser;
7
- return { parser };
7
+ return {
8
+ allowTrailingCommas: true,
9
+ ecmaVersion: "latest",
10
+ sourceType: "module",
11
+ };
8
12
  }
9
13
  }
10
- //# sourceMappingURL=jsonc.js.map
14
+ //# 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;AAE9B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAMlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/options/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,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"}
@@ -3,7 +3,10 @@ import type Ts from "./ts.js";
3
3
  export default class Mocha extends Option<"mocha", "mocha" | keyof Ts["option"]["plugins"], true, Ts["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
4
4
  readonly scope = "mocha";
5
5
  readonly processor: {};
6
- readonly types: readonly ["mocha"];
6
+ readonly language: {};
7
+ readonly types: readonly [
8
+ "mocha"
9
+ ];
7
10
  get languageOptions(): {
8
11
  readonly ecmaVersion: "latest";
9
12
  readonly sourceType: "module";
@@ -37,4 +40,4 @@ export default class Mocha extends Option<"mocha", "mocha" | keyof Ts["option"][
37
40
  };
38
41
  };
39
42
  }
40
- //# sourceMappingURL=mocha.d.ts.map
43
+ //# sourceMappingURL=mocha.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../src/factory/options/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACvC,IAAI,EACJ,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EAChD,CAAC,EACD,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAe;IACxC,SAAgB,KAAK,qBAAsB;IAE3C,IAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWzB;CACF"}
1
+ {"version":3,"file":"mocha.d.ts","sourceRoot":"","sources":["../../../src/factory/options/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACvC,IAAI,EACJ,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EAChD,CAAC,EACD,OAAO,CACR;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAC9B,SAAgB,KAAK,qBAAsB;IAE3C,IAAW,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWzB;CACF"}
@@ -2,6 +2,7 @@ import Option from "./option/index.js";
2
2
  export default class Mocha extends Option {
3
3
  scope = "mocha";
4
4
  processor = {};
5
+ language = {};
5
6
  types = ["mocha"];
6
7
  get languageOptions() {
7
8
  const [parser] = this.parser, globals = this.globals("mocha");
@@ -14,4 +15,4 @@ export default class Mocha extends Option {
14
15
  };
15
16
  }
16
17
  }
17
- //# sourceMappingURL=mocha.js.map
18
+ //# sourceMappingURL=mocha.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/factory/options/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAOlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAW,CAAC;IACxB,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAE3C,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAC5B,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAEhC,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;YACxF,OAAO;SACC,CAAC;IACb,CAAC;CACF"}
1
+ {"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../src/factory/options/mocha.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAOlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IACd,KAAK,GAAG,CAAC,OAAO,CAAU,CAAC;IAE3C,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAC5B,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAEhC,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;YACxF,OAAO;SACC,CAAC;IACb,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
1
  import type { Ruleset } from "../../rulesets/ruleset.js";
2
2
  import type { Scope, Input, Output, LanguageOptions, Plugins, Globals } from "./template/index.js";
3
- export default abstract class Option<S extends Scope, Plugin extends keyof Input["plugins"], IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, Global extends Globals = never, Processor extends object = never> {
3
+ export default abstract class Option<S extends Scope, Plugin extends keyof Input["plugins"], IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, Global extends Globals = never, Processor extends object = never, Language extends object = never> {
4
4
  readonly plugins: Plugins<Plugin>;
5
5
  readonly parser: Tuple<ParserCount, unknown>;
6
6
  readonly files: string[];
@@ -8,6 +8,7 @@ export default abstract class Option<S extends Scope, Plugin extends keyof Input
8
8
  private readonly linterOptions;
9
9
  abstract readonly scope: literalful<S>;
10
10
  abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends Readonly<Record<"processor", string>> ? Interface<Processor> : object;
11
+ abstract readonly language: Interface<Language> extends never ? object : Interface<Language> extends Readonly<Record<"language", string>> ? Interface<Language> : object;
11
12
  constructor(plugins: Plugins<Plugin>, parser: Tuple<ParserCount, unknown>, files: string[], ruleset: Ruleset);
12
13
  get configs(): Output;
13
14
  private get option();
@@ -2566,7 +2567,7 @@ export default abstract class Option<S extends Scope, Plugin extends keyof Input
2566
2567
  readonly WritableStreamDefaultWriter: false;
2567
2568
  readonly XMLHttpRequest: false;
2568
2569
  };
2569
- readonly 'shared-node-browser': {
2570
+ readonly "shared-node-browser": {
2570
2571
  readonly AbortController: false;
2571
2572
  readonly AbortSignal: false;
2572
2573
  readonly atob: false;
@@ -2985,4 +2986,4 @@ export default abstract class Option<S extends Scope, Plugin extends keyof Input
2985
2986
  };
2986
2987
  }[Global];
2987
2988
  }
2988
- //# sourceMappingURL=index.d.ts.map
2989
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EACV,KAAK,EACL,KAAK,EACL,MAAM,EAEN,eAAe,EACf,OAAO,EACP,OAAO,EACR,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,MAAM,SAAS,MAAM,KAAK,CAAC,SAAS,CAAC,EACrC,MAAM,SAAS,OAAO,GAAG,IAAI,EAC7B,aAAa,SAAS,MAAM,GAAG,OAAO,GAAG,KAAK,EAC9C,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,MAAM,SAAS,OAAO,GAAG,KAAK,EAC9B,SAAS,SAAS,MAAM,GAAG,KAAK;aAYd,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC;aACxB,MAAM,EAAE,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC;aACnC,KAAK,EAAE,MAAM,EAAE;aACf,OAAO,EAAE,OAAO;IAblC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA6E;IAE3G,kBAAyB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9C,kBAAyB,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,SAAS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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/B"}
@@ -28,12 +28,13 @@ export default class Option {
28
28
  }
29
29
  get option() {
30
30
  try {
31
- const { plugins, linterOptions, languageOptions, processor, } = this;
31
+ const { plugins, linterOptions, languageOptions, processor, language, } = this;
32
32
  return {
33
33
  plugins,
34
34
  linterOptions,
35
35
  languageOptions,
36
36
  ...processor,
37
+ ...language,
37
38
  };
38
39
  }
39
40
  catch (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAY9B,MAAM,CAAC,OAAO,OAAgB,MAAM;IAmBhB;IACA;IACA;IACA;IAbD,aAAa,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,6BAA6B,EAAE,OAAO,E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,CAAC,CAAC;IACvB,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAY9B,MAAM,CAAC,OAAO,OAAgB,MAAM;IAyBhB;IACA;IACA;IACA;IAlBD,aAAa,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,6BAA6B,EAAE,OAAO,EAAW,CAAC;IAc3G,YACkB,OAAwB,EACxB,MAAmC,EACnC,KAAe,EACf,OAAgB;QAHhB,YAAO,GAAP,OAAO,CAAiB;QACxB,WAAM,GAAN,MAAM,CAA6B;QACnC,UAAK,GAAL,KAAK,CAAU;QACf,YAAO,GAAP,OAAO,CAAS;IAC/B,CAAC;IAEJ,IAAW,OAAO;QAChB,MAAM,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EACL,MAAM,GACP,GAAG,IAAI,CAAC;QAET,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK;YACzB,MAAM,IAAI,SAAS,CAAC,2CAA2C,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAEzH,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC;YACrB,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;gBACrC,OAAO;oBACL,IAAI,EAAE,UAAU,EAAE,EAAE;oBACpB,KAAK;oBACL,KAAK,EAAE,IAAI;oBACX,GAAG,MAAM;iBACV,CAAC;YACJ,CAAC,CAAC,CAAC;IACP,CAAC;IAED,IAAY,MAAM;QAChB,IAAI,CAAC;YACH,MAAM,EACJ,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,EACT,QAAQ,GACT,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,OAAO;gBACP,aAAa;gBACb,eAAe;gBACf,GAAG,SAAS;gBACZ,GAAG,QAAQ;aAQZ,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,CAAC;YAAC,MAAM,IAAI,KAAK,CAAC,+BAA+B,IAAI,CAAC,KAAK,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC;IACnG,CAAC;IAIS,OAAO,CAAC,IAAY;QAC5B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;CACF"}
@@ -1,15 +1,17 @@
1
1
  export type { Scope, Input, Output } from "../../index.js";
2
- import type { LanguageOptions } from "./language/index.js";
2
+ import type { LanguageOptions } from "./languageOptions/index.js";
3
3
  import type { Linter } from "./linter.js";
4
4
  import type { Plugins } from "./plugins.js";
5
5
  import type { Globals } from "./globals.js";
6
6
  export type { LanguageOptions, Linter, Plugins, Globals, };
7
- export type OptionTemplate<PluginId extends string, IsEcma extends boolean, ParserOptions extends boolean | object, GlobalTypes extends Globals, Processor extends object> = {
7
+ export type OptionTemplate<PluginId extends string, IsEcma extends boolean, ParserOptions extends boolean | object, GlobalTypes extends Globals, Processor extends object, Language extends object> = {
8
8
  linterOptions: Linter;
9
9
  languageOptions: LanguageOptions<IsEcma, ParserOptions, GlobalTypes>;
10
10
  } & (Plugins<PluginId> extends never ? object : {
11
11
  plugins: Plugins<PluginId>;
12
12
  }) & (Interface<Processor> extends never ? object : Interface<Processor> extends {
13
13
  processor: string;
14
- } ? Interface<Processor> : object);
15
- //# sourceMappingURL=index.d.ts.map
14
+ } ? Interface<Processor> : object) & (Interface<Language> extends never ? object : Interface<Language> extends {
15
+ language: string;
16
+ } ? Interface<Language> : object);
17
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,M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KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,YAAY,EACV,eAAe,EACf,MAAM,EACN,OAAO,EACP,OAAO,GACR,CAAC;AACF,MAAM,MAAM,cAAc,CACxB,QAAQ,SAAS,MAAM,EACvB,MAAM,SAAS,OAAO,EACtB,aAAa,SAAS,OAAO,GAAG,MAAM,EACtC,WAAW,SAAS,OAAO,EAC3B,SAAS,SAAS,MAAM,EACxB,QAAQ,SAAS,MAAM,IAErB;IACA,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;CACtE,GACC,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,CAAC,GAC3E,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,SAAS;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAClI,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecma.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/ecma.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,CACtB,QAAQ,CACX,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ecma.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/ecma.ts"],"names":[],"mappings":""}
@@ -11,4 +11,4 @@ export type LanguageOptions<IsEcma extends boolean, ParserOptions extends object
11
11
  parser: unknown;
12
12
  parserOptions: ParserOptions;
13
13
  } : object);
14
- //# sourceMappingURL=index.d.ts.map
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,eAAe,CACzB,MAAM,SAAS,OAAO,EACtB,aAAa,SAAS,MAAM,GAAG,OAAO,EACtC,WAAW,SAAS,MAAM,IAEzB,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAE,CAAC,GAC7F,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,GACvF,CACC,aAAa,SAAS,OAAO,GACzB,KAAK,CAAC,aAAa,CAAC,SAAS,KAAK,GAChC,MAAM,GACN;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACrB,aAAa,SAAS,MAAM,GAC1B,SAAS,CAAC,aAAa,CAAC,SAAS,KAAK,GACpC,MAAM,GACN;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,aAAa,CAAA;CAAE,GACnD,MAAM,CACb,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/source.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,CACrB,QAAQ,GACR,QAAQ,CACX,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/languageOptions/source.ts"],"names":[],"mappings":""}
@@ -3,7 +3,9 @@ import type Ts from "./ts.js";
3
3
  export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option"]["plugins"], true, {
4
4
  parser: unknown;
5
5
  } & {
6
- extraFileExtensions: readonly [".svelte"];
6
+ extraFileExtensions: readonly [
7
+ ".svelte"
8
+ ];
7
9
  } & Ts["option"]["languageOptions"]["parserOptions"], 2, never, {
8
10
  processor: "svelte/svelte";
9
11
  }> {
@@ -11,17 +13,20 @@ export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option
11
13
  readonly processor: {
12
14
  readonly processor: "svelte/svelte";
13
15
  };
16
+ readonly language: {};
14
17
  get languageOptions(): {
15
18
  readonly ecmaVersion: "latest";
16
19
  readonly sourceType: "module";
17
20
  readonly parser: unknown;
18
21
  readonly parserOptions: {
19
22
  readonly parser: unknown;
20
- readonly extraFileExtensions: readonly [".svelte"];
23
+ readonly extraFileExtensions: readonly [
24
+ ".svelte"
25
+ ];
21
26
  readonly project: "tsconfig.json";
22
27
  readonly ecmaVersion: "latest";
23
28
  readonly sourceType: "module";
24
29
  };
25
30
  };
26
31
  }
27
- //# sourceMappingURL=svelte.d.ts.map
32
+ //# sourceMappingURL=svelte.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/options/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,MAAM,CACxC,QAAQ,EACR,QAAQ,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACxC,IAAI,EACJ;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EACtH,CAAC,EACD,KAAK,EACL;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IAEpE,IAAW,eAAe;;;;;;;;;;;MAezB;CACF"}
1
+ {"version":3,"file":"svelte.d.ts","sourceRoot":"","sources":["../../../src/factory/options/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,MAAM,CACxC,QAAQ,EACR,QAAQ,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACxC,IAAI,EACJ;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EACtH,CAAC,EACD,KAAK,EACL;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B;IACC,SAAgB,KAAK,YAAY;IACjC,SAAgB,SAAS;;MAA2C;IACpE,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;;;;;;;;;;MAezB;CACF"}
@@ -2,6 +2,7 @@ import Option from "./option/index.js";
2
2
  export default class Svelte extends Option {
3
3
  scope = "svelte";
4
4
  processor = { processor: "svelte/svelte" };
5
+ language = {};
5
6
  get languageOptions() {
6
7
  const [parser, tsParser] = this.parser;
7
8
  return {
@@ -18,4 +19,4 @@ export default class Svelte extends Option {
18
19
  };
19
20
  }
20
21
  }
21
- //# sourceMappingURL=svelte.js.map
22
+ //# sourceMappingURL=svelte.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/options/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,MAQnC;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IAEpE,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAEvC,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE;gBACb,MAAM,EAAE,QAAQ;gBAChB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,OAAO,EAAE,eAAe;gBACxB,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACrB;SACO,CAAC;IACb,CAAC;CACF"}
1
+ {"version":3,"file":"svelte.js","sourceRoot":"","sources":["../../../src/factory/options/svelte.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,MAQnC;IACiB,KAAK,GAAG,QAAQ,CAAC;IACjB,SAAS,GAAG,EAAE,SAAS,EAAE,eAAe,EAAW,CAAC;IACpD,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAEvC,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE;gBACb,MAAM,EAAE,QAAQ;gBAChB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,OAAO,EAAE,eAAe;gBACxB,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACrB;SACO,CAAC;IACb,CAAC;CACF"}
@@ -5,6 +5,7 @@ export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["op
5
5
  } & Js["option"]["languageOptions"], 1> {
6
6
  readonly scope = "ts";
7
7
  readonly processor: {};
8
+ readonly language: {};
8
9
  get languageOptions(): {
9
10
  readonly ecmaVersion: "latest";
10
11
  readonly sourceType: "module";
@@ -16,4 +17,4 @@ export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["op
16
17
  };
17
18
  };
18
19
  }
19
- //# sourceMappingURL=ts.d.ts.map
20
+ //# sourceMappingURL=ts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/options/ts.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CACpC,IAAI,EACJ,oBAAoB,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACpD,IAAI,EACJ;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAC9D,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;MASzB;CACF"}
1
+ {"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/factory/options/ts.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CACpC,IAAI,EACJ,oBAAoB,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACpD,IAAI,EACJ;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,EAC9D,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;;;;;;;;MASzB;CACF"}
@@ -2,6 +2,7 @@ import Option from "./option/index.js";
2
2
  export default class Ts extends Option {
3
3
  scope = "ts";
4
4
  processor = {};
5
+ language = {};
5
6
  get languageOptions() {
6
7
  const [parser] = this.parser;
7
8
  return {
@@ -12,4 +13,4 @@ export default class Ts extends Option {
12
13
  };
13
14
  }
14
15
  }
15
- //# sourceMappingURL=ts.js.map
16
+ //# sourceMappingURL=ts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/options/ts.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAM/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;SAChF,CAAC;IACb,CAAC;CACF"}
1
+ {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/options/ts.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAM/B;IACiB,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;YACpB,MAAM;YACN,aAAa,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;SAChF,CAAC;IACb,CAAC;CACF"}
@@ -2,8 +2,9 @@ import Option from "./option/index.js";
2
2
  export default class Yml extends Option<"yml", "yml", false, true, 1> {
3
3
  readonly scope = "yml";
4
4
  readonly processor: {};
5
+ readonly language: {};
5
6
  get languageOptions(): {
6
7
  readonly parser: unknown;
7
8
  };
8
9
  }
9
- //# sourceMappingURL=yml.d.ts.map
10
+ //# sourceMappingURL=yml.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/options/yml.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAAM,CACrC,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
1
+ {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/factory/options/yml.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAAM,CACrC,KAAK,EACL,KAAK,EACL,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;MAIzB;CACF"}
@@ -2,9 +2,10 @@ import Option from "./option/index.js";
2
2
  export default class Yml extends Option {
3
3
  scope = "yml";
4
4
  processor = {};
5
+ language = {};
5
6
  get languageOptions() {
6
7
  const [parser] = this.parser;
7
8
  return { parser };
8
9
  }
9
10
  }
10
- //# sourceMappingURL=yml.js.map
11
+ //# sourceMappingURL=yml.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/options/yml.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAMhC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,SAAS,GAAG,EAAW,CAAC;IAExC,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/factory/options/yml.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,MAMhC;IACiB,KAAK,GAAG,KAAK,CAAC;IACd,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"}
@@ -6,4 +6,4 @@ export declare class Rulesets {
6
6
  constructor(rules: Input["rules"]);
7
7
  ruleset(scope: string): Ruleset;
8
8
  }
9
- //# sourceMappingURL=index.d.ts.map
9
+ //# sourceMappingURL=index.d.ts.map
@@ -12,4 +12,4 @@ export class Rulesets {
12
12
  return this.rulesets.get(scope);
13
13
  }
14
14
  }
15
- //# sourceMappingURL=index.js.map
15
+ //# sourceMappingURL=index.js.map
@@ -5,6 +5,9 @@ export declare class Ruleset {
5
5
  id: string;
6
6
  rule: Input.Rule.Entry.Record;
7
7
  }[];
8
- constructor(scope: string, rules: (readonly [string, Input.Rule.Entry.Record])[], override?: Input.Rule.Entry.Record);
8
+ constructor(scope: string, rules: (readonly [
9
+ string,
10
+ Input.Rule.Entry.Record
11
+ ])[], override?: Input.Rule.Entry.Record);
9
12
  }
10
- //# sourceMappingURL=ruleset.d.ts.map
13
+ //# sourceMappingURL=ruleset.d.ts.map
package/dist/index.d.ts CHANGED
@@ -3,4 +3,4 @@ import type { Input } from "./input/index.js";
3
3
  import type { Output } from "./output.js";
4
4
  export type { Input, Output };
5
5
  export default function (input: Input): Output;
6
- //# sourceMappingURL=index.d.ts.map
6
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -14,16 +14,16 @@ 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({ jsonc: plugins.jsonc }, [parsers.jsonc], ...factory.produce("json")).configs,
17
+ .json({ json: plugins.json }, [], ...factory.produce("json")).configs,
18
18
  jsonc: new Options
19
- .jsonc({ jsonc: plugins.jsonc }, [parsers.jsonc], ...factory.produce("jsonc")).configs,
19
+ .jsonc({ json: plugins.json }, [], ...factory.produce("jsonc")).configs,
20
20
  yml: new Options
21
21
  .yml({ yml: plugins.yml }, [parsers.yml], ...factory.produce("yml")).configs,
22
22
  };
23
23
  return scopes.flatMap(scope => options[scope]);
24
24
  }
25
25
  catch (e) {
26
- throw new Error(`linted-core`, { cause: e });
26
+ throw new Error(`Linted Core`, { cause: e });
27
27
  }
28
28
  }
29
- //# sourceMappingURL=index.js.map
29
+ //# sourceMappingURL=index.js.map
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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I,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,CAAC,EAAE,EAC3C,CAAC,OAAO,CAAC,IAAI,CAAC,EACd,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAC3B,CAAC,OAAO;YACX,IAAI,EAAE,IAAI,OAAO;iBACd,IAAI,CACH,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,EACtB,EAAE,EACF,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAC3B,CAAC,OAAO;YACX,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,EACtB,EAAE,EACF,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"}
@@ -3,4 +3,4 @@ export interface FilesInput {
3
3
  files: Record<Scope, string[]>;
4
4
  includes: Partial<FilesInput["files"]>;
5
5
  }
6
- //# sourceMappingURL=files.d.ts.map
6
+ //# sourceMappingURL=files.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import type { Scope } from "../index.js";
2
- export type Parsers = Scope & ("ts" | "svelte" | "html" | "jsonc" | "yml");
3
- //# sourceMappingURL=parsers.d.ts.map
2
+ export type Parsers = Scope & ("ts" | "svelte" | "html" | "yml");
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,OAAO,GACP,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,KAAK,CACV,CAAC"}
@@ -1,2 +1,2 @@
1
- export type Plugins = ("@stylistic" | "@typescript-eslint" | "svelte" | "mocha" | "@html-eslint" | "jsonc" | "yml");
1
+ export type Plugins = ("@stylistic" | "@typescript-eslint" | "svelte" | "mocha" | "@html-eslint" | "json" | "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,OAAO,GACP,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,MAAM,GACN,KAAK,CACR,CAAC"}
@@ -19,4 +19,4 @@ export declare namespace Input {
19
19
  }
20
20
  }
21
21
  }
22
- //# sourceMappingURL=index.d.ts.map
22
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import type { Parsers } from "./imports/parsers.js";
2
2
  export type ParsersInput = Record<Parsers, unknown>;
3
- //# sourceMappingURL=parsers.d.ts.map
3
+ //# sourceMappingURL=parsers.d.ts.map
@@ -2,4 +2,4 @@ import type { Plugins } from "./imports/plugins.js";
2
2
  export type PluginsInput = Record<Plugins, {
3
3
  configs: unknown;
4
4
  }>;
5
- //# sourceMappingURL=plugins.d.ts.map
5
+ //# sourceMappingURL=plugins.d.ts.map
@@ -1,7 +1,10 @@
1
1
  import type { RuleRecord } from "./record/index.js";
2
- export type RuleEntry = readonly [string, RuleRecord];
2
+ export type RuleEntry = readonly [
3
+ string,
4
+ RuleRecord
5
+ ];
3
6
  export declare namespace RuleEntry {
4
7
  type Id = string;
5
8
  type Record = RuleRecord;
6
9
  }
7
- //# sourceMappingURL=index.d.ts.map
10
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,6 @@
1
1
  import type { RuleState } from "./state.js";
2
- export type RuleRecord = Table<RuleState | readonly [RuleState, ...unknown[]]>;
3
- //# sourceMappingURL=index.d.ts.map
2
+ export type RuleRecord = Table<RuleState | readonly [
3
+ RuleState,
4
+ ...unknown[]
5
+ ]>;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -11,4 +11,4 @@ export declare namespace RulesInput {
11
11
  type Record = RuleEntry.Record;
12
12
  }
13
13
  }
14
- //# sourceMappingURL=index.d.ts.map
14
+ //# sourceMappingURL=index.d.ts.map
package/dist/output.d.ts CHANGED
@@ -17,4 +17,4 @@ export type Output = ({
17
17
  plugins: Table<Record<"configs", unknown>>;
18
18
  processor?: string;
19
19
  })[];
20
- //# sourceMappingURL=output.d.ts.map
20
+ //# sourceMappingURL=output.d.ts.map
@@ -34,4 +34,4 @@ describe("Scopes", function () {
34
34
  });
35
35
  });
36
36
  });
37
- //# sourceMappingURL=scopes.spec.js.map
37
+ //# sourceMappingURL=scopes.spec.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "@eslinted/core",
4
- "version": "10.1.1",
4
+ "version": "11.0.0-rc.0",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -37,7 +37,7 @@
37
37
  "mocha": "^10.8.2",
38
38
  "npm-run-all": "^4.1.5",
39
39
  "run-script-os": "^1.1.6",
40
- "ts-add-js-extension": "^1.6.4",
40
+ "ts-add-js-extension": "^1.6.5",
41
41
  "typescript": "^5.6.3"
42
42
  },
43
43
  "scripts": {
@@ -8,7 +8,8 @@ export default class Html extends Option<
8
8
  1
9
9
  > {
10
10
  public readonly scope = "html";
11
- public readonly processor = {} as const;
11
+ public readonly processor = {};
12
+ public readonly language = {};
12
13
 
13
14
  public get languageOptions() {
14
15
  const [parser] = this.parser;
@@ -1,8 +1,12 @@
1
1
  import Option from "./option";
2
2
 
3
- export default class Js extends Option<"js", "@stylistic"> {
3
+ export default class Js extends Option<
4
+ "js",
5
+ "@stylistic"
6
+ > {
4
7
  public readonly scope = "js";
5
8
  public readonly processor = {};
9
+ public readonly language = {};
6
10
 
7
11
  public get languageOptions() {
8
12
  return {
@@ -2,17 +2,22 @@ import Option from "./option";
2
2
 
3
3
  export default class Json extends Option<
4
4
  "json",
5
- "jsonc",
6
- false,
5
+ "json",
7
6
  true,
8
- 1
7
+ false,
8
+ 0,
9
+ never,
10
+ never,
11
+ { language: "json/json" }
9
12
  > {
10
13
  public readonly scope = "json";
11
- public readonly processor = {} as const;
14
+ public readonly processor = {};
15
+ public readonly language = { language: "json/json" } as const;
12
16
 
13
17
  public get languageOptions() {
14
- const [parser] = this.parser;
15
-
16
- return { parser } as const;
18
+ return {
19
+ ecmaVersion: "latest",
20
+ sourceType: "module",
21
+ } as const;
17
22
  }
18
23
  }
@@ -2,17 +2,23 @@ import Option from "./option";
2
2
 
3
3
  export default class Jsonc extends Option<
4
4
  "jsonc",
5
- "jsonc",
6
- false,
5
+ "json",
7
6
  true,
8
- 1
7
+ false,
8
+ 0,
9
+ never,
10
+ never,
11
+ { language: "json/jsonc" }
9
12
  > {
10
13
  public readonly scope = "jsonc";
11
- public readonly processor = {} as const;
14
+ public readonly processor = {};
15
+ public readonly language = { language: "json/jsonc" } as const;
12
16
 
13
17
  public get languageOptions() {
14
- const [parser] = this.parser;
15
-
16
- return { parser } as const;
18
+ return {
19
+ allowTrailingCommas: true,
20
+ ecmaVersion: "latest",
21
+ sourceType: "module",
22
+ } as const;
17
23
  }
18
24
  }
@@ -10,7 +10,8 @@ export default class Mocha extends Option<
10
10
  "mocha"
11
11
  > {
12
12
  public readonly scope = "mocha";
13
- public readonly processor = {} as const;
13
+ public readonly processor = {};
14
+ public readonly language = {};
14
15
  public readonly types = ["mocha"] as const;
15
16
 
16
17
  public get languageOptions() {
@@ -18,6 +18,7 @@ export default abstract class Option<
18
18
  ParserCount extends 0 | 1 | 2 = 0,
19
19
  Global extends Globals = never,
20
20
  Processor extends object = never,
21
+ Language extends object = never,
21
22
  > {
22
23
  private readonly linterOptions = { noInlineConfig: true, reportUnusedDisableDirectives: "error" } as const;
23
24
 
@@ -27,6 +28,11 @@ export default abstract class Option<
27
28
  : Interface<Processor> extends Readonly<Record<"processor", string>>
28
29
  ? Interface<Processor>
29
30
  : object;
31
+ public abstract readonly language: Interface<Language> extends never
32
+ ? object
33
+ : Interface<Language> extends Readonly<Record<"language", string>>
34
+ ? Interface<Language>
35
+ : object;
30
36
 
31
37
  constructor(
32
38
  public readonly plugins: Plugins<Plugin>,
@@ -65,6 +71,7 @@ export default abstract class Option<
65
71
  linterOptions,
66
72
  languageOptions,
67
73
  processor,
74
+ language,
68
75
  } = this;
69
76
 
70
77
  return {
@@ -72,12 +79,14 @@ export default abstract class Option<
72
79
  linterOptions,
73
80
  languageOptions,
74
81
  ...processor,
82
+ ...language,
75
83
  } satisfies OptionTemplate<
76
84
  Plugin,
77
85
  IsEcma,
78
86
  ParserOptions,
79
87
  Global,
80
- Processor
88
+ Processor,
89
+ Language
81
90
  >;
82
91
  }
83
92
  catch (e) { throw new Error(`linted.factory.Option/scope:${this.scope}: option`, { cause: e }); }
@@ -1,6 +1,6 @@
1
1
  export type { Scope, Input, Output } from "../..";
2
2
 
3
- import type { LanguageOptions } from "./language";
3
+ import type { LanguageOptions } from "./languageOptions";
4
4
  import type { Linter } from "./linter";
5
5
  import type { Plugins } from "./plugins";
6
6
  import type { Globals } from "./globals";
@@ -17,10 +17,12 @@ export type OptionTemplate<
17
17
  ParserOptions extends boolean | object,
18
18
  GlobalTypes extends Globals,
19
19
  Processor extends object,
20
+ Language extends object,
20
21
  > =
21
22
  & {
22
23
  linterOptions: Linter;
23
24
  languageOptions: LanguageOptions<IsEcma, ParserOptions, GlobalTypes>;
24
25
  }
25
26
  & (Plugins<PluginId> extends never ? object : { plugins: Plugins<PluginId> })
26
- & (Interface<Processor> extends never ? object : Interface<Processor> extends { processor: string } ? Interface<Processor> : object);
27
+ & (Interface<Processor> extends never ? object : Interface<Processor> extends { processor: string } ? Interface<Processor> : object)
28
+ & (Interface<Language> extends never ? object : Interface<Language> extends { language: string } ? Interface<Language> : object);
@@ -12,6 +12,7 @@ export default class Svelte extends Option<
12
12
  > {
13
13
  public readonly scope = "svelte";
14
14
  public readonly processor = { processor: "svelte/svelte" } as const;
15
+ public readonly language = {};
15
16
 
16
17
  public get languageOptions() {
17
18
  const [parser, tsParser] = this.parser;
@@ -9,7 +9,8 @@ export default class Ts extends Option<
9
9
  1
10
10
  > {
11
11
  public readonly scope = "ts";
12
- public readonly processor = {} as const;
12
+ public readonly processor = {};
13
+ public readonly language = {};
13
14
 
14
15
  public get languageOptions() {
15
16
  const [parser] = this.parser;
@@ -8,7 +8,8 @@ export default class Yml extends Option<
8
8
  1
9
9
  > {
10
10
  public readonly scope = "yml";
11
- public readonly processor = {} as const;
11
+ public readonly processor = {};
12
+ public readonly language = {};
12
13
 
13
14
  public get languageOptions() {
14
15
  const [parser] = this.parser;
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
- { jsonc: plugins.jsonc },
57
- [parsers.jsonc],
56
+ { json: plugins.json },
57
+ [],
58
58
  ...factory.produce("json"),
59
59
  ).configs,
60
60
  jsonc: new Options
61
61
  .jsonc(
62
- { jsonc: plugins.jsonc },
63
- [parsers.jsonc],
62
+ { json: plugins.json },
63
+ [],
64
64
  ...factory.produce("jsonc"),
65
65
  ).configs,
66
66
  yml: new Options
@@ -73,5 +73,5 @@ export default function (input: Input): Output {
73
73
 
74
74
  return scopes.flatMap(scope => options[scope]);
75
75
  }
76
- catch (e) { throw new Error(`linted-core`, { cause: e }); }
76
+ catch (e) { throw new Error(`Linted Core`, { cause: e }); }
77
77
  }
@@ -5,6 +5,5 @@ export type Parsers = Scope
5
5
  | "ts"
6
6
  | "svelte"
7
7
  | "html"
8
- | "jsonc"
9
8
  | "yml"
10
9
  );
@@ -4,6 +4,6 @@ export type Plugins = (
4
4
  | "svelte"
5
5
  | "mocha"
6
6
  | "@html-eslint"
7
- | "jsonc"
7
+ | "json"
8
8
  | "yml"
9
9
  );
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecma.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/language/ecma.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,CACtB,QAAQ,CACX,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ecma.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/language/ecma.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/language/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,MAAM,eAAe,CACzB,MAAM,SAAS,OAAO,EACtB,aAAa,SAAS,MAAM,GAAG,OAAO,EACtC,WAAW,SAAS,MAAM,IAEzB,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAE,CAAC,GAC7F,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,GACvF,CACC,aAAa,SAAS,OAAO,GACzB,KAAK,CAAC,aAAa,CAAC,SAAS,KAAK,GAChC,MAAM,GACN;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACrB,aAAa,SAAS,MAAM,GAC1B,SAAS,CAAC,aAAa,CAAC,SAAS,KAAK,GACpC,MAAM,GACN;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,aAAa,EAAE,aAAa,CAAA;CAAE,GACnD,MAAM,CACb,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/language/index.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/language/source.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,CACrB,QAAQ,GACR,QAAQ,CACX,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"source.js","sourceRoot":"","sources":["../../../../../../src/factory/options/option/template/language/source.ts"],"names":[],"mappings":""}