@eslinted/core 13.0.0-rc.0 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (344) hide show
  1. package/dist/config/index.d.ts +23 -0
  2. package/dist/config/index.d.ts.map +1 -0
  3. package/dist/{objects → config}/index.js.map +1 -1
  4. package/dist/config/rule.d.ts +7 -0
  5. package/dist/config/rule.d.ts.map +1 -0
  6. package/dist/config/rule.js +2 -0
  7. package/dist/config/rule.js.map +1 -0
  8. package/dist/factory/global.d.ts +12 -9
  9. package/dist/factory/global.d.ts.map +1 -1
  10. package/dist/factory/global.js +20 -18
  11. package/dist/factory/global.js.map +1 -1
  12. package/dist/factory/index.d.ts +2 -16
  13. package/dist/factory/index.d.ts.map +1 -1
  14. package/dist/factory/index.js +2 -21
  15. package/dist/factory/index.js.map +1 -1
  16. package/dist/factory/options/index.d.ts +10 -9
  17. package/dist/factory/options/index.d.ts.map +1 -1
  18. package/dist/factory/options/index.js +8 -8
  19. package/dist/factory/options/index.js.map +1 -1
  20. package/dist/factory/options/option.d.ts +3002 -0
  21. package/dist/factory/options/option.d.ts.map +1 -0
  22. package/dist/factory/options/{option/index.js → option.js} +5 -3
  23. package/dist/factory/options/option.js.map +1 -0
  24. package/dist/factory/options/proto.d.ts +19 -0
  25. package/dist/factory/options/proto.d.ts.map +1 -0
  26. package/dist/factory/options/proto.js +2 -0
  27. package/dist/factory/options/proto.js.map +1 -0
  28. package/dist/factory/options/{html.d.ts → scopes/html.d.ts} +1 -1
  29. package/dist/factory/options/scopes/html.d.ts.map +1 -0
  30. package/dist/factory/options/{html.js → scopes/html.js} +1 -1
  31. package/dist/factory/options/scopes/html.js.map +1 -0
  32. package/dist/factory/options/{js.d.ts → scopes/js.d.ts} +1 -1
  33. package/dist/factory/options/scopes/js.d.ts.map +1 -0
  34. package/dist/factory/options/{js.js → scopes/js.js} +1 -1
  35. package/dist/factory/options/scopes/js.js.map +1 -0
  36. package/dist/factory/options/{json.d.ts → scopes/json.d.ts} +1 -1
  37. package/dist/factory/options/scopes/json.d.ts.map +1 -0
  38. package/dist/factory/options/{json.js → scopes/json.js} +1 -1
  39. package/dist/factory/options/scopes/json.js.map +1 -0
  40. package/dist/factory/options/{jsonc.d.ts → scopes/jsonc.d.ts} +1 -1
  41. package/dist/factory/options/scopes/jsonc.d.ts.map +1 -0
  42. package/dist/factory/options/{jsonc.js → scopes/jsonc.js} +1 -1
  43. package/dist/factory/options/scopes/jsonc.js.map +1 -0
  44. package/dist/factory/options/{mocha.d.ts → scopes/mocha.d.ts} +1 -1
  45. package/dist/factory/options/scopes/mocha.d.ts.map +1 -0
  46. package/dist/factory/options/{mocha.js → scopes/mocha.js} +1 -1
  47. package/dist/factory/options/scopes/mocha.js.map +1 -0
  48. package/dist/factory/options/{svelte.d.ts → scopes/svelte.d.ts} +1 -1
  49. package/dist/factory/options/scopes/svelte.d.ts.map +1 -0
  50. package/dist/factory/options/{svelte.js → scopes/svelte.js} +1 -1
  51. package/dist/factory/options/scopes/svelte.js.map +1 -0
  52. package/dist/factory/options/{ts.d.ts → scopes/ts.d.ts} +1 -1
  53. package/dist/factory/options/scopes/ts.d.ts.map +1 -0
  54. package/dist/factory/options/{ts.js → scopes/ts.js} +1 -1
  55. package/dist/factory/options/scopes/ts.js.map +1 -0
  56. package/dist/factory/options/{yml.d.ts → scopes/yml.d.ts} +1 -1
  57. package/dist/factory/options/scopes/yml.d.ts.map +1 -0
  58. package/dist/factory/options/{yml.js → scopes/yml.js} +1 -1
  59. package/dist/factory/options/scopes/yml.js.map +1 -0
  60. package/dist/factory/ruleset.d.ts +10 -0
  61. package/dist/factory/ruleset.d.ts.map +1 -0
  62. package/dist/factory/ruleset.js +18 -0
  63. package/dist/factory/ruleset.js.map +1 -0
  64. package/dist/factory/scoped.d.ts +13 -0
  65. package/dist/factory/scoped.d.ts.map +1 -0
  66. package/dist/factory/scoped.js +17 -0
  67. package/dist/factory/scoped.js.map +1 -0
  68. package/dist/index.d.ts +4 -4
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.js +4 -4
  71. package/dist/index.js.map +1 -1
  72. package/dist/interface/imports/index.d.ts +3 -0
  73. package/dist/interface/imports/index.d.ts.map +1 -0
  74. package/dist/{objects/config → interface/imports}/index.js.map +1 -1
  75. package/dist/interface/index.d.ts +3 -3
  76. package/dist/interface/index.d.ts.map +1 -1
  77. package/dist/interface/input.d.ts +18 -0
  78. package/dist/interface/input.d.ts.map +1 -0
  79. package/dist/interface/input.js +2 -0
  80. package/dist/interface/input.js.map +1 -0
  81. package/dist/interface/output.d.ts +17 -0
  82. package/dist/interface/output.d.ts.map +1 -0
  83. package/dist/interface/output.js +2 -0
  84. package/dist/interface/output.js.map +1 -0
  85. package/dist/{scopes/index.d.ts → scopes.d.ts} +2 -2
  86. package/dist/scopes.d.ts.map +1 -0
  87. package/dist/{scopes/index.js → scopes.js} +1 -1
  88. package/dist/scopes.js.map +1 -0
  89. package/dist/scopes.spec.d.ts +2 -0
  90. package/dist/scopes.spec.d.ts.map +1 -0
  91. package/dist/{scopes/index.spec.js → scopes.spec.js} +2 -2
  92. package/dist/scopes.spec.js.map +1 -0
  93. package/package.json +1 -1
  94. package/src/config/index.ts +42 -0
  95. package/src/config/rule.ts +14 -0
  96. package/src/factory/global.ts +20 -18
  97. package/src/factory/index.ts +2 -35
  98. package/src/factory/options/index.ts +10 -13
  99. package/src/factory/options/{option/index.ts → option.ts} +18 -17
  100. package/src/factory/options/proto.ts +46 -0
  101. package/src/factory/options/{html.ts → scopes/html.ts} +1 -1
  102. package/src/factory/options/{js.ts → scopes/js.ts} +1 -1
  103. package/src/factory/options/{json.ts → scopes/json.ts} +1 -1
  104. package/src/factory/options/{jsonc.ts → scopes/jsonc.ts} +1 -1
  105. package/src/factory/options/{mocha.ts → scopes/mocha.ts} +1 -1
  106. package/src/factory/options/{svelte.ts → scopes/svelte.ts} +1 -1
  107. package/src/factory/options/{ts.ts → scopes/ts.ts} +1 -1
  108. package/src/factory/options/{yml.ts → scopes/yml.ts} +1 -1
  109. package/src/factory/ruleset.ts +27 -0
  110. package/src/factory/scoped.ts +17 -0
  111. package/src/index.ts +19 -35
  112. package/src/interface/imports/index.ts +16 -0
  113. package/src/interface/index.ts +3 -11
  114. package/src/interface/input.ts +26 -0
  115. package/src/interface/output.ts +24 -0
  116. package/src/{scopes/index.spec.ts → scopes.spec.ts} +1 -1
  117. package/src/{scopes/index.ts → scopes.ts} +1 -1
  118. package/dist/factory/files.d.ts +0 -7
  119. package/dist/factory/files.d.ts.map +0 -1
  120. package/dist/factory/files.js +0 -17
  121. package/dist/factory/files.js.map +0 -1
  122. package/dist/factory/ignores.d.ts +0 -7
  123. package/dist/factory/ignores.d.ts.map +0 -1
  124. package/dist/factory/ignores.js +0 -17
  125. package/dist/factory/ignores.js.map +0 -1
  126. package/dist/factory/options/html.d.ts.map +0 -1
  127. package/dist/factory/options/html.js.map +0 -1
  128. package/dist/factory/options/js.d.ts.map +0 -1
  129. package/dist/factory/options/js.js.map +0 -1
  130. package/dist/factory/options/json.d.ts.map +0 -1
  131. package/dist/factory/options/json.js.map +0 -1
  132. package/dist/factory/options/jsonc.d.ts.map +0 -1
  133. package/dist/factory/options/jsonc.js.map +0 -1
  134. package/dist/factory/options/mocha.d.ts.map +0 -1
  135. package/dist/factory/options/mocha.js.map +0 -1
  136. package/dist/factory/options/option/index.d.ts +0 -51
  137. package/dist/factory/options/option/index.d.ts.map +0 -1
  138. package/dist/factory/options/option/index.js.map +0 -1
  139. package/dist/factory/options/option/template/globals.d.ts +0 -3
  140. package/dist/factory/options/option/template/globals.d.ts.map +0 -1
  141. package/dist/factory/options/option/template/globals.js +0 -2
  142. package/dist/factory/options/option/template/globals.js.map +0 -1
  143. package/dist/factory/options/option/template/index.d.ts +0 -15
  144. package/dist/factory/options/option/template/index.d.ts.map +0 -1
  145. package/dist/factory/options/option/template/index.js.map +0 -1
  146. package/dist/factory/options/option/template/languageOptions.d.ts +0 -10
  147. package/dist/factory/options/option/template/languageOptions.d.ts.map +0 -1
  148. package/dist/factory/options/option/template/languageOptions.js +0 -2
  149. package/dist/factory/options/option/template/languageOptions.js.map +0 -1
  150. package/dist/factory/options/svelte.d.ts.map +0 -1
  151. package/dist/factory/options/svelte.js.map +0 -1
  152. package/dist/factory/options/ts.d.ts.map +0 -1
  153. package/dist/factory/options/ts.js.map +0 -1
  154. package/dist/factory/options/yml.d.ts.map +0 -1
  155. package/dist/factory/options/yml.js.map +0 -1
  156. package/dist/factory/rules/index.d.ts +0 -9
  157. package/dist/factory/rules/index.d.ts.map +0 -1
  158. package/dist/factory/rules/index.js +0 -15
  159. package/dist/factory/rules/index.js.map +0 -1
  160. package/dist/factory/rules/ruleset.d.ts +0 -10
  161. package/dist/factory/rules/ruleset.d.ts.map +0 -1
  162. package/dist/factory/rules/ruleset.js +0 -20
  163. package/dist/factory/rules/ruleset.js.map +0 -1
  164. package/dist/interface/input/global/ignores/defaults.d.ts +0 -3
  165. package/dist/interface/input/global/ignores/defaults.d.ts.map +0 -1
  166. package/dist/interface/input/global/ignores/defaults.js +0 -2
  167. package/dist/interface/input/global/ignores/defaults.js.map +0 -1
  168. package/dist/interface/input/global/ignores/extend.d.ts +0 -5
  169. package/dist/interface/input/global/ignores/extend.d.ts.map +0 -1
  170. package/dist/interface/input/global/ignores/extend.js +0 -2
  171. package/dist/interface/input/global/ignores/extend.js.map +0 -1
  172. package/dist/interface/input/global/ignores/index.d.ts +0 -8
  173. package/dist/interface/input/global/ignores/index.d.ts.map +0 -1
  174. package/dist/interface/input/global/ignores/index.js.map +0 -1
  175. package/dist/interface/input/global/index.d.ts +0 -6
  176. package/dist/interface/input/global/index.d.ts.map +0 -1
  177. package/dist/interface/input/global/index.js +0 -2
  178. package/dist/interface/input/global/index.js.map +0 -1
  179. package/dist/interface/input/imports/index.d.ts +0 -8
  180. package/dist/interface/input/imports/index.d.ts.map +0 -1
  181. package/dist/interface/input/imports/index.js +0 -2
  182. package/dist/interface/input/imports/index.js.map +0 -1
  183. package/dist/interface/input/imports/parsers/index.d.ts +0 -4
  184. package/dist/interface/input/imports/parsers/index.d.ts.map +0 -1
  185. package/dist/interface/input/imports/parsers/index.js +0 -2
  186. package/dist/interface/input/imports/parsers/index.js.map +0 -1
  187. package/dist/interface/input/imports/parsers/parser.d.ts +0 -3
  188. package/dist/interface/input/imports/parsers/parser.d.ts.map +0 -1
  189. package/dist/interface/input/imports/parsers/parser.js +0 -2
  190. package/dist/interface/input/imports/parsers/parser.js.map +0 -1
  191. package/dist/interface/input/imports/plugins.d.ts +0 -3
  192. package/dist/interface/input/imports/plugins.d.ts.map +0 -1
  193. package/dist/interface/input/imports/plugins.js +0 -2
  194. package/dist/interface/input/imports/plugins.js.map +0 -1
  195. package/dist/interface/input/index.d.ts +0 -7
  196. package/dist/interface/input/index.d.ts.map +0 -1
  197. package/dist/interface/input/index.js +0 -2
  198. package/dist/interface/input/index.js.map +0 -1
  199. package/dist/interface/input/scoped/files/defaults.d.ts +0 -3
  200. package/dist/interface/input/scoped/files/defaults.d.ts.map +0 -1
  201. package/dist/interface/input/scoped/files/defaults.js +0 -2
  202. package/dist/interface/input/scoped/files/defaults.js.map +0 -1
  203. package/dist/interface/input/scoped/files/includes.d.ts +0 -3
  204. package/dist/interface/input/scoped/files/includes.d.ts.map +0 -1
  205. package/dist/interface/input/scoped/files/includes.js +0 -2
  206. package/dist/interface/input/scoped/files/includes.js.map +0 -1
  207. package/dist/interface/input/scoped/files/index.d.ts +0 -8
  208. package/dist/interface/input/scoped/files/index.d.ts.map +0 -1
  209. package/dist/interface/input/scoped/files/index.js +0 -2
  210. package/dist/interface/input/scoped/files/index.js.map +0 -1
  211. package/dist/interface/input/scoped/ignores/defaults.d.ts +0 -3
  212. package/dist/interface/input/scoped/ignores/defaults.d.ts.map +0 -1
  213. package/dist/interface/input/scoped/ignores/defaults.js +0 -2
  214. package/dist/interface/input/scoped/ignores/defaults.js.map +0 -1
  215. package/dist/interface/input/scoped/ignores/extend.d.ts +0 -3
  216. package/dist/interface/input/scoped/ignores/extend.d.ts.map +0 -1
  217. package/dist/interface/input/scoped/ignores/extend.js +0 -2
  218. package/dist/interface/input/scoped/ignores/extend.js.map +0 -1
  219. package/dist/interface/input/scoped/ignores/index.d.ts +0 -8
  220. package/dist/interface/input/scoped/ignores/index.d.ts.map +0 -1
  221. package/dist/interface/input/scoped/ignores/index.js +0 -2
  222. package/dist/interface/input/scoped/ignores/index.js.map +0 -1
  223. package/dist/interface/input/scoped/index.d.ts +0 -10
  224. package/dist/interface/input/scoped/index.d.ts.map +0 -1
  225. package/dist/interface/input/scoped/index.js +0 -2
  226. package/dist/interface/input/scoped/index.js.map +0 -1
  227. package/dist/interface/input/scoped/rules/defaults.d.ts +0 -3
  228. package/dist/interface/input/scoped/rules/defaults.d.ts.map +0 -1
  229. package/dist/interface/input/scoped/rules/defaults.js +0 -2
  230. package/dist/interface/input/scoped/rules/defaults.js.map +0 -1
  231. package/dist/interface/input/scoped/rules/index.d.ts +0 -8
  232. package/dist/interface/input/scoped/rules/index.d.ts.map +0 -1
  233. package/dist/interface/input/scoped/rules/index.js +0 -2
  234. package/dist/interface/input/scoped/rules/index.js.map +0 -1
  235. package/dist/interface/input/scoped/rules/overrides.d.ts +0 -3
  236. package/dist/interface/input/scoped/rules/overrides.d.ts.map +0 -1
  237. package/dist/interface/input/scoped/rules/overrides.js +0 -2
  238. package/dist/interface/input/scoped/rules/overrides.js.map +0 -1
  239. package/dist/interface/input/settings/env.d.ts +0 -3
  240. package/dist/interface/input/settings/env.d.ts.map +0 -1
  241. package/dist/interface/input/settings/env.js +0 -2
  242. package/dist/interface/input/settings/env.js.map +0 -1
  243. package/dist/interface/input/settings/index.d.ts +0 -6
  244. package/dist/interface/input/settings/index.d.ts.map +0 -1
  245. package/dist/interface/input/settings/index.js +0 -2
  246. package/dist/interface/input/settings/index.js.map +0 -1
  247. package/dist/interface/output/global.d.ts +0 -6
  248. package/dist/interface/output/global.d.ts.map +0 -1
  249. package/dist/interface/output/global.js +0 -2
  250. package/dist/interface/output/global.js.map +0 -1
  251. package/dist/interface/output/index.d.ts +0 -8
  252. package/dist/interface/output/index.d.ts.map +0 -1
  253. package/dist/interface/output/index.js +0 -2
  254. package/dist/interface/output/index.js.map +0 -1
  255. package/dist/objects/config/global/ignores.d.ts +0 -6
  256. package/dist/objects/config/global/ignores.d.ts.map +0 -1
  257. package/dist/objects/config/global/ignores.js +0 -2
  258. package/dist/objects/config/global/ignores.js.map +0 -1
  259. package/dist/objects/config/global/system.d.ts +0 -14
  260. package/dist/objects/config/global/system.d.ts.map +0 -1
  261. package/dist/objects/config/global/system.js +0 -2
  262. package/dist/objects/config/global/system.js.map +0 -1
  263. package/dist/objects/config/index.d.ts +0 -6
  264. package/dist/objects/config/index.d.ts.map +0 -1
  265. package/dist/objects/config/index.js +0 -2
  266. package/dist/objects/config/property.d.ts +0 -2
  267. package/dist/objects/config/property.d.ts.map +0 -1
  268. package/dist/objects/config/property.js +0 -2
  269. package/dist/objects/config/property.js.map +0 -1
  270. package/dist/objects/config/scoped.d.ts +0 -11
  271. package/dist/objects/config/scoped.d.ts.map +0 -1
  272. package/dist/objects/config/scoped.js +0 -2
  273. package/dist/objects/config/scoped.js.map +0 -1
  274. package/dist/objects/index.d.ts +0 -4
  275. package/dist/objects/index.d.ts.map +0 -1
  276. package/dist/objects/index.js +0 -2
  277. package/dist/objects/plugins/index.d.ts +0 -5
  278. package/dist/objects/plugins/index.d.ts.map +0 -1
  279. package/dist/objects/plugins/index.js +0 -2
  280. package/dist/objects/plugins/index.js.map +0 -1
  281. package/dist/objects/plugins/plugin.d.ts +0 -2
  282. package/dist/objects/plugins/plugin.d.ts.map +0 -1
  283. package/dist/objects/plugins/plugin.js +0 -2
  284. package/dist/objects/plugins/plugin.js.map +0 -1
  285. package/dist/objects/rule/index.d.ts +0 -8
  286. package/dist/objects/rule/index.d.ts.map +0 -1
  287. package/dist/objects/rule/index.js +0 -2
  288. package/dist/objects/rule/index.js.map +0 -1
  289. package/dist/objects/rule/record/index.d.ts +0 -7
  290. package/dist/objects/rule/record/index.d.ts.map +0 -1
  291. package/dist/objects/rule/record/index.js +0 -2
  292. package/dist/objects/rule/record/index.js.map +0 -1
  293. package/dist/objects/rule/record/state.d.ts +0 -2
  294. package/dist/objects/rule/record/state.d.ts.map +0 -1
  295. package/dist/objects/rule/record/state.js +0 -2
  296. package/dist/objects/rule/record/state.js.map +0 -1
  297. package/dist/scopes/index.d.ts.map +0 -1
  298. package/dist/scopes/index.js.map +0 -1
  299. package/dist/scopes/index.spec.d.ts +0 -2
  300. package/dist/scopes/index.spec.d.ts.map +0 -1
  301. package/dist/scopes/index.spec.js.map +0 -1
  302. package/src/factory/files.ts +0 -26
  303. package/src/factory/ignores.ts +0 -26
  304. package/src/factory/options/option/template/globals.ts +0 -5
  305. package/src/factory/options/option/template/index.ts +0 -35
  306. package/src/factory/options/option/template/languageOptions.ts +0 -21
  307. package/src/factory/rules/index.ts +0 -26
  308. package/src/factory/rules/ruleset.ts +0 -28
  309. package/src/interface/input/global/ignores/defaults.ts +0 -6
  310. package/src/interface/input/global/ignores/extend.ts +0 -5
  311. package/src/interface/input/global/ignores/index.ts +0 -9
  312. package/src/interface/input/global/index.ts +0 -7
  313. package/src/interface/input/imports/index.ts +0 -12
  314. package/src/interface/input/imports/parsers/index.ts +0 -8
  315. package/src/interface/input/imports/parsers/parser.ts +0 -10
  316. package/src/interface/input/imports/plugins.ts +0 -3
  317. package/src/interface/input/index.ts +0 -20
  318. package/src/interface/input/scoped/files/defaults.ts +0 -6
  319. package/src/interface/input/scoped/files/includes.ts +0 -5
  320. package/src/interface/input/scoped/files/index.ts +0 -9
  321. package/src/interface/input/scoped/ignores/defaults.ts +0 -6
  322. package/src/interface/input/scoped/ignores/extend.ts +0 -5
  323. package/src/interface/input/scoped/ignores/index.ts +0 -9
  324. package/src/interface/input/scoped/index.ts +0 -15
  325. package/src/interface/input/scoped/rules/defaults.ts +0 -9
  326. package/src/interface/input/scoped/rules/index.ts +0 -13
  327. package/src/interface/input/scoped/rules/overrides.ts +0 -9
  328. package/src/interface/input/settings/env.ts +0 -6
  329. package/src/interface/input/settings/index.ts +0 -7
  330. package/src/interface/output/global.ts +0 -9
  331. package/src/interface/output/index.ts +0 -12
  332. package/src/objects/config/global/ignores.ts +0 -13
  333. package/src/objects/config/global/system.ts +0 -47
  334. package/src/objects/config/index.ts +0 -8
  335. package/src/objects/config/property.ts +0 -12
  336. package/src/objects/config/scoped.ts +0 -11
  337. package/src/objects/index.ts +0 -11
  338. package/src/objects/plugins/index.ts +0 -6
  339. package/src/objects/plugins/plugin.ts +0 -9
  340. package/src/objects/rule/index.ts +0 -8
  341. package/src/objects/rule/record/index.ts +0 -8
  342. package/src/objects/rule/record/state.ts +0 -5
  343. /package/dist/{factory/options/option/template → config}/index.js +0 -0
  344. /package/dist/interface/{input/global/ignores → imports}/index.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/rules/overrides.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,UAAU,EACX,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CACzC,KAAK,EACL,UAAU,CACX,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=overrides.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../../../../src/interface/input/scoped/rules/overrides.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import type { GlobalConfigSystem } from "./index.js";
