@eslinted/core 0.7.0-rc.3 → 0.7.0-rc.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. package/dist/boundary/input/input.d.ts +3 -2
  2. package/dist/boundary/input/input.d.ts.map +1 -1
  3. package/dist/boundary/input/parsers/parsers.d.ts +7 -0
  4. package/dist/boundary/input/parsers/parsers.d.ts.map +1 -0
  5. package/dist/boundary/input/parsers/parsers.js +2 -0
  6. package/dist/boundary/input/parsers/parsers.js.map +1 -0
  7. package/dist/boundary/input/plugins/plugins.d.ts +6 -0
  8. package/dist/boundary/input/plugins/plugins.d.ts.map +1 -0
  9. package/dist/boundary/input/plugins/plugins.js +2 -0
  10. package/dist/boundary/input/plugins/plugins.js.map +1 -0
  11. package/dist/boundary/output/config/IConfig.d.ts +19 -0
  12. package/dist/boundary/output/config/IConfig.d.ts.map +1 -0
  13. package/dist/boundary/output/config/IConfig.js +2 -0
  14. package/dist/boundary/output/config/IConfig.js.map +1 -0
  15. package/dist/boundary/output/output.d.ts +2 -2
  16. package/dist/boundary/output/output.d.ts.map +1 -1
  17. package/dist/factory/Factory.d.ts +1 -0
  18. package/dist/factory/Factory.d.ts.map +1 -1
  19. package/dist/factory/Factory.js.map +1 -1
  20. package/dist/factory/options/Options.d.ts +7 -7
  21. package/dist/factory/options/Options.d.ts.map +1 -1
  22. package/dist/factory/options/Options.js.map +1 -1
  23. package/dist/factory/options/option/Option.d.ts +26 -3
  24. package/dist/factory/options/option/Option.d.ts.map +1 -1
  25. package/dist/factory/options/option/Option.js +22 -3
  26. package/dist/factory/options/option/Option.js.map +1 -1
  27. package/dist/factory/options/option/html/index.d.ts +6 -2
  28. package/dist/factory/options/option/html/index.d.ts.map +1 -1
  29. package/dist/factory/options/option/html/index.js +5 -11
  30. package/dist/factory/options/option/html/index.js.map +1 -1
  31. package/dist/factory/options/option/js/index.d.ts +6 -1
  32. package/dist/factory/options/option/js/index.d.ts.map +1 -1
  33. package/dist/factory/options/option/js/index.js +7 -14
  34. package/dist/factory/options/option/js/index.js.map +1 -1
  35. package/dist/factory/options/option/json/index.d.ts +6 -2
  36. package/dist/factory/options/option/json/index.d.ts.map +1 -1
  37. package/dist/factory/options/option/json/index.js +5 -11
  38. package/dist/factory/options/option/json/index.js.map +1 -1
  39. package/dist/factory/options/option/jsonc/index.d.ts +6 -2
  40. package/dist/factory/options/option/jsonc/index.d.ts.map +1 -1
  41. package/dist/factory/options/option/jsonc/index.js +5 -11
  42. package/dist/factory/options/option/jsonc/index.js.map +1 -1
  43. package/dist/factory/options/option/svelte/index.d.ts +21 -4
  44. package/dist/factory/options/option/svelte/index.d.ts.map +1 -1
  45. package/dist/factory/options/option/svelte/index.js +13 -20
  46. package/dist/factory/options/option/svelte/index.js.map +1 -1
  47. package/dist/factory/options/option/ts/index.d.ts +14 -3
  48. package/dist/factory/options/option/ts/index.d.ts.map +1 -1
  49. package/dist/factory/options/option/ts/index.js +11 -17
  50. package/dist/factory/options/option/ts/index.js.map +1 -1
  51. package/dist/factory/options/option/yml/index.d.ts +6 -2
  52. package/dist/factory/options/option/yml/index.d.ts.map +1 -1
  53. package/dist/factory/options/option/yml/index.js +5 -11
  54. package/dist/factory/options/option/yml/index.js.map +1 -1
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +26 -15
  57. package/dist/index.js.map +1 -1
  58. package/package.json +1 -1
  59. package/src/boundary/input/input.ts +4 -2
  60. package/src/boundary/input/parsers/parsers.ts +6 -0
  61. package/src/boundary/input/plugins/plugins.ts +7 -0
  62. package/src/boundary/output/config/{index.ts → IConfig.ts} +3 -4
  63. package/src/boundary/output/config/interface/option/IOption.d.ts +15 -20
  64. package/src/boundary/output/config/interface/option/language/IOLanguage.d.ts +16 -13
  65. package/src/boundary/output/config/interface/option/language/ecma/IOLanguageEcma.d.ts +1 -19
  66. package/src/boundary/output/config/interface/option/language/globals/IOLanguageGlobals.d.ts +1 -3
  67. package/src/boundary/output/config/interface/option/language/source/IOLanguageSource.d.ts +3 -12
  68. package/src/boundary/output/config/interface/option/linter/IOLinter.d.ts +3 -29
  69. package/src/boundary/output/config/interface/option/name/IOName.d.ts +1 -3
  70. package/src/boundary/output/config/interface/option/plugins/IOPlugins.d.ts +1 -3
  71. package/src/boundary/output/config/interface/option/processor/IOProcessor.d.ts +1 -3
  72. package/src/boundary/output/output.ts +2 -2
  73. package/src/factory/Factory.ts +1 -0
  74. package/src/factory/options/Options.ts +1 -1
  75. package/src/factory/options/option/Option.ts +47 -16
  76. package/src/factory/options/option/html/index.ts +9 -22
  77. package/src/factory/options/option/js/index.ts +8 -19
  78. package/src/factory/options/option/json/index.ts +9 -22
  79. package/src/factory/options/option/jsonc/index.ts +9 -22
  80. package/src/factory/options/option/svelte/index.ts +22 -33
  81. package/src/factory/options/option/ts/index.ts +19 -28
  82. package/src/factory/options/option/yml/index.ts +9 -22
  83. package/src/index.ts +30 -23
  84. package/types/project/OmitLast.d.ts +1 -0
  85. package/src/boundary/input/parsers/index.ts +0 -12
  86. package/src/boundary/input/plugins/index.ts +0 -20
  87. package/src/boundary/output/config/interface/files/IFiles.d.ts +0 -1
  88. package/src/boundary/output/config/interface/option/language/parser/IOLanguageParser.d.ts +0 -3
  89. package/src/boundary/output/config/interface/option/language/parserOptions/IOLanguageParserOptions.d.ts +0 -5
  90. package/src/boundary/output/config/interface/rules/IRules.d.ts +0 -1
  91. /package/src/boundary/output/config/interface/rules/{rule/IRule.d.ts → IRule.d.ts} +0 -0
  92. /package/src/boundary/output/config/interface/rules/{rule/state → state}/RuleSeverity.d.ts +0 -0
  93. /package/types/{literal → typioca/literal}/number/base32.d.ts +0 -0
  94. /package/types/{literal → typioca/literal}/number/base64.d.ts +0 -0
  95. /package/types/{literal → typioca/literal}/number/binary.d.ts +0 -0
  96. /package/types/{literal → typioca/literal}/number/decimal.d.ts +0 -0
  97. /package/types/{literal → typioca/literal}/number/hex.d.ts +0 -0
  98. /package/types/{literal → typioca/literal}/number/octal.d.ts +0 -0
  99. /package/types/{literal → typioca/literal}/number/quatral.d.ts +0 -0
  100. /package/types/{literal → typioca/literal}/number/ternary.d.ts +0 -0
  101. /package/types/{literal → typioca/literal}/string/base64char.d.ts +0 -0
  102. /package/types/{literal → typioca/literal}/string/digit.d.ts +0 -0
  103. /package/types/{literal → typioca/literal}/string/hexchar.d.ts +0 -0
  104. /package/types/{literal → typioca/literal}/string/letter.d.ts +0 -0
  105. /package/types/{safe → typioca/safe}/Safe.d.ts +0 -0
  106. /package/types/{safe → typioca/safe}/numbers/finite/Finite.d.ts +0 -0
  107. /package/types/{safe → typioca/safe}/numbers/finite.d.ts +0 -0
  108. /package/types/{safe → typioca/safe}/numbers/fint.d.ts +0 -0
  109. /package/types/{safe → typioca/safe}/numbers/int/Int.d.ts +0 -0
  110. /package/types/{safe → typioca/safe}/numbers/int.d.ts +0 -0
  111. /package/types/{safe → typioca/safe}/numbers/numberful.d.ts +0 -0
  112. /package/types/{safe → typioca/safe}/numbers/polarity/Negative.d.ts +0 -0
  113. /package/types/{safe → typioca/safe}/numbers/polarity/Positive.d.ts +0 -0
  114. /package/types/{safe → typioca/safe}/numbers/polarity/pole/Pole.d.ts +0 -0
  115. /package/types/{safe → typioca/safe}/primitive.d.ts +0 -0
  116. /package/types/{safe → typioca/safe}/strings/char.d.ts +0 -0
  117. /package/types/{safe → typioca/safe}/strings/length/PropLength.d.ts +0 -0
  118. /package/types/{safe → typioca/safe}/strings/stringful.d.ts +0 -0
  119. /package/types/{utility → typioca/utility}/interface/construct/Particord.d.ts +0 -0
  120. /package/types/{utility → typioca/utility}/interface/construct/Property.d.ts +0 -0
  121. /package/types/{utility → typioca/utility}/interface/construct/Recordful.d.ts +0 -0
  122. /package/types/{utility → typioca/utility}/interface/construct/Table.d.ts +0 -0
  123. /package/types/{utility → typioca/utility}/interface/construct/properties/Field.d.ts +0 -0
  124. /package/types/{utility → typioca/utility}/interface/construct/properties/Flag.d.ts +0 -0
  125. /package/types/{utility → typioca/utility}/interface/construct/properties/Limit.d.ts +0 -0
  126. /package/types/{utility → typioca/utility}/interface/construct/properties/List.d.ts +0 -0
  127. /package/types/{utility → typioca/utility}/interface/construct/properties/Listish.d.ts +0 -0
  128. /package/types/{utility → typioca/utility}/interface/construct/properties/Scalar.d.ts +0 -0
  129. /package/types/{utility → typioca/utility}/interface/construct/tables/FieldTable.d.ts +0 -0
  130. /package/types/{utility → typioca/utility}/interface/construct/tables/FlagTable.d.ts +0 -0
  131. /package/types/{utility → typioca/utility}/interface/construct/tables/ListTable.d.ts +0 -0
  132. /package/types/{utility → typioca/utility}/interface/construct/tables/ListishTable.d.ts +0 -0
  133. /package/types/{utility → typioca/utility}/interface/construct/tables/ScalarTable.d.ts +0 -0
  134. /package/types/{utility → typioca/utility}/interface/identity/Interface.d.ts +0 -0
  135. /package/types/{utility → typioca/utility}/interface/identity/Keys.d.ts +0 -0
  136. /package/types/{utility → typioca/utility}/interface/transform/Unrequire.d.ts +0 -0
  137. /package/types/{utility → typioca/utility}/iterable/construct/ArrayN.d.ts +0 -0
  138. /package/types/{utility → typioca/utility}/iterable/construct/Tuple.d.ts +0 -0
  139. /package/types/{utility → typioca/utility}/iterable/construct/arrays/Arrays.d.ts +0 -0
  140. /package/types/{utility → typioca/utility}/iterable/construct/tuples/Tuples.d.ts +0 -0
  141. /package/types/{utility → typioca/utility}/iterable/identity/DyadType.d.ts +0 -0
  142. /package/types/{utility → typioca/utility}/iterable/identity/MonadType.d.ts +0 -0
  143. /package/types/{utility → typioca/utility}/iterable/identity/TriadType.d.ts +0 -0
  144. /package/types/{utility → typioca/utility}/iterable/identity/array/ArrayType.d.ts +0 -0
  145. /package/types/{utility → typioca/utility}/iterable/identity/array/length/ArrayLength.d.ts +0 -0
  146. /package/types/{utility → typioca/utility}/iterable/transform/Join.d.ts +0 -0
  147. /package/types/{utility → typioca/utility}/iterable/transform/Unflat.d.ts +0 -0
  148. /package/types/{utility → typioca/utility}/iterable/transform/stringarray/Chain.d.ts +0 -0
  149. /package/types/{utility → typioca/utility}/iterable/transform/stringarray/PathN.d.ts +0 -0
  150. /package/types/{utility → typioca/utility}/iterable/transform/stringarray/stringify/Stringify.d.ts +0 -0
  151. /package/types/{utility → typioca/utility}/length/Length.d.ts +0 -0
  152. /package/types/{utility → typioca/utility}/null/null.d.ts +0 -0
  153. /package/types/{utility → typioca/utility}/null/nullable.d.ts +0 -0
  154. /package/types/{utility → typioca/utility}/primitive/Primeval.d.ts +0 -0
  155. /package/types/{utility → typioca/utility}/primitive/boolean/True.d.ts +0 -0
  156. /package/types/{utility → typioca/utility}/primitive/number/Numbered.d.ts +0 -0
  157. /package/types/{utility → typioca/utility}/primitive/string/literal.d.ts +0 -0
  158. /package/types/{utility → typioca/utility}/primitive/string/literalful.d.ts +0 -0
