linted 16.12.1 → 16.12.2-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (412) hide show
  1. package/dist/{base/files/html/index.d.ts → files/html.d.ts} +1 -1
  2. package/dist/files/html.d.ts.map +1 -0
  3. package/dist/{base/files/html/index.js → files/html.js} +1 -1
  4. package/dist/files/html.js.map +1 -0
  5. package/dist/{base/files/js/index.d.ts → files/js.d.ts} +1 -1
  6. package/dist/files/js.d.ts.map +1 -0
  7. package/dist/{base/files/js/index.js → files/js.js} +1 -1
  8. package/dist/files/js.js.map +1 -0
  9. package/dist/{base/files/json/index.d.ts → files/json.d.ts} +1 -1
  10. package/dist/files/json.d.ts.map +1 -0
  11. package/dist/files/json.js +2 -0
  12. package/dist/files/json.js.map +1 -0
  13. package/dist/{base/files/jsonc/index.d.ts → files/jsonc.d.ts} +1 -1
  14. package/dist/files/jsonc.d.ts.map +1 -0
  15. package/dist/{base/files/jsonc/index.js → files/jsonc.js} +1 -1
  16. package/dist/files/jsonc.js.map +1 -0
  17. package/dist/{base/files/mocha/index.d.ts → files/md.d.ts} +1 -1
  18. package/dist/files/md.d.ts.map +1 -0
  19. package/dist/files/md.js +2 -0
  20. package/dist/files/md.js.map +1 -0
  21. package/dist/{base/files/md/index.d.ts → files/mocha.d.ts} +1 -1
  22. package/dist/files/mocha.d.ts.map +1 -0
  23. package/dist/files/mocha.js +2 -0
  24. package/dist/files/mocha.js.map +1 -0
  25. package/dist/{base/files/svelte/index.d.ts → files/svelte.d.ts} +1 -1
  26. package/dist/files/svelte.d.ts.map +1 -0
  27. package/dist/{base/files/svelte/index.js → files/svelte.js} +1 -1
  28. package/dist/files/svelte.js.map +1 -0
  29. package/dist/{base/files/ts/index.d.ts → files/ts.d.ts} +1 -1
  30. package/dist/files/ts.d.ts.map +1 -0
  31. package/dist/{base/files/ts/index.js → files/ts.js} +1 -1
  32. package/dist/files/ts.js.map +1 -0
  33. package/dist/{base/files/yml/index.d.ts → files/yml.d.ts} +1 -1
  34. package/dist/files/yml.d.ts.map +1 -0
  35. package/dist/{base/files/yml/index.js → files/yml.js} +1 -1
  36. package/dist/files/yml.js.map +1 -0
  37. package/dist/files.d.ts.map +1 -0
  38. package/dist/files.js +21 -0
  39. package/dist/files.js.map +1 -0
  40. package/dist/imports/parsers.d.ts.map +1 -0
  41. package/dist/imports/parsers.js.map +1 -0
  42. package/dist/imports/plugins.d.ts.map +1 -0
  43. package/dist/imports/plugins.js.map +1 -0
  44. package/dist/imports.d.ts +647 -0
  45. package/dist/imports.d.ts.map +1 -0
  46. package/dist/imports.js +7 -0
  47. package/dist/imports.js.map +1 -0
  48. package/dist/index.d.ts +3 -2
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +4 -5
  51. package/dist/index.js.map +1 -1
  52. package/dist/rules/_strings/id.d.ts +3 -0
  53. package/dist/rules/_strings/id.d.ts.map +1 -0
  54. package/dist/rules/_strings/id.js +3 -0
  55. package/dist/rules/_strings/id.js.map +1 -0
  56. package/dist/{base/rules/strings/level/index.d.ts → rules/_strings/level.d.ts} +1 -1
  57. package/dist/rules/_strings/level.d.ts.map +1 -0
  58. package/dist/{base/rules/strings/level/index.js → rules/_strings/level.js} +1 -1
  59. package/dist/rules/_strings/level.js.map +1 -0
  60. package/dist/rules/_strings/state.d.ts +3 -0
  61. package/dist/rules/_strings/state.d.ts.map +1 -0
  62. package/dist/rules/_strings/state.js +3 -0
  63. package/dist/rules/_strings/state.js.map +1 -0
  64. package/dist/rules/_strings.d.ts +7 -0
  65. package/dist/rules/_strings.d.ts.map +1 -0
  66. package/dist/rules/_strings.js +7 -0
  67. package/dist/rules/_strings.js.map +1 -0
  68. package/dist/{base/rules/presets/html/Enable.d.ts → rules/html/enable.d.ts} +1 -1
  69. package/dist/rules/html/enable.d.ts.map +1 -0
  70. package/dist/rules/html/enable.js +15 -0
  71. package/dist/rules/html/enable.js.map +1 -0
  72. package/dist/rules/html/enable_recommended.d.ts +3 -0
  73. package/dist/rules/html/enable_recommended.d.ts.map +1 -0
  74. package/dist/rules/html/enable_recommended.js +8 -0
  75. package/dist/rules/html/enable_recommended.js.map +1 -0
  76. package/dist/rules/html.d.ts +8 -0
  77. package/dist/rules/html.d.ts.map +1 -0
  78. package/dist/rules/html.js +4 -0
  79. package/dist/rules/html.js.map +1 -0
  80. package/dist/{base/rules/presets/js/Enable.d.ts → rules/js/enable.d.ts} +1 -1
  81. package/dist/{base/rules/presets/js/EnableStylistic.d.ts.map → rules/js/enable.d.ts.map} +1 -1
  82. package/dist/rules/js/enable.js +496 -0
  83. package/dist/rules/js/enable.js.map +1 -0
  84. package/dist/{base/rules/presets/js/EnableStylistic.d.ts → rules/js/enable_stylistic.d.ts} +25 -25
  85. package/dist/rules/js/enable_stylistic.d.ts.map +1 -0
  86. package/dist/rules/js/enable_stylistic.js +585 -0
  87. package/dist/rules/js/enable_stylistic.js.map +1 -0
  88. package/dist/{base/rules/presets/Js.d.ts → rules/js.d.ts} +25 -25
  89. package/dist/{base/rules/presets/Js.d.ts.map → rules/js.d.ts.map} +1 -1
  90. package/dist/rules/js.js +4 -0
  91. package/dist/rules/js.js.map +1 -0
  92. package/dist/{base/rules/presets/json/Enable.d.ts → rules/json/enable.d.ts} +1 -1
  93. package/dist/rules/json/enable.d.ts.map +1 -0
  94. package/dist/{base/rules/presets/json/Enable.js → rules/json/enable.js} +4 -4
  95. package/dist/rules/json/enable.js.map +1 -0
  96. package/dist/{base/rules/presets/json/EnableX.d.ts → rules/json/enable_x.d.ts} +1 -1
  97. package/dist/rules/json/enable_x.d.ts.map +1 -0
  98. package/dist/rules/json/enable_x.js +78 -0
  99. package/dist/rules/json/enable_x.js.map +1 -0
  100. package/dist/{base/rules/presets/Json.d.ts → rules/json.d.ts} +1 -1
  101. package/dist/rules/json.d.ts.map +1 -0
  102. package/dist/rules/json.js +4 -0
  103. package/dist/rules/json.js.map +1 -0
  104. package/dist/{base/rules/presets/jsonc/OverrideJson.d.ts → rules/jsonc/override.d.ts} +1 -1
  105. package/dist/rules/jsonc/override.d.ts.map +1 -0
  106. package/dist/rules/jsonc/override.js +13 -0
  107. package/dist/rules/jsonc/override.js.map +1 -0
  108. package/dist/{base/rules/presets/Jsonc.d.ts → rules/jsonc.d.ts} +1 -1
  109. package/dist/rules/jsonc.d.ts.map +1 -0
  110. package/dist/rules/jsonc.js +4 -0
  111. package/dist/rules/jsonc.js.map +1 -0
  112. package/dist/rules/md/enable.d.ts +7 -0
  113. package/dist/rules/md/enable.d.ts.map +1 -0
  114. package/dist/rules/md/enable.js +14 -0
  115. package/dist/rules/md/enable.js.map +1 -0
  116. package/dist/rules/md.d.ts +7 -0
  117. package/dist/rules/md.d.ts.map +1 -0
  118. package/dist/rules/md.js +3 -0
  119. package/dist/rules/md.js.map +1 -0
  120. package/dist/{base/rules/presets/mocha/Enable.d.ts → rules/mocha/enable.d.ts} +1 -1
  121. package/dist/rules/mocha/enable.d.ts.map +1 -0
  122. package/dist/rules/mocha/enable.js +3 -0
  123. package/dist/rules/mocha/enable.js.map +1 -0
  124. package/dist/rules/mocha/enable_recommended.d.ts +3 -0
  125. package/dist/rules/mocha/enable_recommended.d.ts.map +1 -0
  126. package/dist/rules/mocha/enable_recommended.js +8 -0
  127. package/dist/rules/mocha/enable_recommended.js.map +1 -0
  128. package/dist/rules/mocha.d.ts +8 -0
  129. package/dist/rules/mocha.d.ts.map +1 -0
  130. package/dist/rules/mocha.js +4 -0
  131. package/dist/rules/mocha.js.map +1 -0
  132. package/dist/rules/svelte/disable.d.ts +5 -0
  133. package/dist/rules/svelte/disable.d.ts.map +1 -0
  134. package/dist/rules/svelte/disable.js +8 -0
  135. package/dist/rules/svelte/disable.js.map +1 -0
  136. package/dist/{base/rules/presets/svelte/DisableJS.d.ts → rules/svelte/disable_js.d.ts} +1 -1
  137. package/dist/rules/svelte/disable_js.d.ts.map +1 -0
  138. package/dist/rules/svelte/disable_js.js +9 -0
  139. package/dist/rules/svelte/disable_js.js.map +1 -0
  140. package/dist/{base/rules/presets/svelte/DisableTS.d.ts → rules/svelte/disable_ts.d.ts} +1 -1
  141. package/dist/rules/svelte/disable_ts.d.ts.map +1 -0
  142. package/dist/rules/svelte/disable_ts.js +9 -0
  143. package/dist/rules/svelte/disable_ts.js.map +1 -0
  144. package/dist/{base/rules/presets/svelte/Enable.d.ts → rules/svelte/enable.d.ts} +1 -1
  145. package/dist/rules/svelte/enable.d.ts.map +1 -0
  146. package/dist/rules/svelte/enable.js +190 -0
  147. package/dist/rules/svelte/enable.js.map +1 -0
  148. package/dist/{base/rules/presets/svelte/EnableX.d.ts → rules/svelte/enable_x.d.ts} +1 -1
  149. package/dist/rules/svelte/enable_x.d.ts.map +1 -0
  150. package/dist/rules/svelte/enable_x.js +16 -0
  151. package/dist/rules/svelte/enable_x.js.map +1 -0
  152. package/dist/{base/rules/presets/Svelte.d.ts → rules/svelte.d.ts} +27 -27
  153. package/dist/{base/rules/presets/Svelte.d.ts.map → rules/svelte.d.ts.map} +1 -1
  154. package/dist/rules/svelte.js +15 -0
  155. package/dist/rules/svelte.js.map +1 -0
  156. package/dist/{base/rules/presets/ts/DisableCompiler.d.ts → rules/ts/disable.d.ts} +2 -2
  157. package/dist/rules/ts/disable.d.ts.map +1 -0
  158. package/dist/{base/rules/presets/ts/DisableCompiler.js → rules/ts/disable.js} +3 -4
  159. package/dist/rules/ts/disable.js.map +1 -0
  160. package/dist/{base/rules/presets/ts/DisableX.d.ts → rules/ts/disable_x.d.ts} +1 -1
  161. package/dist/rules/ts/disable_x.d.ts.map +1 -0
  162. package/dist/{base/rules/presets/ts/DisableX.js → rules/ts/disable_x.js} +3 -4
  163. package/dist/rules/ts/disable_x.js.map +1 -0
  164. package/dist/{base/rules/presets/ts/Enable.d.ts → rules/ts/enable.d.ts} +1 -1
  165. package/dist/rules/ts/enable.d.ts.map +1 -0
  166. package/dist/{base/rules/presets/ts/Enable.js → rules/ts/enable.js} +181 -37
  167. package/dist/rules/ts/enable.js.map +1 -0
  168. package/dist/{base/rules/presets/ts/EnableX.d.ts → rules/ts/enable_x.d.ts} +1 -1
  169. package/dist/rules/ts/enable_x.d.ts.map +1 -0
  170. package/dist/{base/rules/presets/ts/EnableX.js → rules/ts/enable_x.js} +38 -11
  171. package/dist/rules/ts/enable_x.js.map +1 -0
  172. package/dist/{base/rules/presets/Ts.d.ts → rules/ts.d.ts} +26 -26
  173. package/dist/{base/rules/presets/Ts.d.ts.map → rules/ts.d.ts.map} +1 -1
  174. package/dist/rules/ts.js +13 -0
  175. package/dist/rules/ts.js.map +1 -0
  176. package/dist/{base/rules/presets/yml/Enable.d.ts → rules/yml/enable.d.ts} +1 -1
  177. package/dist/rules/yml/enable.d.ts.map +1 -0
  178. package/dist/rules/yml/enable.js +60 -0
  179. package/dist/rules/yml/enable.js.map +1 -0
  180. package/dist/{base/rules/presets/yml/EnableX.d.ts → rules/yml/enable_x.d.ts} +1 -1
  181. package/dist/rules/yml/enable_x.d.ts.map +1 -0
  182. package/dist/rules/yml/enable_x.js +64 -0
  183. package/dist/rules/yml/enable_x.js.map +1 -0
  184. package/dist/{base/rules/presets/Yml.d.ts → rules/yml.d.ts} +1 -1
  185. package/dist/rules/yml.d.ts.map +1 -0
  186. package/dist/rules/yml.js +4 -0
  187. package/dist/rules/yml.js.map +1 -0
  188. package/dist/{base/rules.d.ts → rules.d.ts} +77 -108
  189. package/dist/{base/rules.d.ts.map → rules.d.ts.map} +1 -1
  190. package/dist/rules.js +21 -0
  191. package/dist/rules.js.map +1 -0
  192. package/package.json +2 -2
  193. package/src/files.ts +22 -0
  194. package/src/{import → imports}/parsers.ts +1 -2
  195. package/src/{import → imports}/plugins.ts +1 -2
  196. package/src/imports.ts +8 -0
  197. package/src/index.ts +8 -8
  198. package/src/rules/_strings/id.ts +18 -0
  199. package/src/{base/rules/strings/level/index.ts → rules/_strings/level.ts} +2 -1
  200. package/src/rules/_strings/state.ts +56 -0
  201. package/src/rules/_strings.ts +6 -0
  202. package/src/rules/html/enable.ts +16 -0
  203. package/src/rules/html/enable_recommended.ts +9 -0
  204. package/src/rules/html.ts +4 -0
  205. package/src/rules/js/enable.ts +524 -0
  206. package/src/rules/js/enable_stylistic.ts +608 -0
  207. package/src/rules/js.ts +4 -0
  208. package/src/{base/rules/presets/json/Enable.ts → rules/json/enable.ts} +5 -5
  209. package/src/rules/json/enable_x.ts +89 -0
  210. package/src/rules/json.ts +4 -0
  211. package/src/rules/jsonc/override.ts +16 -0
  212. package/src/rules/jsonc.ts +4 -0
  213. package/src/rules/md/enable.ts +15 -0
  214. package/src/rules/md.ts +3 -0
  215. package/src/rules/mocha/enable.ts +3 -0
  216. package/src/rules/mocha/enable_recommended.ts +9 -0
  217. package/src/rules/mocha.ts +4 -0
  218. package/src/rules/svelte/disable.ts +9 -0
  219. package/src/rules/svelte/disable_js.ts +11 -0
  220. package/src/rules/svelte/disable_ts.ts +9 -0
  221. package/src/{base/rules/presets/svelte/Enable.ts → rules/svelte/enable.ts} +138 -40
  222. package/src/rules/svelte/enable_x.ts +20 -0
  223. package/src/rules/svelte.ts +15 -0
  224. package/src/{base/rules/presets/ts/DisableCompiler.ts → rules/ts/disable.ts} +4 -5
  225. package/src/{base/rules/presets/ts/DisableX.ts → rules/ts/disable_x.ts} +4 -6
  226. package/src/{base/rules/presets/ts/Enable.ts → rules/ts/enable.ts} +188 -46
  227. package/src/{base/rules/presets/ts/EnableX.ts → rules/ts/enable_x.ts} +46 -18
  228. package/src/rules/ts.ts +13 -0
  229. package/src/rules/yml/enable.ts +64 -0
  230. package/src/rules/yml/enable_x.ts +68 -0
  231. package/src/rules/yml.ts +4 -0
  232. package/src/rules.ts +22 -0
  233. package/dist/base/files/html/index.d.ts.map +0 -1
  234. package/dist/base/files/html/index.js.map +0 -1
  235. package/dist/base/files/js/index.d.ts.map +0 -1
  236. package/dist/base/files/js/index.js.map +0 -1
  237. package/dist/base/files/json/index.d.ts.map +0 -1
  238. package/dist/base/files/json/index.js +0 -2
  239. package/dist/base/files/json/index.js.map +0 -1
  240. package/dist/base/files/jsonc/index.d.ts.map +0 -1
  241. package/dist/base/files/jsonc/index.js.map +0 -1
  242. package/dist/base/files/md/index.d.ts.map +0 -1
  243. package/dist/base/files/md/index.js +0 -2
  244. package/dist/base/files/md/index.js.map +0 -1
  245. package/dist/base/files/mocha/index.d.ts.map +0 -1
  246. package/dist/base/files/mocha/index.js +0 -2
  247. package/dist/base/files/mocha/index.js.map +0 -1
  248. package/dist/base/files/svelte/index.d.ts.map +0 -1
  249. package/dist/base/files/svelte/index.js.map +0 -1
  250. package/dist/base/files/ts/index.d.ts.map +0 -1
  251. package/dist/base/files/ts/index.js.map +0 -1
  252. package/dist/base/files/yml/index.d.ts.map +0 -1
  253. package/dist/base/files/yml/index.js.map +0 -1
  254. package/dist/base/files.d.ts.map +0 -1
  255. package/dist/base/files.js +0 -21
  256. package/dist/base/files.js.map +0 -1
  257. package/dist/base/rules/presets/Html.d.ts +0 -8
  258. package/dist/base/rules/presets/Html.d.ts.map +0 -1
  259. package/dist/base/rules/presets/Html.js +0 -4
  260. package/dist/base/rules/presets/Html.js.map +0 -1
  261. package/dist/base/rules/presets/Js.js +0 -4
  262. package/dist/base/rules/presets/Js.js.map +0 -1
  263. package/dist/base/rules/presets/Json.d.ts.map +0 -1
  264. package/dist/base/rules/presets/Json.js +0 -4
  265. package/dist/base/rules/presets/Json.js.map +0 -1
  266. package/dist/base/rules/presets/Jsonc.d.ts.map +0 -1
  267. package/dist/base/rules/presets/Jsonc.js +0 -4
  268. package/dist/base/rules/presets/Jsonc.js.map +0 -1
  269. package/dist/base/rules/presets/Md.d.ts +0 -38
  270. package/dist/base/rules/presets/Md.d.ts.map +0 -1
  271. package/dist/base/rules/presets/Md.js +0 -3
  272. package/dist/base/rules/presets/Md.js.map +0 -1
  273. package/dist/base/rules/presets/Mocha.d.ts +0 -8
  274. package/dist/base/rules/presets/Mocha.d.ts.map +0 -1
  275. package/dist/base/rules/presets/Mocha.js +0 -4
  276. package/dist/base/rules/presets/Mocha.js.map +0 -1
  277. package/dist/base/rules/presets/Svelte.js +0 -15
  278. package/dist/base/rules/presets/Svelte.js.map +0 -1
  279. package/dist/base/rules/presets/Ts.js +0 -13
  280. package/dist/base/rules/presets/Ts.js.map +0 -1
  281. package/dist/base/rules/presets/Yml.d.ts.map +0 -1
  282. package/dist/base/rules/presets/Yml.js +0 -4
  283. package/dist/base/rules/presets/Yml.js.map +0 -1
  284. package/dist/base/rules/presets/html/Enable.d.ts.map +0 -1
  285. package/dist/base/rules/presets/html/Enable.js +0 -10
  286. package/dist/base/rules/presets/html/Enable.js.map +0 -1
  287. package/dist/base/rules/presets/html/Recommended.d.ts +0 -3
  288. package/dist/base/rules/presets/html/Recommended.d.ts.map +0 -1
  289. package/dist/base/rules/presets/html/Recommended.js +0 -5
  290. package/dist/base/rules/presets/html/Recommended.js.map +0 -1
  291. package/dist/base/rules/presets/index.d.ts +0 -8
  292. package/dist/base/rules/presets/index.d.ts.map +0 -1
  293. package/dist/base/rules/presets/index.js +0 -2
  294. package/dist/base/rules/presets/index.js.map +0 -1
  295. package/dist/base/rules/presets/js/Enable.d.ts.map +0 -1
  296. package/dist/base/rules/presets/js/Enable.js +0 -260
  297. package/dist/base/rules/presets/js/Enable.js.map +0 -1
  298. package/dist/base/rules/presets/js/EnableStylistic.js +0 -270
  299. package/dist/base/rules/presets/js/EnableStylistic.js.map +0 -1
  300. package/dist/base/rules/presets/json/Enable.d.ts.map +0 -1
  301. package/dist/base/rules/presets/json/Enable.js.map +0 -1
  302. package/dist/base/rules/presets/json/EnableX.d.ts.map +0 -1
  303. package/dist/base/rules/presets/json/EnableX.js +0 -38
  304. package/dist/base/rules/presets/json/EnableX.js.map +0 -1
  305. package/dist/base/rules/presets/jsonc/OverrideJson.d.ts.map +0 -1
  306. package/dist/base/rules/presets/jsonc/OverrideJson.js +0 -4
  307. package/dist/base/rules/presets/jsonc/OverrideJson.js.map +0 -1
  308. package/dist/base/rules/presets/md/Enable.d.ts +0 -38
  309. package/dist/base/rules/presets/md/Enable.d.ts.map +0 -1
  310. package/dist/base/rules/presets/md/Enable.js +0 -20
  311. package/dist/base/rules/presets/md/Enable.js.map +0 -1
  312. package/dist/base/rules/presets/mocha/Enable.d.ts.map +0 -1
  313. package/dist/base/rules/presets/mocha/Enable.js +0 -4
  314. package/dist/base/rules/presets/mocha/Enable.js.map +0 -1
  315. package/dist/base/rules/presets/mocha/Recommended.d.ts +0 -3
  316. package/dist/base/rules/presets/mocha/Recommended.d.ts.map +0 -1
  317. package/dist/base/rules/presets/mocha/Recommended.js +0 -5
  318. package/dist/base/rules/presets/mocha/Recommended.js.map +0 -1
  319. package/dist/base/rules/presets/svelte/DisableJS.d.ts.map +0 -1
  320. package/dist/base/rules/presets/svelte/DisableJS.js +0 -4
  321. package/dist/base/rules/presets/svelte/DisableJS.js.map +0 -1
  322. package/dist/base/rules/presets/svelte/DisableTS.d.ts.map +0 -1
  323. package/dist/base/rules/presets/svelte/DisableTS.js +0 -4
  324. package/dist/base/rules/presets/svelte/DisableTS.js.map +0 -1
  325. package/dist/base/rules/presets/svelte/DisableX.d.ts +0 -5
  326. package/dist/base/rules/presets/svelte/DisableX.d.ts.map +0 -1
  327. package/dist/base/rules/presets/svelte/DisableX.js +0 -4
  328. package/dist/base/rules/presets/svelte/DisableX.js.map +0 -1
  329. package/dist/base/rules/presets/svelte/Enable.d.ts.map +0 -1
  330. package/dist/base/rules/presets/svelte/Enable.js +0 -90
  331. package/dist/base/rules/presets/svelte/Enable.js.map +0 -1
  332. package/dist/base/rules/presets/svelte/EnableX.d.ts.map +0 -1
  333. package/dist/base/rules/presets/svelte/EnableX.js +0 -4
  334. package/dist/base/rules/presets/svelte/EnableX.js.map +0 -1
  335. package/dist/base/rules/presets/ts/DisableCompiler.d.ts.map +0 -1
  336. package/dist/base/rules/presets/ts/DisableCompiler.js.map +0 -1
  337. package/dist/base/rules/presets/ts/DisableX.d.ts.map +0 -1
  338. package/dist/base/rules/presets/ts/DisableX.js.map +0 -1
  339. package/dist/base/rules/presets/ts/Enable.d.ts.map +0 -1
  340. package/dist/base/rules/presets/ts/Enable.js.map +0 -1
  341. package/dist/base/rules/presets/ts/EnableX.d.ts.map +0 -1
  342. package/dist/base/rules/presets/ts/EnableX.js.map +0 -1
  343. package/dist/base/rules/presets/yml/Enable.d.ts.map +0 -1
  344. package/dist/base/rules/presets/yml/Enable.js +0 -28
  345. package/dist/base/rules/presets/yml/Enable.js.map +0 -1
  346. package/dist/base/rules/presets/yml/EnableX.d.ts.map +0 -1
  347. package/dist/base/rules/presets/yml/EnableX.js +0 -16
  348. package/dist/base/rules/presets/yml/EnableX.js.map +0 -1
  349. package/dist/base/rules/strings/id/index.d.ts +0 -3
  350. package/dist/base/rules/strings/id/index.d.ts.map +0 -1
  351. package/dist/base/rules/strings/id/index.js +0 -3
  352. package/dist/base/rules/strings/id/index.js.map +0 -1
  353. package/dist/base/rules/strings/index.d.ts +0 -7
  354. package/dist/base/rules/strings/index.d.ts.map +0 -1
  355. package/dist/base/rules/strings/index.js +0 -7
  356. package/dist/base/rules/strings/index.js.map +0 -1
  357. package/dist/base/rules/strings/level/index.d.ts.map +0 -1
  358. package/dist/base/rules/strings/level/index.js.map +0 -1
  359. package/dist/base/rules/strings/state/index.d.ts +0 -3
  360. package/dist/base/rules/strings/state/index.d.ts.map +0 -1
  361. package/dist/base/rules/strings/state/index.js +0 -3
  362. package/dist/base/rules/strings/state/index.js.map +0 -1
  363. package/dist/base/rules.js +0 -21
  364. package/dist/base/rules.js.map +0 -1
  365. package/dist/import/parsers.d.ts.map +0 -1
  366. package/dist/import/parsers.js.map +0 -1
  367. package/dist/import/plugins.d.ts.map +0 -1
  368. package/dist/import/plugins.js.map +0 -1
  369. package/src/base/files.ts +0 -22
  370. package/src/base/rules/presets/Html.ts +0 -5
  371. package/src/base/rules/presets/Js.ts +0 -5
  372. package/src/base/rules/presets/Json.ts +0 -5
  373. package/src/base/rules/presets/Jsonc.ts +0 -5
  374. package/src/base/rules/presets/Md.ts +0 -4
  375. package/src/base/rules/presets/Mocha.ts +0 -5
  376. package/src/base/rules/presets/Svelte.ts +0 -16
  377. package/src/base/rules/presets/Ts.ts +0 -14
  378. package/src/base/rules/presets/Yml.ts +0 -5
  379. package/src/base/rules/presets/html/Enable.ts +0 -11
  380. package/src/base/rules/presets/html/Recommended.ts +0 -7
  381. package/src/base/rules/presets/index.ts +0 -10
  382. package/src/base/rules/presets/js/Enable.ts +0 -288
  383. package/src/base/rules/presets/js/EnableStylistic.ts +0 -295
  384. package/src/base/rules/presets/json/EnableX.ts +0 -51
  385. package/src/base/rules/presets/jsonc/OverrideJson.ts +0 -6
  386. package/src/base/rules/presets/md/Enable.ts +0 -23
  387. package/src/base/rules/presets/mocha/Enable.ts +0 -5
  388. package/src/base/rules/presets/mocha/Recommended.ts +0 -7
  389. package/src/base/rules/presets/svelte/DisableJS.ts +0 -7
  390. package/src/base/rules/presets/svelte/DisableTS.ts +0 -5
  391. package/src/base/rules/presets/svelte/DisableX.ts +0 -6
  392. package/src/base/rules/presets/svelte/EnableX.ts +0 -6
  393. package/src/base/rules/presets/yml/Enable.ts +0 -30
  394. package/src/base/rules/presets/yml/EnableX.ts +0 -18
  395. package/src/base/rules/strings/id/index.ts +0 -17
  396. package/src/base/rules/strings/index.ts +0 -6
  397. package/src/base/rules/strings/state/index.ts +0 -55
  398. package/src/base/rules.ts +0 -22
  399. /package/dist/{base/files.d.ts → files.d.ts} +0 -0
  400. /package/dist/{import → imports}/parsers.d.ts +0 -0
  401. /package/dist/{import → imports}/parsers.js +0 -0
  402. /package/dist/{import → imports}/plugins.d.ts +0 -0
  403. /package/dist/{import → imports}/plugins.js +0 -0
  404. /package/src/{base/files/html/index.ts → files/html.ts} +0 -0
  405. /package/src/{base/files/js/index.ts → files/js.ts} +0 -0
  406. /package/src/{base/files/json/index.ts → files/json.ts} +0 -0
  407. /package/src/{base/files/jsonc/index.ts → files/jsonc.ts} +0 -0
  408. /package/src/{base/files/md/index.ts → files/md.ts} +0 -0
  409. /package/src/{base/files/mocha/index.ts → files/mocha.ts} +0 -0
  410. /package/src/{base/files/svelte/index.ts → files/svelte.ts} +0 -0
  411. /package/src/{base/files/ts/index.ts → files/ts.ts} +0 -0
  412. /package/src/{base/files/yml/index.ts → files/yml.ts} +0 -0
