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,121 +0,0 @@
1
- import type Rule from "@html-eslint/eslint-plugin/types/rules";
2
- import {
3
- enable,
4
- ERROR,
5
- OFF,
6
- Never,
7
- } from "../../_strings";
8
- import type { RuleRecord } from "@eslinted/core";
9
-
10
- const rules: Partial<Record<`@html-eslint/${keyof typeof Rule}`, RuleRecord[string]>> = {
11
- // #region BEST PRACTICE
12
- // https://html-eslint.org/docs/rules#best-practice
13
- "@html-eslint/no-duplicate-attrs": ERROR,
14
- "@html-eslint/no-duplicate-id": ERROR,
15
- "@html-eslint/no-extra-spacing-text": [
16
- ERROR,
17
- {
18
- skip: [],
19
- },
20
- ],
21
- "@html-eslint/no-inline-styles": OFF /* breaks Svele app.html */,
22
- "@html-eslint/no-obsolete-tags": ERROR,
23
- "@html-eslint/no-restricted-attr-values": OFF,
24
- "@html-eslint/no-restricted-attrs": OFF,
25
- "@html-eslint/no-script-style-type": OFF,
26
- "@html-eslint/no-target-blank": ERROR,
27
- "@html-eslint/require-attrs": OFF,
28
- "@html-eslint/require-button-type": ERROR,
29
- "@html-eslint/require-closing-tags": [
30
- ERROR,
31
- {
32
- selfClosing: Never,
33
- selfClosingCustomPatterns: [""] /* regex[], intention: any custom pattern is allowed */,
34
- },
35
- ],
36
- "@html-eslint/require-doctype": ERROR,
37
- "@html-eslint/require-li-container": ERROR,
38
- "@html-eslint/require-meta-charset": ERROR,
39
-
40
- // #endregion BEST PRACTICE
41
-
42
- // #region SEO
43
- // https://html-eslint.org/docs/rules#seo
44
- "@html-eslint/no-multiple-h1": ERROR,
45
- "@html-eslint/require-lang": ERROR,
46
- "@html-eslint/require-meta-description": OFF /* breaks Svelte which leaves meta descriptions to route leaves */,
47
- "@html-eslint/require-open-graph-protocol": OFF /* idk what this is */,
48
- "@html-eslint/require-title": OFF /* breaks Svelte which leaves title to route leaves */,
49
-
50
- // #endregion SEO
51
-
52
- // #region ACCESSIBILITY
53
- // https://html-eslint.org/docs/rules#accessibility
54
- "@html-eslint/no-abstract-roles": ERROR,
55
- "@html-eslint/no-accesskey-attrs": ERROR,
56
- "@html-eslint/no-aria-hidden-body": ERROR,
57
- "@html-eslint/no-non-scalable-viewport": ERROR,
58
- "@html-eslint/no-positive-tabindex": ERROR,
59
- "@html-eslint/no-skip-heading-levels": ERROR,
60
- "@html-eslint/require-frame-title": ERROR,
61
- "@html-eslint/require-img-alt": [
62
- ERROR,
63
- {
64
- substitute: [],
65
- },
66
- ],
67
- "@html-eslint/require-meta-viewport": ERROR,
68
-
69
- // #endregion ACCESSIBILITY
70
-
71
- // #region STYLE
72
- // https://html-eslint.org/docs/rules#style
73
-
74
- // #endregion STYLE
75
- "@html-eslint/attrs-newline": [
76
- ERROR,
77
- {
78
- ifAttrsMoreThan: 0,
79
- closeStyle: "sameline",
80
- },
81
- ],
82
- "@html-eslint/element-newline": [
83
- ERROR,
84
- {
85
- skip: ["head"],
86
- inline: ["$inline"],
87
- },
88
- ],
89
- "@html-eslint/id-naming-convention": OFF,
90
- "@html-eslint/indent": [
91
- ERROR,
92
- 2,
93
- ],
94
- "@html-eslint/lowercase": ERROR,
95
- "@html-eslint/no-extra-spacing-attrs": [
96
- ERROR,
97
- {
98
- enforceBeforeSelfClose: true,
99
- disallowMissing: true,
100
- disallowTabs: true,
101
- disallowInAssignment: true,
102
- },
103
- ],
104
- "@html-eslint/no-multiple-empty-lines": [
105
- ERROR,
106
- {
107
- max: 1,
108
- },
109
- ],
110
- "@html-eslint/no-trailing-spaces": ERROR,
111
- "@html-eslint/quotes": [
112
- ERROR,
113
- "double",
114
- ],
115
- "@html-eslint/sort-attrs": OFF,
116
- } as const;
117
-
118
- export default [
119
- enable,
120
- rules,
121
- ] as const;
@@ -1,3 +0,0 @@
1
- import enable from "./enable";
2
-
3
- export default [enable];
@@ -1,19 +0,0 @@
1
- import js from "./js";
2
- import ts from "./ts";
3
- import svelte from "./svelte";
4
- import mocha from "./mocha";
5
- import html from "./html";
6
- import json from "./json";
7
- import jsonc from "./jsonc";
8
- import yml from "./yml";
9
-
10
- export default {
11
- js,
12
- ts,
13
- svelte,
14
- mocha,
15
- html,
16
- json,
17
- jsonc,
18
- yml,
19
- };
@@ -1,547 +0,0 @@
1
- import {
2
- enable,
3
- ERROR,
4
- OFF,
5
- Never,
6
- Always,
7
- AsNeeded,
8
- Consecutive,
9
- Allow,
10
- All,
11
- Multi,
12
- Both,
13
- } from "../../_strings";
14
-
15
- export default [
16
- enable,
17
- {
18
- // #region PROBLEMS
19
- // https://eslint.org/docs/latest/rules/#possible-problems
20
- "array-callback-return": [
21
- ERROR,
22
- {
23
- allowImplicit: false,
24
- checkForEach: true,
25
- allowVoid: true,
26
- },
27
- ],
28
- "constructor-super": ERROR, /* tsc */
29
- "for-direction": ERROR,
30
- "getter-return": [
31
- ERROR,
32
- {
33
- allowImplicit: false,
34
- },
35
- ], /* tsc */
36
- "no-async-promise-executor": ERROR,
37
- "no-await-in-loop": ERROR,
38
- "no-class-assign": ERROR,
39
- "no-compare-neg-zero": ERROR,
40
- "no-cond-assign": [
41
- ERROR,
42
- Always,
43
- ],
44
- "no-const-assign": ERROR, /* tsc */
45
- "no-constant-binary-expression": ERROR,
46
- "no-constant-condition": [
47
- ERROR,
48
- {
49
- checkLoops: true,
50
- },
51
- ] /* BUG: incorrect option description (claims "all" is ok): https://eslint.org/docs/latest/rules/no-constant-condition */,
52
- "no-constructor-return": ERROR,
53
- "no-control-regex": ERROR,
54
- "no-debugger": ERROR,
55
- "no-dupe-args": ERROR, /* tsc */
56
- "no-dupe-class-members": ERROR, /* tsc -- TSLint:off: tsc */
57
- "no-dupe-else-if": ERROR,
58
- "no-dupe-keys": ERROR, /* tsc */
59
- "no-duplicate-case": ERROR,
60
- "no-duplicate-imports": OFF /* BUG: breaks separation of TS type-only imports from value imports */,
61
- "no-empty-character-class": ERROR,
62
- "no-empty-pattern": [
63
- ERROR,
64
- {
65
- allowObjectPatternsAsParameters: false,
66
- },
67
- ],
68
- "no-ex-assign": ERROR,
69
- "no-fallthrough": [
70
- ERROR,
71
- {
72
- allowEmptyCase: true,
73
- reportUnusedFallthroughComment: true,
74
- },
75
- ],
76
- "no-func-assign": ERROR, /* tsc */
77
- "no-import-assign": ERROR, /* tsc (except Object.assign()) */
78
- "no-inner-declarations": [
79
- ERROR,
80
- Both,
81
- {
82
- blockScopedFunctions: Allow,
83
- },
84
- ],
85
- "no-invalid-regexp": [
86
- ERROR,
87
- {
88
- allowConstructorFlags: [],
89
- },
90
- ],
91
- "no-irregular-whitespace": [
92
- ERROR,
93
- {
94
- skipStrings: true,
95
- skipComments: true,
96
- skipRegExps: true,
97
- skipTemplates: true,
98
- skipJSXText: true,
99
- },
100
- ],
101
- "no-loss-of-precision": ERROR /* TSLint */,
102
- "no-misleading-character-class": ERROR,
103
- "no-new-native-nonconstructor": ERROR,
104
- "no-obj-calls": ERROR, /* tsc */
105
- "no-promise-executor-return": [
106
- ERROR,
107
- {
108
- allowVoid: true,
109
- },
110
- ],
111
- "no-prototype-builtins": ERROR,
112
- "no-self-assign": [
113
- ERROR,
114
- {
115
- props: true,
116
- },
117
- ],
118
- "no-self-compare": ERROR,
119
- "no-setter-return": ERROR, /* tsc */
120
- "no-sparse-arrays": ERROR,
121
- "no-template-curly-in-string": ERROR,
122
- "no-this-before-super": ERROR, /* tsc */
123
- "no-undef": ERROR, /* tsc */
124
- "no-unexpected-multiline": ERROR,
125
- "no-unmodified-loop-condition": ERROR,
126
- "no-unreachable": ERROR, /* tsc */
127
- "no-unreachable-loop": [
128
- ERROR,
129
- {
130
- ignore: [] /* WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement */,
131
- },
132
- ],
133
- "no-unsafe-finally": ERROR,
134
- "no-unsafe-negation": [
135
- ERROR,
136
- {
137
- enforceForOrderingRelations: true,
138
- },
139
- ], /* tsc */
140
- "no-unsafe-optional-chaining": [
141
- ERROR,
142
- {
143
- disallowArithmeticOperators: true,
144
- },
145
- ],
146
- "no-unused-private-class-members": ERROR,
147
- "no-unused-vars": [
148
- ERROR,
149
- {
150
- vars: All,
151
- args: All,
152
- caughtErrors: All,
153
- ignoreRestSiblings: false,
154
- ignoreClassWithStaticInitBlock: false,
155
- reportUsedIgnorePattern: true,
156
- },
157
- ] /* TSLint */,
158
- "no-use-before-define": [
159
- ERROR,
160
- {
161
- functions: true,
162
- classes: true,
163
- variables: true,
164
- allowNamedExports: false,
165
- },
166
- ] /* TSLint */,
167
- "no-useless-assignment": ERROR,
168
- "no-useless-backreference": ERROR,
169
- "require-atomic-updates": [
170
- ERROR,
171
- {
172
- allowProperties: false,
173
- },
174
- ],
175
- "use-isnan": [
176
- ERROR,
177
- {
178
- enforceForSwitchCase: true,
179
- enforceForIndexOf: true,
180
- },
181
- ],
182
- "valid-typeof": [
183
- ERROR,
184
- {
185
- requireStringLiterals: true,
186
- },
187
- ],
188
-
189
- // #endregion PROBLEMS
190
-
191
- // #region SUGGESTIONS
192
- // [ https://eslint.org/docs/latest/rules/#suggestions ]
193
- "accessor-pairs": [
194
- ERROR,
195
- {
196
- setWithoutGet: true,
197
- getWithoutSet: false,
198
- enforceForClassMembers: true,
199
- },
200
- ],
201
- "arrow-body-style": [
202
- ERROR,
203
- AsNeeded,
204
- {
205
- requireReturnForObjectLiteral: true,
206
- },
207
- ],
208
- "block-scoped-var": ERROR,
209
- camelcase: OFF /* preference */,
210
- "capitalized-comments": OFF /* preference */,
211
- "class-methods-use-this": OFF, /* preference -- TSLint */
212
- complexity: OFF /* preference */,
213
- "consistent-return": [
214
- ERROR,
215
- {
216
- treatUndefinedAsUnspecified: false,
217
- },
218
- ] /* tsc -- TSLint:off: tsconfig: noImplicitReturns */,
219
- "consistent-this": ERROR,
220
- curly: [
221
- ERROR,
222
- Multi,
223
- ],
224
- "default-case": OFF, /* preference: don't care */
225
- "default-case-last": ERROR,
226
- "default-param-last": ERROR /* TSLint */,
227
- "dot-notation": [
228
- ERROR,
229
- {
230
- allowKeywords: true,
231
- },
232
- ] /* TSLint */,
233
- eqeqeq: [
234
- ERROR,
235
- Always,
236
- ],
237
- "func-name-matching": OFF /* preference */,
238
- "func-names": OFF /* preference */,
239
- "func-style": OFF /* preference */,
240
- "grouped-accessor-pairs": OFF /* preference -- BUG: requires adjacency, not as described in documentation */,
241
- "guard-for-in": OFF, /* preference - not helpful because using for-in on non-literal objects is bad practice and this rule doesn't guard against that anyway, while adding a pointless check to known object literals */
242
- "id-denylist": OFF /* preference */,
243
- "id-length": OFF /* preference */,
244
- "id-match": OFF /* preference */,
245
- "init-declarations": [
246
- ERROR,
247
- Always,
248
- ] /* TSLint */,
249
- "logical-assignment-operators": [
250
- ERROR,
251
- Always,
252
- {
253
- enforceForIfStatements: true,
254
- },
255
- ],
256
- "max-classes-per-file": OFF /* preference */,
257
- "max-depth": OFF /* preference */,
258
- "max-lines": OFF /* preference */,
259
- "max-lines-per-function": OFF /* preference */,
260
- "max-nested-callbacks": OFF /* preference */,
261
- "max-params": OFF, /* preference -- TSLint:off: preference */
262
- "max-statements": OFF /* preference */,
263
- "multiline-comment-style": OFF /* preference */,
264
- "new-cap": OFF, /* preference -- breaks Scriptable */
265
- "no-alert": ERROR,
266
- "no-array-constructor": ERROR /* TSLint */,
267
- "no-bitwise": [
268
- ERROR,
269
- {
270
- allow: [],
271
- int32Hint: true,
272
- },
273
- ],
274
- "no-caller": ERROR,
275
- "no-case-declarations": ERROR,
276
- "no-console": OFF, /* preference -- breaks Node.js console applications and Scriptable, and otherwise unnecessarily hampers browser test code */
277
- "no-continue": ERROR,
278
- "no-delete-var": ERROR,
279
- "no-div-regex": ERROR,
280
- "no-else-return": OFF /* preference */,
281
- "no-empty": [
282
- ERROR,
283
- {
284
- allowEmptyCatch: false,
285
- },
286
- ],
287
- "no-empty-function": [
288
- ERROR,
289
- {
290
- allow:
291
- ["constructors"] /** functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */,
292
- },
293
- ] /* TSLint */,
294
- "no-empty-static-block": ERROR,
295
- "no-eq-null": ERROR,
296
- "no-eval": [
297
- ERROR,
298
- {
299
- allowIndirect: false,
300
- },
301
- ],
302
- "no-extend-native": [
303
- ERROR,
304
- {
305
- exceptions: [],
306
- },
307
- ],
308
- "no-extra-bind": ERROR,
309
- "no-extra-boolean-cast": [
310
- ERROR,
311
- {
312
- enforceForLogicalOperands: true,
313
- },
314
- ],
315
- "no-extra-label": ERROR,
316
- "no-global-assign": [
317
- ERROR,
318
- {
319
- exceptions: [],
320
- },
321
- ],
322
- "no-implicit-coercion": [
323
- ERROR,
324
- {
325
- "boolean": true,
326
- number: true,
327
- string: true,
328
- disallowTemplateShorthand: true,
329
- allow: [] /** "~" | "!!" | "+" | "- -" | "-" | "*" */,
330
- },
331
- ],
332
- "no-implicit-globals": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
333
- "no-implied-eval": ERROR /* TSLint */,
334
- "no-inline-comments": OFF /* preference */,
335
- "no-invalid-this": [
336
- ERROR,
337
- { capIsConstructor: false },
338
- ] /* TSLint:off: tsconfig: { strict, noImplicitThis } */,
339
- "no-iterator": ERROR,
340
- "no-label-var": ERROR,
341
- "no-lone-blocks": ERROR,
342
- "no-lonely-if": OFF /* preference */,
343
- "no-loop-func": ERROR /* TSLint */,
344
- "no-magic-numbers": OFF /* preference - breaks TypeScript number literals, even with most liberal exceptions */,
345
- "no-multi-assign": [
346
- ERROR,
347
- {
348
- ignoreNonDeclaration: false,
349
- },
350
- ],
351
- "no-multi-str": ERROR,
352
- "no-negated-condition": OFF /* preference */,
353
- "no-nested-ternary": OFF /* preference */,
354
- "no-new": ERROR,
355
- "no-new-func": ERROR,
356
- "no-new-wrappers": ERROR,
357
- "no-nonoctal-decimal-escape": ERROR,
358
- "no-object-constructor": ERROR,
359
- "no-octal": ERROR,
360
- "no-octal-escape": ERROR,
361
- "no-param-reassign": [
362
- ERROR,
363
- {
364
- props: true,
365
- ignorePropertyModificationsFor: [],
366
- ignorePropertyModificationsForRegex: [],
367
- },
368
- ],
369
- "no-plusplus": [
370
- ERROR,
371
- {
372
- allowForLoopAfterthoughts: true,
373
- },
374
- ],
375
- "no-proto": ERROR,
376
- "no-redeclare": [
377
- ERROR,
378
- { builtinGlobals: true },
379
- ] /* tsc -- TSLint:off: tsc (let, const, -var) */,
380
- "no-regex-spaces": OFF /* preference */,
381
- "no-restricted-exports": OFF /* preference */,
382
- "no-restricted-globals": OFF /* preference */,
383
- "no-restricted-imports": OFF /* preference -- TSLint:off */,
384
- "no-restricted-properties": OFF /* preference */,
385
- "no-restricted-syntax": OFF /* preference */,
386
- "no-return-assign": OFF /* "always" | "except-parens" (disallow assignments unless enclosed in parens) */,
387
- "no-script-url": ERROR,
388
- "no-sequences": [
389
- ERROR,
390
- {
391
- allowInParentheses: true,
392
- },
393
- ],
394
- "no-shadow": OFF /* investigate -- TSLint:off: investigate */,
395
- "no-shadow-restricted-names": ERROR,
396
- "no-ternary": OFF /* preference */,
397
- "no-throw-literal": ERROR /* TSLint */,
398
- "no-undef-init": ERROR,
399
- "no-undefined": OFF /* investigate (breaks Scriptable? breaks Sveltekit?) */,
400
- "no-underscore-dangle": OFF /* preference */,
401
- "no-unneeded-ternary": [
402
- ERROR,
403
- {
404
- defaultAssignment: false,
405
- },
406
- ],
407
- "no-unused-expressions": [
408
- ERROR,
409
- {
410
- allowShortCircuit: true,
411
- allowTernary: true,
412
- allowTaggedTemplates: true,
413
- enforceForJSX: false,
414
- },
415
- ] /* TSLint */,
416
- "no-unused-labels": ERROR,
417
- "no-useless-call": ERROR,
418
- "no-useless-catch": ERROR,
419
- "no-useless-computed-key": [
420
- ERROR,
421
- {
422
- enforceForClassMembers: true,
423
- },
424
- ],
425
- "no-useless-concat": ERROR,
426
- "no-useless-constructor": ERROR /* TSLint */,
427
- "no-useless-escape": ERROR,
428
- "no-useless-rename": [
429
- ERROR,
430
- {
431
- ignoreImport: false,
432
- ignoreExport: false,
433
- ignoreDestructuring: false,
434
- },
435
- ],
436
- "no-useless-return": ERROR,
437
- "no-var": ERROR,
438
- "no-void": [
439
- ERROR,
440
- {
441
- allowAsStatement: true,
442
-
443
- },
444
- ],
445
- "no-warning-comments": OFF /* preference */,
446
- "no-with": ERROR,
447
- "object-shorthand": [
448
- ERROR,
449
- Always,
450
- {
451
- avoidQuotes: true,
452
- ignoreConstructors: false,
453
- avoidExplicitReturnArrows: false,
454
- },
455
- ],
456
- "one-var": [
457
- ERROR,
458
- {
459
- "var": Consecutive,
460
- let: Consecutive,
461
- "const": Consecutive,
462
- separateRequires: true,
463
- },
464
- ],
465
- "operator-assignment": [
466
- ERROR,
467
- Always,
468
- ],
469
- "prefer-arrow-callback": [
470
- ERROR,
471
- {
472
- allowNamedFunctions: false,
473
- allowUnboundThis: true,
474
- },
475
- ],
476
- "prefer-const": [
477
- ERROR,
478
- {
479
- destructuring: All,
480
- ignoreReadBeforeAssign: false,
481
- },
482
- ],
483
- "prefer-destructuring": [
484
- ERROR,
485
- {
486
- VariableDeclarator: {
487
- array: true,
488
- object: true,
489
- },
490
- AssignmentExpression: {
491
- array: false,
492
- object: false,
493
- },
494
- },
495
- { enforceForRenamedProperties: true },
496
- ] /* TSLint */,
497
- "prefer-exponentiation-operator": ERROR,
498
- "prefer-named-capture-group": OFF,
499
- "prefer-numeric-literals": ERROR,
500
- "prefer-object-has-own": ERROR,
501
- "prefer-object-spread": ERROR,
502
- "prefer-promise-reject-errors": [
503
- ERROR,
504
- {
505
- allowEmptyReject: false,
506
- },
507
- ],
508
- "prefer-regex-literals": [
509
- ERROR,
510
- {
511
- disallowRedundantWrapping: true,
512
- },
513
- ] /* TSLint */,
514
- "prefer-rest-params": ERROR,
515
- "prefer-spread": ERROR,
516
- "prefer-template": ERROR,
517
- radix: [
518
- ERROR,
519
- AsNeeded,
520
- ],
521
- "require-await": ERROR /* TSLint */,
522
- "require-unicode-regexp": ERROR,
523
- "require-yield": ERROR,
524
- "sort-imports": OFF /* preference */,
525
- "sort-keys": OFF /* preference */,
526
- "sort-vars": OFF /* preference */,
527
- strict: OFF /* preference */,
528
- "symbol-description": OFF /* preference */,
529
- "vars-on-top": ERROR,
530
- yoda: [
531
- ERROR,
532
- Never,
533
- {
534
- exceptRange: false,
535
- onlyEquality: false,
536
- },
537
- ],
538
-
539
- // #endregion SUGGESTIONS
540
-
541
- // #region LAYOUT & FORMATTING
542
- // [ https://eslint.org/docs/latest/rules/#layout--formatting ]
543
- "unicode-bom": OFF /* preference: don't care */,
544
-
545
- // #endregion LAYOUT & FORMATTING
546
- },
547
- ] as const;
@@ -1,7 +0,0 @@
1
- import stylistic from "./stylistic";
2
- import enable from "./enable";
3
-
4
- export default [
5
- stylistic,
6
- enable,
7
- ];