linted 22.0.0-rc.3 → 22.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (287) hide show
  1. package/dist/{imports/index.d.ts → imports.d.ts} +1 -1
  2. package/dist/imports.d.ts.map +1 -0
  3. package/dist/imports.js +7 -0
  4. package/dist/imports.js.map +1 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +5 -13
  7. package/dist/index.js.map +1 -1
  8. package/dist/{imports/parsers.d.ts → parsers/index.d.ts} +1 -1
  9. package/dist/parsers/index.d.ts.map +1 -0
  10. package/dist/{imports/parsers.js → parsers/index.js} +1 -1
  11. package/dist/parsers/index.js.map +1 -0
  12. package/dist/{imports/plugins.d.ts → plugins/index.d.ts} +1 -1
  13. package/dist/plugins/index.d.ts.map +1 -0
  14. package/dist/{imports/plugins.js → plugins/index.js} +1 -1
  15. package/dist/plugins/index.js.map +1 -0
  16. package/package.json +2 -1
  17. package/src/index.ts +10 -18
  18. package/dist/_strings/id.d.ts +0 -2
  19. package/dist/_strings/id.d.ts.map +0 -1
  20. package/dist/_strings/id.js +0 -2
  21. package/dist/_strings/id.js.map +0 -1
  22. package/dist/_strings/index.d.ts +0 -7
  23. package/dist/_strings/index.d.ts.map +0 -1
  24. package/dist/_strings/index.js +0 -7
  25. package/dist/_strings/index.js.map +0 -1
  26. package/dist/_strings/level.d.ts +0 -2
  27. package/dist/_strings/level.d.ts.map +0 -1
  28. package/dist/_strings/level.js +0 -2
  29. package/dist/_strings/level.js.map +0 -1
  30. package/dist/_strings/level.spec.d.ts +0 -2
  31. package/dist/_strings/level.spec.d.ts.map +0 -1
  32. package/dist/_strings/level.spec.js +0 -31
  33. package/dist/_strings/level.spec.js.map +0 -1
  34. package/dist/_strings/state.d.ts +0 -2
  35. package/dist/_strings/state.d.ts.map +0 -1
  36. package/dist/_strings/state.js +0 -2
  37. package/dist/_strings/state.js.map +0 -1
  38. package/dist/files/index.d.ts +0 -13
  39. package/dist/files/index.d.ts.map +0 -1
  40. package/dist/files/index.js +0 -20
  41. package/dist/files/index.js.map +0 -1
  42. package/dist/files/scopes/html.d.ts +0 -3
  43. package/dist/files/scopes/html.d.ts.map +0 -1
  44. package/dist/files/scopes/html.js +0 -2
  45. package/dist/files/scopes/html.js.map +0 -1
  46. package/dist/files/scopes/js.d.ts +0 -3
  47. package/dist/files/scopes/js.d.ts.map +0 -1
  48. package/dist/files/scopes/js.js +0 -5
  49. package/dist/files/scopes/js.js.map +0 -1
  50. package/dist/files/scopes/json.d.ts +0 -3
  51. package/dist/files/scopes/json.d.ts.map +0 -1
  52. package/dist/files/scopes/json.js +0 -2
  53. package/dist/files/scopes/json.js.map +0 -1
  54. package/dist/files/scopes/jsonc.d.ts +0 -3
  55. package/dist/files/scopes/jsonc.d.ts.map +0 -1
  56. package/dist/files/scopes/jsonc.js +0 -6
  57. package/dist/files/scopes/jsonc.js.map +0 -1
  58. package/dist/files/scopes/mocha.d.ts +0 -3
  59. package/dist/files/scopes/mocha.d.ts.map +0 -1
  60. package/dist/files/scopes/mocha.js +0 -5
  61. package/dist/files/scopes/mocha.js.map +0 -1
  62. package/dist/files/scopes/svelte.d.ts +0 -3
  63. package/dist/files/scopes/svelte.d.ts.map +0 -1
  64. package/dist/files/scopes/svelte.js +0 -2
  65. package/dist/files/scopes/svelte.js.map +0 -1
  66. package/dist/files/scopes/ts.d.ts +0 -3
  67. package/dist/files/scopes/ts.d.ts.map +0 -1
  68. package/dist/files/scopes/ts.js +0 -2
  69. package/dist/files/scopes/ts.js.map +0 -1
  70. package/dist/files/scopes/yml.d.ts +0 -3
  71. package/dist/files/scopes/yml.d.ts.map +0 -1
  72. package/dist/files/scopes/yml.js +0 -2
  73. package/dist/files/scopes/yml.js.map +0 -1
  74. package/dist/ignores/index.d.ts +0 -13
  75. package/dist/ignores/index.d.ts.map +0 -1
  76. package/dist/ignores/index.js +0 -29
  77. package/dist/ignores/index.js.map +0 -1
  78. package/dist/ignores/scopes/html.d.ts +0 -3
  79. package/dist/ignores/scopes/html.d.ts.map +0 -1
  80. package/dist/ignores/scopes/html.js +0 -2
  81. package/dist/ignores/scopes/html.js.map +0 -1
  82. package/dist/ignores/scopes/js.d.ts +0 -3
  83. package/dist/ignores/scopes/js.d.ts.map +0 -1
  84. package/dist/ignores/scopes/js.js +0 -2
  85. package/dist/ignores/scopes/js.js.map +0 -1
  86. package/dist/ignores/scopes/json.d.ts +0 -3
  87. package/dist/ignores/scopes/json.d.ts.map +0 -1
  88. package/dist/ignores/scopes/json.js +0 -2
  89. package/dist/ignores/scopes/json.js.map +0 -1
  90. package/dist/ignores/scopes/jsonc.d.ts +0 -3
  91. package/dist/ignores/scopes/jsonc.d.ts.map +0 -1
  92. package/dist/ignores/scopes/jsonc.js +0 -2
  93. package/dist/ignores/scopes/jsonc.js.map +0 -1
  94. package/dist/ignores/scopes/mocha.d.ts +0 -3
  95. package/dist/ignores/scopes/mocha.d.ts.map +0 -1
  96. package/dist/ignores/scopes/mocha.js +0 -2
  97. package/dist/ignores/scopes/mocha.js.map +0 -1
  98. package/dist/ignores/scopes/svelte.d.ts +0 -3
  99. package/dist/ignores/scopes/svelte.d.ts.map +0 -1
  100. package/dist/ignores/scopes/svelte.js +0 -2
  101. package/dist/ignores/scopes/svelte.js.map +0 -1
  102. package/dist/ignores/scopes/ts.d.ts +0 -3
  103. package/dist/ignores/scopes/ts.d.ts.map +0 -1
  104. package/dist/ignores/scopes/ts.js +0 -2
  105. package/dist/ignores/scopes/ts.js.map +0 -1
  106. package/dist/ignores/scopes/yml.d.ts +0 -3
  107. package/dist/ignores/scopes/yml.d.ts.map +0 -1
  108. package/dist/ignores/scopes/yml.js +0 -2
  109. package/dist/ignores/scopes/yml.js.map +0 -1
  110. package/dist/imports/index.d.ts.map +0 -1
  111. package/dist/imports/index.js +0 -7
  112. package/dist/imports/index.js.map +0 -1
  113. package/dist/imports/parsers.d.ts.map +0 -1
  114. package/dist/imports/parsers.js.map +0 -1
  115. package/dist/imports/plugins.d.ts.map +0 -1
  116. package/dist/imports/plugins.js.map +0 -1
  117. package/dist/rules/html/enable.d.ts +0 -3
  118. package/dist/rules/html/enable.d.ts.map +0 -1
  119. package/dist/rules/html/enable.js +0 -94
  120. package/dist/rules/html/enable.js.map +0 -1
  121. package/dist/rules/html/index.d.ts +0 -3
  122. package/dist/rules/html/index.d.ts.map +0 -1
  123. package/dist/rules/html/index.js +0 -3
  124. package/dist/rules/html/index.js.map +0 -1
  125. package/dist/rules/index.d.ts +0 -4563
  126. package/dist/rules/index.d.ts.map +0 -1
  127. package/dist/rules/index.js +0 -19
  128. package/dist/rules/index.js.map +0 -1
  129. package/dist/rules/js/enable.d.ts +0 -348
  130. package/dist/rules/js/enable.d.ts.map +0 -1
  131. package/dist/rules/js/enable.js +0 -519
  132. package/dist/rules/js/enable.js.map +0 -1
  133. package/dist/rules/js/index.d.ts +0 -766
  134. package/dist/rules/js/index.d.ts.map +0 -1
  135. package/dist/rules/js/index.js +0 -7
  136. package/dist/rules/js/index.js.map +0 -1
  137. package/dist/rules/js/stylistic.d.ts +0 -421
  138. package/dist/rules/js/stylistic.d.ts.map +0 -1
  139. package/dist/rules/js/stylistic.js +0 -641
  140. package/dist/rules/js/stylistic.js.map +0 -1
  141. package/dist/rules/json/enable.d.ts +0 -27
  142. package/dist/rules/json/enable.d.ts.map +0 -1
  143. package/dist/rules/json/enable.js +0 -30
  144. package/dist/rules/json/enable.js.map +0 -1
  145. package/dist/rules/json/enable_x.d.ts +0 -50
  146. package/dist/rules/json/enable_x.d.ts.map +0 -1
  147. package/dist/rules/json/enable_x.js +0 -80
  148. package/dist/rules/json/enable_x.js.map +0 -1
  149. package/dist/rules/json/index.d.ts +0 -74
  150. package/dist/rules/json/index.d.ts.map +0 -1
  151. package/dist/rules/json/index.js +0 -7
  152. package/dist/rules/json/index.js.map +0 -1
  153. package/dist/rules/jsonc/index.d.ts +0 -77
  154. package/dist/rules/jsonc/index.d.ts.map +0 -1
  155. package/dist/rules/jsonc/index.js +0 -7
  156. package/dist/rules/jsonc/index.js.map +0 -1
  157. package/dist/rules/jsonc/override.d.ts +0 -6
  158. package/dist/rules/jsonc/override.d.ts.map +0 -1
  159. package/dist/rules/jsonc/override.js +0 -12
  160. package/dist/rules/jsonc/override.js.map +0 -1
  161. package/dist/rules/mocha/disable.d.ts +0 -5
  162. package/dist/rules/mocha/disable.d.ts.map +0 -1
  163. package/dist/rules/mocha/disable.js +0 -8
  164. package/dist/rules/mocha/disable.js.map +0 -1
  165. package/dist/rules/mocha/enable.d.ts +0 -35
  166. package/dist/rules/mocha/enable.d.ts.map +0 -1
  167. package/dist/rules/mocha/enable.js +0 -47
  168. package/dist/rules/mocha/enable.js.map +0 -1
  169. package/dist/rules/mocha/index.d.ts +0 -1171
  170. package/dist/rules/mocha/index.d.ts.map +0 -1
  171. package/dist/rules/mocha/index.js +0 -9
  172. package/dist/rules/mocha/index.js.map +0 -1
  173. package/dist/rules/svelte/disable.d.ts +0 -5
  174. package/dist/rules/svelte/disable.d.ts.map +0 -1
  175. package/dist/rules/svelte/disable.js +0 -8
  176. package/dist/rules/svelte/disable.js.map +0 -1
  177. package/dist/rules/svelte/disable_js.d.ts +0 -6
  178. package/dist/rules/svelte/disable_js.d.ts.map +0 -1
  179. package/dist/rules/svelte/disable_js.js +0 -9
  180. package/dist/rules/svelte/disable_js.js.map +0 -1
  181. package/dist/rules/svelte/disable_ts.d.ts +0 -6
  182. package/dist/rules/svelte/disable_ts.d.ts.map +0 -1
  183. package/dist/rules/svelte/disable_ts.js +0 -9
  184. package/dist/rules/svelte/disable_ts.js.map +0 -1
  185. package/dist/rules/svelte/enable.d.ts +0 -127
  186. package/dist/rules/svelte/enable.d.ts.map +0 -1
  187. package/dist/rules/svelte/enable.js +0 -193
  188. package/dist/rules/svelte/enable.js.map +0 -1
  189. package/dist/rules/svelte/enable_x.d.ts +0 -8
  190. package/dist/rules/svelte/enable_x.d.ts.map +0 -1
  191. package/dist/rules/svelte/enable_x.js +0 -15
  192. package/dist/rules/svelte/enable_x.js.map +0 -1
  193. package/dist/rules/svelte/index.d.ts +0 -1274
  194. package/dist/rules/svelte/index.d.ts.map +0 -1
  195. package/dist/rules/svelte/index.js +0 -15
  196. package/dist/rules/svelte/index.js.map +0 -1
  197. package/dist/rules/ts/disable.d.ts +0 -18
  198. package/dist/rules/ts/disable.d.ts.map +0 -1
  199. package/dist/rules/ts/disable.js +0 -21
  200. package/dist/rules/ts/disable.js.map +0 -1
  201. package/dist/rules/ts/disable_x.d.ts +0 -28
  202. package/dist/rules/ts/disable_x.d.ts.map +0 -1
  203. package/dist/rules/ts/disable_x.js +0 -31
  204. package/dist/rules/ts/disable_x.js.map +0 -1
  205. package/dist/rules/ts/enable.d.ts +0 -265
  206. package/dist/rules/ts/enable.d.ts.map +0 -1
  207. package/dist/rules/ts/enable.js +0 -520
  208. package/dist/rules/ts/enable.js.map +0 -1
  209. package/dist/rules/ts/enable_x.d.ts +0 -72
  210. package/dist/rules/ts/enable_x.d.ts.map +0 -1
  211. package/dist/rules/ts/enable_x.js +0 -108
  212. package/dist/rules/ts/enable_x.js.map +0 -1
  213. package/dist/rules/ts/index.d.ts +0 -1137
  214. package/dist/rules/ts/index.d.ts.map +0 -1
  215. package/dist/rules/ts/index.js +0 -13
  216. package/dist/rules/ts/index.js.map +0 -1
  217. package/dist/rules/yml/enable.d.ts +0 -39
  218. package/dist/rules/yml/enable.d.ts.map +0 -1
  219. package/dist/rules/yml/enable.js +0 -68
  220. package/dist/rules/yml/enable.js.map +0 -1
  221. package/dist/rules/yml/enable_x.d.ts +0 -37
  222. package/dist/rules/yml/enable_x.d.ts.map +0 -1
  223. package/dist/rules/yml/enable_x.js +0 -66
  224. package/dist/rules/yml/enable_x.js.map +0 -1
  225. package/dist/rules/yml/index.d.ts +0 -73
  226. package/dist/rules/yml/index.d.ts.map +0 -1
  227. package/dist/rules/yml/index.js +0 -7
  228. package/dist/rules/yml/index.js.map +0 -1
  229. package/dist/settings.d.ts +0 -7
  230. package/dist/settings.d.ts.map +0 -1
  231. package/dist/settings.js +0 -7
  232. package/dist/settings.js.map +0 -1
  233. package/src/_strings/id.ts +0 -8
  234. package/src/_strings/index.ts +0 -6
  235. package/src/_strings/level.spec.ts +0 -31
  236. package/src/_strings/level.ts +0 -4
  237. package/src/_strings/state.ts +0 -28
  238. package/src/files/index.ts +0 -20
  239. package/src/files/scopes/html.ts +0 -1
  240. package/src/files/scopes/js.ts +0 -4
  241. package/src/files/scopes/json.ts +0 -1
  242. package/src/files/scopes/jsonc.ts +0 -5
  243. package/src/files/scopes/mocha.ts +0 -4
  244. package/src/files/scopes/svelte.ts +0 -1
  245. package/src/files/scopes/ts.ts +0 -1
  246. package/src/files/scopes/yml.ts +0 -1
  247. package/src/ignores/index.ts +0 -31
  248. package/src/ignores/scopes/html.ts +0 -1
  249. package/src/ignores/scopes/js.ts +0 -1
  250. package/src/ignores/scopes/json.ts +0 -1
  251. package/src/ignores/scopes/jsonc.ts +0 -1
  252. package/src/ignores/scopes/mocha.ts +0 -1
  253. package/src/ignores/scopes/svelte.ts +0 -1
  254. package/src/ignores/scopes/ts.ts +0 -1
  255. package/src/ignores/scopes/yml.ts +0 -1
  256. package/src/rules/html/enable.ts +0 -121
  257. package/src/rules/html/index.ts +0 -3
  258. package/src/rules/index.ts +0 -19
  259. package/src/rules/js/enable.ts +0 -547
  260. package/src/rules/js/index.ts +0 -7
  261. package/src/rules/js/stylistic.ts +0 -664
  262. package/src/rules/json/enable.ts +0 -35
  263. package/src/rules/json/enable_x.ts +0 -91
  264. package/src/rules/json/index.ts +0 -7
  265. package/src/rules/jsonc/index.ts +0 -7
  266. package/src/rules/jsonc/override.ts +0 -18
  267. package/src/rules/mocha/disable.ts +0 -11
  268. package/src/rules/mocha/enable.ts +0 -53
  269. package/src/rules/mocha/index.ts +0 -9
  270. package/src/rules/svelte/disable.ts +0 -12
  271. package/src/rules/svelte/disable_js.ts +0 -11
  272. package/src/rules/svelte/disable_ts.ts +0 -9
  273. package/src/rules/svelte/enable.ts +0 -232
  274. package/src/rules/svelte/enable_x.ts +0 -22
  275. package/src/rules/svelte/index.ts +0 -15
  276. package/src/rules/ts/disable.ts +0 -25
  277. package/src/rules/ts/disable_x.ts +0 -35
  278. package/src/rules/ts/enable.ts +0 -569
  279. package/src/rules/ts/enable_x.ts +0 -117
  280. package/src/rules/ts/index.ts +0 -13
  281. package/src/rules/yml/enable.ts +0 -76
  282. package/src/rules/yml/enable_x.ts +0 -73
  283. package/src/rules/yml/index.ts +0 -7
  284. package/src/settings.ts +0 -6
  285. /package/src/{imports/index.ts → imports.ts} +0 -0
  286. /package/src/{imports/parsers.ts → parsers/index.ts} +0 -0
  287. /package/src/{imports/plugins.ts → plugins/index.ts} +0 -0
