@eslinted/core 11.1.0 → 12.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/dist/factory/index.d.ts +2 -3
  2. package/dist/factory/index.d.ts.map +1 -1
  3. package/dist/factory/index.js.map +1 -1
  4. package/dist/factory/options/index.d.ts +1 -1
  5. package/dist/factory/options/index.d.ts.map +1 -1
  6. package/dist/factory/options/index.js.map +1 -1
  7. package/dist/factory/options/option/index.d.ts +3 -2
  8. package/dist/factory/options/option/index.d.ts.map +1 -1
  9. package/dist/factory/options/option/index.js +1 -0
  10. package/dist/factory/options/option/index.js.map +1 -1
  11. package/dist/factory/options/option/template/index.d.ts +0 -1
  12. package/dist/factory/options/option/template/index.d.ts.map +1 -1
  13. package/dist/factory/rulesets/index.d.ts +1 -1
  14. package/dist/factory/rulesets/index.d.ts.map +1 -1
  15. package/dist/factory/rulesets/index.js.map +1 -1
  16. package/dist/factory/rulesets/ruleset.d.ts +3 -6
  17. package/dist/factory/rulesets/ruleset.d.ts.map +1 -1
  18. package/dist/factory/rulesets/ruleset.js.map +1 -1
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +17 -14
  22. package/dist/index.js.map +1 -1
  23. package/dist/interface/index.d.ts +4 -0
  24. package/dist/interface/index.d.ts.map +1 -0
  25. package/dist/{input/rules → interface}/index.js.map +1 -1
  26. package/dist/interface/input/imports/index.d.ts +8 -0
  27. package/dist/interface/input/imports/index.d.ts.map +1 -0
  28. package/dist/interface/input/imports/index.js.map +1 -0
  29. package/dist/interface/input/imports/parsers/index.d.ts +4 -0
  30. package/dist/interface/input/imports/parsers/index.d.ts.map +1 -0
  31. package/dist/interface/input/imports/parsers/index.js.map +1 -0
  32. package/dist/interface/input/imports/parsers/parser.d.ts +3 -0
  33. package/dist/interface/input/imports/parsers/parser.d.ts.map +1 -0
  34. package/dist/interface/input/imports/parsers/parser.js +2 -0
  35. package/dist/interface/input/imports/parsers/parser.js.map +1 -0
  36. package/dist/interface/input/imports/plugins.d.ts +3 -0
  37. package/dist/interface/input/imports/plugins.d.ts.map +1 -0
  38. package/dist/interface/input/imports/plugins.js.map +1 -0
  39. package/dist/interface/input/index.d.ts +5 -0
  40. package/dist/interface/input/index.d.ts.map +1 -0
  41. package/dist/interface/input/index.js.map +1 -0
  42. package/dist/interface/input/user/files/defaults.d.ts +3 -0
  43. package/dist/interface/input/user/files/defaults.d.ts.map +1 -0
  44. package/dist/interface/input/user/files/defaults.js +2 -0
  45. package/dist/interface/input/user/files/defaults.js.map +1 -0
  46. package/dist/interface/input/user/files/includes.d.ts +3 -0
  47. package/dist/interface/input/user/files/includes.d.ts.map +1 -0
  48. package/dist/interface/input/user/files/includes.js +2 -0
  49. package/dist/interface/input/user/files/includes.js.map +1 -0
  50. package/dist/interface/input/user/files/index.d.ts +8 -0
  51. package/dist/interface/input/user/files/index.d.ts.map +1 -0
  52. package/dist/interface/input/user/files/index.js +2 -0
  53. package/dist/interface/input/user/files/index.js.map +1 -0
  54. package/dist/interface/input/user/index.d.ts +8 -0
  55. package/dist/interface/input/user/index.d.ts.map +1 -0
  56. package/dist/interface/input/user/index.js +2 -0
  57. package/dist/interface/input/user/index.js.map +1 -0
  58. package/dist/interface/input/user/rules/defaults.d.ts +3 -0
  59. package/dist/interface/input/user/rules/defaults.d.ts.map +1 -0
  60. package/dist/interface/input/user/rules/defaults.js +2 -0
  61. package/dist/interface/input/user/rules/defaults.js.map +1 -0
  62. package/dist/interface/input/user/rules/index.d.ts +8 -0
  63. package/dist/interface/input/user/rules/index.d.ts.map +1 -0
  64. package/dist/interface/input/user/rules/index.js +2 -0
  65. package/dist/interface/input/user/rules/index.js.map +1 -0
  66. package/dist/interface/input/user/rules/overrides.d.ts +4 -0
  67. package/dist/interface/input/user/rules/overrides.d.ts.map +1 -0
  68. package/dist/interface/input/user/rules/overrides.js +2 -0
  69. package/dist/interface/input/user/rules/overrides.js.map +1 -0
  70. package/dist/interface/output/global/ignores.d.ts +5 -0
  71. package/dist/interface/output/global/ignores.d.ts.map +1 -0
  72. package/dist/interface/output/global/ignores.js +2 -0
  73. package/dist/interface/output/global/ignores.js.map +1 -0
  74. package/dist/interface/output/global/index.d.ts +8 -0
  75. package/dist/interface/output/global/index.d.ts.map +1 -0
  76. package/dist/interface/output/global/index.js +2 -0
  77. package/dist/interface/output/global/index.js.map +1 -0
  78. package/dist/interface/output/global/system.d.ts +14 -0
  79. package/dist/interface/output/global/system.d.ts.map +1 -0
  80. package/dist/interface/output/global/system.js +2 -0
  81. package/dist/interface/output/global/system.js.map +1 -0
  82. package/dist/interface/output/index.d.ts +8 -0
  83. package/dist/interface/output/index.d.ts.map +1 -0
  84. package/dist/interface/output/index.js +2 -0
  85. package/dist/interface/output/index.js.map +1 -0
  86. package/dist/interface/output/scoped.d.ts +3 -0
  87. package/dist/interface/output/scoped.d.ts.map +1 -0
  88. package/dist/interface/output/scoped.js +2 -0
  89. package/dist/interface/output/scoped.js.map +1 -0
  90. package/dist/objects/config/index.d.ts +16 -0
  91. package/dist/objects/config/index.d.ts.map +1 -0
  92. package/dist/objects/config/index.js +2 -0
  93. package/dist/objects/config/index.js.map +1 -0
  94. package/dist/objects/config/property.d.ts +2 -0
  95. package/dist/objects/config/property.d.ts.map +1 -0
  96. package/dist/objects/config/property.js +2 -0
  97. package/dist/objects/config/property.js.map +1 -0
  98. package/dist/objects/index.d.ts +4 -0
  99. package/dist/objects/index.d.ts.map +1 -0
  100. package/dist/objects/index.js +2 -0
  101. package/dist/{input → objects}/index.js.map +1 -1
  102. package/dist/objects/plugins/index.d.ts +5 -0
  103. package/dist/objects/plugins/index.d.ts.map +1 -0
  104. package/dist/objects/plugins/index.js +2 -0
  105. package/dist/objects/plugins/index.js.map +1 -0
  106. package/dist/objects/plugins/plugin.d.ts +2 -0
  107. package/dist/objects/plugins/plugin.d.ts.map +1 -0
  108. package/dist/objects/plugins/plugin.js +2 -0
  109. package/dist/objects/plugins/plugin.js.map +1 -0
  110. package/dist/{input/rules/entry → objects/rule}/index.d.ts +2 -4
  111. package/dist/objects/rule/index.d.ts.map +1 -0
  112. package/dist/objects/rule/index.js +2 -0
  113. package/dist/objects/rule/index.js.map +1 -0
  114. package/dist/{input/rules/entry → objects/rule}/record/index.d.ts +1 -0
  115. package/dist/objects/rule/record/index.d.ts.map +1 -0
  116. package/dist/objects/rule/record/index.js +2 -0
  117. package/dist/objects/rule/record/index.js.map +1 -0
  118. package/dist/objects/rule/record/state.d.ts.map +1 -0
  119. package/dist/objects/rule/record/state.js.map +1 -0
  120. package/dist/{scopes.d.ts → scopes/index.d.ts} +1 -1
  121. package/dist/scopes/index.d.ts.map +1 -0
  122. package/dist/{scopes.js → scopes/index.js} +1 -1
  123. package/dist/scopes/index.js.map +1 -0
  124. package/dist/scopes/index.spec.d.ts +2 -0
  125. package/dist/scopes/index.spec.d.ts.map +1 -0
  126. package/dist/{scopes.spec.js → scopes/index.spec.js} +2 -2
  127. package/dist/scopes/index.spec.js.map +1 -0
  128. package/package.json +1 -1
  129. package/src/factory/index.ts +9 -4
  130. package/src/factory/options/index.ts +4 -1
  131. package/src/factory/options/option/index.ts +91 -87
  132. package/src/factory/options/option/template/index.ts +3 -3
  133. package/src/factory/rulesets/index.ts +5 -3
  134. package/src/factory/rulesets/ruleset.ts +7 -4
  135. package/src/index.ts +31 -16
  136. package/src/interface/index.ts +9 -0
  137. package/src/interface/input/imports/index.ts +12 -0
  138. package/src/interface/input/imports/parsers/index.ts +8 -0
  139. package/src/{input/imports/parsers.ts → interface/input/imports/parsers/parser.ts} +2 -2
  140. package/src/interface/input/imports/plugins.ts +3 -0
  141. package/src/interface/input/index.ts +11 -0
  142. package/src/interface/input/user/files/defaults.ts +6 -0
  143. package/src/interface/input/user/files/includes.ts +5 -0
  144. package/src/interface/input/user/files/index.ts +9 -0
  145. package/src/interface/input/user/index.ts +13 -0
  146. package/src/interface/input/user/rules/defaults.ts +9 -0
  147. package/src/interface/input/user/rules/index.ts +13 -0
  148. package/src/interface/input/user/rules/overrides.ts +7 -0
  149. package/src/interface/output/global/ignores.ts +11 -0
  150. package/src/interface/output/global/index.ts +12 -0
  151. package/src/interface/output/global/system.ts +48 -0
  152. package/src/interface/output/index.ts +13 -0
  153. package/src/interface/output/scoped.ts +3 -0
  154. package/src/objects/config/index.ts +16 -0
  155. package/src/objects/config/property.ts +12 -0
  156. package/src/objects/index.ts +10 -0
  157. package/src/objects/plugins/index.ts +6 -0
  158. package/src/{input/imports/plugins.ts → objects/plugins/plugin.ts} +1 -1
  159. package/src/objects/rule/index.ts +8 -0
  160. package/src/objects/rule/record/index.ts +7 -0
  161. package/src/{scopes.spec.ts → scopes/index.spec.ts} +1 -1
  162. package/typings/common/utility/primitive/cast/number.d.ts +13 -3
  163. package/typings/common/utility/primitive/cast/number.spec.d.ts +57 -0
  164. package/dist/input/files.d.ts +0 -6
  165. package/dist/input/files.d.ts.map +0 -1
  166. package/dist/input/files.js +0 -2
  167. package/dist/input/files.js.map +0 -1
  168. package/dist/input/imports/parsers.d.ts +0 -3
  169. package/dist/input/imports/parsers.d.ts.map +0 -1
  170. package/dist/input/imports/parsers.js +0 -2
  171. package/dist/input/imports/parsers.js.map +0 -1
  172. package/dist/input/imports/plugins.d.ts +0 -2
  173. package/dist/input/imports/plugins.d.ts.map +0 -1
  174. package/dist/input/imports/plugins.js.map +0 -1
  175. package/dist/input/index.d.ts +0 -22
  176. package/dist/input/index.d.ts.map +0 -1
  177. package/dist/input/parsers.d.ts +0 -3
  178. package/dist/input/parsers.d.ts.map +0 -1
  179. package/dist/input/parsers.js +0 -2
  180. package/dist/input/parsers.js.map +0 -1
  181. package/dist/input/plugins.d.ts +0 -5
  182. package/dist/input/plugins.d.ts.map +0 -1
  183. package/dist/input/plugins.js +0 -2
  184. package/dist/input/plugins.js.map +0 -1
  185. package/dist/input/rules/entry/index.d.ts.map +0 -1
  186. package/dist/input/rules/entry/index.js.map +0 -1
  187. package/dist/input/rules/entry/record/index.d.ts.map +0 -1
  188. package/dist/input/rules/entry/record/index.js.map +0 -1
  189. package/dist/input/rules/entry/record/state.d.ts.map +0 -1
  190. package/dist/input/rules/entry/record/state.js.map +0 -1
  191. package/dist/input/rules/index.d.ts +0 -14
  192. package/dist/input/rules/index.d.ts.map +0 -1
  193. package/dist/output.d.ts +0 -30
  194. package/dist/output.d.ts.map +0 -1
  195. package/dist/output.js +0 -2
  196. package/dist/output.js.map +0 -1
  197. package/dist/scopes.d.ts.map +0 -1
  198. package/dist/scopes.js.map +0 -1
  199. package/dist/scopes.spec.d.ts +0 -2
  200. package/dist/scopes.spec.d.ts.map +0 -1
  201. package/dist/scopes.spec.js.map +0 -1
  202. package/src/input/files.ts +0 -6
  203. package/src/input/index.ts +0 -23
  204. package/src/input/parsers.ts +0 -3
  205. package/src/input/plugins.ts +0 -3
  206. package/src/input/rules/entry/index.ts +0 -7
  207. package/src/input/rules/entry/record/index.ts +0 -3
  208. package/src/input/rules/index.ts +0 -14
  209. package/src/output.ts +0 -68
  210. /package/dist/{input → interface}/index.js +0 -0
  211. /package/dist/{input/rules/entry → interface/input/imports}/index.js +0 -0
  212. /package/dist/{input/rules/entry/record → interface/input/imports/parsers}/index.js +0 -0
  213. /package/dist/{input → interface/input}/imports/plugins.js +0 -0
  214. /package/dist/{input/rules → interface/input}/index.js +0 -0
  215. /package/dist/{input/rules/entry → objects/rule}/record/state.d.ts +0 -0
  216. /package/dist/{input/rules/entry → objects/rule}/record/state.js +0 -0
  217. /package/src/{input/rules/entry → objects/rule}/record/state.ts +0 -0
  218. /package/src/{scopes.ts → scopes/index.ts} +0 -0