@@ -0,0 +1,608 @@
1
+ import { stylistic, level, state } from "../_strings.js";
2
+
3
+ const
4
+ { ERROR, OFF } = level,
5
+ {
6
+ Never,
7
+ Always,
8
+ AlwaysMultiline,
9
+ Consistent,
10
+ AsNeeded,
11
+ Strict,
12
+ All,
13
+ Star,
14
+ Last,
15
+ Before,
16
+ After,
17
+ Below,
18
+ Beside,
19
+ Inside,
20
+ Double,
21
+ } = state;
22
+
23
+ export default [
24
+ stylistic,
25
+ {
26
+ // https://eslint.style/rules
27
+ "@stylistic/array-bracket-newline": [
28
+ ERROR,
29
+ {
30
+ multiline: true,
31
+ minItems: null,
32
+ },
33
+ ],
34
+ "@stylistic/array-bracket-spacing": [
35
+ ERROR,
36
+ Never,
37
+ {
38
+ singleValue: false,
39
+ objectsInArrays: false,
40
+ arraysInArrays: false,
41
+ },
42
+ ],
43
+ "@stylistic/array-element-newline": [
44
+ ERROR,
45
+ {
46
+ ArrayExpression: {
47
+ consistent: true,
48
+ multiline: true,
49
+ minItems: 4,
50
+ },
51
+ ArrayPattern: {
52
+ consistent: true,
53
+ multiline: true,
54
+ minItems: 4,
55
+ },
56
+ },
57
+ ],
58
+ "@stylistic/arrow-parens": [
59
+ ERROR,
60
+ AsNeeded,
61
+ {
62
+ requireForBlockBody: false,
63
+ },
64
+ ],
65
+ "@stylistic/arrow-spacing": [
66
+ ERROR,
67
+ {
68
+ before: true,
69
+ after: true,
70
+ },
71
+ ],
72
+ "@stylistic/block-spacing": [ERROR, Always],
73
+ "@stylistic/brace-style": [
74
+ ERROR,
75
+ "stroustrup",
76
+ {
77
+ allowSingleLine: true,
78
+ },
79
+ ],
80
+ "@stylistic/comma-dangle": [ERROR, AlwaysMultiline],
81
+ "@stylistic/comma-spacing": [
82
+ ERROR,
83
+ {
84
+ before: false,
85
+ after: true,
86
+ },
87
+ ],
88
+ "@stylistic/comma-style": [
89
+ ERROR,
90
+ Last,
91
+ {
92
+ exceptions: {
93
+ ArrayExpression: false,
94
+ ArrayPattern: false,
95
+ ArrowFunctionExpression: false,
96
+ CallExpression: false,
97
+ FunctionDeclaration: false,
98
+ FunctionExpression: false,
99
+ ImportDeclaration: false,
100
+ ObjectExpression: false,
101
+ ObjectPattern: false,
102
+ VariableDeclaration: false,
103
+ NewExpression: false,
104
+ },
105
+ },
106
+ ],
107
+ "@stylistic/computed-property-spacing": [
108
+ ERROR,
109
+ Never,
110
+ {
111
+ enforceForClassMembers: true,
112
+ },
113
+ ],
114
+ "@stylistic/dot-location": [ERROR, "property"],
115
+ "@stylistic/eol-last": [ERROR, Always],
116
+ "@stylistic/function-call-argument-newline": [ERROR, Consistent],
117
+ "@stylistic/function-call-spacing": [ERROR, Never],
118
+
119
+ "@stylistic/function-paren-newline": [ERROR, "multiline-arguments"] /* BUG: https://github.com/eslint-stylistic/eslint-stylistic/issues/290 */,
120
+ "@stylistic/generator-star-spacing": [
121
+ ERROR,
122
+ {
123
+ before: true,
124
+ after: false,
125
+ },
126
+ ],
127
+ "@stylistic/implicit-arrow-linebreak": [ERROR, Beside],
128
+ "@stylistic/indent": [
129
+ ERROR,
130
+ 2,
131
+ {
132
+ ignoredNodes: [],
133
+ SwitchCase: 1,
134
+ VariableDeclarator: { "var": 0, let: 0, "const": 0 },
135
+ outerIIFEBody: 0,
136
+ MemberExpression: 1,
137
+ FunctionDeclaration: { parameters: 1, body: 1 },
138
+ FunctionExpression: { parameters: 1, body: 1 },
139
+ StaticBlock: { body: 1 },
140
+ CallExpression: { arguments: 1 },
141
+ ArrayExpression: 1,
142
+ ObjectExpression: 1,
143
+ ImportDeclaration: 1,
144
+ flatTernaryExpressions: false,
145
+ offsetTernaryExpressions: true,
146
+ ignoreComments: false,
147
+ },
148
+ ],
149
+ "@stylistic/indent-binary-ops": [ERROR, 2],
150
+ "@stylistic/key-spacing": [
151
+ ERROR,
152
+ {
153
+ beforeColon: false,
154
+ afterColon: true,
155
+ mode: Strict,
156
+ },
157
+ ],
158
+ "@stylistic/keyword-spacing": [
159
+ ERROR,
160
+ {
161
+ before: true,
162
+ after: true,
163
+ overrides: {},
164
+ },
165
+ ],
166
+ "@stylistic/line-comment-position": OFF,
167
+ "@stylistic/lines-around-comment": [
168
+ ERROR,
169
+ {
170
+ beforeBlockComment: false,
171
+ afterBlockComment: false,
172
+ beforeLineComment: true,
173
+ afterLineComment: false,
174
+ allowBlockStart: true,
175
+ allowBlockEnd: true,
176
+ allowObjectStart: true,
177
+ allowObjectEnd: true,
178
+ allowArrayStart: true,
179
+ allowArrayEnd: true,
180
+ allowClassStart: true,
181
+ allowClassEnd: true,
182
+ applyDefaultIgnorePatterns: true,
183
+ afterHashbangComment: false,
184
+
185
+ // TS-only
186
+ allowEnumEnd: true,
187
+ allowEnumStart: true,
188
+ allowInterfaceEnd: true,
189
+ allowInterfaceStart: true,
190
+ allowModuleEnd: true,
191
+ allowModuleStart: true,
192
+ allowTypeEnd: true,
193
+ allowTypeStart: true,
194
+ },
195
+ ],
196
+ "@stylistic/lines-between-class-members": [
197
+ ERROR,
198
+ {
199
+ enforce: [
200
+ { prev: "field", next: "field", blankLine: Never },
201
+ { prev: "field", next: "method", blankLine: Always },
202
+ { prev: "method", next: Star, blankLine: Always },
203
+ ],
204
+ },
205
+ {
206
+ exceptAfterSingleLine: false,
207
+ exceptAfterOverload: true /* TS-only */,
208
+ },
209
+ ],
210
+ "@stylistic/max-len": [
211
+ ERROR,
212
+ {
213
+ code: 150,
214
+ tabWidth: 2,
215
+ ignoreComments: true,
216
+ ignoreTrailingComments: true,
217
+ ignoreUrls: true,
218
+ ignoreStrings: true,
219
+ ignoreTemplateLiterals: true,
220
+ ignoreRegExpLiterals: true,
221
+ },
222
+ ],
223
+ "@stylistic/max-statements-per-line": [
224
+ ERROR,
225
+ {
226
+ max: 1,
227
+ },
228
+ ],
229
+ "@stylistic/member-delimiter-style": [
230
+ ERROR,
231
+ {
232
+ multiline: {
233
+ delimiter: "semi",
234
+ requireLast: true,
235
+ },
236
+ singleline: {
237
+ delimiter: "semi",
238
+ requireLast: false,
239
+ },
240
+ multilineDetection: "brackets",
241
+ },
242
+ ],
243
+ "@stylistic/multiline-comment-style": OFF,
244
+ "@stylistic/multiline-ternary": [ERROR, AlwaysMultiline],
245
+ "@stylistic/new-parens": [OFF, Never],
246
+ "@stylistic/newline-per-chained-call": [
247
+ ERROR,
248
+ {
249
+ ignoreChainWithDepth: 2,
250
+ },
251
+ ],
252
+ "@stylistic/no-confusing-arrow": OFF,
253
+ "@stylistic/no-extra-parens": [
254
+ ERROR,
255
+ All,
256
+ {
257
+ conditionalAssign: true,
258
+ returnAssign: true,
259
+ nestedBinaryExpressions: true,
260
+ ternaryOperandBinaryExpressions: true,
261
+ enforceForArrowConditionals: true,
262
+ enforceForSequenceExpressions: true,
263
+ enforceForNewInMemberExpressions: true,
264
+ enforceForFunctionPrototypeMethods: true,
265
+ },
266
+ ],
267
+ "@stylistic/no-extra-semi": ERROR,
268
+ "@stylistic/no-floating-decimal": ERROR,
269
+ "@stylistic/no-mixed-operators": OFF,
270
+ "@stylistic/no-mixed-spaces-and-tabs": ERROR,
271
+ "@stylistic/no-multi-spaces": [
272
+ ERROR,
273
+ {
274
+ ignoreEOLComments: false,
275
+ exceptions: { Property: false },
276
+ includeTabs: true,
277
+ },
278
+ ],
279
+ "@stylistic/no-multiple-empty-lines": [
280
+ ERROR,
281
+ {
282
+ max: 1,
283
+ maxEOF: 1,
284
+ maxBOF: 0,
285
+ },
286
+ ],
287
+ "@stylistic/no-tabs": [
288
+ ERROR,
289
+ {
290
+ allowIndentationTabs: false,
291
+ },
292
+ ],
293
+ "@stylistic/no-trailing-spaces": [
294
+ ERROR,
295
+ {
296
+ skipBlankLines: false,
297
+ ignoreComments: false,
298
+ },
299
+ ],
300
+ "@stylistic/no-whitespace-before-property": ERROR,
301
+ "@stylistic/nonblock-statement-body-position": [
302
+ ERROR,
303
+ Below,
304
+ {
305
+ overrides: {
306
+ "if": Below,
307
+ "else": Below,
308
+ "while": Below,
309
+ "do": Below,
310
+ "for": Below,
311
+ },
312
+ },
313
+ ],
314
+ "@stylistic/object-curly-newline": [
315
+ ERROR,
316
+ {
317
+ ObjectExpression: {
318
+ consistent: true,
319
+ multiline: true,
320
+ minProperties: 4,
321
+ },
322
+ ObjectPattern: {
323
+ consistent: true,
324
+ multiline: true,
325
+ minProperties: 4,
326
+ },
327
+ ImportDeclaration: {
328
+ consistent: true,
329
+ multiline: true,
330
+ minProperties: 4,
331
+ },
332
+ ExportDeclaration: {
333
+ consistent: true,
334
+ multiline: true,
335
+ minProperties: 4,
336
+ },
337
+ },
338
+ ],
339
+ "@stylistic/object-curly-spacing": [
340
+ ERROR,
341
+ Always,
342
+ {
343
+ arraysInObjects: true,
344
+ objectsInObjects: true,
345
+ },
346
+ ],
347
+ "@stylistic/object-property-newline": [
348
+ ERROR,
349
+ {
350
+ allowAllPropertiesOnSameLine: true,
351
+ },
352
+ ],
353
+ "@stylistic/one-var-declaration-per-line": [ERROR, Always],
354
+ "@stylistic/operator-linebreak": [
355
+ ERROR,
356
+ Before,
357
+ {
358
+ overrides: {
359
+ "=": After,
360
+ },
361
+ },
362
+ ],
363
+ "@stylistic/padded-blocks": [
364
+ ERROR,
365
+ {
366
+ blocks: Never,
367
+ classes: Never,
368
+ switches: Never,
369
+ },
370
+ {
371
+ allowSingleLineBlocks: true,
372
+ },
373
+ ],
374
+ "@stylistic/padding-line-between-statements": [
375
+ ERROR,
376
+ {
377
+ prev: "directive",
378
+ next: Star,
379
+ blankLine: Always,
380
+ },
381
+ {
382
+ prev: "directive",
383
+ next: "directive",
384
+ blankLine: Never,
385
+ },
386
+ {
387
+ prev: ["import", "cjs-import"],
388
+ next: Star,
389
+ blankLine: Always,
390
+ },
391
+ {
392
+ prev: ["import", "cjs-import"],
393
+ next: ["import", "cjs-import"],
394
+ blankLine: Never,
395
+ },
396
+ {
397
+ prev: [
398
+ "class",
399
+ "interface",
400
+ "try",
401
+ "for",
402
+ "if",
403
+ "do",
404
+ "while",
405
+ "switch",
406
+ "block",
407
+ "block-like",
408
+ "iife",
409
+ "empty",
410
+ "debugger",
411
+ "with",
412
+ ],
413
+ next: Star,
414
+ blankLine: Always,
415
+ },
416
+ {
417
+ prev: "case",
418
+ next: Star,
419
+ blankLine: Always,
420
+ },
421
+ {
422
+ prev: "case",
423
+ next: ["case", "default"],
424
+ blankLine: Always,
425
+ },
426
+ {
427
+ prev: "default",
428
+ next: Star,
429
+ blankLine: Always,
430
+ },
431
+ {
432
+ prev: "type",
433
+ next: Star,
434
+ blankLine: Always,
435
+ },
436
+ {
437
+ prev: "type",
438
+ next: "type",
439
+ blankLine: Never,
440
+ },
441
+ {
442
+ prev: "function",
443
+ next: Star,
444
+ blankLine: Always,
445
+ },
446
+ {
447
+ prev: "function-overload",
448
+ next: Star,
449
+ blankLine: Always,
450
+ },
451
+ {
452
+ prev: "function-overload",
453
+ next: "function-overload",
454
+ blankLine: Never,
455
+ },
456
+ {
457
+ prev: "function-overload",
458
+ next: "function",
459
+ blankLine: Never,
460
+ },
461
+ {
462
+ prev: ["const", "let", "var"],
463
+ next: Star,
464
+ blankLine: Always,
465
+ },
466
+ {
467
+ prev: ["const", "let", "var"],
468
+ next: ["const", "let", "var"],
469
+ blankLine: Never,
470
+ },
471
+ {
472
+ prev: "expression",
473
+ next: Star,
474
+ blankLine: Always,
475
+ },
476
+ {
477
+ prev: "expression",
478
+ next: "expression",
479
+ blankLine: Never,
480
+ },
481
+ {
482
+ prev: Star,
483
+ next: [
484
+ "throw",
485
+ "return",
486
+ "break",
487
+ "continue",
488
+ ],
489
+ blankLine: Always,
490
+ },
491
+ {
492
+ prev: Star,
493
+ next: ["export", "cjs-export"],
494
+ blankLine: Always,
495
+ },
496
+ {
497
+ prev: ["export", "cjs-export"],
498
+ next: ["export", "cjs-export"],
499
+ blankLine: Never,
500
+ },
501
+ ],
502
+ "@stylistic/quote-props": [
503
+ ERROR,
504
+ AsNeeded,
505
+ {
506
+ keywords: true,
507
+ unnecessary: true,
508
+ numbers: false,
509
+ },
510
+ ],
511
+ "@stylistic/quotes": [
512
+ ERROR,
513
+ Double,
514
+ {
515
+ avoidEscape: true,
516
+ allowTemplateLiterals: true,
517
+ },
518
+ ],
519
+ "@stylistic/rest-spread-spacing": [ERROR, Never],
520
+ "@stylistic/semi": [
521
+ ERROR,
522
+ Always,
523
+ {
524
+ omitLastInOneLineBlock: false,
525
+ omitLastInOneLineClassBody: false,
526
+ },
527
+ ],
528
+ "@stylistic/semi-spacing": [
529
+ ERROR,
530
+ {
531
+ before: false,
532
+ after: true,
533
+ },
534
+ ],
535
+ "@stylistic/semi-style": [ERROR, Last],
536
+ "@stylistic/space-before-blocks": [
537
+ ERROR,
538
+ {
539
+ functions: Always,
540
+ keywords: Always,
541
+ classes: Always,
542
+ },
543
+ ],
544
+ "@stylistic/space-before-function-paren": [
545
+ ERROR,
546
+ {
547
+ anonymous: Always,
548
+ named: Never,
549
+ asyncArrow: Always,
550
+ },
551
+ ],
552
+ "@stylistic/space-in-parens": [ERROR, Never],
553
+ "@stylistic/space-infix-ops": [
554
+ ERROR,
555
+ {
556
+ int32Hint: true,
557
+ },
558
+ ],
559
+ "@stylistic/space-unary-ops": [
560
+ ERROR,
561
+ {
562
+ words: true,
563
+ nonwords: false,
564
+ overrides: {},
565
+ },
566
+ ],
567
+ "@stylistic/spaced-comment": [ERROR, Always],
568
+ "@stylistic/switch-colon-spacing": [
569
+ ERROR,
570
+ {
571
+ after: true,
572
+ before: false,
573
+ },
574
+ ],
575
+ "@stylistic/template-curly-spacing": [ERROR, Never],
576
+ "@stylistic/template-tag-spacing": [ERROR, Never],
577
+ "@stylistic/type-annotation-spacing": [
578
+ ERROR,
579
+ {
580
+ before: true,
581
+ after: true,
582
+ overrides: {
583
+ colon: {
584
+ before: false,
585
+ after: true,
586
+ },
587
+ },
588
+ } /* non-overriden rule affects all type annotations (arrows, "as" keyword, "satisfies" keyword) except colons */,
589
+ ],
590
+ "@stylistic/type-generic-spacing": ERROR,
591
+ "@stylistic/type-named-tuple-spacing": ERROR,
592
+ "@stylistic/wrap-iife": [
593
+ ERROR,
594
+ Inside,
595
+ {
596
+ functionPrototypeMethods: true,
597
+ },
598
+ ],
599
+ "@stylistic/wrap-regex": ERROR,
600
+ "@stylistic/yield-star-spacing": [
601
+ ERROR,
602
+ {
603
+ before: false,
604
+ after: true,
605
+ },
606
+ ],
607
+ },
608
+ ] as const;
@@ -0,0 +1,4 @@
1
+ import EnableStylistic from "./js/enable_stylistic.js";
2
+ import Enable from "./js/enable.js";
3
+
4
+ export default [EnableStylistic, Enable] as const;
@@ -1,9 +1,9 @@
1
- import { Strings, type RuleEntry } from "../index.js";
1
+ import { enable, level } from "../_strings.js";
2
2
 