@@ -1,91 +0,0 @@
1
- import {
2
- enable_x,
3
- ERROR,
4
- OFF,
5
- Always,
6
- Consistent,
7
- Double,
8
- Last,
9
- Never,
10
- Strict,
11
- } from "../../_strings";
12
-
13
- export default [
14
- enable_x,
15
- {
16
- // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
17
- "jsonc/array-bracket-newline": OFF /* DO NOT CHANGE */,
18
- "jsonc/array-bracket-spacing": [
19
- ERROR,
20
- Never,
21
- {
22
- singleValue: false,
23
- objectsInArrays: false,
24
- arraysInArrays: false,
25
- },
26
- ] /* MUST match ../js/stylistic.ts */,
27
- "jsonc/array-element-newline": [
28
- ERROR,
29
- Consistent,
30
- ],
31
- "jsonc/comma-dangle": [ERROR, Never] /* trailing commas are NOT allowed in JSON */,
32
- "jsonc/comma-style": [ERROR, Last],
33
- "jsonc/indent": [ERROR, 2],
34
- "jsonc/key-spacing": [
35
- ERROR,
36
- {
37
- beforeColon: false,
38
- afterColon: true,
39
- mode: Strict,
40
- },
41
- ] /* MUST match ../js/stylistic.ts */,
42
- "jsonc/no-dupe-keys": ERROR,
43
- "jsonc/no-floating-decimal": ERROR,
44
- "jsonc/no-irregular-whitespace": [
45
- ERROR,
46
- {
47
- skipStrings: true,
48
- skipComments: true,
49
- skipRegExps: true,
50
- skipTemplates: true,
51
- skipJSXText: true,
52
- },
53
- ],
54
- "jsonc/no-multi-str": ERROR,
55
- "jsonc/no-octal-escape": ERROR,
56
- "jsonc/no-octal": ERROR,
57
- "jsonc/no-sparse-arrays": ERROR,
58
- "jsonc/no-useless-escape": ERROR,
59
- "jsonc/object-curly-newline": [
60
- ERROR,
61
- {
62
- consistent: true,
63
- multiline: true,
64
- minProperties: 4,
65
- },
66
- ] /* MUST match CHILD of ../js/stylistic.ts */,
67
- "jsonc/object-curly-spacing": [
68
- ERROR,
69
- Always,
70
- {
71
- arraysInObjects: true,
72
- objectsInObjects: true,
73
- },
74
- ] /* MUST match ../js/stylistic.ts */,
75
- "jsonc/object-property-newline": [
76
- ERROR,
77
- {
78
- allowAllPropertiesOnSameLine: true,
79
- },
80
- ] /* MUST match ../js/stylistic.ts */,
81
- "jsonc/quote-props": [ERROR, Always],
82
- "jsonc/quotes": [
83
- ERROR,
84
- Double,
85
- {
86
- avoidEscape: false,
87
- },
88
- ],
89
- "jsonc/space-unary-ops": ERROR,
90
- },
91
- ] as const;
@@ -1,7 +0,0 @@
1
- import enable_x from "./enable_x";
2
- import enable from "./enable";
3
-
4
- export default [
5
- enable_x,
6
- enable,
7
- ];
@@ -1,7 +0,0 @@
1
- import json from "../json";
2
- import override from "./override";
3
-
4
- export default [
5
- ...json,
6
- override,
7
- ];
@@ -1,18 +0,0 @@
1
- import {
2
- override,
3
- ERROR,
4
- OFF,
5
- AlwaysMultiline,
6
- } from "../../_strings";
7
-
8
- export default [
9
- override,
10
- {
11
- // https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#jsonc-rules
12
- "jsonc/no-comments": OFF /* comments ARE allowed in JSONC */,
13
- "jsonc/comma-dangle": [
14
- ERROR,
15
- AlwaysMultiline,
16
- ] /* trailing commas ARE allowed in JSONC */,
17
- },
18
- ] as const;
@@ -1,11 +0,0 @@
1
- import {
2
- disable,
3
- OFF,
4
- } from "../../_strings";
5
-
6
- export default [
7
- disable,
8
- {
9
- "prefer-arrow-callback": OFF,
10
- },
11
- ] as const;
@@ -1,53 +0,0 @@
1
- import {
2
- enable,
3
- ERROR,
4
- WARN,
5
- OFF,
6
- } from "../../_strings";
7
-
8
- export default [
9
- enable,
10
- {
11
- // https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
12
- "mocha/consistent-spacing-between-blocks": OFF,
13
- "mocha/handle-done-callback": [
14
- ERROR,
15
- {
16
- ignoreSkipped: false,
17
- },
18
- ],
19
- "mocha/max-top-level-suites": [
20
- ERROR,
21
- {
22
- limit: 1,
23
- },
24
- ],
25
- "mocha/no-async-describe": ERROR,
26
- "mocha/no-empty-description": ERROR,
27
- "mocha/no-exclusive-tests": ERROR,
28
- "mocha/no-exports": ERROR,
29
- "mocha/no-global-tests": ERROR,
30
- "mocha/no-hooks-for-single-case": OFF,
31
- "mocha/no-hooks": OFF,
32
- "mocha/no-identical-title": ERROR,
33
- "mocha/no-mocha-arrows": ERROR,
34
- "mocha/no-nested-tests": ERROR,
35
- "mocha/no-pending-tests": WARN,
36
- "mocha/no-return-and-callback": ERROR,
37
- "mocha/no-return-from-async": ERROR,
38
- "mocha/no-setup-in-describe": ERROR,
39
- "mocha/no-sibling-hooks": ERROR,
40
- "mocha/no-skipped-tests": ERROR,
41
- "mocha/no-synchronous-tests": OFF,
42
- "mocha/no-top-level-hooks": ERROR,
43
- "mocha/prefer-arrow-callback": [
44
- ERROR,
45
- {
46
- allowNamedFunctions: false,
47
- allowUnboundThis: true,
48
- },
49
- ] /* MUST match ../js/enable.ts */,
50
- "mocha/valid-suite-description": OFF,
51
- "mocha/valid-test-description": OFF,
52
- },
53
- ] as const;
@@ -1,9 +0,0 @@
1
- import ts from "../ts";
2
- import disable from "./disable";
3
- import enable from "./enable";
4
-
5
- export default [
6
- ...ts,
7
- disable,
8
- enable,
9
- ];
@@ -1,12 +0,0 @@
1
- import {
2
- disable,
3
- OFF,
4
- } from "../../_strings";
5
-
6
- export default [
7
- disable,
8
- {
9
- // http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
10
- "no-inner-declarations": OFF /* also disabled in SvelteDisableConflictJs per Svelte base config */,
11
- },
12
- ] as const;
@@ -1,11 +0,0 @@
1
- import { OFF } from "../../_strings";
2
-
3
- export default [
4
- "disable-js",
5
- {
6
- // Pulled from Svelte base config:
7
- // http://github.com/sveltejs/eslint-plugin-svelte/tree/main/src/configs/flat
8
- "no-inner-declarations": OFF /* ESLint */,
9
- "no-self-assign": OFF /* ESLint */,
10
- },
11
- ] as const;
@@ -1,9 +0,0 @@
1
- import { OFF } from "../../_strings";
2
-
3
- export default [
4
- "disable-ts",
5
- {
6
- "no-unused-vars": OFF /* ESLint */,
7
- "@typescript-eslint/no-unused-vars": OFF /* TS Extension */,
8
- },
9
- ] as const;
@@ -1,232 +0,0 @@
1
- import {
2
- enable,
3
- ERROR,
4
- OFF,
5
- Ignore,
6
- Never,
7
- Always,
8
- Below,
9
- Double,
10
- } from "../../_strings";
11
-
12
- export default [
13
- enable,
14
- {
15
- // #region ERRORS
16
- // http://sveltejs.github.io/eslint-plugin-svelte/rules/#possible-errors
17
- "svelte/infinite-reactive-loop": ERROR,
18
- "svelte/no-dom-manipulating": ERROR,
19
- "svelte/no-dupe-else-if-blocks": ERROR,
20
- "svelte/no-dupe-on-directives": ERROR,
21
- "svelte/no-dupe-style-properties": ERROR,
22
- "svelte/no-dupe-use-directives": ERROR,
23
- "svelte/no-dynamic-slot-name": ERROR,
24
- "svelte/no-export-load-in-svelte-module-in-kit-pages": ERROR,
25
- "svelte/no-not-function-handler": ERROR,
26
- "svelte/no-object-in-text-mustaches": ERROR,
27
- "svelte/no-reactive-reassign": [
28
- ERROR,
29
- {
30
- props: true,
31
- },
32
- ],
33
- "svelte/no-shorthand-style-property-overrides": ERROR,
34
- "svelte/no-store-async": ERROR,
35
- "svelte/no-unknown-style-directive-property": [
36
- ERROR,
37
- {
38
- ignorePrefixed: true,
39
- },
40
- ],
41
- "svelte/require-store-callbacks-use-set-param": ERROR,
42
- "svelte/require-store-reactive-access": ERROR,
43
- "svelte/valid-compile": [
44
- ERROR,
45
- {
46
- ignoreWarnings: false,
47
- },
48
- ],
49
- "svelte/valid-prop-names-in-kit-pages": ERROR,
50
-
51
- // #endregion ERRORS
52
-
53
- // #region SECURITY
54
- // http://sveltejs.github.io/eslint-plugin-svelte/rules/#security-vulnerability
55
- "svelte/no-at-html-tags": ERROR,
56
- "svelte/no-target-blank": [
57
- ERROR,
58
- {
59
- allowReferrer: false,
60
- enforceDynamicLinks: Always,
61
- },
62
- ],
63
-
64
- // #endregion SECURITY
65
-
66
- // #region BEST PRACTICES
67
- // http://sveltejs.github.io/eslint-plugin-svelte/rules/#best-practices
68
- "svelte/block-lang": [
69
- ERROR,
70
- {
71
- enforceScriptPresent: true,
72
- enforceStylePresent: false,
73
- script: ["ts"],
74
- style: [
75
- "css",
76
- "scss",
77
- ],
78
- },
79
- ], /* INVESTIGATE: */
80
- "svelte/button-has-type": [
81
- ERROR,
82
- {
83
- button: true,
84
- submit: true,
85
- reset: true,
86
- },
87
- ],
88
- "svelte/no-at-debug-tags": ERROR,
89
- "svelte/no-ignored-unsubscribe": ERROR,
90
- "svelte/no-immutable-reactive-statements": ERROR,
91
- "svelte/no-inline-styles": [
92
- ERROR,
93
- {
94
- allowTransitions: false,
95
- },
96
- ],
97
- "svelte/no-reactive-functions": ERROR,
98
- "svelte/no-reactive-literals": ERROR,
99
- "svelte/no-svelte-internal": ERROR,
100
- "svelte/no-unused-class-name": ERROR, /* BUG: ESLint error if array empty */
101
- "svelte/no-unused-svelte-ignore": ERROR,
102
- "svelte/no-useless-mustaches": [
103
- ERROR,
104
- {
105
- ignoreIncludesComment: false,
106
- ignoreStringEscape: false,
107
- },
108
- ],
109
- "svelte/prefer-destructured-store-props": ERROR,
110
- "svelte/require-each-key": ERROR,
111
- "svelte/require-event-dispatcher-types": ERROR,
112
- "svelte/require-optimized-style-attribute": ERROR,
113
- "svelte/require-stores-init": ERROR,
114
- "svelte/valid-each-key": ERROR,
115
-
116
- // #endregion BEST PRACTICES
117
-
118
- // #region STYLE
119
- // http://sveltejs.github.io/eslint-plugin-svelte/rules/#stylistic-issues
120
- "svelte/derived-has-same-inputs-outputs": ERROR,
121
- "svelte/first-attribute-linebreak": [
122
- ERROR,
123
- {
124
- multiline: Below,
125
- singleline: Below,
126
- },
127
- ],
128
- "svelte/html-closing-bracket-spacing": [
129
- ERROR,
130
- {
131
- startTag: Never,
132
- endTag: Never,
133
- selfClosingTag: Always,
134
- },
135
- ],
136
- "svelte/html-quotes": [
137
- ERROR,
138
- {
139
- prefer: Double,
140
- dynamic: {
141
- quoted: false,
142
- avoidInvalidUnquotedInHTML: true,
143
- },
144
- },
145
- ],
146
- "svelte/html-self-closing": [
147
- ERROR,
148
- {
149
- "void": Always,
150
- foreign: Always,
151
- component: Always,
152
- svelte: Always,
153
- normal: Ignore,
154
- } /* always | never | ignore */,
155
- ],
156
- "svelte/indent": [
157
- ERROR,
158
- {
159
- indent: 2,
160
- switchCase: 1,
161
- alignAttributesVertically: true,
162
- },
163
- ],
164
- "svelte/max-attributes-per-line": [
165
- ERROR,
166
- {
167
- multiline: 1,
168
- singleline: 1,
169
- },
170
- ],
171
- "svelte/mustache-spacing": [
172
- ERROR,
173
- {
174
- textExpressions: Never /* or ALWAYS */,
175
- attributesAndProps: Never /* or ALWAYS */,
176
- directiveExpressions: Never /* or ALWAYS */,
177
- tags: {
178
- openingBrace: Never /* or ALWAYS */,
179
- closingBrace: Never /* or ALWAYS or "always-after-expression" */,
180
- },
181
- },
182
- ],
183
- "svelte/no-extra-reactive-curlies": ERROR,
184
- "svelte/no-restricted-html-elements": OFF,
185
- "svelte/no-spaces-around-equal-signs-in-attribute": ERROR,
186
- "svelte/prefer-class-directive": [
187
- ERROR,
188
- {
189
- prefer: "empty",
190
- },
191
- ],
192
- "svelte/prefer-style-directive": ERROR,
193
- "svelte/shorthand-attribute": [
194
- ERROR,
195
- {
196
- prefer: Always,
197
- },
198
- ],
199
- "svelte/shorthand-directive": [
200
- ERROR,
201
- {
202
- prefer: Always,
203
- },
204
- ],
205
- "svelte/sort-attributes": OFF /* INVESTIGATE: */,
206
- "svelte/spaced-html-comment": [
207
- ERROR,
208
- Always,
209
- ],
210
-
211
- // #endregion STYLE
212
-
213
- // #region SVELTE-KIT
214
- // http://sveltejs.github.io/eslint-plugin-svelte/rules/#svelte-kit
215
- "svelte/no-goto-without-base": ERROR,
216
-
217
- // #endregion SVELTE-KIT
218
-
219
- // #region REQUIRED
220
- // http://sveltejs.github.io/eslint-plugin-svelte/rules/#system
221
- "svelte/comment-directive": [
222
- ERROR,
223
- {
224
- reportUnusedDisableDirectives: true,
225
- },
226
- ],
227
- "svelte/system": ERROR,
228
-
229
- // #endregion REQUIRED
230
-
231
- },
232
- ] as const;
@@ -1,22 +0,0 @@
1
- import {
2
- enable_x,
3
- ERROR,
4
- OFF,
5
- Allow,
6
- Both,
7
- } from "../../_strings";
8
-
9
- export default [
10
- enable_x,
11
- {
12
- // http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
13
- "svelte/no-inner-declarations": [
14
- ERROR,
15
- Both,
16
- {
17
- blockScopedFunctions: Allow,
18
- },
19
- ] /* Same options as in JsEnable */,
20
- "svelte/no-trailing-spaces": OFF /* Only applies to HTML comments, which I don't intend to use: http://sveltejs.github.io/eslint-plugin-svelte/rules/no-trailing-spaces/ */,
21
- },
22
- ] as const;
@@ -1,15 +0,0 @@
1
- import ts from "../ts";
2
- import disable_js from "./disable_js";
3
- import disable_ts from "./disable_ts";
4
- import disable from "./disable";
5
- import enable_x from "./enable_x";
6
- import enable from "./enable";
7
-
8
- export default [
9
- ...ts,
10
- disable_js,
11
- disable_ts,
12
- disable,
13
- enable_x,
14
- enable,
15
- ];
@@ -1,25 +0,0 @@
1
- import {
2
- disable,
3
- OFF,
4
- } from "../../_strings";
5
-
6
- export default [
7
- disable,
8
- {
9
- // Handled by TypeScript compiler
10
- "constructor-super": OFF,
11
- "no-const-assign": OFF,
12
- "no-dupe-args": OFF,
13
- "no-dupe-class-members": OFF,
14
- "no-dupe-keys": OFF,
15
- "no-func-assign": OFF,
16
- "no-obj-calls": OFF,
17
- "no-setter-return": OFF,
18
- "no-this-before-super": OFF,
19
- "no-undef": OFF,
20
- "no-unreachable": OFF,
21
- "no-unsafe-negation": OFF,
22
- "consistent-return": OFF,
23
- "no-redeclare": OFF,
24
- },
25
- ] as const;
@@ -1,35 +0,0 @@
1
- import {
2
- disable_x,
3
- OFF,
4
- } from "../../_strings";
5
-
6
- export default [
7
- disable_x,
8
- {
9
- // https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
10
- "class-methods-use-this": OFF,
11
- "consistent-return": OFF,
12
- "default-param-last": OFF,
13
- "dot-notation": OFF,
14
- "init-declarations": OFF,
15
- "max-params": OFF,
16
- "no-array-constructor": OFF,
17
- "no-dupe-class-members": OFF,
18
- "no-empty-function": OFF,
19
- "no-implied-eval": OFF,
20
- "no-invalid-this": OFF,
21
- "no-loop-func": OFF,
22
- "no-magic-numbers": OFF,
23
- "no-redeclare": OFF,
24
- "no-restricted-imports": OFF,
25
- "no-shadow": OFF,
26
- "no-throw-literal": OFF /* @typescript-eslint/only-throw-error */,
27
- "no-unused-expressions": OFF,
28
- "no-unused-vars": OFF,
29
- "no-use-before-define": OFF,
30
- "no-useless-constructor": OFF,
31
- "prefer-destructuring": OFF,
32
- "prefer-promise-reject-errors": OFF,
33
- "require-await": OFF,
34
- },
35
- ] as const;