2
- export type InputEnvironment = Required<GlobalConfigSystem["linterOptions"] & GlobalConfigSystem["languageOptions"]>;
3
- //# sourceMappingURL=env.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/settings/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CACnC,kBAAkB,CAAC,eAAe,CAAC,GACnC,kBAAkB,CAAC,iBAAiB,CAAC,CACxC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=env.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../../../src/interface/input/settings/env.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- export type { GlobalConfigSystem } from "../index.js";
2
- import type { InputEnvironment } from "./env.js";
3
- export interface InputSettings {
4
- settings: InputEnvironment;
5
- }
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/input/settings/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAE7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,gBAAgB,CAAC;CAC5B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/input/settings/index.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import type { GlobalConfigSystem, GlobalConfigIgnores } from "./index.js";
2
- export type GlobalConfigs = readonly [
3
- GlobalConfigSystem,
4
- GlobalConfigIgnores
5
- ];
6
- //# sourceMappingURL=global.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/interface/output/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,SAAS;IACnC,kBAAkB;IAClB,mBAAmB;CACpB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=global.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global.js","sourceRoot":"","sources":["../../../src/interface/output/global.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export type { GlobalConfigSystem, GlobalConfigIgnores, } from "../index.js";
2
- import type { GlobalConfigs } from "./global.js";
3
- import type { ScopedConfig } from "../index.js";
4
- export type Output = [
5
- ...GlobalConfigs,
6
- ...ScopedConfig[]
7
- ];
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,aAAa;IAChB,GAAG,YAAY,EAAE;CAClB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import type { ConfigProperty } from "../index.js";
2
- export type GlobalConfigIgnores = Partial<Record<Exclude<ConfigProperty, "name" | "ignores">, never>> & {
3
- name: "linted/global/ignores";
4
- ignores: string[];
5
- };
6
- //# sourceMappingURL=ignores.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/global/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAC9C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,CACZ,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ignores.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/objects/config/global/ignores.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- import type { Plugins, ConfigProperty } from "../index.js";
2
- export type GlobalConfigSystem = Partial<Record<Exclude<ConfigProperty, "name" | "plugins" | "linterOptions" | "languageOptions">, never>> & {
3
- name: "linted/global/settings";
4
- plugins: Plugins;
5
- linterOptions: {
6
- noInlineConfig: boolean;
7
- reportUnusedDisableDirectives: "error" | "warn" | "off";
8
- };
9
- languageOptions: {
10
- sourceType?: "module" | "script";
11
- ecmaVersion?: "latest" | 3 | 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024;
12
- };
13
- };
14
- //# sourceMappingURL=system.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/global/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAC7C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,GACT,eAAe,GACf,iBAAiB,CACpB,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CACP;KACF,CAAC;CACH,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=system.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/objects/config/global/system.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- export type { Plugins, RuleRecord, } from "../index.js";
2
- export type { ConfigProperty } from "./property.js";
3
- export type { GlobalConfigSystem } from "./global/system.js";
4
- export type { GlobalConfigIgnores } from "./global/ignores.js";
5
- export type { ScopedConfig } from "./scoped.js";
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,UAAU,GACX,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1,2 +0,0 @@
1
- export type ConfigProperty = ("name" | "plugins" | "files" | "ignores" | "rules" | "linterOptions" | "languageOptions" | "processor" | "language" | "settings");
2
- //# sourceMappingURL=property.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../src/objects/config/property.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,CACzB,MAAM,GACN,SAAS,GACT,OAAO,GACP,SAAS,GACT,OAAO,GACP,eAAe,GACf,iBAAiB,GACjB,WAAW,GACX,UAAU,GACV,UAAU,CACb,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=property.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"property.js","sourceRoot":"","sources":["../../../src/objects/config/property.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import type { RuleRecord } from "./index.js";
2
- export interface ScopedConfig {
3
- name: `linted/${string}`;
4
- rules: RuleRecord;
5
- files: string[];
6
- ignores: string[];
7
- languageOptions: object;
8
- processor?: string;
9
- language?: string;
10
- }
11
- //# sourceMappingURL=scoped.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../../src/objects/config/scoped.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAEpC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=scoped.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scoped.js","sourceRoot":"","sources":["../../../src/objects/config/scoped.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export type { Plugins } from "./plugins/index.js";
2
- export type { RuleEntry, RuleRecord, RuleState, } from "./rule/index.js";
3
- export type { GlobalConfigSystem, GlobalConfigIgnores, ScopedConfig, } from "./config/index.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACV,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1,5 +0,0 @@
1
- import type { Plugin } from "./plugin.js";
2
- export type Plugins = Record<Plugin, {
3
- configs: unknown;
4
- }>;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,OAAO,GAAG,MAAM,CAC1B,MAAM,EACN;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CACrB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/objects/plugins/index.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export type Plugin = ("@stylistic" | "@typescript-eslint" | "svelte" | "mocha" | "@html-eslint" | "jsonc" | "yml");
2
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/objects/plugins/plugin.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,CACjB,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,OAAO,GACP,cAAc,GACd,OAAO,GACP,KAAK,CACR,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/objects/plugins/plugin.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- import type { RuleRecord } from "./record/index.js";
2
- export type { RuleRecord };
3
- export type RuleEntry = readonly [
4
- string,
5
- RuleRecord
6
- ];
7
- export type { RuleState } from "./record/index.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/rule/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,YAAY,EAAE,UAAU,EAAE,CAAC;AAC3B,MAAM,MAAM,SAAS,GAAG,SAAS;IAC/B,MAAM;IACN,UAAU;CACX,CAAC;AACF,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/objects/rule/index.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import type { RuleState } from "./state.js";
2
- export type { RuleState };
3
- export type RuleRecord = Record<string, RuleState | readonly [
4
- RuleState,
5
- ...unknown[]
6
- ]>;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/objects/rule/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,MAAM,MAAM,UAAU,GAAG,MAAM,CAC7B,MAAM,EACJ,SAAS,GACT,SAAS,CAAC,SAAS,EAAE,GAAG,OAAO,EAAE,CAAC,CACrC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/objects/rule/record/index.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export type RuleState = ("error" | "warn" | "off");
2
- //# sourceMappingURL=state.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/objects/rule/record/state.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CACpB,OAAO,GACP,MAAM,GACN,KAAK,CACR,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/objects/rule/record/state.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,eAAO,MAAM,MAAM,0EAST,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;CACG,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../src/scopes/index.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/scopes/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAQ,CAAC,QAAQ,EAAE;IACjB,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,sBAAsB,EAAE;YACzB,MAAM,CAAC,MAAM,CAAC;iBACX,EAAE,CAAC,OAAO,CAAC;iBACX,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,OAAO,EAAE;QAChB,EAAE,CAAC,cAAc,EAAE;YACjB,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;YACvC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,SAAS,EAAE;YACZ,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;iBACzB,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,YAAY,EAAE;YACf,MAAM,CAAC,MAAM,CAAC;iBACX,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;iBAC5B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,EAAE,CAAC,aAAa,EAAE;YAChB,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YAClD,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;iBAC7B,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;QACvC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,26 +0,0 @@
1
- import type { Input } from ".";
2
-
3
- export class Files {
4
- private readonly _files = new Map<string, string[]>();
5
-
6
- constructor(files: Input["files"]) {
7
- const { files: defaults, includes } = files,
8
- scopes = Object.keys(defaults) as (keyof typeof defaults)[];
9
-
10
- for (const scope of scopes)
11
- this._files.set(
12
- scope,
13
- [
14
- ...defaults[scope],
15
- ...scope in includes ? (includes[scope] as string[]) : [],
16
- ],
17
- );
18
- }
19
-
20
- public files(scope: string) {
21
- if (!this._files.has(scope))
22
- throw new ReferenceError(`Files not found for scope: ${scope}`);
23
-
24
- return this._files.get(scope) as string[];
25
- }
26
- }
@@ -1,26 +0,0 @@
1
- import type { Input } from ".";
2
-
3
- export class Ignores {
4
- private readonly _ignores = new Map<string, string[]>();
5
-
6
- constructor(ignores: Input["ignores"]) {
7
- const { ignores: defaults, extend } = ignores,
8
- scopes = Object.keys(defaults) as (keyof typeof defaults)[];
9
-
10
- for (const scope of scopes)
11
- this._ignores.set(
12
- scope,
13
- [
14
- ...defaults[scope],
15
- ...scope in extend ? (extend[scope] as string[]) : [],
16
- ],
17
- );
18
- }
19
-
20
- public ignores(scope: string) {
21
- if (!this._ignores.has(scope))
22
- throw new ReferenceError(`Files not found for scope: ${scope}`);
23
-
24
- return this._ignores.get(scope) as string[];
25
- }
26
- }
@@ -1,5 +0,0 @@
1
- import type globals from "globals";
2
-
3
- export type Globals = keyof typeof globals & (
4
- | "mocha"
5
- );
@@ -1,35 +0,0 @@
1
- import type { LanguageOptions } from "./languageOptions";
2
- import type { Globals } from "./globals";
3
-
4
- export type {
5
- LanguageOptions,
6
- Globals,
7
- };
8
- export type OptionTemplate<
9
- ParserOptions extends
10
- | boolean
11
- | object,
12
- GlobalTypes extends Globals | false,
13
- Processor extends object,
14
- Language extends object,
15
- > = (
16
- { languageOptions: LanguageOptions<ParserOptions, GlobalTypes> }
17
- & (
18
- Processor extends never
19
- ? object
20
- : Processor extends { processor: infer P }
21
- ? string extends P
22
- ? object
23
- : { processor: P }
24
- : object
25
- )
26
- & (
27
- Language extends never
28
- ? object
29
- : Language extends { language: infer L }
30
- ? string extends L
31
- ? object
32
- : { language: L }
33
- : object
34
- )
35
- );
@@ -1,21 +0,0 @@
1
- import type { Globals } from "./globals";
2
-
3
- export type LanguageOptions<
4
- ParserOptions extends object | boolean,
5
- GlobalTypes extends Globals | false,
6
- > =
7
- & (GlobalTypes extends never
8
- ? object
9
- : GlobalTypes extends false
10
- ? object
11
- : { globals: Record<string, unknown> }
12
- )
13
- & (
14
- ParserOptions extends never
15
- ? object
16
- : ParserOptions extends boolean
17
- ? ParserOptions extends true
18
- ? { parser: unknown }
19
- : object
20
- : { parser: unknown; parserOptions: ParserOptions }
21
- );
@@ -1,26 +0,0 @@
1
- export type {
2
- RuleEntry,
3
- RuleRecord,
4
- } from "..";
5
-
6
- import type { Input } from "..";
7
- import { Ruleset } from "./ruleset";
8
-
9
- export class Rules {
10
- private readonly rulesets = new Map<string, Ruleset>();
11
-
12
- constructor(rules: Input["rules"]) {
13
- const { rules: base, overrides } = rules,
14
- scopes = Object.keys(base) as (keyof typeof base)[];
15
-
16
- for (const scope of scopes)
17
- this.rulesets.set(scope, new Ruleset(scope, base[scope], overrides[scope]));
18
- }
19
-
20
- public rules(scope: string): Ruleset {
21
- if (!this.rulesets.has(scope))
22
- throw new ReferenceError(`Ruleset not found for scope: ${scope}`);
23
-
24
- return this.rulesets.get(scope) as Ruleset;
25
- }
26
- }
@@ -1,28 +0,0 @@
1
- import type {
2
- RuleEntry,
3
- RuleRecord,
4
- } from ".";
5
-
6
- export class Ruleset {
7
- public readonly ruleset: { id: string; rules: RuleRecord }[];
8
-
9
- constructor(
10
- public readonly scope: string,
11
- rules: RuleEntry[],
12
- override?: RuleRecord,
13
- ) {
14
- const map = ([id, rules]: RuleEntry) => {
15
- return {
16
- id: `${scope}:${id}`,
17
- rules,
18
- };
19
- };
20
-
21
- this.ruleset = [
22
- ...rules.map(rule => map(rule)),
23
- ...typeof override === "undefined"
24
- ? []
25
- : [map([`${scope}:override`, override])],
26
- ];
27
- }
28
- }
@@ -1,6 +0,0 @@
1
- import type { GlobalConfigIgnores } from ".";
2
-
3
- export type GlobalIgnoreDefaults = Pick<
4
- GlobalConfigIgnores,
5
- "ignores"
6
- >;
@@ -1,5 +0,0 @@
1
- import type { GlobalIgnoreDefaults } from "./defaults";
2
-
3
- export type GlobalIgnoreExtend = {
4
- inherit?: boolean;
5
- } & Partial<GlobalIgnoreDefaults>;
@@ -1,9 +0,0 @@
1
- export type { GlobalConfigIgnores } from "..";
2
-
3
- import type { GlobalIgnoreDefaults } from "./defaults";
4
- import type { GlobalIgnoreExtend } from "./extend";
5
-
6
- export interface InputGlobalIgnores {
7
- ignores: GlobalIgnoreDefaults;
8
- extend: GlobalIgnoreExtend;
9
- }
@@ -1,7 +0,0 @@
1
- export type { GlobalConfigIgnores } from "..";
2
-
3
- import type { InputGlobalIgnores } from "./ignores";
4
-
5
- export interface InputGlobal {
6
- globals: InputGlobalIgnores;
7
- }
@@ -1,12 +0,0 @@
1
- export type {
2
- Scope,
3
- Plugins,
4
- } from "..";
5
-
6
- import type { InputPlugins } from "./plugins";
7
- import type { InputParsers } from "./parsers";
8
-
9
- export interface InputImports {
10
- plugins: InputPlugins;
11
- parsers: InputParsers;
12
- }
@@ -1,8 +0,0 @@
1
- export type { Scope } from "..";
2
-
3
- import type { Parser } from "./parser";
4
-
5
- export type InputParsers = Record<
6
- Parser,
7
- unknown
8
- >;
@@ -1,10 +0,0 @@
1
- import type { Scope } from ".";
2
-
3
- export type Parser = Scope
4
- & (
5
- | "ts"
6
- | "svelte"
7
- | "html"
8
- | "jsonc"
9
- | "yml"
10
- );
@@ -1,3 +0,0 @@
1
- import type { Plugins } from ".";
2
-
3
- export type InputPlugins = Plugins;
@@ -1,20 +0,0 @@
1
- export type {
2
- Scope,
3
- Plugins,
4
- RuleEntry,
5
- RuleRecord,
6
- GlobalConfigSystem,
7
- GlobalConfigIgnores,
8
- } from "..";
9
-
10
- import type { InputImports } from "./imports";
11
- import type { InputSettings } from "./settings";
12
- import type { InputGlobal } from "./global";
13
- import type { InputScoped } from "./scoped";
14
-
15
- export type Input = (
16
- & InputImports
17
- & InputSettings
18
- & InputGlobal
19
- & InputScoped
20
- );
@@ -1,6 +0,0 @@
1
- import type { Scope } from ".";
2
-
3
- export type FilesDefaults = Record<
4
- Scope,
5
- string[]
6
- >;
@@ -1,5 +0,0 @@
1
- import type { FilesDefaults } from "./defaults";
2
-
3
- export type FilesIncludes = Partial<
4
- FilesDefaults
5
- >;