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