linted 22.0.0-rc.3 → 22.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (287) hide show
  1. package/dist/{imports/index.d.ts → imports.d.ts} +1 -1
  2. package/dist/imports.d.ts.map +1 -0
  3. package/dist/imports.js +7 -0
  4. package/dist/imports.js.map +1 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +5 -13
  7. package/dist/index.js.map +1 -1
  8. package/dist/{imports/parsers.d.ts → parsers/index.d.ts} +1 -1
  9. package/dist/parsers/index.d.ts.map +1 -0
  10. package/dist/{imports/parsers.js → parsers/index.js} +1 -1
  11. package/dist/parsers/index.js.map +1 -0
  12. package/dist/{imports/plugins.d.ts → plugins/index.d.ts} +1 -1
  13. package/dist/plugins/index.d.ts.map +1 -0
  14. package/dist/{imports/plugins.js → plugins/index.js} +1 -1
  15. package/dist/plugins/index.js.map +1 -0
  16. package/package.json +2 -1
  17. package/src/index.ts +10 -18
  18. package/dist/_strings/id.d.ts +0 -2
  19. package/dist/_strings/id.d.ts.map +0 -1
  20. package/dist/_strings/id.js +0 -2
  21. package/dist/_strings/id.js.map +0 -1
  22. package/dist/_strings/index.d.ts +0 -7
  23. package/dist/_strings/index.d.ts.map +0 -1
  24. package/dist/_strings/index.js +0 -7
  25. package/dist/_strings/index.js.map +0 -1
  26. package/dist/_strings/level.d.ts +0 -2
  27. package/dist/_strings/level.d.ts.map +0 -1
  28. package/dist/_strings/level.js +0 -2
  29. package/dist/_strings/level.js.map +0 -1
  30. package/dist/_strings/level.spec.d.ts +0 -2
  31. package/dist/_strings/level.spec.d.ts.map +0 -1
  32. package/dist/_strings/level.spec.js +0 -31
  33. package/dist/_strings/level.spec.js.map +0 -1
  34. package/dist/_strings/state.d.ts +0 -2
  35. package/dist/_strings/state.d.ts.map +0 -1
  36. package/dist/_strings/state.js +0 -2
  37. package/dist/_strings/state.js.map +0 -1
  38. package/dist/files/index.d.ts +0 -13
  39. package/dist/files/index.d.ts.map +0 -1
  40. package/dist/files/index.js +0 -20
  41. package/dist/files/index.js.map +0 -1
  42. package/dist/files/scopes/html.d.ts +0 -3
  43. package/dist/files/scopes/html.d.ts.map +0 -1
  44. package/dist/files/scopes/html.js +0 -2
  45. package/dist/files/scopes/html.js.map +0 -1
  46. package/dist/files/scopes/js.d.ts +0 -3
  47. package/dist/files/scopes/js.d.ts.map +0 -1
  48. package/dist/files/scopes/js.js +0 -5
  49. package/dist/files/scopes/js.js.map +0 -1
  50. package/dist/files/scopes/json.d.ts +0 -3
  51. package/dist/files/scopes/json.d.ts.map +0 -1
  52. package/dist/files/scopes/json.js +0 -2
  53. package/dist/files/scopes/json.js.map +0 -1
  54. package/dist/files/scopes/jsonc.d.ts +0 -3
  55. package/dist/files/scopes/jsonc.d.ts.map +0 -1
  56. package/dist/files/scopes/jsonc.js +0 -6
  57. package/dist/files/scopes/jsonc.js.map +0 -1
  58. package/dist/files/scopes/mocha.d.ts +0 -3
  59. package/dist/files/scopes/mocha.d.ts.map +0 -1
  60. package/dist/files/scopes/mocha.js +0 -5
  61. package/dist/files/scopes/mocha.js.map +0 -1
  62. package/dist/files/scopes/svelte.d.ts +0 -3
  63. package/dist/files/scopes/svelte.d.ts.map +0 -1
  64. package/dist/files/scopes/svelte.js +0 -2
  65. package/dist/files/scopes/svelte.js.map +0 -1
  66. package/dist/files/scopes/ts.d.ts +0 -3
  67. package/dist/files/scopes/ts.d.ts.map +0 -1
  68. package/dist/files/scopes/ts.js +0 -2
  69. package/dist/files/scopes/ts.js.map +0 -1
  70. package/dist/files/scopes/yml.d.ts +0 -3
  71. package/dist/files/scopes/yml.d.ts.map +0 -1
  72. package/dist/files/scopes/yml.js +0 -2
  73. package/dist/files/scopes/yml.js.map +0 -1
  74. package/dist/ignores/index.d.ts +0 -13
  75. package/dist/ignores/index.d.ts.map +0 -1
  76. package/dist/ignores/index.js +0 -29
  77. package/dist/ignores/index.js.map +0 -1
  78. package/dist/ignores/scopes/html.d.ts +0 -3
  79. package/dist/ignores/scopes/html.d.ts.map +0 -1
  80. package/dist/ignores/scopes/html.js +0 -2
  81. package/dist/ignores/scopes/html.js.map +0 -1
  82. package/dist/ignores/scopes/js.d.ts +0 -3
  83. package/dist/ignores/scopes/js.d.ts.map +0 -1
  84. package/dist/ignores/scopes/js.js +0 -2
  85. package/dist/ignores/scopes/js.js.map +0 -1
  86. package/dist/ignores/scopes/json.d.ts +0 -3
  87. package/dist/ignores/scopes/json.d.ts.map +0 -1
  88. package/dist/ignores/scopes/json.js +0 -2
  89. package/dist/ignores/scopes/json.js.map +0 -1
  90. package/dist/ignores/scopes/jsonc.d.ts +0 -3
  91. package/dist/ignores/scopes/jsonc.d.ts.map +0 -1
  92. package/dist/ignores/scopes/jsonc.js +0 -2
  93. package/dist/ignores/scopes/jsonc.js.map +0 -1
  94. package/dist/ignores/scopes/mocha.d.ts +0 -3
  95. package/dist/ignores/scopes/mocha.d.ts.map +0 -1
  96. package/dist/ignores/scopes/mocha.js +0 -2
  97. package/dist/ignores/scopes/mocha.js.map +0 -1
  98. package/dist/ignores/scopes/svelte.d.ts +0 -3
  99. package/dist/ignores/scopes/svelte.d.ts.map +0 -1
  100. package/dist/ignores/scopes/svelte.js +0 -2
  101. package/dist/ignores/scopes/svelte.js.map +0 -1
  102. package/dist/ignores/scopes/ts.d.ts +0 -3
  103. package/dist/ignores/scopes/ts.d.ts.map +0 -1
  104. package/dist/ignores/scopes/ts.js +0 -2
  105. package/dist/ignores/scopes/ts.js.map +0 -1
  106. package/dist/ignores/scopes/yml.d.ts +0 -3
  107. package/dist/ignores/scopes/yml.d.ts.map +0 -1
  108. package/dist/ignores/scopes/yml.js +0 -2
  109. package/dist/ignores/scopes/yml.js.map +0 -1
  110. package/dist/imports/index.d.ts.map +0 -1
  111. package/dist/imports/index.js +0 -7
  112. package/dist/imports/index.js.map +0 -1
  113. package/dist/imports/parsers.d.ts.map +0 -1
  114. package/dist/imports/parsers.js.map +0 -1
  115. package/dist/imports/plugins.d.ts.map +0 -1
  116. package/dist/imports/plugins.js.map +0 -1
  117. package/dist/rules/html/enable.d.ts +0 -3
  118. package/dist/rules/html/enable.d.ts.map +0 -1
  119. package/dist/rules/html/enable.js +0 -94
  120. package/dist/rules/html/enable.js.map +0 -1
  121. package/dist/rules/html/index.d.ts +0 -3
  122. package/dist/rules/html/index.d.ts.map +0 -1
  123. package/dist/rules/html/index.js +0 -3
  124. package/dist/rules/html/index.js.map +0 -1
  125. package/dist/rules/index.d.ts +0 -4563
  126. package/dist/rules/index.d.ts.map +0 -1
  127. package/dist/rules/index.js +0 -19
  128. package/dist/rules/index.js.map +0 -1
  129. package/dist/rules/js/enable.d.ts +0 -348
  130. package/dist/rules/js/enable.d.ts.map +0 -1
  131. package/dist/rules/js/enable.js +0 -519
  132. package/dist/rules/js/enable.js.map +0 -1
  133. package/dist/rules/js/index.d.ts +0 -766
  134. package/dist/rules/js/index.d.ts.map +0 -1
  135. package/dist/rules/js/index.js +0 -7
  136. package/dist/rules/js/index.js.map +0 -1
  137. package/dist/rules/js/stylistic.d.ts +0 -421
  138. package/dist/rules/js/stylistic.d.ts.map +0 -1
  139. package/dist/rules/js/stylistic.js +0 -641
  140. package/dist/rules/js/stylistic.js.map +0 -1
  141. package/dist/rules/json/enable.d.ts +0 -27
  142. package/dist/rules/json/enable.d.ts.map +0 -1
  143. package/dist/rules/json/enable.js +0 -30
  144. package/dist/rules/json/enable.js.map +0 -1
  145. package/dist/rules/json/enable_x.d.ts +0 -50
  146. package/dist/rules/json/enable_x.d.ts.map +0 -1
  147. package/dist/rules/json/enable_x.js +0 -80
  148. package/dist/rules/json/enable_x.js.map +0 -1
  149. package/dist/rules/json/index.d.ts +0 -74
  150. package/dist/rules/json/index.d.ts.map +0 -1
  151. package/dist/rules/json/index.js +0 -7
  152. package/dist/rules/json/index.js.map +0 -1
  153. package/dist/rules/jsonc/index.d.ts +0 -77
  154. package/dist/rules/jsonc/index.d.ts.map +0 -1
  155. package/dist/rules/jsonc/index.js +0 -7
  156. package/dist/rules/jsonc/index.js.map +0 -1
  157. package/dist/rules/jsonc/override.d.ts +0 -6
  158. package/dist/rules/jsonc/override.d.ts.map +0 -1
  159. package/dist/rules/jsonc/override.js +0 -12
  160. package/dist/rules/jsonc/override.js.map +0 -1
  161. package/dist/rules/mocha/disable.d.ts +0 -5
  162. package/dist/rules/mocha/disable.d.ts.map +0 -1
  163. package/dist/rules/mocha/disable.js +0 -8
  164. package/dist/rules/mocha/disable.js.map +0 -1
  165. package/dist/rules/mocha/enable.d.ts +0 -35
  166. package/dist/rules/mocha/enable.d.ts.map +0 -1
  167. package/dist/rules/mocha/enable.js +0 -47
  168. package/dist/rules/mocha/enable.js.map +0 -1
  169. package/dist/rules/mocha/index.d.ts +0 -1171
  170. package/dist/rules/mocha/index.d.ts.map +0 -1
  171. package/dist/rules/mocha/index.js +0 -9
  172. package/dist/rules/mocha/index.js.map +0 -1
  173. package/dist/rules/svelte/disable.d.ts +0 -5
  174. package/dist/rules/svelte/disable.d.ts.map +0 -1
  175. package/dist/rules/svelte/disable.js +0 -8
  176. package/dist/rules/svelte/disable.js.map +0 -1
  177. package/dist/rules/svelte/disable_js.d.ts +0 -6
  178. package/dist/rules/svelte/disable_js.d.ts.map +0 -1
  179. package/dist/rules/svelte/disable_js.js +0 -9
  180. package/dist/rules/svelte/disable_js.js.map +0 -1
  181. package/dist/rules/svelte/disable_ts.d.ts +0 -6
  182. package/dist/rules/svelte/disable_ts.d.ts.map +0 -1
  183. package/dist/rules/svelte/disable_ts.js +0 -9
  184. package/dist/rules/svelte/disable_ts.js.map +0 -1
  185. package/dist/rules/svelte/enable.d.ts +0 -127
  186. package/dist/rules/svelte/enable.d.ts.map +0 -1
  187. package/dist/rules/svelte/enable.js +0 -193
  188. package/dist/rules/svelte/enable.js.map +0 -1
  189. package/dist/rules/svelte/enable_x.d.ts +0 -8
  190. package/dist/rules/svelte/enable_x.d.ts.map +0 -1
  191. package/dist/rules/svelte/enable_x.js +0 -15
  192. package/dist/rules/svelte/enable_x.js.map +0 -1
  193. package/dist/rules/svelte/index.d.ts +0 -1274
  194. package/dist/rules/svelte/index.d.ts.map +0 -1
  195. package/dist/rules/svelte/index.js +0 -15
  196. package/dist/rules/svelte/index.js.map +0 -1
  197. package/dist/rules/ts/disable.d.ts +0 -18
  198. package/dist/rules/ts/disable.d.ts.map +0 -1
  199. package/dist/rules/ts/disable.js +0 -21
  200. package/dist/rules/ts/disable.js.map +0 -1
  201. package/dist/rules/ts/disable_x.d.ts +0 -28
  202. package/dist/rules/ts/disable_x.d.ts.map +0 -1
  203. package/dist/rules/ts/disable_x.js +0 -31
  204. package/dist/rules/ts/disable_x.js.map +0 -1
  205. package/dist/rules/ts/enable.d.ts +0 -265
  206. package/dist/rules/ts/enable.d.ts.map +0 -1
  207. package/dist/rules/ts/enable.js +0 -520
  208. package/dist/rules/ts/enable.js.map +0 -1
  209. package/dist/rules/ts/enable_x.d.ts +0 -72
  210. package/dist/rules/ts/enable_x.d.ts.map +0 -1
  211. package/dist/rules/ts/enable_x.js +0 -108
  212. package/dist/rules/ts/enable_x.js.map +0 -1
  213. package/dist/rules/ts/index.d.ts +0 -1137
  214. package/dist/rules/ts/index.d.ts.map +0 -1
  215. package/dist/rules/ts/index.js +0 -13
  216. package/dist/rules/ts/index.js.map +0 -1
  217. package/dist/rules/yml/enable.d.ts +0 -39
  218. package/dist/rules/yml/enable.d.ts.map +0 -1
  219. package/dist/rules/yml/enable.js +0 -68
  220. package/dist/rules/yml/enable.js.map +0 -1
  221. package/dist/rules/yml/enable_x.d.ts +0 -37
  222. package/dist/rules/yml/enable_x.d.ts.map +0 -1
  223. package/dist/rules/yml/enable_x.js +0 -66
  224. package/dist/rules/yml/enable_x.js.map +0 -1
  225. package/dist/rules/yml/index.d.ts +0 -73
  226. package/dist/rules/yml/index.d.ts.map +0 -1
  227. package/dist/rules/yml/index.js +0 -7
  228. package/dist/rules/yml/index.js.map +0 -1
  229. package/dist/settings.d.ts +0 -7
  230. package/dist/settings.d.ts.map +0 -1
  231. package/dist/settings.js +0 -7
  232. package/dist/settings.js.map +0 -1
  233. package/src/_strings/id.ts +0 -8
  234. package/src/_strings/index.ts +0 -6
  235. package/src/_strings/level.spec.ts +0 -31
  236. package/src/_strings/level.ts +0 -4
  237. package/src/_strings/state.ts +0 -28
  238. package/src/files/index.ts +0 -20
  239. package/src/files/scopes/html.ts +0 -1
  240. package/src/files/scopes/js.ts +0 -4
  241. package/src/files/scopes/json.ts +0 -1
  242. package/src/files/scopes/jsonc.ts +0 -5
  243. package/src/files/scopes/mocha.ts +0 -4
  244. package/src/files/scopes/svelte.ts +0 -1
  245. package/src/files/scopes/ts.ts +0 -1
  246. package/src/files/scopes/yml.ts +0 -1
  247. package/src/ignores/index.ts +0 -31
  248. package/src/ignores/scopes/html.ts +0 -1
  249. package/src/ignores/scopes/js.ts +0 -1
  250. package/src/ignores/scopes/json.ts +0 -1
  251. package/src/ignores/scopes/jsonc.ts +0 -1
  252. package/src/ignores/scopes/mocha.ts +0 -1
  253. package/src/ignores/scopes/svelte.ts +0 -1
  254. package/src/ignores/scopes/ts.ts +0 -1
  255. package/src/ignores/scopes/yml.ts +0 -1
  256. package/src/rules/html/enable.ts +0 -121
  257. package/src/rules/html/index.ts +0 -3
  258. package/src/rules/index.ts +0 -19
  259. package/src/rules/js/enable.ts +0 -547
  260. package/src/rules/js/index.ts +0 -7
  261. package/src/rules/js/stylistic.ts +0 -664
  262. package/src/rules/json/enable.ts +0 -35
  263. package/src/rules/json/enable_x.ts +0 -91
  264. package/src/rules/json/index.ts +0 -7
  265. package/src/rules/jsonc/index.ts +0 -7
  266. package/src/rules/jsonc/override.ts +0 -18
  267. package/src/rules/mocha/disable.ts +0 -11
  268. package/src/rules/mocha/enable.ts +0 -53
  269. package/src/rules/mocha/index.ts +0 -9
  270. package/src/rules/svelte/disable.ts +0 -12
  271. package/src/rules/svelte/disable_js.ts +0 -11
  272. package/src/rules/svelte/disable_ts.ts +0 -9
  273. package/src/rules/svelte/enable.ts +0 -232
  274. package/src/rules/svelte/enable_x.ts +0 -22
  275. package/src/rules/svelte/index.ts +0 -15
  276. package/src/rules/ts/disable.ts +0 -25
  277. package/src/rules/ts/disable_x.ts +0 -35
  278. package/src/rules/ts/enable.ts +0 -569
  279. package/src/rules/ts/enable_x.ts +0 -117
  280. package/src/rules/ts/index.ts +0 -13
  281. package/src/rules/yml/enable.ts +0 -76
  282. package/src/rules/yml/enable_x.ts +0 -73
  283. package/src/rules/yml/index.ts +0 -7
  284. package/src/settings.ts +0 -6
  285. /package/src/{imports/index.ts → imports.ts} +0 -0
  286. /package/src/{imports/parsers.ts → parsers/index.ts} +0 -0
  287. /package/src/{imports/plugins.ts → plugins/index.ts} +0 -0
