@eslinted/core 10.1.2 → 11.0.0-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/dist/factory/options/html.d.ts +1 -0
  2. package/dist/factory/options/html.d.ts.map +1 -1
  3. package/dist/factory/options/html.js +1 -0
  4. package/dist/factory/options/html.js.map +1 -1
  5. package/dist/factory/options/js.d.ts +1 -0
  6. package/dist/factory/options/js.d.ts.map +1 -1
  7. package/dist/factory/options/js.js +1 -0
  8. package/dist/factory/options/js.js.map +1 -1
  9. package/dist/factory/options/json.d.ts +9 -2
  10. package/dist/factory/options/json.d.ts.map +1 -1
  11. package/dist/factory/options/json.js +5 -2
  12. package/dist/factory/options/json.js.map +1 -1
  13. package/dist/factory/options/jsonc.d.ts +10 -2
  14. package/dist/factory/options/jsonc.d.ts.map +1 -1
  15. package/dist/factory/options/jsonc.js +6 -2
  16. package/dist/factory/options/jsonc.js.map +1 -1
  17. package/dist/factory/options/mocha.d.ts +1 -0
  18. package/dist/factory/options/mocha.d.ts.map +1 -1
  19. package/dist/factory/options/mocha.js +1 -0
  20. package/dist/factory/options/mocha.js.map +1 -1
  21. package/dist/factory/options/option/index.d.ts +2 -1
  22. package/dist/factory/options/option/index.d.ts.map +1 -1
  23. package/dist/factory/options/option/index.js +2 -1
  24. package/dist/factory/options/option/index.js.map +1 -1
  25. package/dist/factory/options/option/template/index.d.ts +5 -3
  26. package/dist/factory/options/option/template/index.d.ts.map +1 -1
  27. package/dist/factory/options/option/template/languageOptions/ecma.d.ts.map +1 -0
  28. package/dist/factory/options/option/template/languageOptions/ecma.js.map +1 -0
  29. package/dist/factory/options/option/template/languageOptions/index.d.ts.map +1 -0
  30. package/dist/factory/options/option/template/languageOptions/index.js.map +1 -0
  31. package/dist/factory/options/option/template/languageOptions/source.d.ts.map +1 -0
  32. package/dist/factory/options/option/template/languageOptions/source.js.map +1 -0
  33. package/dist/factory/options/svelte.d.ts +1 -0
  34. package/dist/factory/options/svelte.d.ts.map +1 -1
  35. package/dist/factory/options/svelte.js +1 -0
  36. package/dist/factory/options/svelte.js.map +1 -1
  37. package/dist/factory/options/ts.d.ts +1 -0
  38. package/dist/factory/options/ts.d.ts.map +1 -1
  39. package/dist/factory/options/ts.js +1 -0
  40. package/dist/factory/options/ts.js.map +1 -1
  41. package/dist/factory/options/yml.d.ts +1 -0
  42. package/dist/factory/options/yml.d.ts.map +1 -1
  43. package/dist/factory/options/yml.js +1 -0
  44. package/dist/factory/options/yml.js.map +1 -1
  45. package/dist/index.js +3 -3
  46. package/dist/index.js.map +1 -1
  47. package/dist/input/imports/parsers.d.ts +1 -1
  48. package/dist/input/imports/parsers.d.ts.map +1 -1
  49. package/dist/input/imports/plugins.d.ts +1 -1
  50. package/dist/input/imports/plugins.d.ts.map +1 -1
  51. package/package.json +1 -1
  52. package/src/factory/options/html.ts +2 -1
  53. package/src/factory/options/js.ts +5 -1
  54. package/src/factory/options/json.ts +13 -7
  55. package/src/factory/options/jsonc.ts +14 -7
  56. package/src/factory/options/mocha.ts +2 -1
  57. package/src/factory/options/option/index.ts +10 -1
  58. package/src/factory/options/option/template/index.ts +4 -2
  59. package/src/factory/options/svelte.ts +1 -0
  60. package/src/factory/options/ts.ts +2 -1
  61. package/src/factory/options/yml.ts +2 -1
  62. package/src/index.ts +5 -5
  63. package/src/input/imports/parsers.ts +0 -1
  64. package/src/input/imports/plugins.ts +1 -1
  65. package/dist/factory/options/option/template/language/ecma.d.ts.map +0 -1
  66. package/dist/factory/options/option/template/language/ecma.js.map +0 -1
  67. package/dist/factory/options/option/template/language/index.d.ts.map +0 -1
  68. package/dist/factory/options/option/template/language/index.js.map +0 -1
  69. package/dist/factory/options/option/template/language/source.d.ts.map +0 -1
  70. package/dist/factory/options/option/template/language/source.js.map +0 -1
  71. /package/dist/factory/options/option/template/{language → languageOptions}/ecma.d.ts +0 -0
  72. /package/dist/factory/options/option/template/{language → languageOptions}/ecma.js +0 -0
  73. /package/dist/factory/options/option/template/{language → languageOptions}/index.d.ts +0 -0
  74. /package/dist/factory/options/option/template/{language → languageOptions}/index.js +0 -0
  75. /package/dist/factory/options/option/template/{language → languageOptions}/source.d.ts +0 -0
  76. /package/dist/factory/options/option/template/{language → languageOptions}/source.js +0 -0
  77. /package/src/factory/options/option/template/{language → languageOptions}/ecma.ts +0 -0
  78. /package/src/factory/options/option/template/{language → languageOptions}/index.ts +0 -0
  79. /package/src/factory/options/option/template/{language → languageOptions}/source.ts +0 -0
