@eslinted/defaults 14.0.0-rc.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dist/_scope/index.d.ts +1 -1
  2. package/dist/_scope/index.d.ts.map +1 -1
  3. package/dist/_scope/index.js +16 -4
  4. package/dist/_scope/index.js.map +1 -1
  5. package/dist/files/index.d.ts +1 -1
  6. package/dist/files/index.d.ts.map +1 -1
  7. package/dist/files/index.js +32 -20
  8. package/dist/files/index.js.map +1 -1
  9. package/dist/{files/css.d.ts → ignores/global.d.ts} +1 -1
  10. package/dist/ignores/global.d.ts.map +1 -0
  11. package/dist/ignores/global.js +21 -0
  12. package/dist/ignores/global.js.map +1 -0
  13. package/dist/ignores/index.d.ts.map +1 -1
  14. package/dist/ignores/index.js +15 -40
  15. package/dist/ignores/index.js.map +1 -1
  16. package/dist/index.d.ts +1332 -858
  17. package/dist/rules/base.d.ts +740 -406
  18. package/dist/rules/base.eslint.d.ts +305 -211
  19. package/dist/rules/base.eslint.d.ts.map +1 -1
  20. package/dist/rules/base.eslint.js +161 -162
  21. package/dist/rules/base.eslint.js.map +1 -1
  22. package/dist/rules/base.stylistic.d.ts +438 -196
  23. package/dist/rules/base.stylistic.d.ts.map +1 -1
  24. package/dist/rules/base.stylistic.js +109 -110
  25. package/dist/rules/base.stylistic.js.map +1 -1
  26. package/dist/rules/css/enable.d.ts +14 -13
  27. package/dist/rules/css/enable.d.ts.map +1 -1
  28. package/dist/rules/css/enable.js +13 -14
  29. package/dist/rules/css/enable.js.map +1 -1
  30. package/dist/rules/css/index.d.ts +13 -13
  31. package/dist/rules/html/enable.d.ts +74 -54
  32. package/dist/rules/html/enable.d.ts.map +1 -1
  33. package/dist/rules/html/enable.js +48 -49
  34. package/dist/rules/html/enable.js.map +1 -1
  35. package/dist/rules/html/index.d.ts +73 -54
  36. package/dist/rules/index.d.ts +1331 -857
  37. package/dist/rules/json/enable.d.ts +7 -6
  38. package/dist/rules/json/enable.d.ts.map +1 -1
  39. package/dist/rules/json/enable.js +6 -7
  40. package/dist/rules/json/enable.js.map +1 -1
  41. package/dist/rules/json/index.d.ts +71 -56
  42. package/dist/rules/json/plugin/extension.d.ts +47 -31
  43. package/dist/rules/json/plugin/extension.d.ts.map +1 -1
  44. package/dist/rules/json/plugin/extension.js +23 -24
  45. package/dist/rules/json/plugin/extension.js.map +1 -1
  46. package/dist/rules/json/plugin/index.d.ts +22 -21
  47. package/dist/rules/json/plugin/index.d.ts.map +1 -1
  48. package/dist/rules/json/plugin/index.js +21 -22
  49. package/dist/rules/json/plugin/index.js.map +1 -1
  50. package/dist/rules/jsonc/index.d.ts +3 -3
  51. package/dist/rules/jsonc/index.js +1 -1
  52. package/dist/rules/jsonc/index.js.map +1 -1
  53. package/dist/rules/jsonc/override.d.ts +9 -0
  54. package/dist/rules/jsonc/override.d.ts.map +1 -0
  55. package/dist/rules/jsonc/override.js +7 -0
  56. package/dist/rules/jsonc/override.js.map +1 -0
  57. package/dist/rules/jsoncc/index.d.ts +6 -3
  58. package/dist/rules/jsoncc/index.js +1 -1
  59. package/dist/rules/jsoncc/index.js.map +1 -1
  60. package/dist/rules/jsoncc/override.d.ts +12 -0
  61. package/dist/rules/jsoncc/override.d.ts.map +1 -0
  62. package/dist/rules/jsoncc/override.js +10 -0
  63. package/dist/rules/jsoncc/override.js.map +1 -0
  64. package/dist/rules/mocha/chai/expect.d.ts +5 -4
  65. package/dist/rules/mocha/chai/expect.d.ts.map +1 -1
  66. package/dist/rules/mocha/chai/expect.js +5 -6
  67. package/dist/rules/mocha/chai/expect.js.map +1 -1
  68. package/dist/rules/mocha/chai/index.d.ts +9 -5
  69. package/dist/rules/mocha/chai/index.d.ts.map +1 -1
  70. package/dist/rules/mocha/chai/index.js +3 -4
  71. package/dist/rules/mocha/chai/index.js.map +1 -1
  72. package/dist/rules/mocha/disable.d.ts +5 -4
  73. package/dist/rules/mocha/disable.d.ts.map +1 -1
  74. package/dist/rules/mocha/disable.js +4 -5
  75. package/dist/rules/mocha/disable.js.map +1 -1
  76. package/dist/rules/mocha/enable.d.ts +19 -18
  77. package/dist/rules/mocha/enable.d.ts.map +1 -1
  78. package/dist/rules/mocha/enable.js +18 -19
  79. package/dist/rules/mocha/enable.js.map +1 -1
  80. package/dist/rules/mocha/index.d.ts +31 -28
  81. package/dist/rules/state.d.ts +6 -0
  82. package/dist/rules/state.d.ts.map +1 -0
  83. package/dist/rules/state.js +2 -0
  84. package/dist/rules/state.js.map +1 -0
  85. package/dist/rules/svelte/disable.d.ts +10 -9
  86. package/dist/rules/svelte/disable.d.ts.map +1 -1
  87. package/dist/rules/svelte/disable.js +9 -10
  88. package/dist/rules/svelte/disable.js.map +1 -1
  89. package/dist/rules/svelte/enable.d.ts +109 -83
  90. package/dist/rules/svelte/enable.d.ts.map +1 -1
  91. package/dist/rules/svelte/enable.js +71 -72
  92. package/dist/rules/svelte/enable.js.map +1 -1
  93. package/dist/rules/svelte/extension/disable.d.ts +6 -5
  94. package/dist/rules/svelte/extension/disable.d.ts.map +1 -1
  95. package/dist/rules/svelte/extension/disable.js +5 -6
  96. package/dist/rules/svelte/extension/disable.js.map +1 -1
  97. package/dist/rules/svelte/extension/index.d.ts +8 -4
  98. package/dist/rules/svelte/extension/index.d.ts.map +1 -1
  99. package/dist/rules/svelte/extension/index.js +5 -6
  100. package/dist/rules/svelte/extension/index.js.map +1 -1
  101. package/dist/rules/svelte/index.d.ts +126 -98
  102. package/dist/rules/ts/disable.d.ts +22 -21
  103. package/dist/rules/ts/disable.d.ts.map +1 -1
  104. package/dist/rules/ts/disable.js +21 -22
  105. package/dist/rules/ts/disable.js.map +1 -1
  106. package/dist/rules/ts/enable.d.ts +159 -122
  107. package/dist/rules/ts/enable.d.ts.map +1 -1
  108. package/dist/rules/ts/enable.js +88 -89
  109. package/dist/rules/ts/enable.js.map +1 -1
  110. package/dist/rules/ts/extension/disable.d.ts +11 -10
  111. package/dist/rules/ts/extension/disable.d.ts.map +1 -1
  112. package/dist/rules/ts/extension/disable.js +10 -11
  113. package/dist/rules/ts/extension/disable.js.map +1 -1
  114. package/dist/rules/ts/extension/index.d.ts +35 -22
  115. package/dist/rules/ts/extension/index.d.ts.map +1 -1
  116. package/dist/rules/ts/extension/index.js +9 -10
  117. package/dist/rules/ts/extension/index.js.map +1 -1
  118. package/dist/rules/ts/index.d.ts +220 -172
  119. package/dist/rules/yml/enable.d.ts +14 -13
  120. package/dist/rules/yml/enable.d.ts.map +1 -1
  121. package/dist/rules/yml/enable.js +13 -14
  122. package/dist/rules/yml/enable.js.map +1 -1
  123. package/dist/rules/yml/extension.d.ts +46 -21
  124. package/dist/rules/yml/extension.d.ts.map +1 -1
  125. package/dist/rules/yml/extension.js +12 -13
  126. package/dist/rules/yml/extension.js.map +1 -1
  127. package/dist/rules/yml/index.d.ts +57 -33
  128. package/dist/settings/settings/html.js +1 -1
  129. package/dist/settings/settings/html.js.map +1 -1
  130. package/package.json +1 -1
  131. package/src/_scope/index.ts +19 -7
  132. package/src/files/index.ts +38 -20
  133. package/src/ignores/global.ts +25 -0
  134. package/src/ignores/index.ts +15 -44
  135. package/src/rules/base.eslint.ts +214 -223
  136. package/src/rules/base.stylistic.ts +116 -131
  137. package/src/rules/css/enable.ts +17 -21
  138. package/src/rules/html/enable.ts +63 -66
  139. package/src/rules/json/enable.ts +9 -13
  140. package/src/rules/json/plugin/extension.ts +26 -32
  141. package/src/rules/json/plugin/index.ts +26 -30
  142. package/src/rules/jsonc/index.ts +1 -1
  143. package/src/rules/jsonc/override.ts +8 -0
  144. package/src/rules/jsoncc/index.ts +1 -1
  145. package/src/rules/jsoncc/override.ts +11 -0
  146. package/src/rules/mocha/chai/expect.ts +7 -11
  147. package/src/rules/mocha/chai/index.ts +4 -7
  148. package/src/rules/mocha/disable.ts +5 -8
  149. package/src/rules/mocha/enable.ts +27 -31
  150. package/src/rules/state.ts +5 -0
  151. package/src/rules/svelte/disable.ts +9 -12
  152. package/src/rules/svelte/enable.ts +76 -82
  153. package/src/rules/svelte/extension/disable.ts +5 -9
  154. package/src/rules/svelte/extension/index.ts +6 -10
  155. package/src/rules/ts/disable.ts +21 -24
  156. package/src/rules/ts/enable.ts +106 -111
  157. package/src/rules/ts/extension/disable.ts +26 -30
  158. package/src/rules/ts/extension/index.ts +27 -31
  159. package/src/rules/yml/enable.ts +23 -27
  160. package/src/rules/yml/extension.ts +13 -17
  161. package/src/settings/settings/html.ts +1 -1
  162. package/dist/_scope/const/index.d.ts +0 -3
  163. package/dist/_scope/const/index.d.ts.map +0 -1
  164. package/dist/_scope/const/index.js +0 -3
  165. package/dist/_scope/const/index.js.map +0 -1
  166. package/dist/_scope/const/roots.d.ts +0 -2
  167. package/dist/_scope/const/roots.d.ts.map +0 -1
  168. package/dist/_scope/const/roots.js +0 -5
  169. package/dist/_scope/const/roots.js.map +0 -1
  170. package/dist/_scope/const/subroots.d.ts +0 -2
  171. package/dist/_scope/const/subroots.d.ts.map +0 -1
  172. package/dist/_scope/const/subroots.js +0 -10
  173. package/dist/_scope/const/subroots.js.map +0 -1
  174. package/dist/files/css.d.ts.map +0 -1
  175. package/dist/files/css.js +0 -3
  176. package/dist/files/css.js.map +0 -1
  177. package/dist/files/html.d.ts +0 -3
  178. package/dist/files/html.d.ts.map +0 -1
  179. package/dist/files/html.js +0 -3
  180. package/dist/files/html.js.map +0 -1
  181. package/dist/files/js.d.ts +0 -3
  182. package/dist/files/js.d.ts.map +0 -1
  183. package/dist/files/js.js +0 -7
  184. package/dist/files/js.js.map +0 -1
  185. package/dist/files/json.d.ts +0 -3
  186. package/dist/files/json.d.ts.map +0 -1
  187. package/dist/files/json.js +0 -3
  188. package/dist/files/json.js.map +0 -1
  189. package/dist/files/jsonc.d.ts +0 -3
  190. package/dist/files/jsonc.d.ts.map +0 -1
  191. package/dist/files/jsonc.js +0 -3
  192. package/dist/files/jsonc.js.map +0 -1
  193. package/dist/files/jsoncc.d.ts +0 -3
  194. package/dist/files/jsoncc.d.ts.map +0 -1
  195. package/dist/files/jsoncc.js +0 -10
  196. package/dist/files/jsoncc.js.map +0 -1
  197. package/dist/files/mocha.d.ts +0 -3
  198. package/dist/files/mocha.d.ts.map +0 -1
  199. package/dist/files/mocha.js +0 -7
  200. package/dist/files/mocha.js.map +0 -1
  201. package/dist/files/svelte.d.ts +0 -3
  202. package/dist/files/svelte.d.ts.map +0 -1
  203. package/dist/files/svelte.js +0 -3
  204. package/dist/files/svelte.js.map +0 -1
  205. package/dist/files/ts.d.ts +0 -3
  206. package/dist/files/ts.d.ts.map +0 -1
  207. package/dist/files/ts.js +0 -7
  208. package/dist/files/ts.js.map +0 -1
  209. package/dist/files/yml.d.ts +0 -3
  210. package/dist/files/yml.d.ts.map +0 -1
  211. package/dist/files/yml.js +0 -8
  212. package/dist/files/yml.js.map +0 -1
  213. package/dist/ignores/css.d.ts +0 -3
  214. package/dist/ignores/css.d.ts.map +0 -1
  215. package/dist/ignores/css.js +0 -2
  216. package/dist/ignores/css.js.map +0 -1
  217. package/dist/ignores/html.d.ts +0 -3
  218. package/dist/ignores/html.d.ts.map +0 -1
  219. package/dist/ignores/html.js +0 -2
  220. package/dist/ignores/html.js.map +0 -1
  221. package/dist/ignores/js.d.ts +0 -3
  222. package/dist/ignores/js.d.ts.map +0 -1
  223. package/dist/ignores/js.js +0 -2
  224. package/dist/ignores/js.js.map +0 -1
  225. package/dist/ignores/json.d.ts +0 -3
  226. package/dist/ignores/json.d.ts.map +0 -1
  227. package/dist/ignores/json.js +0 -2
  228. package/dist/ignores/json.js.map +0 -1
  229. package/dist/ignores/jsonc.d.ts +0 -3
  230. package/dist/ignores/jsonc.d.ts.map +0 -1
  231. package/dist/ignores/jsonc.js +0 -2
  232. package/dist/ignores/jsonc.js.map +0 -1
  233. package/dist/ignores/jsoncc.d.ts +0 -3
  234. package/dist/ignores/jsoncc.d.ts.map +0 -1
  235. package/dist/ignores/jsoncc.js +0 -2
  236. package/dist/ignores/jsoncc.js.map +0 -1
  237. package/dist/ignores/mocha.d.ts +0 -3
  238. package/dist/ignores/mocha.d.ts.map +0 -1
  239. package/dist/ignores/mocha.js +0 -2
  240. package/dist/ignores/mocha.js.map +0 -1
  241. package/dist/ignores/svelte.d.ts +0 -3
  242. package/dist/ignores/svelte.d.ts.map +0 -1
  243. package/dist/ignores/svelte.js +0 -2
  244. package/dist/ignores/svelte.js.map +0 -1
  245. package/dist/ignores/ts.d.ts +0 -3
  246. package/dist/ignores/ts.d.ts.map +0 -1
  247. package/dist/ignores/ts.js +0 -2
  248. package/dist/ignores/ts.js.map +0 -1
  249. package/dist/ignores/yml.d.ts +0 -3
  250. package/dist/ignores/yml.d.ts.map +0 -1
  251. package/dist/ignores/yml.js +0 -2
  252. package/dist/ignores/yml.js.map +0 -1
  253. package/dist/rules/_strings/id.d.ts +0 -19
  254. package/dist/rules/_strings/id.d.ts.map +0 -1
  255. package/dist/rules/_strings/id.js +0 -19
  256. package/dist/rules/_strings/id.js.map +0 -1
  257. package/dist/rules/_strings/index.d.ts +0 -4
  258. package/dist/rules/_strings/index.d.ts.map +0 -1
  259. package/dist/rules/_strings/index.js +0 -4
  260. package/dist/rules/_strings/index.js.map +0 -1
  261. package/dist/rules/_strings/option.d.ts +0 -2
  262. package/dist/rules/_strings/option.d.ts.map +0 -1
  263. package/dist/rules/_strings/option.js +0 -2
  264. package/dist/rules/_strings/option.js.map +0 -1
  265. package/dist/rules/_strings/state.d.ts +0 -2
  266. package/dist/rules/_strings/state.d.ts.map +0 -1
  267. package/dist/rules/_strings/state.js +0 -2
  268. package/dist/rules/_strings/state.js.map +0 -1
  269. package/dist/rules/jsonc/plugin/index.d.ts +0 -8
  270. package/dist/rules/jsonc/plugin/index.d.ts.map +0 -1
  271. package/dist/rules/jsonc/plugin/index.js +0 -8
  272. package/dist/rules/jsonc/plugin/index.js.map +0 -1
  273. package/dist/rules/jsoncc/plugin/index.d.ts +0 -8
  274. package/dist/rules/jsoncc/plugin/index.d.ts.map +0 -1
  275. package/dist/rules/jsoncc/plugin/index.js +0 -11
  276. package/dist/rules/jsoncc/plugin/index.js.map +0 -1
  277. package/src/_scope/const/index.ts +0 -2
  278. package/src/_scope/const/roots.ts +0 -4
  279. package/src/_scope/const/subroots.ts +0 -9
  280. package/src/files/css.ts +0 -5
  281. package/src/files/html.ts +0 -5
  282. package/src/files/js.ts +0 -9
  283. package/src/files/json.ts +0 -5
  284. package/src/files/jsonc.ts +0 -5
  285. package/src/files/jsoncc.ts +0 -16
  286. package/src/files/mocha.ts +0 -9
  287. package/src/files/svelte.ts +0 -5
  288. package/src/files/ts.ts +0 -9
  289. package/src/files/yml.ts +0 -11
  290. package/src/ignores/css.ts +0 -1
  291. package/src/ignores/html.ts +0 -1
  292. package/src/ignores/js.ts +0 -1
  293. package/src/ignores/json.ts +0 -1
  294. package/src/ignores/jsonc.ts +0 -1
  295. package/src/ignores/jsoncc.ts +0 -1
  296. package/src/ignores/mocha.ts +0 -1
  297. package/src/ignores/svelte.ts +0 -1
  298. package/src/ignores/ts.ts +0 -1
  299. package/src/ignores/yml.ts +0 -1
  300. package/src/rules/_strings/id.ts +0 -21
  301. package/src/rules/_strings/index.ts +0 -3
  302. package/src/rules/_strings/option.ts +0 -29
  303. package/src/rules/_strings/state.ts +0 -4
  304. package/src/rules/jsonc/plugin/index.ts +0 -12
  305. package/src/rules/jsoncc/plugin/index.ts +0 -16
