@eslinted/core 11.0.0 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. package/dist/factory/options/html.d.ts +1 -1
  2. package/dist/factory/options/html.d.ts.map +1 -1
  3. package/dist/factory/options/html.js.map +1 -1
  4. package/dist/factory/options/js.d.ts +2 -5
  5. package/dist/factory/options/js.d.ts.map +1 -1
  6. package/dist/factory/options/js.js +1 -4
  7. package/dist/factory/options/js.js.map +1 -1
  8. package/dist/factory/options/json.d.ts +1 -1
  9. package/dist/factory/options/json.d.ts.map +1 -1
  10. package/dist/factory/options/json.js.map +1 -1
  11. package/dist/factory/options/jsonc.d.ts +1 -2
  12. package/dist/factory/options/jsonc.d.ts.map +1 -1
  13. package/dist/factory/options/jsonc.js.map +1 -1
  14. package/dist/factory/options/mocha.d.ts +2 -4
  15. package/dist/factory/options/mocha.d.ts.map +1 -1
  16. package/dist/factory/options/mocha.js +5 -3
  17. package/dist/factory/options/mocha.js.map +1 -1
  18. package/dist/factory/options/option/index.d.ts +5 -7
  19. package/dist/factory/options/option/index.d.ts.map +1 -1
  20. package/dist/factory/options/option/index.js +2 -7
  21. package/dist/factory/options/option/index.js.map +1 -1
  22. package/dist/factory/options/option/template/index.d.ts +5 -10
  23. package/dist/factory/options/option/template/index.d.ts.map +1 -1
  24. package/dist/factory/options/option/template/languageOptions.d.ts +9 -0
  25. package/dist/factory/options/option/template/languageOptions.d.ts.map +1 -0
  26. package/dist/factory/options/option/template/languageOptions.js +2 -0
  27. package/dist/factory/options/option/template/languageOptions.js.map +1 -0
  28. package/dist/factory/options/svelte.d.ts +2 -5
  29. package/dist/factory/options/svelte.d.ts.map +1 -1
  30. package/dist/factory/options/svelte.js +1 -3
  31. package/dist/factory/options/svelte.js.map +1 -1
  32. package/dist/factory/options/ts.d.ts +5 -6
  33. package/dist/factory/options/ts.d.ts.map +1 -1
  34. package/dist/factory/options/ts.js +5 -3
  35. package/dist/factory/options/ts.js.map +1 -1
  36. package/dist/factory/options/yml.d.ts +1 -1
  37. package/dist/factory/options/yml.d.ts.map +1 -1
  38. package/dist/factory/options/yml.js.map +1 -1
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +24 -10
  41. package/dist/index.js.map +1 -1
  42. package/dist/output.d.ts +28 -18
  43. package/dist/output.d.ts.map +1 -1
  44. package/package.json +1 -1
  45. package/src/factory/options/html.ts +0 -2
  46. package/src/factory/options/js.ts +2 -8
  47. package/src/factory/options/json.ts +0 -2
  48. package/src/factory/options/jsonc.ts +1 -4
  49. package/src/factory/options/mocha.ts +5 -5
  50. package/src/factory/options/option/index.ts +2 -15
  51. package/src/factory/options/option/template/index.ts +1 -9
  52. package/src/factory/options/option/template/{languageOptions/index.ts → languageOptions.ts} +0 -5
  53. package/src/factory/options/svelte.ts +5 -6
  54. package/src/factory/options/ts.ts +10 -7
  55. package/src/factory/options/yml.ts +0 -2
  56. package/src/index.ts +17 -10
  57. package/src/output.ts +57 -13
  58. package/typings/common/utility/primitive/cast/number.d.ts +3 -0
  59. package/dist/factory/options/option/template/languageOptions/ecma.d.ts +0 -2
  60. package/dist/factory/options/option/template/languageOptions/ecma.d.ts.map +0 -1
  61. package/dist/factory/options/option/template/languageOptions/ecma.js +0 -2
  62. package/dist/factory/options/option/template/languageOptions/ecma.js.map +0 -1
  63. package/dist/factory/options/option/template/languageOptions/index.d.ts +0 -14
  64. package/dist/factory/options/option/template/languageOptions/index.d.ts.map +0 -1
  65. package/dist/factory/options/option/template/languageOptions/index.js +0 -2
  66. package/dist/factory/options/option/template/languageOptions/index.js.map +0 -1
  67. package/dist/factory/options/option/template/languageOptions/source.d.ts +0 -2
  68. package/dist/factory/options/option/template/languageOptions/source.d.ts.map +0 -1
  69. package/dist/factory/options/option/template/languageOptions/source.js +0 -2
  70. package/dist/factory/options/option/template/languageOptions/source.js.map +0 -1
  71. package/dist/factory/options/option/template/linter.d.ts +0 -5
  72. package/dist/factory/options/option/template/linter.d.ts.map +0 -1
  73. package/dist/factory/options/option/template/linter.js +0 -2
  74. package/dist/factory/options/option/template/linter.js.map +0 -1
  75. package/dist/factory/options/option/template/plugins.d.ts +0 -4
  76. package/dist/factory/options/option/template/plugins.d.ts.map +0 -1
  77. package/dist/factory/options/option/template/plugins.js +0 -2
  78. package/dist/factory/options/option/template/plugins.js.map +0 -1
  79. package/src/factory/options/option/template/languageOptions/ecma.ts +0 -3
  80. package/src/factory/options/option/template/languageOptions/source.ts +0 -4
  81. package/src/factory/options/option/template/linter.ts +0 -8
  82. package/src/factory/options/option/template/plugins.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  import Option from "./option/index.js";