@@ -2,6 +2,7 @@ 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
  };
@@ -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,6 +2,7 @@ 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 };
@@ -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"}
@@ -2,6 +2,7 @@ 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";
@@ -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",
@@ -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,16 @@
1
1
  import Option from "./option/index.js";
2
- export default class Json extends Option<"json", "jsonc", false, true, 1> {
2
+ import type Js from "./js.js";
3
+ export default class Json extends Option<"json", "json" | keyof Js["option"]["plugins"], true, false, 0, never, never, {
4
+ language: "json/json";
5
+ }> {
3
6
  readonly scope = "json";
4
7
  readonly processor: {};
8
+ readonly language: {
9
+ readonly language: "json/json";
10
+ };
5
11
  get languageOptions(): {
6
- readonly parser: unknown;
12
+ readonly ecmaVersion: "latest";
13
+ readonly sourceType: "module";
7
14
  };
8
15
  }
9
16
  //# 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;AAC9B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAE3B,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,MAAM,CACtC,MAAM,EACN,MAAM,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EACtC,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
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;AAG9B,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,17 @@
1
1
  import Option from "./option/index.js";
2
- export default class Jsonc extends Option<"jsonc", "jsonc", false, true, 1> {
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
6
  readonly scope = "jsonc";
4
7
  readonly processor: {};
8
+ readonly language: {
9
+ readonly language: "json/jsonc";
10
+ };
5
11
  get languageOptions(): {
6
- readonly parser: unknown;
12
+ readonly allowTrailingCommas: true;
13
+ readonly ecmaVersion: "latest";
14
+ readonly sourceType: "module";
7
15
  };
8
16
  }
9
17
  //# 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;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"}
@@ -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
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;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"}
@@ -3,6 +3,7 @@ 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 language: {};
6
7
  readonly types: readonly [
7
8
  "mocha"
8
9
  ];
@@ -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");
@@ -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();
@@ -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,OAA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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,EAAW,CAAC;IAS3G,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,GACV,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,OAAO;gBACP,aAAa;gBACb,eAAe;gBACf,GAAG,SAAS;aAOb,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
+ {"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);
14
+ } ? Interface<Processor> : object) & (Interface<Language> extends never ? object : Interface<Language> extends {
15
+ language: string;
16
+ } ? Interface<Language> : object);
15
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,MAAM,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,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,IAEtB;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,CAAC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,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":""}
@@ -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":""}
@@ -13,6 +13,7 @@ export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option
13
13
  readonly processor: {
14
14
  readonly processor: "svelte/svelte";
15
15
  };
16
+ readonly language: {};
16
17
  get languageOptions(): {
17
18
  readonly ecmaVersion: "latest";
18
19
  readonly sourceType: "module";
@@ -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 {
@@ -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";
@@ -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 {
@@ -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,6 +2,7 @@ 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
  };
@@ -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,6 +2,7 @@ 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 };
@@ -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"}
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({ "@stylistic": plugins["@stylistic"], 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({ "@stylistic": plugins["@stylistic"], 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
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,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,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X,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,EAC3D,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"}
@@ -1,3 +1,3 @@
1
1
  import type { Scope } from "../index.js";
2
- export type Parsers = Scope & ("ts" | "svelte" | "html" | "jsonc" | "yml");
2
+ export type Parsers = Scope & ("ts" | "svelte" | "html" | "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,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"}
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.2",
4
+ "version": "11.0.0-rc.1",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -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 {
@@ -1,18 +1,24 @@
1
1
  import Option from "./option";
2
+ import type Js from "./js";
2
3
 
3
4
  export default class Json extends Option<
4
5
  "json",
5
- "jsonc",
6
- false,
6
+ "json" | keyof Js["option"]["plugins"],
7
7
  true,
8
- 1
8
+ false,
9
+ 0,
10
+ never,
11
+ never,
12
+ { language: "json/json" }
9
13
  > {
10
14
  public readonly scope = "json";
11
- public readonly processor = {} as const;
15
+ public readonly processor = {};
16
+ public readonly language = { language: "json/json" } as const;
12
17
 
13
18
  public get languageOptions() {
14
- const [parser] = this.parser;
15
-
16
- return { parser } as const;
19
+ return {
20
+ ecmaVersion: "latest",
21
+ sourceType: "module",
22
+ } as const;
17
23
  }
18
24
  }
@@ -1,18 +1,25 @@
1
1
  import Option from "./option";
2
+ import type Json from "./json";
2
3
 
3
4
  export default class Jsonc extends Option<
4
5
  "jsonc",
5
- "jsonc",
6
- false,
6
+ keyof Json["plugins"],
7
7
  true,
8
- 1
8
+ false,
9
+ ConstructorParameters<typeof Json>[1]["length"],
10
+ never,
11
+ never,
12
+ { language: "json/jsonc" }
9
13
  > {
10
14
  public readonly scope = "jsonc";
11
- public readonly processor = {} as const;
15
+ public readonly processor = {};
16
+ public readonly language = { language: "json/jsonc" } as const;
12
17
 
13
18
  public get languageOptions() {
14
- const [parser] = this.parser;
15
-
16
- return { parser } as const;
19
+ return {
20
+ allowTrailingCommas: true,
21
+ ecmaVersion: "latest",
22
+ sourceType: "module",
23
+ } as const;
17
24
  }
18
25
  }
@@ -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
+ { "@stylistic": plugins["@stylistic"], 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
+ { "@stylistic": plugins["@stylistic"], 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":""}