package/src/output.ts DELETED
@@ -1,68 +0,0 @@
1
- import type { Input } from ".";
2
-
3
- export type Output = [
4
- {
5
- name: `linted`;
6
- plugins: Table<Record<"configs", unknown>>;
7
- linterOptions: {
8
- noInlineConfig: true;
9
- reportUnusedDisableDirectives: "error";
10
- };
11
- languageOptions: {
12
- sourceType?:
13
- | "module"
14
- | "script"
15
- ;
16
- ecmaVersion?:
17
- | "latest"
18
- | 3
19
- | 5
20
- | ToNumber<`20${
21
- | 15
22
- | 16
23
- | 17
24
- | 18
25
- | 19
26
- | 20
27
- | 21
28
- | 22
29
- | 23
30
- | 24
31
- }`>;
32
- };
33
- },
34
- ...(
35
- {
36
- name: `linted/${string}`;
37
- rules: Input["rules"]["rules"]["html"][number][1];
38
- files: string[];
39
- languageOptions: {
40
- sourceType?:
41
- | "module"
42
- | "script"
43
- ;
44
- ecmaVersion?:
45
- | "latest"
46
- | 3
47
- | 5
48
- | ToNumber<`20${
49
- | 15
50
- | 16
51
- | 17
52
- | 18
53
- | 19
54
- | 20
55
- | 21
56
- | 22
57
- | 23
58
- | 24
59
- }`>;
60
- globals?: Table<true>;
61
- parser?: unknown;
62
- parserOptions?: Table;
63
- };
64
- processor?: string;
65
- language?: string;
66
- }
67
- )[],
68
- ];
File without changes
File without changes
File without changes