2
- export default class Html extends Option<"html", "@html-eslint", false, true, 1> {
2
+ export default class Html extends Option<"html", true, 1> {
3
3
  readonly scope = "html";
4
4
  readonly processor: {};
5
5
  readonly language: {};
@@ -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,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,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,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;MAIzB;CACF"}
@@ -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,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"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,MAIjC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
@@ -1,11 +1,8 @@
1
1
  import Option from "./option/index.js";
2
- export default class Js extends Option<"js", "@stylistic"> {
2
+ export default class Js extends Option<"js"> {
3
3
  readonly scope = "js";
4
4
  readonly processor: {};
5
5
  readonly language: {};
6
- get languageOptions(): {
7
- readonly ecmaVersion: "latest";
8
- readonly sourceType: "module";
9
- };
6
+ get languageOptions(): {};
10
7
  }
11
8
  //# 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,CACpC,IAAI,EACJ,YAAY,CACb;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,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,CAAC,IAAI,CAAC;IAC1C,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe,OAEzB;CACF"}
@@ -4,10 +4,7 @@ export default class Js extends Option {
4
4
  processor = {};
5
5
  language = {};
6
6
  get languageOptions() {
7
- return {
8
- ecmaVersion: "latest",
9
- sourceType: "module",
10
- };
7
+ return {};
11
8
  }
12
9
  }
13
10
  //# 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,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
+ {"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,MAAY;IAC1B,KAAK,GAAG,IAAI,CAAC;IACb,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"}
@@ -1,5 +1,5 @@
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", true, 1> {
3
3
  readonly scope = "json";
4
4
  readonly processor: {};
5
5
  readonly language: {};
@@ -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,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,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,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,UAAU;IAC/B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;MAIzB;CACF"}
@@ -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,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"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,MAIjC;IACiB,KAAK,GAAG,MAAM,CAAC;IACf,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
@@ -1,6 +1,5 @@
1
1
  import Option from "./option/index.js";
2
- import type Json from "./json.js";
3
- export default class Jsonc extends Option<"jsonc", keyof Json["plugins"], false, true, ConstructorParameters<typeof Json>[1]["length"]> {
2
+ export default class Jsonc extends Option<"jsonc", true, 1> {
4
3
  readonly scope = "jsonc";
5
4
  readonly processor: {};
6
5
  readonly language: {};
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/factory/options/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAE/B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAAM,CACvC,OAAO,EACP,MAAM,IAAI,CAAC,SAAS,CAAC,EACrB,KAAK,EACL,IAAI,EACJ,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAChD;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;MAIzB;CACF"}
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,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,WAAW;IAChC,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;MAIzB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"jsonc.js","sourceRoot":"","sources":["../../../src/factory/options/jsonc.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,MAMlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
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,MAIlC;IACiB,KAAK,GAAG,OAAO,CAAC;IAChB,SAAS,GAAG,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
1
  import Option from "./option/index.js";
2
2
  import type Ts from "./ts.js";
3
- export default class Mocha extends Option<"mocha", "mocha" | keyof Ts["option"]["plugins"], true, Ts["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
3
+ export default class Mocha extends Option<"mocha", Ts["option"]["languageOptions"]["parserOptions"], 1, "mocha"> {
4
4
  readonly scope = "mocha";
5
5
  readonly processor: {};
6
6
  readonly language: {};
@@ -8,13 +8,11 @@ export default class Mocha extends Option<"mocha", "mocha" | keyof Ts["option"][
8
8
  "mocha"
9
9
  ];
10
10
  get languageOptions(): {
11
- readonly ecmaVersion: "latest";
12
- readonly sourceType: "module";
13
11
  readonly parser: unknown;
14
12
  readonly parserOptions: {
15
13
  readonly project: "tsconfig.json";
16
- readonly ecmaVersion: "latest";
17
14
  readonly sourceType: "module";
15
+ readonly ecmaVersion: 2023;
18
16
  };
19
17
  readonly globals: {
20
18
  readonly after: false;
@@ -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,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAC9B,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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB;CACF"}
@@ -7,10 +7,12 @@ export default class Mocha extends Option {
7
7
  get languageOptions() {
8
8
  const [parser] = this.parser, globals = this.globals("mocha");
9
9
  return {
10
- ecmaVersion: "latest",
11
- sourceType: "module",
12
10
  parser,
13
- parserOptions: { project: "tsconfig.json", ecmaVersion: "latest", sourceType: "module" },
11
+ parserOptions: {
12
+ project: "tsconfig.json",
13
+ sourceType: "module",
14
+ ecmaVersion: 2023,
15
+ },
14
16
  globals,
15
17
  };
16
18
  }
@@ -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,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
+ {"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,MAKlC;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,MAAM;YACN,aAAa,EAAE;gBACb,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aAClB;YACD,OAAO;SACC,CAAC;IACb,CAAC;CACF"}
@@ -1,18 +1,16 @@
1
1
  import type { Ruleset } from "../../rulesets/ruleset.js";
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, Language extends object = never> {
4
- readonly plugins: Plugins<Plugin>;
2
+ import type { Scope, Output, LanguageOptions, Globals } from "./template/index.js";
3
+ export default abstract class Option<S extends Scope, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, Global extends Globals = never, Processor extends object = never, Language extends object = never> {
5
4
  readonly parser: Tuple<ParserCount, unknown>;
6
5
  readonly files: string[];
7
6
  readonly ruleset: Ruleset;
8
- private readonly linterOptions;
9
7
  abstract readonly scope: literalful<S>;
10
8
  abstract readonly processor: Interface<Processor> extends never ? object : Interface<Processor> extends Readonly<Record<"processor", string>> ? Interface<Processor> : object;
11
9
  abstract readonly language: Interface<Language> extends never ? object : Interface<Language> extends Readonly<Record<"language", string>> ? Interface<Language> : object;
12
- constructor(plugins: Plugins<Plugin>, parser: Tuple<ParserCount, unknown>, files: string[], ruleset: Ruleset);
13
- get configs(): Output;
10
+ constructor(parser: Tuple<ParserCount, unknown>, files: string[], ruleset: Ruleset);
11
+ get configs(): Output[1][];
14
12
  private get option();
15
- protected abstract get languageOptions(): LanguageOptions<IsEcma, ParserOptions, Global>;
13
+ protected abstract get languageOptions(): LanguageOptions<ParserOptions, Global>;
16
14
  protected globals(type: Global): {
17
15
  readonly amd: {
18
16
  readonly define: false;
@@ -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,EAChC,QAAQ,SAAS,MAAM,GAAG,KAAK;aAiBb,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC;aACxB,MAAM,EAAE,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC;aACnC,KAAK,EAAE,MAAM,EAAE;aACf,OAAO,EAAE,OAAO;IAlBlC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAA6E;IAE3G,kBAAyB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9C,kBAAyB,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,SAAS,KAAK,GAClE,MAAM,GACN,SAAS,CAAC,SAAS,CAAC,SAAS,QAAQ,CAAC,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/B"}
@@ -1,12 +1,9 @@
1
1
  import globals from "globals";
2
2
  export default class Option {
3
- plugins;
4
3
  parser;
5
4
  files;
6
5
  ruleset;
7
- linterOptions = { noInlineConfig: true, reportUnusedDisableDirectives: "error" };
8
- constructor(plugins, parser, files, ruleset) {
9
- this.plugins = plugins;
6
+ constructor(parser, files, ruleset) {
10
7
  this.parser = parser;
11
8
  this.files = files;
12
9
  this.ruleset = ruleset;
@@ -28,10 +25,8 @@ export default class Option {
28
25
  }
29
26
  get option() {
30
27
  try {
31
- const { plugins, linterOptions, languageOptions, processor, language, } = this;
28
+ const { languageOptions, processor, language, } = this;
32
29
  return {
33
- plugins,
34
- linterOptions,
35
30
  languageOptions,
36
31
  ...processor,
37
32
  ...language,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factory/options/option/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,C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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;AAU9B,MAAM,CAAC,OAAO,OAAgB,MAAM;IAqBhB;IACA;IACA;IAHlB,YACkB,MAAmC,EACnC,KAAe,EACf,OAAgB;QAFhB,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,eAAe,EACf,SAAS,EACT,QAAQ,GACT,GAAG,IAAI,CAAC;YAET,OAAO;gBACL,eAAe;gBACf,GAAG,SAAS;gBACZ,GAAG,QAAQ;aAMZ,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,10 @@
1
1
  export type { Scope, Input, Output } from "../../index.js";
2
- import type { LanguageOptions } from "./languageOptions/index.js";
3
- import type { Linter } from "./linter.js";
4
- import type { Plugins } from "./plugins.js";
2
+ import type { LanguageOptions } from "./languageOptions.js";
5
3
  import type { Globals } from "./globals.js";
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, Language extends object> = {
8
- linterOptions: Linter;
9
- languageOptions: LanguageOptions<IsEcma, ParserOptions, GlobalTypes>;
10
- } & (Plugins<PluginId> extends never ? object : {
11
- plugins: Plugins<PluginId>;
12
- }) & (Interface<Processor> extends never ? object : Interface<Processor> extends {
4
+ export type { LanguageOptions, Globals, };
5
+ export type OptionTemplate<ParserOptions extends boolean | object, GlobalTypes extends Globals, Processor extends object, Language extends object> = {
6
+ languageOptions: LanguageOptions<ParserOptions, GlobalTypes>;
7
+ } & (Interface<Processor> extends never ? object : Interface<Processor> extends {
13
8
  processor: string;
14
9
  } ? Interface<Processor> : object) & (Interface<Language> extends never ? object : Interface<Language> extends {
15
10
  language: string;
@@ -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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,CAAC;AAElD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,YAAY,EACV,eAAe,EACf,OAAO,GACR,CAAC;AACF,MAAM,MAAM,cAAc,CACxB,aAAa,SAAS,OAAO,GAAG,MAAM,EACtC,WAAW,SAAS,OAAO,EAC3B,SAAS,SAAS,MAAM,EACxB,QAAQ,SAAS,MAAM,IAErB;IACA,eAAe,EAAE,eAAe,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;CAC9D,GACC,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,9 @@
1
+ export type LanguageOptions<ParserOptions extends object | boolean, GlobalTypes extends string> = (literalful<GlobalTypes> extends never ? object : {
2
+ globals: Record<string, unknown>;
3
+ }) & (ParserOptions extends boolean ? Truth<ParserOptions> extends never ? object : {
4
+ parser: unknown;
5
+ } : ParserOptions extends object ? Interface<ParserOptions> extends never ? object : {
6
+ parser: unknown;
7
+ parserOptions: ParserOptions;
8
+ } : object);
9
+ //# sourceMappingURL=languageOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languageOptions.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/languageOptions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CACzB,aAAa,SAAS,MAAM,GAAG,OAAO,EACtC,WAAW,SAAS,MAAM,IAEzB,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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=languageOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languageOptions.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/template/languageOptions.ts"],"names":[],"mappings":""}
@@ -1,8 +1,7 @@
1
1
  import Option from "./option/index.js";
2
2
  import type Ts from "./ts.js";
3
- export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option"]["plugins"], true, {
3
+ export default class Svelte extends Option<"svelte", {
4
4
  parser: unknown;
5
- } & {
6
5
  extraFileExtensions: readonly [
7
6
  ".svelte"
8
7
  ];
@@ -15,8 +14,6 @@ export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option
15
14
  };
16
15
  readonly language: {};
17
16
  get languageOptions(): {
18
- readonly ecmaVersion: "latest";
19
- readonly sourceType: "module";
20
17
  readonly parser: unknown;
21
18
  readonly parserOptions: {
22
19
  readonly parser: unknown;
@@ -24,8 +21,8 @@ export default class Svelte extends Option<"svelte", "svelte" | keyof Ts["option
24
21
  ".svelte"
25
22
  ];
26
23
  readonly project: "tsconfig.json";
27
- readonly ecmaVersion: "latest";
28
24
  readonly sourceType: "module";
25
+ readonly ecmaVersion: 2023;
29
26
  };
30
27
  };
31
28
  }
@@ -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;IACpE,SAAgB,QAAQ,KAAM;IAE9B,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;IACE,MAAM,EAAE,OAAO,CAAC;IAChB,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC3C,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,EACpD,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;;;;;;;;;MAazB;CACF"}
@@ -6,15 +6,13 @@ export default class Svelte extends Option {
6
6
  get languageOptions() {
7
7
  const [parser, tsParser] = this.parser;
8
8
  return {
9
- ecmaVersion: "latest",
10
- sourceType: "module",
11
9
  parser,
12
10
  parserOptions: {
13
11
  parser: tsParser,
14
12
  extraFileExtensions: [".svelte"],
15
13
  project: "tsconfig.json",
16
- ecmaVersion: "latest",
17
14
  sourceType: "module",
15
+ ecmaVersion: 2023,
18
16
  },
19
17
  };
20
18
  }
@@ -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;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"}
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,MASnC;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,MAAM;YACN,aAAa,EAAE;gBACb,MAAM,EAAE,QAAQ;gBAChB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aAClB;SACO,CAAC;IACb,CAAC;CACF"}
@@ -1,19 +1,18 @@
1
1
  import Option from "./option/index.js";
2
- import type Js from "./js.js";
3
- export default class Ts extends Option<"ts", "@typescript-eslint" | keyof Js["option"]["plugins"], true, {
2
+ export default class Ts extends Option<"ts", {
4
3
  project: "tsconfig.json";
5
- } & Js["option"]["languageOptions"], 1> {
4
+ sourceType: "module";
5
+ ecmaVersion: 2023;
6
+ }, 1> {
6
7
  readonly scope = "ts";
7
8
  readonly processor: {};
8
9
  readonly language: {};
9
10
  get languageOptions(): {
10
- readonly ecmaVersion: "latest";
11
- readonly sourceType: "module";
12
11
  readonly parser: unknown;
13
12
  readonly parserOptions: {
14
13
  readonly project: "tsconfig.json";
15
- readonly ecmaVersion: "latest";
16
14
  readonly sourceType: "module";
15
+ readonly ecmaVersion: 2023;
17
16
  };
18
17
  };
19
18
  }
@@ -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,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,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;AAE9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAAM,CACpC,IAAI,EACJ;IACE,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,EAAE,QAAQ,CAAC;IACrB,WAAW,EAAE,IAAI,CAAC;CACnB,EACD,CAAC,CACF;IACC,SAAgB,KAAK,QAAQ;IAC7B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;;;;;;MAWzB;CACF"}
@@ -6,10 +6,12 @@ export default class Ts extends Option {
6
6
  get languageOptions() {
7
7
  const [parser] = this.parser;
8
8
  return {
9
- ecmaVersion: "latest",
10
- sourceType: "module",
11
9
  parser,
12
- parserOptions: { project: "tsconfig.json", ecmaVersion: "latest", sourceType: "module" },
10
+ parserOptions: {
11
+ project: "tsconfig.json",
12
+ sourceType: "module",
13
+ ecmaVersion: 2023,
14
+ },
13
15
  };
14
16
  }
15
17
  }
@@ -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,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"}
1
+ {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/factory/options/ts.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,CAAC,OAAO,OAAO,EAAG,SAAQ,MAQ/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,MAAM;YACN,aAAa,EAAE;gBACb,OAAO,EAAE,eAAe;gBACxB,UAAU,EAAE,QAAQ;gBACpB,WAAW,EAAE,IAAI;aAClB;SACO,CAAC;IACb,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
1
  import Option from "./option/index.js";
2
- export default class Yml extends Option<"yml", "yml", false, true, 1> {
2
+ export default class Yml extends Option<"yml", true, 1> {
3
3
  readonly scope = "yml";
4
4
  readonly processor: {};
5
5
  readonly language: {};
@@ -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,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,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,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,KAAK,SAAS;IAC9B,SAAgB,SAAS,KAAM;IAC/B,SAAgB,QAAQ,KAAM;IAE9B,IAAW,eAAe;;MAIzB;CACF"}
@@ -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,EAAE,CAAC;IACf,QAAQ,GAAG,EAAE,CAAC;IAE9B,IAAW,eAAe;QACxB,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;QAE7B,OAAO,EAAE,MAAM,EAAW,CAAC;IAC7B,CAAC;CACF"}
1
+ {"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,MAIhC;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAQ9B,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CA+D7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAQ9B,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CAsE7C"}
package/dist/index.js CHANGED
@@ -2,25 +2,39 @@ import { scopes } from "./scopes.js";
2
2
  import { Factory, Options, } from "./factory/index.js";
3
3
  export default function (input) {
4
4
  try {
5
- const { parsers, plugins, files, rules, } = input, factory = new Factory(files, rules), options = {
5
+ const { plugins, parsers, files, rules, } = input, base = {
6
+ name: "linted",
7
+ plugins,
8
+ linterOptions: {
9
+ noInlineConfig: true,
10
+ reportUnusedDisableDirectives: "error",
11
+ },
12
+ languageOptions: {
13
+ sourceType: "module",
14
+ ecmaVersion: 2023,
15
+ },
16
+ }, factory = new Factory(files, rules), options = {
6
17
  js: new Options
7
- .js({ "@stylistic": plugins["@stylistic"] }, [], ...factory.produce("js")).configs,
18
+ .js([], ...factory.produce("js")).configs,
8
19
  ts: new Options
9
- .ts({ "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"] }, [parsers.ts], ...factory.produce("ts")).configs,
20
+ .ts([parsers.ts], ...factory.produce("ts")).configs,
10
21
  svelte: new Options
11
- .svelte({ "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], svelte: plugins.svelte }, [parsers.svelte, parsers.ts], ...factory.produce("svelte")).configs,
22
+ .svelte([parsers.svelte, parsers.ts], ...factory.produce("svelte")).configs,
12
23
  mocha: new Options
13
- .mocha({ "@stylistic": plugins["@stylistic"], "@typescript-eslint": plugins["@typescript-eslint"], mocha: plugins.mocha }, [parsers.ts], ...factory.produce("mocha")).configs,
24
+ .mocha([parsers.ts], ...factory.produce("mocha")).configs,
14
25
  html: new Options
15
- .html({ "@html-eslint": plugins["@html-eslint"] }, [parsers.html], ...factory.produce("html")).configs,
26
+ .html([parsers.html], ...factory.produce("html")).configs,
16
27
  json: new Options
17
- .json({ jsonc: plugins.jsonc }, [parsers.jsonc], ...factory.produce("json")).configs,
28
+ .json([parsers.jsonc], ...factory.produce("json")).configs,
18
29
  jsonc: new Options
19
- .jsonc({ jsonc: plugins.jsonc }, [parsers.jsonc], ...factory.produce("jsonc")).configs,
30
+ .jsonc([parsers.jsonc], ...factory.produce("jsonc")).configs,
20
31
  yml: new Options
21
- .yml({ yml: plugins.yml }, [parsers.yml], ...factory.produce("yml")).configs,
32
+ .yml([parsers.yml], ...factory.produce("yml")).configs,
22
33
  };
23
- return scopes.flatMap(scope => options[scope]);
34
+ return [
35
+ base,
36
+ ...scopes.flatMap(scope => options[scope]),
37
+ ];
24
38
  }
25
39
  catch (e) {
26
40
  throw new Error(`Linted Core`, { cause: e });
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,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C,CAC1B,CAAC,OAAO;SACZ,CAAC;QAEF,OAAO;YACL,IAAI;YACJ,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SAC3C,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
package/dist/output.d.ts CHANGED
@@ -1,20 +1,30 @@
1
1
  import type { Input } from "./index.js";
2
- export type Output = ({
3
- name: `linted/${string}`;
4
- rules: Input["rules"]["rules"]["html"][number][1];
5
- files: string[];
6
- linterOptions: {
7
- noInlineConfig: true;
8
- reportUnusedDisableDirectives: "error";
9
- };
10
- languageOptions: {
11
- sourceType?: "module" | "script";
12
- ecmaVersion?: "latest";
13
- globals?: Table<true>;
14
- parser?: unknown;
15
- parserOptions?: Table;
16
- };
17
- plugins: Table<Record<"configs", unknown>>;
18
- processor?: string;
19
- })[];
2
+ export type Output = [
3
+ {
4
+ name: `linted`;
5
+ plugins: Table<Record<"configs", unknown>>;
6
+ linterOptions: {
7
+ noInlineConfig: true;
8
+ reportUnusedDisableDirectives: "error";
9
+ };
10
+ languageOptions: {
11
+ sourceType?: "module" | "script";
12
+ ecmaVersion?: "latest" | 3 | 5 | ToNumber<`20${15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24}`>;
13
+ };
14
+ },
15
+ ...({
16
+ name: `linted/${string}`;
17
+ rules: Input["rules"]["rules"]["html"][number][1];
18
+ files: string[];
19
+ languageOptions: {
20
+ sourceType?: "module" | "script";
21
+ ecmaVersion?: "latest" | 3 | 5 | ToNumber<`20${15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24}`>;
22
+ globals?: Table<true>;
23
+ parser?: unknown;
24
+ parserOptions?: Table;
25
+ };
26
+ processor?: string;
27
+ language?: string;
28
+ })[]
29
+ ];
20
30
  //# sourceMappingURL=output.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,MAAM,GAAG,CACnB;IACE,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;QACvB,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,KAAK,CAAC;KACvB,CAAC;IACF,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CACF,EAAE,CAAC"}
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../src/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE/B,MAAM,MAAM,MAAM,GAAG;IACnB;QACE,IAAI,EAAE,QAAQ,CAAC;QACf,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;QAC3C,aAAa,EAAE;YACb,cAAc,EAAE,IAAI,CAAC;YACrB,6BAA6B,EAAE,OAAO,CAAC;SACxC,CAAC;QACF,eAAe,EAAE;YACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;YACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KACT,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EACF,EAAE,CAAC,CAAC;SACP,CAAC;KACH;IACD,GAAG,CACD;QACE,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;QACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,eAAe,EAAE;YACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;YACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KACT,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EACF,EAAE,CAAC,CAAC;YACN,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB,aAAa,CAAC,EAAE,KAAK,CAAC;SACvB,CAAC;QACF,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CACF,EAAE;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "22.11.0",
3
3
  "name": "@eslinted/core",
4
- "version": "11.0.0",
4
+ "version": "11.1.0",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
@@ -2,8 +2,6 @@ import Option from "./option";
2
2
 
3
3
  export default class Html extends Option<
4
4
  "html",
5
- "@html-eslint",
6
- false,
7
5
  true,
8
6
  1
9
7
  > {
@@ -1,17 +1,11 @@
1
1
  import Option from "./option";
2
2
 
3
- export default class Js extends Option<
4
- "js",
5
- "@stylistic"
6
- > {
3
+ export default class Js extends Option<"js"> {
7
4
  public readonly scope = "js";
8
5
  public readonly processor = {};
9
6
  public readonly language = {};
10
7
 
11
8
  public get languageOptions() {
12
- return {
13
- ecmaVersion: "latest",
14
- sourceType: "module",
15
- } as const;
9
+ return {};
16
10
  }
17
11
  }