@@ -1,4 +1,5 @@
1
- export type { default as Plugins } from "./plugins/index.js";
2
- export type { Parsers } from "./parsers/index.js";
1
+ import type Plugins from "./plugins/plugins.js";
2
+ import type Parsers from "./parsers/parsers.js";
3
+ export type { Plugins, Parsers };
3
4
  export type { Scope } from "../boundary.js";
4
5
  //# sourceMappingURL=input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7D,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAEhD,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AACjC,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Scope } from "../input.js";
2
+ import type { Options } from "../../../factory/Factory.js";
3
+ type Parsers = {
4
+ [S in Scope]: ConstructorParameters<typeof Options[S]>[2];
5
+ };
6
+ export type { Parsers as default };
7
+ //# sourceMappingURL=parsers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;KAAG,CAAC,IAAI,KAAK,GAAG,qBAAqB,CAAG,OAAO,OAAO,CAAC,CAAC,CAAC,CAAE,CAAE,CAAC,CAAC;CAAE,CAAC;AAEjF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parsers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { Scope, Options } from "../../../factory/Factory.js";
2
+ type Plugins = {
3
+ [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
4
+ };
5
+ export type { Plugins as default };
6
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAElE,KAAK,OAAO,GAAG;KACZ,CAAC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CACzD,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ export default interface IConfig {
2
+ name: `scope:${string}`;
3
+ rules: IRule;
4
+ files: readonly string[];
5
+ linterOptions: {
6
+ noInlineConfig: true;
7
+ reportUnusedDisableDirectives: "error";
8
+ };
9
+ languageOptions: {
10
+ sourceType?: "module" | "script";
11
+ ecmaVersion?: "latest";
12
+ globals?: Record<string, true>;
13
+ parser?: unknown;
14
+ parserOptions?: Record<string, unknown>;
15
+ };
16
+ plugins: Record<string, Record<"configs", unknown>>;
17
+ processor?: string;
18
+ }
19
+ //# sourceMappingURL=IConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IConfig.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/IConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,OAAO;IAC9B,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,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,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IConfig.js","sourceRoot":"","sources":["../../../../src/boundary/output/config/IConfig.ts"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
- import type Config from "./config/index.js";
2
- export type { Config as default };
1
+ import type IConfig from "./config/IConfig.js";
2
+ export type { IConfig as default };
3
3
  //# sourceMappingURL=output.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,YAAY,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
@@ -2,5 +2,6 @@ import Options from "./options/Options.js";
2
2
  import Files from "./files/Files.js";
3
3
  import Ruleset, { Rule } from "./ruleset/Ruleset.js";
4
4
  import type { Scope } from "../index.js";
5
+ export type Blanka = ConstructorParameters<typeof Options["js"]>;
5
6
  export { Options, Files, Ruleset, Rule, type Scope, };
6
7
  //# sourceMappingURL=Factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Factory.d.ts","sourceRoot":"","sources":["../../src/factory/Factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,EACJ,KAAK,KAAK,GACX,CAAC"}
1
+ {"version":3,"file":"Factory.d.ts","sourceRoot":"","sources":["../../src/factory/Factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,MAAM,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AACjE,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,EACJ,KAAK,KAAK,GACX,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Factory.js","sourceRoot":"","sources":["../../src/factory/Factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GAEL,CAAC"}
1
+ {"version":3,"file":"Factory.js","sourceRoot":"","sources":["../../src/factory/Factory.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,sBAAsB,CAAC;AAC3C,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAIrD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GAEL,CAAC"}
@@ -8,13 +8,13 @@ import JsoncOption from "./option/jsonc/index.js";
8
8
  import YmlOption from "./option/yml/index.js";
9
9
  export type { Scope };
10
10
  declare const _default: {
11
- js: typeof JsOption;
12
- ts: typeof TsOption;
13
- svelte: typeof SvelteOption;
14
- html: typeof HtmlOption;
15
- json: typeof JsonOption;
16
- jsonc: typeof JsoncOption;
17
- yml: typeof YmlOption;
11
+ readonly js: typeof JsOption;
12
+ readonly ts: typeof TsOption;
13
+ readonly svelte: typeof SvelteOption;
14
+ readonly html: typeof HtmlOption;
15
+ readonly json: typeof JsonOption;
16
+ readonly jsonc: typeof JsoncOption;
17
+ readonly yml: typeof YmlOption;
18
18
  };
19
19
  export default _default;
20
20
  //# sourceMappingURL=Options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,YAAY,EAAE,KAAK,EAAE,CAAC;;;;;;;;;;AACtB,wBAQmC"}
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,YAAY,EAAE,KAAK,EAAE,CAAC;;;;;;;;;;AACtB,wBAQW"}
@@ -1 +1 @@
1
- {"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAG9C,eAAe;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,SAAS;CACkB,CAAC"}
1
+ {"version":3,"file":"Options.js","sourceRoot":"","sources":["../../../src/factory/options/Options.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AACpD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAG9C,eAAe;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,SAAS;CACN,CAAC"}
@@ -1,6 +1,29 @@
1
1
  import type { Scope } from "../Options.js";
2
- export default class Option<S extends Scope, PluginId extends string, UseParser extends boolean = never, ParserOptions extends object = never, GlobalTypes extends string = never, ProcessorId extends string = never, Source extends IOLanguageSource.Source = "module", Ecma extends number | IOLanguageEcma.Ecma = "latest"> {
3
- readonly body: IOption<`linted/scope:${literalful<S>}`, true, "error", PluginId, Ecma, Source, UseParser, ParserOptions, GlobalTypes, ProcessorId>;
4
- constructor(body: IOption<`linted/scope:${literalful<S>}`, true, "error", PluginId, Ecma, Source, UseParser, ParserOptions, GlobalTypes, ProcessorId>);
2
+ export default abstract class Option<S extends Scope, PluginId extends string, IsEcma extends boolean = true, ParserOptions extends object | boolean = false, ParserCount extends 0 | 1 | 2 = 0, GlobalTypes extends string = never, Processor extends object = never> {
3
+ readonly files: readonly string[];
4
+ readonly plugins: IOPlugins<PluginId>;
5
+ readonly parser: Tuple<unknown, ParserCount>;
6
+ readonly linterOptions: {
7
+ readonly noInlineConfig: true;
8
+ readonly reportUnusedDisableDirectives: "error";
9
+ };
10
+ abstract readonly name: literalful<`scope:${S}`>;
11
+ abstract readonly processor: (Interface<Processor> extends never ? object : Interface<Processor> extends {
12
+ "interface": string;
13
+ } ? Interface<Processor> : object);
14
+ constructor(files: readonly string[], plugins: IOPlugins<PluginId>, parser: Tuple<unknown, ParserCount>);
15
+ get option(): {
16
+ name: literalful<`scope:${S}`>;
17
+ files: readonly string[];
18
+ linterOptions: {
19
+ readonly noInlineConfig: true;
20
+ readonly reportUnusedDisableDirectives: "error";
21
+ };
22
+ languageOptions: IOLanguage<IsEcma, ParserOptions, GlobalTypes>;
23
+ plugins: IOPlugins<PluginId>;
24
+ } & (Interface<Processor> extends never ? object : Interface<Processor> extends {
25
+ interface: string;
26
+ } ? Interface<Processor> : object);
27
+ abstract get languageOptions(): IOLanguage<IsEcma, ParserOptions, GlobalTypes>;
5
28
  }
6
29
  //# sourceMappingURL=Option.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,MAAM,CACzB,CAAC,SAAS,KAAK,EACf,QAAQ,SAAS,MAAM,EACvB,SAAS,SAAS,OAAO,GAAG,KAAK,EACjC,aAAa,SAAS,MAAM,GAAG,KAAK,EACpC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,MAAM,SAAS,gBAAgB,CAAC,MAAM,GAAG,QAAQ,EACjD,IAAI,SAAS,MAAM,GAAG,cAAc,CAAC,IAAI,GAAG,QAAQ;aAGlC,IAAI,EAAE,OAAO,CAC3B,gBAAgB,UAAU,CAAC,CAAC,CAAC,EAAE,EAC/B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,CACZ;gBAXe,IAAI,EAAE,OAAO,CAC3B,gBAAgB,UAAU,CAAC,CAAC,CAAC,EAAE,EAC/B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,CACZ;CAEJ"}
1
+ {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,MAAM,CAClC,CAAC,SAAS,KAAK,EACf,QAAQ,SAAS,MAAM,EACvB,MAAM,SAAS,OAAO,GAAG,IAAI,EAC7B,aAAa,SAAS,MAAM,GAAG,OAAO,GAAG,KAAK,EAC9C,WAAW,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EACjC,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,SAAS,SAAS,MAAM,GAAG,KAAK;aAWd,KAAK,EAAE,SAAS,MAAM,EAAE;aACxB,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC;aAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IAXrD,SAAgB,aAAa;;;MAGlB;IAEX,kBAAyB,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACxD,kBAAyB,SAAS,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,SAAS;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,CAAC;gBAGvJ,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,OAAO,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC5B,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,WAAW,CAAC;IAGrD,IAAW,MAAM;;;;;;;;;;mBAR8G,MAAM;uCAiCpI;IAED,aAAoB,eAAe,IAAI,UAAU,CAC/C,MAAM,EACN,aAAa,EACb,WAAW,CACZ,CAAC;CACH"}
@@ -1,7 +1,26 @@
1
1
  export default class Option {
2
- body;
3
- constructor(body) {
4
- this.body = body;
2
+ files;
3
+ plugins;
4
+ parser;
5
+ linterOptions = {
6
+ noInlineConfig: true,
7
+ reportUnusedDisableDirectives: "error",
8
+ };
9
+ constructor(files, plugins, parser) {
10
+ this.files = files;
11
+ this.plugins = plugins;
12
+ this.parser = parser;
13
+ }
14
+ get option() {
15
+ const { name, files, plugins, linterOptions, languageOptions, processor, } = this;
16
+ return {
17
+ name,
18
+ files,
19
+ linterOptions,
20
+ languageOptions,
21
+ plugins,
22
+ ...processor,
23
+ };
5
24
  }
6
25
  }
7
26
  //# sourceMappingURL=Option.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAO,MAAM;IAWP;IADlB,YACkB,IAWf;QAXe,SAAI,GAAJ,IAAI,CAWnB;IACA,CAAC;CACL"}
1
+ {"version":3,"file":"Option.js","sourceRoot":"","sources":["../../../../src/factory/options/option/Option.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,OAAgB,MAAM;IAkBhB;IACA;IACA;IAXF,aAAa,GAAG;QAC9B,cAAc,EAAE,IAAI;QACpB,6BAA6B,EAAE,OAAO;KAC9B,CAAC;IAKX,YACkB,KAAwB,EACxB,OAA4B,EAC5B,MAAmC;QAFnC,UAAK,GAAL,KAAK,CAAmB;QACxB,YAAO,GAAP,OAAO,CAAqB;QAC5B,WAAM,GAAN,MAAM,CAA6B;IAClD,CAAC;IAEJ,IAAW,MAAM;QACf,MAAM,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,GACV,GAAG,IAAI,CAAC;QAET,OAAO;YACL,IAAI;YACJ,KAAK;YACL,aAAa;YACb,eAAe;YACf,OAAO;YACP,GAAG,SAAS;SAQb,CAAC;IACJ,CAAC;CAOF"}
@@ -1,5 +1,9 @@
1
1
  import Option from "../Option.js";
2
- export default class HtmlOption extends Option<"html", "@html-eslint", true, never, never, never, never, never> {
3
- constructor(plugins: HtmlOption["body"]["plugins"], parser: HtmlOption["body"]["languageOptions"]["parser"], files: readonly string[]);
2
+ export default class HtmlOption extends Option<"html", "@html-eslint", false, true, 1> {
3
+ readonly name = "scope:html";
4
+ readonly processor: {};
5
+ get languageOptions(): {
6
+ readonly parser: unknown;
7
+ };
4
8
  }
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,cAAc,EACd,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACtC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACvD,KAAK,EAAE,SAAS,MAAM,EAAE;CAe3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,cAAc,EACd,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,IAAI,gBAAgB;IACpC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
@@ -1,16 +1,10 @@
1
1
  import Option from "../Option.js";
2
2
  export default class HtmlOption extends Option {
3
- constructor(plugins, parser, files) {
4
- super({
5
- name: "linted/scope:html",
6
- files,
7
- plugins,
8
- linterOptions: {
9
- noInlineConfig: true,
10
- reportUnusedDisableDirectives: "error",
11
- },
12
- languageOptions: { parser },
13
- });
3
+ name = "scope:html";
4
+ processor = {};
5
+ get languageOptions() {
6
+ const [parser] = this.parser;
7
+ return { parser };
14
8
  }
15
9
  }
16
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MASvC;IACC,YACE,OAAsC,EACtC,MAAuD,EACvD,KAAwB;QAExB,KAAK,CACH;YACE,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/html/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAMvC;IACiB,IAAI,GAAG,YAAY,CAAC;IACpB,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,5 +1,10 @@
1
1
  import Option from "../Option.js";
2
2
  export default class JsOption extends Option<"js", "@stylistic"> {
3
- constructor(plugins: JsOption["body"]["plugins"], files: readonly string[]);
3
+ readonly name = "scope:js";
4
+ readonly processor: {};
5
+ get languageOptions(): {
6
+ readonly ecmaVersion: "latest";
7
+ readonly sourceType: "module";
8
+ };
4
9
  }
5
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC;gBAE5D,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACpC,KAAK,EAAE,SAAS,MAAM,EAAE;CAkB3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC;IAC9D,SAAgB,IAAI,cAAc;IAClC,SAAgB,SAAS,KAAM;IAE/B,IAAW,eAAe;;;MAKzB;CACF"}
@@ -1,19 +1,12 @@
1
1
  import Option from "../Option.js";
2
2
  export default class JsOption extends Option {
3
- constructor(plugins, files) {
4
- super({
5
- name: "linted/scope:js",
6
- files,
7
- plugins,
8
- linterOptions: {
9
- noInlineConfig: true,
10
- reportUnusedDisableDirectives: "error",
11
- },
12
- languageOptions: {
13
- ecmaVersion: "latest",
14
- sourceType: "module",
15
- },
16
- });
3
+ name = "scope:js";
4
+ processor = {};
5
+ get languageOptions() {
6
+ return {
7
+ ecmaVersion: "latest",
8
+ sourceType: "module",
9
+ };
17
10
  }
18
11
  }
19
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAA0B;IAC9D,YACE,OAAoC,EACpC,KAAwB;QAExB,KAAK,CACH;YACE,IAAI,EAAE,iBAAiB;YACvB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE;gBACf,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACrB;SACF,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/js/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAA0B;IAC9C,IAAI,GAAG,UAAU,CAAC;IAClB,SAAS,GAAG,EAAE,CAAC;IAE/B,IAAW,eAAe;QACxB,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,QAAQ;SACZ,CAAC;IACb,CAAC;CACF"}
@@ -1,5 +1,9 @@
1
1
  import Option from "../Option.js";
2
- export default class JsonOption extends Option<"json", "jsonc", true, never, never, never, never, never> {
3
- constructor(plugins: JsonOption["body"]["plugins"], parser: JsonOption["body"]["languageOptions"]["parser"], files: readonly string[]);
2
+ export default class JsonOption extends Option<"json", "jsonc", false, true, 1> {
3
+ readonly name = "scope:json";
4
+ readonly processor: {};
5
+ get languageOptions(): {
6
+ readonly parser: unknown;
7
+ };
4
8
  }
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,OAAO,EACP,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACtC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACvD,KAAK,EAAE,SAAS,MAAM,EAAE;CAe3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAAM,CAC5C,MAAM,EACN,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,IAAI,gBAAgB;IACpC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
@@ -1,16 +1,10 @@
1
1
  import Option from "../Option.js";
2
2
  export default class JsonOption extends Option {
3
- constructor(plugins, parser, files) {
4
- super({
5
- name: "linted/scope:json",
6
- files,
7
- plugins,
8
- linterOptions: {
9
- noInlineConfig: true,
10
- reportUnusedDisableDirectives: "error",
11
- },
12
- languageOptions: { parser },
13
- });
3
+ name = "scope:json";
4
+ processor = {};
5
+ get languageOptions() {
6
+ const [parser] = this.parser;
7
+ return { parser };
14
8
  }
15
9
  }
16
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MASvC;IACC,YACE,OAAsC,EACtC,MAAuD,EACvD,KAAwB;QAExB,KAAK,CACH;YACE,IAAI,EAAE,mBAAmB;YACzB,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,MAMvC;IACiB,IAAI,GAAG,YAAY,CAAC;IACpB,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,5 +1,9 @@
1
1
  import Option from "../Option.js";
2
- export default class JsoncOption extends Option<"jsonc", "jsonc", true, never, never, never, never, never> {
3
- constructor(plugins: JsoncOption["body"]["plugins"], parser: JsoncOption["body"]["languageOptions"]["parser"], files: readonly string[]);
2
+ export default class JsoncOption extends Option<"jsonc", "jsonc", false, true, 1> {
3
+ readonly name = "scope:jsonc";
4
+ readonly processor: {};
5
+ get languageOptions(): {
6
+ readonly parser: unknown;
7
+ };
4
8
  }
5
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM,CAC7C,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,CACN;gBAEG,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACvC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EACxD,KAAK,EAAE,SAAS,MAAM,EAAE;CAe3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAAM,CAC7C,OAAO,EACP,OAAO,EACP,KAAK,EACL,IAAI,EACJ,CAAC,CACF;IACC,SAAgB,IAAI,iBAAiB;IACrC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;MAIzB;CACF"}
@@ -1,16 +1,10 @@
1
1
  import Option from "../Option.js";
2
2
  export default class JsoncOption extends Option {
3
- constructor(plugins, parser, files) {
4
- super({
5
- name: "linted/scope:jsonc",
6
- files,
7
- plugins,
8
- linterOptions: {
9
- noInlineConfig: true,
10
- reportUnusedDisableDirectives: "error",
11
- },
12
- languageOptions: { parser },
13
- });
3
+ name = "scope:jsonc";
4
+ processor = {};
5
+ get languageOptions() {
6
+ const [parser] = this.parser;
7
+ return { parser };
14
8
  }
15
9
  }
16
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MASxC;IACC,YACE,OAAuC,EACvC,MAAwD,EACxD,KAAwB;QAExB,KAAK,CACH;YACE,IAAI,EAAE,oBAAoB;YAC1B,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE,EAAE,MAAM,EAAE;SAC5B,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/jsonc/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,MAMxC;IACiB,IAAI,GAAG,aAAa,CAAC;IACrB,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,10 +1,27 @@
1
1
  import Option from "../Option.js";
2
2
  import type TsOption from "../ts/index.js";
3
- export default class SvelteOption extends Option<"svelte", "svelte" | keyof TsOption["body"]["plugins"], true, TsOption["body"]["languageOptions"]["parserOptions"] & {
3
+ export default class SvelteOption extends Option<"svelte", "svelte" | keyof TsOption["option"]["plugins"], true, TsOption["option"]["languageOptions"]["parserOptions"] & {
4
4
  parser: unknown;
5
5
  } & {
6
- extraFileExtensions: [".svelte"];
7
- }, never, "svelte/svelte"> {
8
- constructor(plugins: SvelteOption["body"]["plugins"], svelteParser: SvelteOption["body"]["languageOptions"]["parser"], tsParser: SvelteOption["body"]["languageOptions"]["parserOptions"]["parser"], files: readonly string[]);
6
+ extraFileExtensions: readonly [".svelte"];
7
+ }, 2, never, {
8
+ processor: "svelte/svelte";
9
+ }> {
10
+ readonly name = "scope:svelte";
11
+ readonly processor: {
12
+ readonly processor: "svelte/svelte";
13
+ };
14
+ get languageOptions(): {
15
+ readonly ecmaVersion: "latest";
16
+ readonly sourceType: "module";
17
+ readonly parser: unknown;
18
+ readonly parserOptions: {
19
+ readonly ecmaVersion: "latest";
20
+ readonly sourceType: "module";
21
+ readonly project: "tsconfig.json";
22
+ readonly extraFileExtensions: readonly [".svelte"];
23
+ readonly parser: unknown;
24
+ };
25
+ };
9
26
  }
10
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAAM,CAC9C,QAAQ,EACR,QAAQ,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAC5C,IAAI,EACF,QAAQ,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,GACpD;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,mBAAmB,EAAE,CAAC,SAAS,CAAC,CAAA;CAAE,EACtC,KAAK,EACL,eAAe,CAChB;gBAEG,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACxC,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,EAC/D,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,EAC5E,KAAK,EAAE,SAAS,MAAM,EAAE;CA2B3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAAM,CAC9C,QAAQ,EACR,QAAQ,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC9C,IAAI,EACF,QAAQ,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,GACtD;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,mBAAmB,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,EAC/C,CAAC,EACD,KAAK,EACL;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B;IACC,SAAgB,IAAI,kBAAkB;IACtC,SAAgB,SAAS;;MAA2C;IAEpE,IAAW,eAAe;;;;;;;;;;;MAezB;CACF"}
@@ -1,28 +1,21 @@
1
1
  import Option from "../Option.js";
2
2
  export default class SvelteOption extends Option {
3
- constructor(plugins, svelteParser, tsParser, files) {
4
- super({
5
- name: "linted/scope:svelte",
6
- processor: "svelte/svelte",
7
- files,
8
- plugins,
9
- linterOptions: {
10
- noInlineConfig: true,
11
- reportUnusedDisableDirectives: "error",
12
- },
13
- languageOptions: {
3
+ name = "scope:svelte";
4
+ processor = { processor: "svelte/svelte" };
5
+ get languageOptions() {
6
+ const [parser, tsParser] = this.parser;
7
+ return {
8
+ ecmaVersion: "latest",
9
+ sourceType: "module",
10
+ parser,
11
+ parserOptions: {
14
12
  ecmaVersion: "latest",
15
13
  sourceType: "module",
16
- parser: svelteParser,
17
- parserOptions: {
18
- ecmaVersion: "latest",
19
- sourceType: "module",
20
- project: "tsconfig.json",
21
- extraFileExtensions: [".svelte"],
22
- parser: tsParser,
23
- },
14
+ project: "tsconfig.json",
15
+ extraFileExtensions: [".svelte"],
16
+ parser: tsParser,
24
17
  },
25
- });
18
+ };
26
19
  }
27
20
  }
28
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MASzC;IACC,YACE,OAAwC,EACxC,YAA+D,EAC/D,QAA4E,EAC5E,KAAwB;QAExB,KAAK,CACH;YACE,IAAI,EAAE,qBAAqB;YAC3B,SAAS,EAAE,eAAe;YAC1B,KAAK;YACL,OAAO;YACP,aAAa,EAAE;gBACb,cAAc,EAAE,IAAI;gBACpB,6BAA6B,EAAE,OAAO;aACvC;YACD,eAAe,EAAE;gBACf,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,MAAM,EAAE,YAAY;gBACpB,aAAa,EAAE;oBACb,WAAW,EAAE,QAAQ;oBACrB,UAAU,EAAE,QAAQ;oBACpB,OAAO,EAAE,eAAe;oBACxB,mBAAmB,EAAE,CAAC,SAAS,CAAC;oBAChC,MAAM,EAAE,QAAQ;iBACjB;aACF;SACF,CACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/factory/options/option/svelte/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAUzC;IACiB,IAAI,GAAG,cAAc,CAAC;IACtB,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,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,eAAe;gBACxB,mBAAmB,EAAE,CAAC,SAAS,CAAU;gBACzC,MAAM,EAAE,QAAQ;aACjB;SACO,CAAC;IACb,CAAC;CACF"}
@@ -1,8 +1,19 @@
1
1
  import Option from "../Option.js";
2
2
  import type JsOption from "../js/index.js";
3
- export default class TsOption extends Option<"ts", "@typescript-eslint" | keyof JsOption["body"]["plugins"], true, JsOption["body"]["languageOptions"] & {
3
+ export default class TsOption extends Option<"ts", "@typescript-eslint" | keyof JsOption["option"]["plugins"], true, JsOption["option"]["languageOptions"] & {
4
4
  project: "tsconfig.json";
5
- }> {
6
- constructor(plugins: TsOption["body"]["plugins"], parser: unknown, files: readonly string[]);
5
+ }, 1> {
6
+ readonly name = "scope:ts";
7
+ readonly processor: {};
8
+ get languageOptions(): {
9
+ readonly ecmaVersion: "latest";
10
+ readonly sourceType: "module";
11
+ readonly parser: unknown;
12
+ readonly parserOptions: {
13
+ readonly ecmaVersion: "latest";
14
+ readonly sourceType: "module";
15
+ readonly project: "tsconfig.json";
16
+ };
17
+ };
7
18
  }
8
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACJ,oBAAoB,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACxD,IAAI,EACF,QAAQ,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,GACnC;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,CAC/B;gBAEG,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EACpC,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,SAAS,MAAM,EAAE;CAwB3B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/factory/options/option/ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,MAAM,CAC1C,IAAI,EACJ,oBAAoB,GAAG,MAAM,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,EAC1D,IAAI,EACF,QAAQ,CAAC,QAAQ,CAAC,CAAC,iBAAiB,CAAC,GACrC;IAAE,OAAO,EAAE,eAAe,CAAA;CAAE,EAC9B,CAAC,CACF;IACC,SAAgB,IAAI,cAAc;IAClC,SAAgB,SAAS,KAAe;IAExC,IAAW,eAAe;;;;;;;;;MAazB;CACF"}
@@ -1,25 +1,19 @@
1
1
  import Option from "../Option.js";
2
2
  export default class TsOption extends Option {
3
- constructor(plugins, parser, files) {
4
- super({
5
- name: "linted/scope:ts",
6
- files,
7
- plugins,
8
- linterOptions: {
9
- noInlineConfig: true,
10
- reportUnusedDisableDirectives: "error",
11
- },
12
- languageOptions: {
3
+ name = "scope:ts";
4
+ processor = {};
5
+ get languageOptions() {
6
+ const [parser] = this.parser;
7
+ return {
8
+ ecmaVersion: "latest",
9
+ sourceType: "module",
10
+ parser,
11
+ parserOptions: {
13
12
  ecmaVersion: "latest",
14
13
  sourceType: "module",
15
- parser,
16
- parserOptions: {
17
- ecmaVersion: "latest",
18
- sourceType: "module",
19
- project: "tsconfig.json",
20
- },
14
+ project: "tsconfig.json",
21
15
  },
22
- });
16
+ };
23
17
  }
24
18
  }
25
19
  //# sourceMappingURL=index.js.map