3
- const { Id: { Enable }, Level: { ERROR, OFF } } = Strings;
3
+ const { ERROR, OFF } = level;
4
4
 
5
5
  export default [
6
- Enable,
6
+ enable,
7
7
  {
8
8
  // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
9
9
  "jsonc/auto": OFF,
@@ -11,7 +11,7 @@ export default [
11
11
  "jsonc/no-bigint-literals": ERROR,
12
12
  "jsonc/no-binary-expression": ERROR,
13
13
  "jsonc/no-binary-numeric-literals": ERROR,
14
- "jsonc/no-comments": ERROR, // comments are NOT allowed in JSON
14
+ "jsonc/no-comments": ERROR /* comments are NOT allowed in JSON */,
15
15
  "jsonc/no-escape-sequence-in-identifier": ERROR,
16
16
  "jsonc/no-hexadecimal-numeric-literals": ERROR,
17
17
  "jsonc/no-infinity": ERROR,
@@ -30,4 +30,4 @@ export default [
30
30
  "jsonc/valid-json-number": ERROR,
31
31
  "jsonc/vue-custom-block/no-parsing-error": ERROR,
32
32
  },
33
- ] as const satisfies RuleEntry;
33
+ ] as const;
@@ -0,0 +1,89 @@
1
+ import { enable_x, level, state } from "../_strings.js";
2
+
3
+ const
4
+ { ERROR } = level,
5
+ {
6
+ Never,
7
+ Always,
8
+ Consistent,
9
+ Strict,
10
+ Last,
11
+ Double,
12
+ } = state;
13
+
14
+ export default [
15
+ enable_x,
16
+ {
17
+ // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
18
+ "jsonc/array-bracket-newline": [ERROR, Consistent],
19
+ "jsonc/array-bracket-spacing": [
20
+ ERROR,
21
+ Never,
22
+ {
23
+ singleValue: false,
24
+ objectsInArrays: false,
25
+ arraysInArrays: false,
26
+ },
27
+ ],
28
+ "jsonc/array-element-newline": [ERROR, Always],
29
+ "jsonc/comma-dangle": [ERROR, Never] /* trailing commas are NOT allowed in JSON */,
30
+ "jsonc/comma-style": [ERROR, Last],
31
+ "jsonc/indent": [ERROR, 2],
32
+ "jsonc/key-spacing": [
33
+ ERROR,
34
+ {
35
+ beforeColon: false,
36
+ afterColon: true,
37
+ mode: Strict,
38
+ },
39
+ ],
40
+ "jsonc/no-dupe-keys": ERROR,
41
+ "jsonc/no-floating-decimal": ERROR,
42
+ "jsonc/no-irregular-whitespace": [
43
+ ERROR,
44
+ {
45
+ skipStrings: true,
46
+ skipComments: true,
47
+ skipRegExps: true,
48
+ skipTemplates: true,
49
+ skipJSXText: true,
50
+ },
51
+ ],
52
+ "jsonc/no-multi-str": ERROR,
53
+ "jsonc/no-octal-escape": ERROR,
54
+ "jsonc/no-octal": ERROR,
55
+ "jsonc/no-sparse-arrays": ERROR,
56
+ "jsonc/no-useless-escape": ERROR,
57
+ "jsonc/object-curly-newline": [
58
+ ERROR,
59
+ {
60
+ consistent: true,
61
+ multiline: true,
62
+ minProperties: 2,
63
+ },
64
+ ],
65
+ "jsonc/object-curly-spacing": [
66
+ ERROR,
67
+ Always,
68
+ {
69
+ arraysInObjects: true,
70
+ objectsInObjects: true,
71
+ },
72
+ ],
73
+ "jsonc/object-property-newline": [
74
+ ERROR,
75
+ {
76
+ allowAllPropertiesOnSameLine: false,
77
+ },
78
+ ],
79
+ "jsonc/quote-props": [ERROR, Always],
80
+ "jsonc/quotes": [
81
+ ERROR,
82
+ Double,
83
+ {
84
+ avoidEscape: false,
85
+ },
86
+ ],
87
+ "jsonc/space-unary-ops": ERROR,
88
+ },
89
+ ] as const;