@@ -1,76 +0,0 @@
1
- import {
2
- enable,
3
- ERROR,
4
- OFF,
5
- Never,
6
- Always,
7
- Double,
8
- } from "../../_strings";
9
-
10
- export default [
11
- enable,
12
- {
13
- // https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
14
- "yml/block-mapping-colon-indicator-newline": [
15
- ERROR,
16
- Never,
17
- ],
18
- "yml/block-mapping-question-indicator-newline": [
19
- ERROR,
20
- Never,
21
- ],
22
- "yml/block-mapping": [
23
- ERROR,
24
- {
25
- singleline: Never,
26
- multiline: Always,
27
- },
28
- ],
29
- "yml/block-sequence-hyphen-indicator-newline": [
30
- ERROR,
31
- Never,
32
- {
33
- nestedHyphen: Always,
34
- blockMapping: Never,
35
- },
36
- ],
37
- "yml/block-sequence": [
38
- ERROR,
39
- {
40
- singleline: Always,
41
- multiline: Always,
42
- },
43
- ],
44
- "yml/file-extension": OFF,
45
- "yml/indent": [
46
- ERROR,
47
- 2,
48
- {
49
- indentBlockSequences: true,
50
- indicatorValueIndent: 2,
51
- },
52
- ],
53
- "yml/key-name-casing": OFF,
54
- "yml/no-empty-document": ERROR,
55
- "yml/no-empty-key": ERROR,
56
- "yml/no-empty-mapping-value": ERROR,
57
- "yml/no-empty-sequence-entry": ERROR,
58
- "yml/no-tab-indent": ERROR,
59
- "yml/no-trailing-zeros": ERROR,
60
- "yml/plain-scalar": [
61
- ERROR,
62
- Always,
63
- ],
64
- "yml/quotes": [
65
- ERROR,
66
- {
67
- prefer: Double,
68
- avoidEscape: true,
69
- },
70
- ],
71
- "yml/require-string-key": ERROR,
72
- "yml/sort-keys": OFF,
73
- "yml/sort-sequence-values": OFF,
74
- "yml/vue-custom-block/no-parsing-error": ERROR,
75
- },
76
- ] as const;
@@ -1,73 +0,0 @@
1
- import {
2
- enable_x,
3
- ERROR,
4
- Never,
5
- Always,
6
- Strict,
7
- } from "../../_strings";
8
-
9
- export default [
10
- enable_x,
11
- {
12
- // https://ota-meshi.github.io/eslint-plugin-yml/rules/#extension-rules
13
- "yml/flow-mapping-curly-newline": [
14
- ERROR,
15
- {
16
- consistent: false,
17
- multiline: true,
18
- minProperties: 2,
19
- },
20
- ],
21
- "yml/flow-mapping-curly-spacing": [
22
- ERROR,
23
- Always,
24
- {
25
- arraysInObjects: true,
26
- objectsInObjects: true,
27
- },
28
- ],
29
- "yml/flow-sequence-bracket-newline": [
30
- ERROR,
31
- {
32
- multiline: true,
33
- minItems: null,
34
- },
35
- ],
36
- "yml/flow-sequence-bracket-spacing": [
37
- ERROR,
38
- Never,
39
- {
40
- singleValue: false,
41
- objectsInArrays: false,
42
- arraysInArrays: false,
43
- },
44
- ],
45
- "yml/key-spacing": [
46
- ERROR,
47
- {
48
- beforeColon: false,
49
- afterColon: true,
50
- mode: Strict,
51
- },
52
- ],
53
- "yml/no-irregular-whitespace": [
54
- ERROR,
55
- {
56
- skipQuotedScalars: true,
57
- skipComments: false,
58
- },
59
- ],
60
- "yml/no-multiple-empty-lines": [
61
- ERROR,
62
- {
63
- max: 1,
64
- maxEOF: 1,
65
- maxBOF: 0,
66
- },
67
- ],
68
- "yml/spaced-comment": [
69
- ERROR,
70
- Always,
71
- ],
72
- },
73
- ] as const;
@@ -1,7 +0,0 @@
1
- import enable_x from "./enable_x";
2
- import enable from "./enable";
3
-
4
- export default [
5
- enable_x,
6
- enable,
7
- ];
package/src/settings.ts DELETED
@@ -1,6 +0,0 @@
1
- export const settings = {
2
- ecmaVersion: 2023,
3
- sourceType: "module",
4
- noInlineConfig: true,
5
- reportUnusedDisableDirectives: "error",
6
- } as const;
File without changes
File without changes
File without changes