@@ -1,206 +1,448 @@
1
+ import { State } from "./state.js";
1
2
  declare const _default: {
2
- id: "enable/style";
3
+ id: string;
3
4
  rules: {
4
- readonly "@stylistic/array-bracket-newline": 2;
5
- readonly "@stylistic/array-bracket-spacing": 2;
6
- readonly "@stylistic/array-element-newline": readonly [2, {
7
- readonly consistent: true;
8
- readonly multiline: true;
9
- readonly minItems: 3;
10
- }];
11
- readonly "@stylistic/arrow-parens": readonly [2, "as-needed"];
12
- readonly "@stylistic/arrow-spacing": 2;
13
- readonly "@stylistic/block-spacing": 2;
14
- readonly "@stylistic/brace-style": readonly [2, "stroustrup", {
15
- readonly allowSingleLine: true;
16
- }];
17
- readonly "@stylistic/comma-dangle": readonly [2, "always-multiline"];
18
- readonly "@stylistic/comma-spacing": 2;
19
- readonly "@stylistic/comma-style": 2;
20
- readonly "@stylistic/computed-property-spacing": 2;
21
- readonly "@stylistic/curly-newline": 2;
22
- readonly "@stylistic/dot-location": readonly [2, "property"];
23
- readonly "@stylistic/eol-last": 2;
24
- readonly "@stylistic/function-call-argument-newline": readonly [2, "consistent"];
25
- readonly "@stylistic/function-call-spacing": 2;
26
- readonly "@stylistic/function-paren-newline": readonly [2, "multiline-arguments"];
27
- readonly "@stylistic/generator-star-spacing": 2;
28
- readonly "@stylistic/implicit-arrow-linebreak": 2;
29
- readonly "@stylistic/indent": readonly [2, 2, {
30
- readonly assignmentOperator: 0;
31
- readonly VariableDeclarator: {
32
- readonly var: 0;
33
- readonly let: 0;
34
- readonly const: 0;
35
- };
36
- readonly outerIIFEBody: 0;
37
- readonly offsetTernaryExpressions: true;
38
- }];
39
- readonly "@stylistic/indent-binary-ops": readonly [2, 2];
40
- readonly "@stylistic/key-spacing": 2;
41
- readonly "@stylistic/keyword-spacing": 2;
42
- readonly "@stylistic/lines-between-class-members": readonly [2, {
43
- readonly enforce: readonly [{
44
- readonly prev: "field";
45
- readonly next: "field";
5
+ readonly "@stylistic/array-bracket-newline": State.ON;
6
+ readonly "@stylistic/array-bracket-spacing": State.ON;
7
+ readonly "@stylistic/array-element-newline": readonly [
8
+ State.ON,
9
+ {
10
+ readonly consistent: true;
11
+ readonly multiline: true;
12
+ readonly minItems: 3;
13
+ }
14
+ ];
15
+ readonly "@stylistic/arrow-parens": readonly [
16
+ State.ON,
17
+ "as-needed"
18
+ ];
19
+ readonly "@stylistic/arrow-spacing": State.ON;
20
+ readonly "@stylistic/block-spacing": State.ON;
21
+ readonly "@stylistic/brace-style": readonly [
22
+ State.ON,
23
+ "stroustrup",
24
+ {
25
+ readonly allowSingleLine: true;
26
+ }
27
+ ];
28
+ readonly "@stylistic/comma-dangle": readonly [
29
+ State.ON,
30
+ "always-multiline"
31
+ ];
32
+ readonly "@stylistic/comma-spacing": State.ON;
33
+ readonly "@stylistic/comma-style": State.ON;
34
+ readonly "@stylistic/computed-property-spacing": State.ON;
35
+ readonly "@stylistic/curly-newline": State.ON;
36
+ readonly "@stylistic/dot-location": readonly [
37
+ State.ON,
38
+ "property"
39
+ ];
40
+ readonly "@stylistic/eol-last": State.ON;
41
+ readonly "@stylistic/function-call-argument-newline": readonly [
42
+ State.ON,
43
+ "consistent"
44
+ ];
45
+ readonly "@stylistic/function-call-spacing": State.ON;
46
+ readonly "@stylistic/function-paren-newline": readonly [
47
+ State.ON,
48
+ "multiline-arguments"
49
+ ];
50
+ readonly "@stylistic/generator-star-spacing": State.ON;
51
+ readonly "@stylistic/implicit-arrow-linebreak": State.ON;
52
+ readonly "@stylistic/indent": readonly [
53
+ State.ON,
54
+ 2,
55
+ {
56
+ readonly assignmentOperator: 0;
57
+ readonly VariableDeclarator: {
58
+ readonly var: 0;
59
+ readonly let: 0;
60
+ readonly const: 0;
61
+ };
62
+ readonly outerIIFEBody: 0;
63
+ readonly offsetTernaryExpressions: true;
64
+ }
65
+ ];
66
+ readonly "@stylistic/indent-binary-ops": readonly [
67
+ State.ON,
68
+ 2
69
+ ];
70
+ readonly "@stylistic/key-spacing": State.ON;
71
+ readonly "@stylistic/keyword-spacing": State.ON;
72
+ readonly "@stylistic/lines-between-class-members": readonly [
73
+ State.ON,
74
+ {
75
+ readonly enforce: readonly [
76
+ {
77
+ readonly prev: "field";
78
+ readonly next: "field";
79
+ readonly blankLine: "never";
80
+ },
81
+ {
82
+ readonly prev: "field";
83
+ readonly next: "method";
84
+ readonly blankLine: "always";
85
+ },
86
+ {
87
+ readonly prev: "method";
88
+ readonly next: "*";
89
+ readonly blankLine: "always";
90
+ }
91
+ ];
92
+ }
93
+ ];
94
+ readonly "@stylistic/max-len": readonly [
95
+ State.ON,
96
+ {
97
+ readonly code: 300;
98
+ readonly ignoreComments: true;
99
+ readonly ignoreTrailingComments: true;
100
+ readonly ignoreUrls: true;
101
+ readonly ignoreStrings: true;
102
+ readonly ignoreTemplateLiterals: true;
103
+ readonly ignoreRegExpLiterals: true;
104
+ }
105
+ ];
106
+ readonly "@stylistic/max-statements-per-line": State.ON;
107
+ readonly "@stylistic/member-delimiter-style": State.ON;
108
+ readonly "@stylistic/multiline-ternary": readonly [
109
+ State.ON,
110
+ "always-multiline"
111
+ ];
112
+ readonly "@stylistic/newline-per-chained-call": State.ON;
113
+ readonly "@stylistic/no-extra-parens": State.ON;
114
+ readonly "@stylistic/no-extra-semi": State.ON;
115
+ readonly "@stylistic/no-floating-decimal": State.ON;
116
+ readonly "@stylistic/no-mixed-spaces-and-tabs": State.ON;
117
+ readonly "@stylistic/no-multi-spaces": readonly [
118
+ State.ON,
119
+ {
120
+ readonly exceptions: {
121
+ readonly Property: false;
122
+ readonly ImportAttributes: false;
123
+ };
124
+ }
125
+ ];
126
+ readonly "@stylistic/no-multiple-empty-lines": readonly [
127
+ State.ON,
128
+ {
129
+ readonly max: 1;
130
+ readonly maxBOF: 0;
131
+ readonly maxEOF: 0;
132
+ }
133
+ ];
134
+ readonly "@stylistic/no-tabs": State.ON;
135
+ readonly "@stylistic/no-trailing-spaces": State.ON;
136
+ readonly "@stylistic/no-whitespace-before-property": State.ON;
137
+ readonly "@stylistic/nonblock-statement-body-position": readonly [
138
+ State.ON,
139
+ "below"
140
+ ];
141
+ readonly "@stylistic/object-curly-newline": readonly [
142
+ State.ON,
143
+ {
144
+ readonly consistent: true;
145
+ readonly multiline: true;
146
+ readonly minProperties: 3;
147
+ }
148
+ ];
149
+ readonly "@stylistic/object-curly-spacing": readonly [
150
+ State.ON,
151
+ "always"
152
+ ];
153
+ readonly "@stylistic/object-property-newline": State.ON;
154
+ readonly "@stylistic/one-var-declaration-per-line": readonly [
155
+ State.ON,
156
+ "always"
157
+ ];
158
+ readonly "@stylistic/operator-linebreak": readonly [
159
+ State.ON,
160
+ "before"
161
+ ];
162
+ readonly "@stylistic/padded-blocks": readonly [
163
+ State.ON,
164
+ "never",
165
+ {
166
+ readonly allowSingleLineBlocks: true;
167
+ }
168
+ ];
169
+ readonly "@stylistic/padding-line-between-statements": readonly [
170
+ State.WARN,
171
+ {
172
+ readonly blankLine: "never";
173
+ readonly prev: readonly [
174
+ "block-like",
175
+ "block",
176
+ "break",
177
+ "case",
178
+ "cjs-export",
179
+ "cjs-import",
180
+ "class",
181
+ "const",
182
+ "continue",
183
+ "debugger",
184
+ "default",
185
+ "directive",
186
+ "do",
187
+ "empty",
188
+ "enum",
189
+ "export",
190
+ "for",
191
+ "function-overload",
192
+ "function",
193
+ "if",
194
+ "iife",
195
+ "import",
196
+ "interface",
197
+ "let",
198
+ "return",
199
+ "switch",
200
+ "throw",
201
+ "try",
202
+ "type",
203
+ "using",
204
+ "var",
205
+ "while",
206
+ "with"
207
+ ];
208
+ readonly next: "*";
209
+ },
210
+ {
211
+ readonly blankLine: "always";
212
+ readonly prev: readonly [
213
+ "block-like",
214
+ "block",
215
+ "class",
216
+ "debugger",
217
+ "directive",
218
+ "do",
219
+ "empty",
220
+ "for",
221
+ "function-overload",
222
+ "function",
223
+ "if",
224
+ "interface",
225
+ "switch",
226
+ "try",
227
+ "using",
228
+ "while",
229
+ "with"
230
+ ];
231
+ readonly next: "*";
232
+ },
233
+ {
234
+ readonly blankLine: "always";
235
+ readonly prev: "*";
236
+ readonly next: readonly [
237
+ "block-like",
238
+ "block",
239
+ "class",
240
+ "debugger",
241
+ "directive",
242
+ "do",
243
+ "empty",
244
+ "for",
245
+ "function-overload",
246
+ "function",
247
+ "if",
248
+ "interface",
249
+ "switch",
250
+ "try",
251
+ "using",
252
+ "while",
253
+ "with"
254
+ ];
255
+ },
256
+ {
257
+ readonly blankLine: "never";
258
+ readonly prev: "interface";
259
+ readonly next: readonly [
260
+ "class",
261
+ "function-overload",
262
+ "function"
263
+ ];
264
+ },
265
+ {
266
+ readonly blankLine: "never";
267
+ readonly prev: "function-overload";
268
+ readonly next: readonly [
269
+ "function-overload",
270
+ "function"
271
+ ];
272
+ },
273
+ {
274
+ readonly blankLine: "always";
275
+ readonly prev: readonly [
276
+ "const",
277
+ "enum",
278
+ "let",
279
+ "type",
280
+ "var"
281
+ ];
282
+ readonly next: readonly [
283
+ "expression",
284
+ "iife"
285
+ ];
286
+ },
287
+ {
288
+ readonly blankLine: "always";
289
+ readonly prev: readonly [
290
+ "cjs-import",
291
+ "import"
292
+ ];
293
+ readonly next: "*";
294
+ },
295
+ {
46
296
  readonly blankLine: "never";
47
- }, {
48
- readonly prev: "field";
49
- readonly next: "method";
297
+ readonly prev: readonly [
298
+ "cjs-import",
299
+ "import"
300
+ ];
301
+ readonly next: readonly [
302
+ "cjs-import",
303
+ "import"
304
+ ];
305
+ },
306
+ {
50
307
  readonly blankLine: "always";
51
- }, {
52
- readonly prev: "method";
308
+ readonly prev: readonly [
309
+ "cjs-export",
310
+ "export"
311
+ ];
53
312
  readonly next: "*";
313
+ },
314
+ {
315
+ readonly blankLine: "always";
316
+ readonly prev: "*";
317
+ readonly next: readonly [
318
+ "cjs-export",
319
+ "export"
320
+ ];
321
+ },
322
+ {
323
+ readonly blankLine: "never";
324
+ readonly prev: readonly [
325
+ "cjs-export",
326
+ "export"
327
+ ];
328
+ readonly next: readonly [
329
+ "cjs-export",
330
+ "export"
331
+ ];
332
+ },
333
+ {
54
334
  readonly blankLine: "always";
55
- }];
56
- }];
57
- readonly "@stylistic/max-len": readonly [2, {
58
- readonly code: 300;
59
- readonly ignoreComments: true;
60
- readonly ignoreTrailingComments: true;
61
- readonly ignoreUrls: true;
62
- readonly ignoreStrings: true;
63
- readonly ignoreTemplateLiterals: true;
64
- readonly ignoreRegExpLiterals: true;
65
- }];
66
- readonly "@stylistic/max-statements-per-line": 2;
67
- readonly "@stylistic/member-delimiter-style": 2;
68
- readonly "@stylistic/multiline-ternary": readonly [2, "always-multiline"];
69
- readonly "@stylistic/newline-per-chained-call": 2;
70
- readonly "@stylistic/no-extra-parens": 2;
71
- readonly "@stylistic/no-extra-semi": 2;
72
- readonly "@stylistic/no-floating-decimal": 2;
73
- readonly "@stylistic/no-mixed-spaces-and-tabs": 2;
74
- readonly "@stylistic/no-multi-spaces": readonly [2, {
75
- readonly exceptions: {
76
- readonly Property: false;
77
- readonly ImportAttributes: false;
78
- };
79
- }];
80
- readonly "@stylistic/no-multiple-empty-lines": readonly [2, {
81
- readonly max: 1;
82
- readonly maxBOF: 0;
83
- readonly maxEOF: 0;
84
- }];
85
- readonly "@stylistic/no-tabs": 2;
86
- readonly "@stylistic/no-trailing-spaces": 2;
87
- readonly "@stylistic/no-whitespace-before-property": 2;
88
- readonly "@stylistic/nonblock-statement-body-position": readonly [2, "below"];
89
- readonly "@stylistic/object-curly-newline": readonly [2, {
90
- readonly consistent: true;
91
- readonly multiline: true;
92
- readonly minProperties: 3;
93
- }];
94
- readonly "@stylistic/object-curly-spacing": readonly [2, "always"];
95
- readonly "@stylistic/object-property-newline": 2;
96
- readonly "@stylistic/one-var-declaration-per-line": readonly [2, "always"];
97
- readonly "@stylistic/operator-linebreak": readonly [2, "before"];
98
- readonly "@stylistic/padded-blocks": readonly [2, "never", {
99
- readonly allowSingleLineBlocks: true;
100
- }];
101
- readonly "@stylistic/padding-line-between-statements": readonly [1, {
102
- readonly blankLine: "never";
103
- readonly prev: readonly ["block-like", "block", "break", "case", "cjs-export", "cjs-import", "class", "const", "continue", "debugger", "default", "directive", "do", "empty", "enum", "export", "for", "function-overload", "function", "if", "iife", "import", "interface", "let", "return", "switch", "throw", "try", "type", "using", "var", "while", "with"];
104
- readonly next: "*";
105
- }, {
106
- readonly blankLine: "always";
107
- readonly prev: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "switch", "try", "using", "while", "with"];
108
- readonly next: "*";
109
- }, {
110
- readonly blankLine: "always";
111
- readonly prev: "*";
112
- readonly next: readonly ["block-like", "block", "class", "debugger", "directive", "do", "empty", "for", "function-overload", "function", "if", "interface", "switch", "try", "using", "while", "with"];
113
- }, {
114
- readonly blankLine: "never";
115
- readonly prev: "interface";
116
- readonly next: readonly ["class", "function-overload", "function"];
117
- }, {
118
- readonly blankLine: "never";
119
- readonly prev: "function-overload";
120
- readonly next: readonly ["function-overload", "function"];
121
- }, {
122
- readonly blankLine: "always";
123
- readonly prev: readonly ["const", "enum", "let", "type", "var"];
124
- readonly next: readonly ["expression", "iife"];
125
- }, {
126
- readonly blankLine: "always";
127
- readonly prev: readonly ["cjs-import", "import"];
128
- readonly next: "*";
129
- }, {
130
- readonly blankLine: "never";
131
- readonly prev: readonly ["cjs-import", "import"];
132
- readonly next: readonly ["cjs-import", "import"];
133
- }, {
134
- readonly blankLine: "always";
135
- readonly prev: readonly ["cjs-export", "export"];
136
- readonly next: "*";
137
- }, {
138
- readonly blankLine: "always";
139
- readonly prev: "*";
140
- readonly next: readonly ["cjs-export", "export"];
141
- }, {
142
- readonly blankLine: "never";
143
- readonly prev: readonly ["cjs-export", "export"];
144
- readonly next: readonly ["cjs-export", "export"];
145
- }, {
146
- readonly blankLine: "always";
147
- readonly prev: readonly ["break", "continue", "return", "throw"];
148
- readonly next: "*";
149
- }, {
150
- readonly blankLine: "always";
151
- readonly prev: "*";
152
- readonly next: readonly ["break", "continue", "return", "throw"];
153
- }];
154
- readonly "@stylistic/quote-props": readonly [2, "as-needed", {
155
- readonly keywords: true;
156
- }];
157
- readonly "@stylistic/quotes": readonly [2, "double", {
158
- readonly avoidEscape: true;
159
- readonly allowTemplateLiterals: "always";
160
- }];
161
- readonly "@stylistic/rest-spread-spacing": 2;
162
- readonly "@stylistic/semi": 2;
163
- readonly "@stylistic/semi-spacing": 2;
164
- readonly "@stylistic/semi-style": 2;
165
- readonly "@stylistic/space-before-blocks": 2;
166
- readonly "@stylistic/space-before-function-paren": readonly [2, {
167
- readonly named: "never";
168
- }];
169
- readonly "@stylistic/space-in-parens": 2;
170
- readonly "@stylistic/space-infix-ops": 2;
171
- readonly "@stylistic/space-unary-ops": 2;
172
- readonly "@stylistic/spaced-comment": readonly [2, "always", {
173
- readonly line: {
174
- readonly exceptions: readonly ["/", "-", "+", "="];
175
- readonly markers: readonly ["!", "@", "#", "/", "#region", "#endregion", "#part", "/#region", "/#endregion", "/#part"];
176
- };
177
- readonly block: {
178
- readonly exceptions: readonly ["*"];
179
- readonly markers: readonly ["*"];
180
- readonly balanced: true;
181
- };
182
- }];
183
- readonly "@stylistic/switch-colon-spacing": 2;
184
- readonly "@stylistic/template-curly-spacing": 2;
185
- readonly "@stylistic/template-tag-spacing": 2;
186
- readonly "@stylistic/type-annotation-spacing": readonly [2, {
187
- readonly before: true;
188
- readonly after: true;
189
- readonly overrides: {
190
- readonly colon: {
191
- readonly before: false;
192
- readonly after: true;
335
+ readonly prev: readonly [
336
+ "break",
337
+ "continue",
338
+ "return",
339
+ "throw"
340
+ ];
341
+ readonly next: "*";
342
+ },
343
+ {
344
+ readonly blankLine: "always";
345
+ readonly prev: "*";
346
+ readonly next: readonly [
347
+ "break",
348
+ "continue",
349
+ "return",
350
+ "throw"
351
+ ];
352
+ }
353
+ ];
354
+ readonly "@stylistic/quote-props": readonly [
355
+ State.ON,
356
+ "as-needed",
357
+ {
358
+ readonly keywords: true;
359
+ }
360
+ ];
361
+ readonly "@stylistic/quotes": readonly [
362
+ State.ON,
363
+ "double",
364
+ {
365
+ readonly avoidEscape: true;
366
+ readonly allowTemplateLiterals: "always";
367
+ }
368
+ ];
369
+ readonly "@stylistic/rest-spread-spacing": State.ON;
370
+ readonly "@stylistic/semi": State.ON;
371
+ readonly "@stylistic/semi-spacing": State.ON;
372
+ readonly "@stylistic/semi-style": State.ON;
373
+ readonly "@stylistic/space-before-blocks": State.ON;
374
+ readonly "@stylistic/space-before-function-paren": readonly [
375
+ State.ON,
376
+ {
377
+ readonly named: "never";
378
+ }
379
+ ];
380
+ readonly "@stylistic/space-in-parens": State.ON;
381
+ readonly "@stylistic/space-infix-ops": State.ON;
382
+ readonly "@stylistic/space-unary-ops": State.ON;
383
+ readonly "@stylistic/spaced-comment": readonly [
384
+ State.ON,
385
+ "always",
386
+ {
387
+ readonly line: {
388
+ readonly exceptions: readonly [
389
+ "/",
390
+ "-",
391
+ "+",
392
+ "="
393
+ ];
394
+ readonly markers: readonly [
395
+ "!",
396
+ "@",
397
+ "#",
398
+ "/",
399
+ "#region",
400
+ "#endregion",
401
+ "#part",
402
+ "/#region",
403
+ "/#endregion",
404
+ "/#part"
405
+ ];
406
+ };
407
+ readonly block: {
408
+ readonly exceptions: readonly [
409
+ "*"
410
+ ];
411
+ readonly markers: readonly [
412
+ "*"
413
+ ];
414
+ readonly balanced: true;
415
+ };
416
+ }
417
+ ];
418
+ readonly "@stylistic/switch-colon-spacing": State.ON;
419
+ readonly "@stylistic/template-curly-spacing": State.ON;
420
+ readonly "@stylistic/template-tag-spacing": State.ON;
421
+ readonly "@stylistic/type-annotation-spacing": readonly [
422
+ State.ON,
423
+ {
424
+ readonly before: true;
425
+ readonly after: true;
426
+ readonly overrides: {
427
+ readonly colon: {
428
+ readonly before: false;
429
+ readonly after: true;
430
+ };
193
431
  };
194
- };
195
- }];
196
- readonly "@stylistic/type-generic-spacing": 2;
197
- readonly "@stylistic/type-named-tuple-spacing": 2;
198
- readonly "@stylistic/wrap-iife": readonly [2, "inside", {
199
- readonly functionPrototypeMethods: true;
200
- }];
201
- readonly "@stylistic/wrap-regex": 2;
202
- readonly "@stylistic/yield-star-spacing": 2;
432
+ }
433
+ ];
434
+ readonly "@stylistic/type-generic-spacing": State.ON;
435
+ readonly "@stylistic/type-named-tuple-spacing": State.ON;
436
+ readonly "@stylistic/wrap-iife": readonly [
437
+ State.ON,
438
+ "inside",
439
+ {
440
+ readonly functionPrototypeMethods: true;
441
+ }
442
+ ];
443
+ readonly "@stylistic/wrap-regex": State.ON;
444
+ readonly "@stylistic/yield-star-spacing": State.ON;
203
445
  };
204
446
  };
205
447
  export default _default;
206
- //# sourceMappingURL=base.stylistic.d.ts.map
448
+ //# sourceMappingURL=base.stylistic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/base.stylistic.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,wBA+cE"}
1
+ {"version":3,"file":"base.stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/base.stylistic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGhC,wBA8cE"}