linted 22.0.0 → 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,569 +0,0 @@
1
- import {
2
- enable,
3
- ERROR,
4
- OFF,
5
- Never,
6
- Explicit,
7
- } from "../../_strings";
8
-
9
- export default [
10
- enable,
11
- {
12
- // https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
13
- "@typescript-eslint/adjacent-overload-signatures": OFF,
14
- "@typescript-eslint/array-type": [
15
- ERROR,
16
- {
17
- "default": "array",
18
- readonly: "array",
19
- },
20
- ],
21
- "@typescript-eslint/await-thenable": ERROR,
22
- "@typescript-eslint/ban-ts-comment": [
23
- ERROR,
24
- {
25
- "ts-check": false,
26
- "ts-expect-error": {
27
- descriptionFormat: "^: BUG: .+$",
28
- },
29
- "ts-ignore": true,
30
- "ts-nocheck": true,
31
- minimumDescriptionLength: 32,
32
- },
33
- ],
34
- "@typescript-eslint/ban-tslint-comment": ERROR,
35
- "@typescript-eslint/class-literal-property-style": [
36
- ERROR,
37
- "fields",
38
- ],
39
- "@typescript-eslint/consistent-generic-constructors": [
40
- ERROR,
41
- "constructor",
42
- ],
43
- "@typescript-eslint/consistent-indexed-object-style": [
44
- ERROR,
45
- "record",
46
- ],
47
- "@typescript-eslint/consistent-type-assertions": [
48
- ERROR,
49
- {
50
- assertionStyle: "as",
51
- objectLiteralTypeAssertions: Never,
52
- },
53
- ],
54
- "@typescript-eslint/consistent-type-definitions": OFF,
55
- "@typescript-eslint/consistent-type-exports": [
56
- ERROR,
57
- {
58
- fixMixedExportsWithInlineTypeSpecifier: false,
59
- },
60
- ],
61
- "@typescript-eslint/consistent-type-imports": [
62
- ERROR,
63
- {
64
- disallowTypeAnnotations: true,
65
- fixStyle: "separate-type-imports",
66
- prefer: "type-imports",
67
- },
68
- ],
69
- "@typescript-eslint/explicit-function-return-type": OFF,
70
- "@typescript-eslint/explicit-member-accessibility": [
71
- ERROR,
72
- {
73
- accessibility: Explicit,
74
- ignoredMethodNames: [],
75
- overrides: {
76
- properties: Explicit,
77
- constructors: "no-public",
78
- accessors: Explicit,
79
- methods: Explicit,
80
- parameterProperties: Explicit,
81
- },
82
- },
83
- ],
84
- "@typescript-eslint/explicit-module-boundary-types": OFF,
85
- "@typescript-eslint/member-ordering": [
86
- ERROR,
87
- {
88
- "default": {
89
- memberTypes: [
90
- // Index signature
91
- "signature",
92
- "call-signature",
93
-
94
- // Fields
95
- "public-static-field",
96
- "protected-static-field",
97
- "private-static-field",
98
- "#private-static-field",
99
-
100
- "public-decorated-field",
101
- "protected-decorated-field",
102
- "private-decorated-field",
103
-
104
- "public-instance-field",
105
- "protected-instance-field",
106
- "private-instance-field",
107
- "#private-instance-field",
108
-
109
- "public-abstract-field",
110
- "protected-abstract-field",
111
-
112
- "public-field",
113
- "protected-field",
114
- "private-field",
115
- "#private-field",
116
-
117
- "static-field",
118
- "instance-field",
119
- "abstract-field",
120
- "decorated-field",
121
- "field",
122
-
123
- // Static initialization
124
- "static-initialization",
125
-
126
- // Constructors
127
- "public-constructor",
128
- "protected-constructor",
129
- "private-constructor",
130
- "constructor",
131
-
132
- // Accessors
133
- "public-static-accessor",
134
- "protected-static-accessor",
135
- "private-static-accessor",
136
- "#private-static-accessor",
137
-
138
- "public-decorated-accessor",
139
- "protected-decorated-accessor",
140
- "private-decorated-accessor",
141
-
142
- "public-instance-accessor",
143
- "protected-instance-accessor",
144
- "private-instance-accessor",
145
- "#private-instance-accessor",
146
-
147
- "public-abstract-accessor",
148
- "protected-abstract-accessor",
149
-
150
- "public-accessor",
151
- "protected-accessor",
152
- "private-accessor",
153
- "#private-accessor",
154
-
155
- "static-accessor",
156
- "instance-accessor",
157
- "abstract-accessor",
158
- "decorated-accessor",
159
- "accessor",
160
-
161
- // Getters
162
- "public-static-get",
163
- "protected-static-get",
164
- "private-static-get",
165
- "#private-static-get",
166
-
167
- "public-decorated-get",
168
- "protected-decorated-get",
169
- "private-decorated-get",
170
-
171
- "public-instance-get",
172
- "protected-instance-get",
173
- "private-instance-get",
174
- "#private-instance-get",
175
-
176
- "public-abstract-get",
177
- "protected-abstract-get",
178
-
179
- "public-get",
180
- "protected-get",
181
- "private-get",
182
- "#private-get",
183
-
184
- "static-get",
185
- "instance-get",
186
- "abstract-get",
187
- "decorated-get",
188
- "get",
189
-
190
- // Setters
191
- "public-static-set",
192
- "protected-static-set",
193
- "private-static-set",
194
- "#private-static-set",
195
-
196
- "public-decorated-set",
197
- "protected-decorated-set",
198
- "private-decorated-set",
199
-
200
- "public-instance-set",
201
- "protected-instance-set",
202
- "private-instance-set",
203
- "#private-instance-set",
204
-
205
- "public-abstract-set",
206
- "protected-abstract-set",
207
-
208
- "public-set",
209
- "protected-set",
210
- "private-set",
211
- "#private-set",
212
-
213
- "static-set",
214
- "instance-set",
215
- "abstract-set",
216
- "decorated-set",
217
- "set",
218
-
219
- // Methods
220
- "public-static-method",
221
- "protected-static-method",
222
- "private-static-method",
223
- "#private-static-method",
224
-
225
- "public-decorated-method",
226
- "protected-decorated-method",
227
- "private-decorated-method",
228
-
229
- "public-instance-method",
230
- "protected-instance-method",
231
- "private-instance-method",
232
- "#private-instance-method",
233
-
234
- "public-abstract-method",
235
- "protected-abstract-method",
236
-
237
- "public-method",
238
- "protected-method",
239
- "private-method",
240
- "#private-method",
241
-
242
- "static-method",
243
- "instance-method",
244
- "abstract-method",
245
- "decorated-method",
246
- "method",
247
- ],
248
- optionalityOrder: "required-first",
249
- order: "as-written",
250
- },
251
-
252
- },
253
- ],
254
- "@typescript-eslint/method-signature-style": [
255
- ERROR,
256
- "property",
257
- ],
258
- "@typescript-eslint/naming-convention": OFF,
259
- "@typescript-eslint/no-array-delete": ERROR,
260
- "@typescript-eslint/no-base-to-string": [
261
- ERROR,
262
- {
263
- ignoredTypeNames: [
264
- "Error",
265
- "RegExp",
266
- "URL",
267
- "URLSearchParams",
268
- ],
269
- },
270
- ],
271
- "@typescript-eslint/no-confusing-non-null-assertion": ERROR,
272
- "@typescript-eslint/no-confusing-void-expression": [
273
- ERROR,
274
- {
275
- ignoreArrowShorthand: true,
276
- ignoreVoidOperator: true,
277
- ignoreVoidReturningFunctions: true,
278
- },
279
- ],
280
- "@typescript-eslint/no-duplicate-enum-values": ERROR,
281
- "@typescript-eslint/no-duplicate-type-constituents": [
282
- ERROR,
283
- {
284
- ignoreIntersections: false,
285
- ignoreUnions: false,
286
- },
287
- ],
288
- "@typescript-eslint/no-dynamic-delete": ERROR,
289
- "@typescript-eslint/no-empty-object-type": [
290
- ERROR,
291
- {
292
- // allowWithName: /regex/,
293
- allowInterfaces: Never,
294
- allowObjectTypes: Never,
295
- },
296
- ],
297
- "@typescript-eslint/no-explicit-any": [
298
- ERROR,
299
- {
300
- fixToUnknown: true,
301
- ignoreRestArgs: false,
302
- },
303
- ],
304
- "@typescript-eslint/no-extra-non-null-assertion": ERROR,
305
- "@typescript-eslint/no-extraneous-class": [
306
- ERROR,
307
- {
308
- allowConstructorOnly: false,
309
- allowEmpty: true,
310
- allowStaticOnly: false,
311
- allowWithDecorator: false,
312
- },
313
- ],
314
- "@typescript-eslint/no-floating-promises": [
315
- ERROR,
316
- {
317
- checkThenables: true,
318
- ignoreVoid: true,
319
- ignoreIIFE: false,
320
- },
321
- ],
322
- "@typescript-eslint/no-for-in-array": ERROR,
323
- "@typescript-eslint/no-import-type-side-effects": ERROR,
324
- "@typescript-eslint/no-inferrable-types": [
325
- ERROR,
326
- {
327
- ignoreParameters: false,
328
- ignoreProperties: false,
329
- },
330
- ],
331
- "@typescript-eslint/no-invalid-void-type": [
332
- ERROR,
333
- {
334
- allowInGenericTypeArguments: true,
335
- allowAsThisParameter: false,
336
- },
337
- ],
338
- "@typescript-eslint/no-meaningless-void-operator": [
339
- ERROR,
340
- {
341
- checkNever: true,
342
- },
343
- ],
344
- "@typescript-eslint/no-misused-new": ERROR,
345
- "@typescript-eslint/no-misused-promises": [
346
- ERROR,
347
- {
348
- checksConditionals: true,
349
- checksSpreads: true,
350
- checksVoidReturn: {
351
- arguments: true,
352
- attributes: true,
353
- properties: true,
354
- returns: true,
355
- variables: true,
356
- },
357
- },
358
- ],
359
- "@typescript-eslint/no-mixed-enums": ERROR,
360
- "@typescript-eslint/no-namespace": OFF,
361
- "@typescript-eslint/no-non-null-asserted-nullish-coalescing": ERROR,
362
- "@typescript-eslint/no-non-null-asserted-optional-chain": ERROR,
363
- "@typescript-eslint/no-non-null-assertion": ERROR,
364
- "@typescript-eslint/no-redundant-type-constituents": ERROR,
365
- "@typescript-eslint/no-restricted-types": OFF /* preference - no shared custom types across all projects that I wish to ban*/,
366
- "@typescript-eslint/no-require-imports": [
367
- ERROR,
368
- {
369
- allow: [],
370
- },
371
- ],
372
- "@typescript-eslint/no-this-alias": [
373
- ERROR,
374
- {
375
- allowDestructuring: true,
376
- allowedNames: [],
377
- },
378
- ],
379
- "@typescript-eslint/no-unnecessary-boolean-literal-compare": [
380
- ERROR,
381
- {
382
- allowComparingNullableBooleansToTrue: true,
383
- allowComparingNullableBooleansToFalse: true,
384
- },
385
- ],
386
- "@typescript-eslint/no-unnecessary-condition": [
387
- ERROR,
388
- {
389
- allowConstantLoopConditions: false,
390
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
391
- },
392
- ],
393
- "@typescript-eslint/no-unnecessary-qualifier": ERROR,
394
- "@typescript-eslint/no-unnecessary-template-expression": ERROR,
395
- "@typescript-eslint/no-unnecessary-type-arguments": ERROR,
396
- "@typescript-eslint/no-unnecessary-type-assertion": [
397
- ERROR,
398
- {
399
- typesToIgnore: [],
400
- },
401
- ],
402
- "@typescript-eslint/no-unnecessary-type-constraint": ERROR,
403
- "@typescript-eslint/no-unnecessary-type-parameters": ERROR,
404
- "@typescript-eslint/no-unsafe-argument": ERROR,
405
- "@typescript-eslint/no-unsafe-assignment": ERROR,
406
- "@typescript-eslint/no-unsafe-call": ERROR,
407
- "@typescript-eslint/no-unsafe-declaration-merging": ERROR,
408
- "@typescript-eslint/no-unsafe-enum-comparison": ERROR,
409
- "@typescript-eslint/no-unsafe-function-type": ERROR,
410
- "@typescript-eslint/no-unsafe-member-access": ERROR,
411
- "@typescript-eslint/no-unsafe-return": ERROR,
412
- "@typescript-eslint/no-unsafe-unary-minus": ERROR,
413
- "@typescript-eslint/no-useless-empty-export": ERROR,
414
- "@typescript-eslint/no-wrapper-object-types": ERROR,
415
- "@typescript-eslint/non-nullable-type-assertion-style": OFF,
416
- "@typescript-eslint/parameter-properties": [
417
- ERROR,
418
- {
419
- prefer: "parameter-property" /* "parameter-property" | "class-property" */,
420
- },
421
- ],
422
- "@typescript-eslint/prefer-as-const": ERROR,
423
- "@typescript-eslint/prefer-enum-initializers": ERROR,
424
- "@typescript-eslint/prefer-find": ERROR,
425
- "@typescript-eslint/prefer-for-of": ERROR,
426
- "@typescript-eslint/prefer-function-type": ERROR,
427
- "@typescript-eslint/prefer-includes": ERROR,
428
- "@typescript-eslint/prefer-literal-enum-member": [
429
- ERROR,
430
- {
431
- allowBitwiseExpressions: false,
432
- },
433
- ],
434
- "@typescript-eslint/prefer-namespace-keyword": ERROR,
435
- "@typescript-eslint/prefer-nullish-coalescing": [
436
- ERROR,
437
- {
438
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
439
- ignoreBooleanCoercion: false,
440
- ignoreConditionalTests: false,
441
- ignoreMixedLogicalExpressions: false,
442
- ignorePrimitives: {
443
- bigint: false,
444
- "boolean": false,
445
- number: false,
446
- string: false,
447
- },
448
- ignoreTernaryTests: false,
449
- },
450
- ], /* requires tsconfig: strictNullChecks */
451
- "@typescript-eslint/prefer-optional-chain": [
452
- ERROR,
453
- {
454
- allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,
455
- checkAny: true,
456
- checkBigInt: true,
457
- checkBoolean: true,
458
- checkNumber: true,
459
- checkString: true,
460
- checkUnknown: true,
461
- requireNullish: false,
462
- },
463
- ],
464
- "@typescript-eslint/prefer-readonly": [
465
- ERROR,
466
- {
467
- onlyInlineLambdas: false,
468
- },
469
- ],
470
- "@typescript-eslint/prefer-readonly-parameter-types": OFF /* preference - WAY too restrictive */,
471
- "@typescript-eslint/prefer-reduce-type-parameter": ERROR,
472
- "@typescript-eslint/prefer-regexp-exec": ERROR,
473
- "@typescript-eslint/prefer-return-this-type": ERROR,
474
- "@typescript-eslint/prefer-string-starts-ends-with": [
475
- ERROR,
476
- {
477
- allowSingleElementEquality: Never,
478
- },
479
- ],
480
- "@typescript-eslint/promise-function-async": [
481
- ERROR,
482
- {
483
- allowAny: false,
484
- allowedPromiseNames: [],
485
- checkArrowFunctions: true,
486
- checkFunctionDeclarations: true,
487
- checkFunctionExpressions: true,
488
- checkMethodDeclarations: true,
489
- },
490
- ],
491
- "@typescript-eslint/require-array-sort-compare": [
492
- ERROR,
493
- {
494
- ignoreStringArrays: true,
495
- },
496
- ],
497
- "@typescript-eslint/restrict-plus-operands": [
498
- ERROR,
499
- {
500
- allowAny: false,
501
- allowBoolean: false,
502
- allowNullish: false,
503
- allowNumberAndString: false,
504
- allowRegExp: false,
505
- skipCompoundAssignments: false,
506
- },
507
- ],
508
- "@typescript-eslint/restrict-template-expressions": [
509
- ERROR,
510
- {
511
- allowAny: true,
512
- allowArray: true,
513
- allowBoolean: true,
514
- allowNullish: false,
515
- allowNumber: true,
516
- allowNever: false,
517
- allowRegExp: false,
518
- }, /* investigate: make stricter */
519
- ],
520
- "@typescript-eslint/return-await": [
521
- ERROR,
522
- "in-try-catch",
523
- ] /* BUG: doc incorrectly states that this extends the DEPRECATED (since 8.46) no-return-await: https://typescript-eslint.io/rules/return-await */,
524
- "@typescript-eslint/strict-boolean-expressions": [
525
- ERROR,
526
- {
527
- allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
528
- allowAny: false,
529
- allowNumber: true,
530
- allowString: false,
531
- allowNullableBoolean: false,
532
- allowNullableEnum: false,
533
- allowNullableNumber: false,
534
- allowNullableObject: false,
535
- allowNullableString: false,
536
- },
537
- ], /* requires tsconfig: strictNullChecks */
538
- "@typescript-eslint/switch-exhaustiveness-check": [
539
- ERROR,
540
- {
541
- allowDefaultCaseForExhaustiveSwitch: false,
542
- considerDefaultExhaustiveForUnions: true,
543
- requireDefaultForNonUnion: true,
544
- },
545
- ],
546
- "@typescript-eslint/triple-slash-reference": [
547
- ERROR,
548
- {
549
- lib: Never /** always | never */,
550
- path: Never /** always | never */,
551
- types: Never /** always | never | prefer-import */,
552
- },
553
- ],
554
- "@typescript-eslint/typedef": OFF /* tsconfig: { noImplicitAny, strictPropertyInitialization } */,
555
- "@typescript-eslint/unbound-method": [
556
- ERROR,
557
- {
558
- ignoreStatic: false,
559
- },
560
- ],
561
- "@typescript-eslint/unified-signatures": [
562
- ERROR,
563
- {
564
- ignoreDifferentlyNamedParameters: false,
565
- },
566
- ],
567
- "@typescript-eslint/use-unknown-in-catch-callback-variable": ERROR,
568
- },
569
- ] as const;
@@ -1,117 +0,0 @@
1
- import {
2
- enable_x,
3
- ERROR,
4
- OFF,
5
- Always,
6
- All,
7
- } from "../../_strings";
8
-
9
- export default [
10
- enable_x,
11
- {
12
- // https://typescript-eslint.io/rules/?=extension-xdeprecated#rules
13
- "@typescript-eslint/class-methods-use-this": OFF /* preference -- eslint:off */,
14
- "@typescript-eslint/consistent-return": OFF /* tsconfig: noImplicitReturns */,
15
- "@typescript-eslint/default-param-last": ERROR,
16
- "@typescript-eslint/dot-notation": [
17
- ERROR,
18
- {
19
- allowKeywords: true,
20
-
21
- // TS-only
22
- allowPrivateClassPropertyAccess: true,
23
- allowProtectedClassPropertyAccess: true,
24
- allowIndexSignaturePropertyAccess: true,
25
- },
26
- ],
27
- "@typescript-eslint/init-declarations": [
28
- ERROR,
29
- Always,
30
- ],
31
- "@typescript-eslint/max-params": OFF /* preference */,
32
- "@typescript-eslint/no-array-constructor": ERROR,
33
- "@typescript-eslint/no-dupe-class-members": OFF /* tsc */,
34
- "@typescript-eslint/no-empty-function": [
35
- ERROR,
36
- {
37
- allow: [
38
- "constructors",
39
- "private-constructors",
40
- "protected-constructors",
41
- "decoratedFunctions",
42
- ],
43
- }, /* functions, arrowFunctions, generatorFunctions, methods, generatorMethods, getters, setters, constructors, asyncFunctions, asyncMethods; TS-ONLY: private-constructors, protected-constructors, decoratedFunctions, overrideMethods */
44
- ],
45
- "@typescript-eslint/no-implied-eval": ERROR,
46
- "@typescript-eslint/no-invalid-this": OFF /* tsconfig: { strict, noImplicitThis } */,
47
- "@typescript-eslint/no-loop-func": ERROR,
48
- "@typescript-eslint/no-magic-numbers": OFF,
49
- "@typescript-eslint/no-redeclare": OFF /* tsc (let, const, -var) */,
50
- "@typescript-eslint/no-restricted-imports": OFF /* preference */,
51
- "@typescript-eslint/no-shadow": OFF /* investigate */,
52
- "@typescript-eslint/no-unused-expressions": [
53
- ERROR,
54
- {
55
- allowShortCircuit: true,
56
- allowTernary: true,
57
- allowTaggedTemplates: true,
58
- enforceForJSX: false,
59
- },
60
- ],
61
- "@typescript-eslint/no-unused-vars": [
62
- ERROR,
63
- {
64
- vars: All,
65
- args: All,
66
- caughtErrors: All,
67
- ignoreRestSiblings: false,
68
- ignoreClassWithStaticInitBlock: false,
69
- reportUsedIgnorePattern: true,
70
- },
71
- ],
72
- "@typescript-eslint/no-use-before-define": [
73
- ERROR,
74
- {
75
- functions: true,
76
- classes: true,
77
- variables: true,
78
- allowNamedExports: false,
79
- enums: true,
80
- typedefs: false /* changed 14.2.2 (still questionable) */,
81
- ignoreTypeReferences: true,
82
- },
83
- ],
84
- "@typescript-eslint/no-useless-constructor": ERROR,
85
- "@typescript-eslint/only-throw-error": [
86
- ERROR,
87
- {
88
- allowThrowingAny: false,
89
- allowThrowingUnknown: false,
90
- },
91
- ],
92
- "@typescript-eslint/prefer-destructuring": [
93
- ERROR,
94
- {
95
- VariableDeclarator: {
96
- array: true,
97
- object: true,
98
- },
99
- AssignmentExpression: {
100
- array: false,
101
- object: false,
102
- },
103
- },
104
- {
105
- enforceForRenamedProperties: false,
106
- enforceForDeclarationWithTypeAnnotation: false,
107
- },
108
- ],
109
- "@typescript-eslint/prefer-promise-reject-errors": [
110
- ERROR,
111
- {
112
- allowEmptyReject: false,
113
- },
114
- ],
115
- "@typescript-eslint/require-await": ERROR,
116
- },
117
- ] as const;
@@ -1,13 +0,0 @@
1
- import js from "../js";
2
- import disable from "./disable";
3
- import disable_x from "./disable_x";
4
- import enable_x from "./enable_x";
5
- import enable from "./enable";
6
-
7
- export default [
8
- ...js,
9
- disable,
10
- disable_x,
11
- enable_x,
12
- enable,
13
- ];