linted 16.12.2-rc.0 → 16.12.2-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. package/dist/rules/html/{_enable.d.ts → enable.d.ts} +1 -1
  2. package/dist/rules/html/enable.d.ts.map +1 -0
  3. package/dist/rules/html/enable.js +15 -0
  4. package/dist/rules/html/enable.js.map +1 -0
  5. package/dist/rules/{mocha/_recommended.d.ts → html/enable_recommended.d.ts} +1 -1
  6. package/dist/rules/html/enable_recommended.d.ts.map +1 -0
  7. package/dist/rules/html/enable_recommended.js +8 -0
  8. package/dist/rules/html/enable_recommended.js.map +1 -0
  9. package/dist/rules/{_html.d.ts → html.d.ts} +1 -1
  10. package/dist/rules/html.d.ts.map +1 -0
  11. package/dist/rules/html.js +4 -0
  12. package/dist/rules/html.js.map +1 -0
  13. package/dist/rules/js/{_enable.d.ts → enable.d.ts} +1 -1
  14. package/dist/rules/js/{_enable.d.ts.map → enable.d.ts.map} +1 -1
  15. package/dist/rules/js/{_enable.js → enable.js} +281 -45
  16. package/dist/rules/js/enable.js.map +1 -0
  17. package/dist/rules/js/{stylistic.d.ts → enable_stylistic.d.ts} +25 -25
  18. package/dist/rules/js/{stylistic.d.ts.map → enable_stylistic.d.ts.map} +1 -1
  19. package/dist/rules/js/enable_stylistic.js +585 -0
  20. package/dist/rules/js/enable_stylistic.js.map +1 -0
  21. package/dist/rules/{_js.d.ts → js.d.ts} +25 -25
  22. package/dist/rules/{_js.d.ts.map → js.d.ts.map} +1 -1
  23. package/dist/rules/js.js +4 -0
  24. package/dist/rules/js.js.map +1 -0
  25. package/dist/rules/json/{_enable.d.ts → enable.d.ts} +1 -1
  26. package/dist/rules/json/enable.d.ts.map +1 -0
  27. package/dist/rules/json/{_enable.js → enable.js} +3 -3
  28. package/dist/rules/json/enable.js.map +1 -0
  29. package/dist/rules/json/enable_x.d.ts.map +1 -1
  30. package/dist/rules/json/enable_x.js +48 -8
  31. package/dist/rules/json/enable_x.js.map +1 -1
  32. package/dist/rules/{_json.d.ts → json.d.ts} +1 -1
  33. package/dist/rules/json.d.ts.map +1 -0
  34. package/dist/rules/{_json.js → json.js} +2 -2
  35. package/dist/rules/json.js.map +1 -0
  36. package/dist/rules/jsonc/override.d.ts.map +1 -1
  37. package/dist/rules/jsonc/override.js +12 -3
  38. package/dist/rules/jsonc/override.js.map +1 -1
  39. package/dist/rules/{_jsonc.d.ts → jsonc.d.ts} +1 -1
  40. package/dist/rules/jsonc.d.ts.map +1 -0
  41. package/dist/rules/{_jsonc.js → jsonc.js} +2 -2
  42. package/dist/rules/jsonc.js.map +1 -0
  43. package/dist/rules/md/{_enable.d.ts → enable.d.ts} +1 -1
  44. package/dist/rules/md/enable.d.ts.map +1 -0
  45. package/dist/rules/md/enable.js +14 -0
  46. package/dist/rules/md/enable.js.map +1 -0
  47. package/dist/rules/{_md.d.ts → md.d.ts} +1 -1
  48. package/dist/rules/md.d.ts.map +1 -0
  49. package/dist/rules/md.js +3 -0
  50. package/dist/rules/md.js.map +1 -0
  51. package/dist/rules/mocha/{_enable.d.ts → enable.d.ts} +1 -1
  52. package/dist/rules/mocha/enable.d.ts.map +1 -0
  53. package/dist/rules/mocha/enable.js +3 -0
  54. package/dist/rules/mocha/enable.js.map +1 -0
  55. package/dist/rules/{html/_recommended.d.ts → mocha/enable_recommended.d.ts} +1 -1
  56. package/dist/rules/mocha/enable_recommended.d.ts.map +1 -0
  57. package/dist/rules/mocha/enable_recommended.js +8 -0
  58. package/dist/rules/mocha/enable_recommended.js.map +1 -0
  59. package/dist/rules/{_mocha.d.ts → mocha.d.ts} +1 -1
  60. package/dist/rules/mocha.d.ts.map +1 -0
  61. package/dist/rules/mocha.js +4 -0
  62. package/dist/rules/mocha.js.map +1 -0
  63. package/dist/rules/svelte/disable.d.ts +5 -0
  64. package/dist/rules/svelte/disable.d.ts.map +1 -0
  65. package/dist/rules/svelte/disable.js +8 -0
  66. package/dist/rules/svelte/disable.js.map +1 -0
  67. package/dist/rules/svelte/disable_js.d.ts.map +1 -1
  68. package/dist/rules/svelte/disable_js.js +8 -3
  69. package/dist/rules/svelte/disable_js.js.map +1 -1
  70. package/dist/rules/svelte/disable_ts.d.ts.map +1 -1
  71. package/dist/rules/svelte/disable_ts.js +8 -3
  72. package/dist/rules/svelte/disable_ts.js.map +1 -1
  73. package/dist/rules/svelte/{_enable.d.ts → enable.d.ts} +1 -1
  74. package/dist/rules/svelte/enable.d.ts.map +1 -0
  75. package/dist/rules/svelte/enable.js +190 -0
  76. package/dist/rules/svelte/enable.js.map +1 -0
  77. package/dist/rules/svelte/enable_x.d.ts.map +1 -1
  78. package/dist/rules/svelte/enable_x.js +15 -3
  79. package/dist/rules/svelte/enable_x.js.map +1 -1
  80. package/dist/rules/{_svelte.d.ts → svelte.d.ts} +27 -27
  81. package/dist/rules/{_svelte.d.ts.map → svelte.d.ts.map} +1 -1
  82. package/dist/rules/{_svelte.js → svelte.js} +4 -4
  83. package/dist/rules/svelte.js.map +1 -0
  84. package/dist/rules/ts/{disable_compiler.d.ts → disable.d.ts} +2 -2
  85. package/dist/rules/ts/disable.d.ts.map +1 -0
  86. package/dist/rules/ts/{disable_compiler.js → disable.js} +3 -4
  87. package/dist/rules/ts/disable.js.map +1 -0
  88. package/dist/rules/ts/disable_x.d.ts.map +1 -1
  89. package/dist/rules/ts/disable_x.js +1 -2
  90. package/dist/rules/ts/disable_x.js.map +1 -1
  91. package/dist/rules/ts/{_enable.d.ts → enable.d.ts} +1 -1
  92. package/dist/rules/ts/enable.d.ts.map +1 -0
  93. package/dist/rules/ts/{_enable.js → enable.js} +173 -29
  94. package/dist/rules/ts/enable.js.map +1 -0
  95. package/dist/rules/ts/enable_x.d.ts.map +1 -1
  96. package/dist/rules/ts/enable_x.js +32 -5
  97. package/dist/rules/ts/enable_x.js.map +1 -1
  98. package/dist/rules/{_ts.d.ts → ts.d.ts} +26 -26
  99. package/dist/rules/{_ts.d.ts.map → ts.d.ts.map} +1 -1
  100. package/dist/rules/{_ts.js → ts.js} +4 -4
  101. package/dist/rules/ts.js.map +1 -0
  102. package/dist/rules/yml/{_enable.d.ts → enable.d.ts} +1 -1
  103. package/dist/rules/yml/enable.d.ts.map +1 -0
  104. package/dist/rules/yml/enable.js +60 -0
  105. package/dist/rules/yml/enable.js.map +1 -0
  106. package/dist/rules/yml/enable_x.d.ts.map +1 -1
  107. package/dist/rules/yml/enable_x.js +57 -9
  108. package/dist/rules/yml/enable_x.js.map +1 -1
  109. package/dist/rules/{_yml.d.ts → yml.d.ts} +1 -1
  110. package/dist/rules/yml.d.ts.map +1 -0
  111. package/dist/rules/{_yml.js → yml.js} +2 -2
  112. package/dist/rules/yml.js.map +1 -0
  113. package/dist/rules.d.ts +75 -75
  114. package/dist/rules.js +9 -9
  115. package/dist/rules.js.map +1 -1
  116. package/package.json +2 -2
  117. package/src/rules/html/enable.ts +16 -0
  118. package/src/rules/html/enable_recommended.ts +9 -0
  119. package/src/rules/html.ts +4 -0
  120. package/src/rules/js/enable.ts +524 -0
  121. package/src/rules/js/enable_stylistic.ts +608 -0
  122. package/src/rules/js.ts +4 -0
  123. package/src/rules/json/{_enable.ts → enable.ts} +3 -5
  124. package/src/rules/json/enable_x.ts +48 -9
  125. package/src/rules/{_json.ts → json.ts} +1 -1
  126. package/src/rules/jsonc/override.ts +13 -6
  127. package/src/rules/{_jsonc.ts → jsonc.ts} +1 -1
  128. package/src/rules/md/enable.ts +15 -0
  129. package/src/rules/md.ts +3 -0
  130. package/src/rules/mocha/enable.ts +3 -0
  131. package/src/rules/mocha/enable_recommended.ts +9 -0
  132. package/src/rules/mocha.ts +4 -0
  133. package/src/rules/svelte/disable.ts +9 -0
  134. package/src/rules/svelte/disable_js.ts +10 -6
  135. package/src/rules/svelte/disable_ts.ts +8 -4
  136. package/src/rules/svelte/{_enable.ts → enable.ts} +120 -21
  137. package/src/rules/svelte/enable_x.ts +15 -4
  138. package/src/rules/{_svelte.ts → svelte.ts} +3 -3
  139. package/src/rules/ts/{disable_compiler.ts → disable.ts} +3 -4
  140. package/src/rules/ts/disable_x.ts +2 -6
  141. package/src/rules/ts/{_enable.ts → enable.ts} +176 -33
  142. package/src/rules/ts/enable_x.ts +37 -12
  143. package/src/rules/{_ts.ts → ts.ts} +3 -3
  144. package/src/rules/yml/{_enable.ts → enable.ts} +38 -7
  145. package/src/rules/yml/enable_x.ts +56 -9
  146. package/src/rules/{_yml.ts → yml.ts} +1 -1
  147. package/src/rules.ts +9 -9
  148. package/dist/rules/_html.d.ts.map +0 -1
  149. package/dist/rules/_html.js +0 -4
  150. package/dist/rules/_html.js.map +0 -1
  151. package/dist/rules/_js.js +0 -4
  152. package/dist/rules/_js.js.map +0 -1
  153. package/dist/rules/_json.d.ts.map +0 -1
  154. package/dist/rules/_json.js.map +0 -1
  155. package/dist/rules/_jsonc.d.ts.map +0 -1
  156. package/dist/rules/_jsonc.js.map +0 -1
  157. package/dist/rules/_md.d.ts.map +0 -1
  158. package/dist/rules/_md.js +0 -3
  159. package/dist/rules/_md.js.map +0 -1
  160. package/dist/rules/_mocha.d.ts.map +0 -1
  161. package/dist/rules/_mocha.js +0 -4
  162. package/dist/rules/_mocha.js.map +0 -1
  163. package/dist/rules/_svelte.js.map +0 -1
  164. package/dist/rules/_ts.js.map +0 -1
  165. package/dist/rules/_yml.d.ts.map +0 -1
  166. package/dist/rules/_yml.js.map +0 -1
  167. package/dist/rules/html/_enable.d.ts.map +0 -1
  168. package/dist/rules/html/_enable.js +0 -10
  169. package/dist/rules/html/_enable.js.map +0 -1
  170. package/dist/rules/html/_recommended.d.ts.map +0 -1
  171. package/dist/rules/html/_recommended.js +0 -5
  172. package/dist/rules/html/_recommended.js.map +0 -1
  173. package/dist/rules/js/_enable.js.map +0 -1
  174. package/dist/rules/js/stylistic.js +0 -270
  175. package/dist/rules/js/stylistic.js.map +0 -1
  176. package/dist/rules/json/_enable.d.ts.map +0 -1
  177. package/dist/rules/json/_enable.js.map +0 -1
  178. package/dist/rules/md/_enable.d.ts.map +0 -1
  179. package/dist/rules/md/_enable.js +0 -9
  180. package/dist/rules/md/_enable.js.map +0 -1
  181. package/dist/rules/mocha/_enable.d.ts.map +0 -1
  182. package/dist/rules/mocha/_enable.js +0 -4
  183. package/dist/rules/mocha/_enable.js.map +0 -1
  184. package/dist/rules/mocha/_recommended.d.ts.map +0 -1
  185. package/dist/rules/mocha/_recommended.js +0 -5
  186. package/dist/rules/mocha/_recommended.js.map +0 -1
  187. package/dist/rules/svelte/_enable.d.ts.map +0 -1
  188. package/dist/rules/svelte/_enable.js +0 -90
  189. package/dist/rules/svelte/_enable.js.map +0 -1
  190. package/dist/rules/svelte/disable_x.d.ts +0 -5
  191. package/dist/rules/svelte/disable_x.d.ts.map +0 -1
  192. package/dist/rules/svelte/disable_x.js +0 -4
  193. package/dist/rules/svelte/disable_x.js.map +0 -1
  194. package/dist/rules/ts/_enable.d.ts.map +0 -1
  195. package/dist/rules/ts/_enable.js.map +0 -1
  196. package/dist/rules/ts/disable_compiler.d.ts.map +0 -1
  197. package/dist/rules/ts/disable_compiler.js.map +0 -1
  198. package/dist/rules/yml/_enable.d.ts.map +0 -1
  199. package/dist/rules/yml/_enable.js +0 -28
  200. package/dist/rules/yml/_enable.js.map +0 -1
  201. package/src/rules/_html.ts +0 -4
  202. package/src/rules/_js.ts +0 -4
  203. package/src/rules/_md.ts +0 -3
  204. package/src/rules/_mocha.ts +0 -4
  205. package/src/rules/html/_enable.ts +0 -13
  206. package/src/rules/html/_recommended.ts +0 -7
  207. package/src/rules/js/_enable.ts +0 -287
  208. package/src/rules/js/stylistic.ts +0 -294
  209. package/src/rules/md/_enable.ts +0 -14
  210. package/src/rules/mocha/_enable.ts +0 -5
  211. package/src/rules/mocha/_recommended.ts +0 -7
  212. package/src/rules/svelte/disable_x.ts +0 -8
@@ -1,15 +1,63 @@
1
- import { id, level, state } from "../_strings.js";
2
- const { enable_x } = id, { ERROR } = level, { Never, Always, Strict } = state;
1
+ import { enable_x, level, state } from "../_strings.js";
2
+ const { ERROR } = level, { Never, Always, Strict } = state;
3
3
  export default [
4
4
  enable_x,
5
5
  {
6
- "yml/flow-mapping-curly-newline": [ERROR, { consistent: false, multiline: true, minProperties: 2 }],
7
- "yml/flow-mapping-curly-spacing": [ERROR, Always, { arraysInObjects: true, objectsInObjects: true }],
8
- "yml/flow-sequence-bracket-newline": [ERROR, { multiline: true, minItems: null }],
9
- "yml/flow-sequence-bracket-spacing": [ERROR, Never, { singleValue: false, objectsInArrays: false, arraysInArrays: false }],
10
- "yml/key-spacing": [ERROR, { beforeColon: false, afterColon: true, mode: Strict }],
11
- "yml/no-irregular-whitespace": [ERROR, { skipQuotedScalars: true, skipComments: false }],
12
- "yml/no-multiple-empty-lines": [ERROR, { max: 1, maxEOF: 1, maxBOF: 0 }],
6
+ "yml/flow-mapping-curly-newline": [
7
+ ERROR,
8
+ {
9
+ consistent: false,
10
+ multiline: true,
11
+ minProperties: 2,
12
+ },
13
+ ],
14
+ "yml/flow-mapping-curly-spacing": [
15
+ ERROR,
16
+ Always,
17
+ {
18
+ arraysInObjects: true,
19
+ objectsInObjects: true,
20
+ },
21
+ ],
22
+ "yml/flow-sequence-bracket-newline": [
23
+ ERROR,
24
+ {
25
+ multiline: true,
26
+ minItems: null,
27
+ },
28
+ ],
29
+ "yml/flow-sequence-bracket-spacing": [
30
+ ERROR,
31
+ Never,
32
+ {
33
+ singleValue: false,
34
+ objectsInArrays: false,
35
+ arraysInArrays: false,
36
+ },
37
+ ],
38
+ "yml/key-spacing": [
39
+ ERROR,
40
+ {
41
+ beforeColon: false,
42
+ afterColon: true,
43
+ mode: Strict,
44
+ },
45
+ ],
46
+ "yml/no-irregular-whitespace": [
47
+ ERROR,
48
+ {
49
+ skipQuotedScalars: true,
50
+ skipComments: false,
51
+ },
52
+ ],
53
+ "yml/no-multiple-empty-lines": [
54
+ ERROR,
55
+ {
56
+ max: 1,
57
+ maxEOF: 1,
58
+ maxBOF: 0,
59
+ },
60
+ ],
13
61
  "yml/spaced-comment": [ERROR, Always],
14
62
  },
15
63
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElD,MACA,EAAE,QAAQ,EAAE,GAAG,EAAE,EACjB,EAAE,KAAK,EAAE,GAAG,KAAK,EACjB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;AAElC,eAAe;IACb,QAAQ;IACR;QAEE,gCAAgC,EAAE,CAAC,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;QACnG,gCAAgC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC;QACpG,mCAAmC,EAAE,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACjF,mCAAmC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC;QAC1H,iBAAiB,EAAE,CAAC,KAAK,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAClF,6BAA6B,EAAE,CAAC,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QACxF,6BAA6B,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;QACxE,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;KACtC;CACO,CAAC"}
1
+ {"version":3,"file":"enable_x.js","sourceRoot":"","sources":["../../../src/rules/yml/enable_x.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAExD,MACA,EAAE,KAAK,EAAE,GAAG,KAAK,EACjB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;AAElC,eAAe;IACb,QAAQ;IACR;QAEE,gCAAgC,EAAE;YAChC,KAAK;YACL;gBACE,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,gCAAgC,EAAE;YAChC,KAAK;YACL,MAAM;YACN;gBACE,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;aACf;SACF;QACD,mCAAmC,EAAE;YACnC,KAAK;YACL,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;aACtB;SACF;QACD,iBAAiB,EAAE;YACjB,KAAK;YACL;gBACE,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,KAAK;aACpB;SACF;QACD,6BAA6B,EAAE;YAC7B,KAAK;YACL;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;KACtC;CACO,CAAC"}
@@ -70,4 +70,4 @@ declare const _default: readonly [readonly ["enable-extend", {
70
70
  readonly "yml/vue-custom-block/no-parsing-error": "error";
71
71
  }]];
72
72
  export default _default;
73
- //# sourceMappingURL=_yml.d.ts.map
73
+ //# sourceMappingURL=yml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../src/rules/yml.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAA0C"}
@@ -1,4 +1,4 @@
1
1
  import EnableX from "./yml/enable_x.js";
2
- import Enable from "./yml/_enable.js";
2
+ import Enable from "./yml/enable.js";
3
3
  export default [EnableX, Enable];
4
- //# sourceMappingURL=_yml.js.map
4
+ //# sourceMappingURL=yml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yml.js","sourceRoot":"","sources":["../../src/rules/yml.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,eAAe,CAAC,OAAO,EAAE,MAAM,CAAU,CAAC"}
package/dist/rules.d.ts CHANGED
@@ -134,17 +134,17 @@ declare const _default: {
134
134
  }];
135
135
  readonly "@stylistic/lines-between-class-members": readonly ["error", {
136
136
  readonly enforce: readonly [{
137
- readonly blankLine: "never";
138
137
  readonly prev: "field";
139
138
  readonly next: "field";
139
+ readonly blankLine: "never";
140
140
  }, {
141
- readonly blankLine: "always";
142
141
  readonly prev: "field";
143
142
  readonly next: "method";
144
- }, {
145
143
  readonly blankLine: "always";
144
+ }, {
146
145
  readonly prev: "method";
147
146
  readonly next: "*";
147
+ readonly blankLine: "always";
148
148
  }];
149
149
  }, {
150
150
  readonly exceptAfterSingleLine: false;
@@ -267,89 +267,89 @@ declare const _default: {
267
267
  readonly allowSingleLineBlocks: true;
268
268
  }];
269
269
  readonly "@stylistic/padding-line-between-statements": readonly ["error", {
270
- readonly blankLine: "always";
271
270
  readonly prev: "directive";
272
271
  readonly next: "*";
272
+ readonly blankLine: "always";
273
273
  }, {
274
- readonly blankLine: "never";
275
274
  readonly prev: "directive";
276
275
  readonly next: "directive";
276
+ readonly blankLine: "never";
277
277
  }, {
278
- readonly blankLine: "always";
279
278
  readonly prev: readonly ["import", "cjs-import"];
280
279
  readonly next: "*";
280
+ readonly blankLine: "always";
281
281
  }, {
282
- readonly blankLine: "never";
283
282
  readonly prev: readonly ["import", "cjs-import"];
284
283
  readonly next: readonly ["import", "cjs-import"];
284
+ readonly blankLine: "never";
285
285
  }, {
286
- readonly blankLine: "always";
287
286
  readonly prev: readonly ["class", "interface", "try", "for", "if", "do", "while", "switch", "block", "block-like", "iife", "empty", "debugger", "with"];
288
287
  readonly next: "*";
289
- }, {
290
288
  readonly blankLine: "always";
289
+ }, {
291
290
  readonly prev: "case";
292
291
  readonly next: "*";
293
- }, {
294
292
  readonly blankLine: "always";
293
+ }, {
295
294
  readonly prev: "case";
296
295
  readonly next: readonly ["case", "default"];
297
- }, {
298
296
  readonly blankLine: "always";
297
+ }, {
299
298
  readonly prev: "default";
300
299
  readonly next: "*";
301
- }, {
302
300
  readonly blankLine: "always";
301
+ }, {
303
302
  readonly prev: "type";
304
303
  readonly next: "*";
304
+ readonly blankLine: "always";
305
305
  }, {
306
- readonly blankLine: "never";
307
306
  readonly prev: "type";
308
307
  readonly next: "type";
308
+ readonly blankLine: "never";
309
309
  }, {
310
- readonly blankLine: "always";
311
310
  readonly prev: "function";
312
311
  readonly next: "*";
313
- }, {
314
312
  readonly blankLine: "always";
313
+ }, {
315
314
  readonly prev: "function-overload";
316
315
  readonly next: "*";
316
+ readonly blankLine: "always";
317
317
  }, {
318
- readonly blankLine: "never";
319
318
  readonly prev: "function-overload";
320
319
  readonly next: "function-overload";
321
- }, {
322
320
  readonly blankLine: "never";
321
+ }, {
323
322
  readonly prev: "function-overload";
324
323
  readonly next: "function";
324
+ readonly blankLine: "never";
325
325
  }, {
326
- readonly blankLine: "always";
327
326
  readonly prev: readonly ["const", "let", "var"];
328
327
  readonly next: "*";
328
+ readonly blankLine: "always";
329
329
  }, {
330
- readonly blankLine: "never";
331
330
  readonly prev: readonly ["const", "let", "var"];
332
331
  readonly next: readonly ["const", "let", "var"];
332
+ readonly blankLine: "never";
333
333
  }, {
334
- readonly blankLine: "always";
335
334
  readonly prev: "expression";
336
335
  readonly next: "*";
336
+ readonly blankLine: "always";
337
337
  }, {
338
- readonly blankLine: "never";
339
338
  readonly prev: "expression";
340
339
  readonly next: "expression";
340
+ readonly blankLine: "never";
341
341
  }, {
342
- readonly blankLine: "always";
343
342
  readonly prev: "*";
344
343
  readonly next: readonly ["throw", "return", "break", "continue"];
345
- }, {
346
344
  readonly blankLine: "always";
345
+ }, {
347
346
  readonly prev: "*";
348
347
  readonly next: readonly ["export", "cjs-export"];
348
+ readonly blankLine: "always";
349
349
  }, {
350
- readonly blankLine: "never";
351
350
  readonly prev: readonly ["export", "cjs-export"];
352
351
  readonly next: readonly ["export", "cjs-export"];
352
+ readonly blankLine: "never";
353
353
  }];
354
354
  readonly "@stylistic/quote-props": readonly ["error", "as-needed", {
355
355
  readonly keywords: true;
@@ -897,17 +897,17 @@ declare const _default: {
897
897
  }];
898
898
  readonly "@stylistic/lines-between-class-members": readonly ["error", {
899
899
  readonly enforce: readonly [{
900
- readonly blankLine: "never";
901
900
  readonly prev: "field";
902
901
  readonly next: "field";
902
+ readonly blankLine: "never";
903
903
  }, {
904
- readonly blankLine: "always";
905
904
  readonly prev: "field";
906
905
  readonly next: "method";
907
- }, {
908
906
  readonly blankLine: "always";
907
+ }, {
909
908
  readonly prev: "method";
910
909
  readonly next: "*";
910
+ readonly blankLine: "always";
911
911
  }];
912
912
  }, {
913
913
  readonly exceptAfterSingleLine: false;
@@ -1030,89 +1030,89 @@ declare const _default: {
1030
1030
  readonly allowSingleLineBlocks: true;
1031
1031
  }];
1032
1032
  readonly "@stylistic/padding-line-between-statements": readonly ["error", {
1033
- readonly blankLine: "always";
1034
1033
  readonly prev: "directive";
1035
1034
  readonly next: "*";
1035
+ readonly blankLine: "always";
1036
1036
  }, {
1037
- readonly blankLine: "never";
1038
1037
  readonly prev: "directive";
1039
1038
  readonly next: "directive";
1039
+ readonly blankLine: "never";
1040
1040
  }, {
1041
- readonly blankLine: "always";
1042
1041
  readonly prev: readonly ["import", "cjs-import"];
1043
1042
  readonly next: "*";
1043
+ readonly blankLine: "always";
1044
1044
  }, {
1045
- readonly blankLine: "never";
1046
1045
  readonly prev: readonly ["import", "cjs-import"];
1047
1046
  readonly next: readonly ["import", "cjs-import"];
1047
+ readonly blankLine: "never";
1048
1048
  }, {
1049
- readonly blankLine: "always";
1050
1049
  readonly prev: readonly ["class", "interface", "try", "for", "if", "do", "while", "switch", "block", "block-like", "iife", "empty", "debugger", "with"];
1051
1050
  readonly next: "*";
1052
- }, {
1053
1051
  readonly blankLine: "always";
1052
+ }, {
1054
1053
  readonly prev: "case";
1055
1054
  readonly next: "*";
1056
- }, {
1057
1055
  readonly blankLine: "always";
1056
+ }, {
1058
1057
  readonly prev: "case";
1059
1058
  readonly next: readonly ["case", "default"];
1060
- }, {
1061
1059
  readonly blankLine: "always";
1060
+ }, {
1062
1061
  readonly prev: "default";
1063
1062
  readonly next: "*";
1064
- }, {
1065
1063
  readonly blankLine: "always";
1064
+ }, {
1066
1065
  readonly prev: "type";
1067
1066
  readonly next: "*";
1067
+ readonly blankLine: "always";
1068
1068
  }, {
1069
- readonly blankLine: "never";
1070
1069
  readonly prev: "type";
1071
1070
  readonly next: "type";
1071
+ readonly blankLine: "never";
1072
1072
  }, {
1073
- readonly blankLine: "always";
1074
1073
  readonly prev: "function";
1075
1074
  readonly next: "*";
1076
- }, {
1077
1075
  readonly blankLine: "always";
1076
+ }, {
1078
1077
  readonly prev: "function-overload";
1079
1078
  readonly next: "*";
1079
+ readonly blankLine: "always";
1080
1080
  }, {
1081
- readonly blankLine: "never";
1082
1081
  readonly prev: "function-overload";
1083
1082
  readonly next: "function-overload";
1084
- }, {
1085
1083
  readonly blankLine: "never";
1084
+ }, {
1086
1085
  readonly prev: "function-overload";
1087
1086
  readonly next: "function";
1087
+ readonly blankLine: "never";
1088
1088
  }, {
1089
- readonly blankLine: "always";
1090
1089
  readonly prev: readonly ["const", "let", "var"];
1091
1090
  readonly next: "*";
1091
+ readonly blankLine: "always";
1092
1092
  }, {
1093
- readonly blankLine: "never";
1094
1093
  readonly prev: readonly ["const", "let", "var"];
1095
1094
  readonly next: readonly ["const", "let", "var"];
1095
+ readonly blankLine: "never";
1096
1096
  }, {
1097
- readonly blankLine: "always";
1098
1097
  readonly prev: "expression";
1099
1098
  readonly next: "*";
1099
+ readonly blankLine: "always";
1100
1100
  }, {
1101
- readonly blankLine: "never";
1102
1101
  readonly prev: "expression";
1103
1102
  readonly next: "expression";
1103
+ readonly blankLine: "never";
1104
1104
  }, {
1105
- readonly blankLine: "always";
1106
1105
  readonly prev: "*";
1107
1106
  readonly next: readonly ["throw", "return", "break", "continue"];
1108
- }, {
1109
1107
  readonly blankLine: "always";
1108
+ }, {
1110
1109
  readonly prev: "*";
1111
1110
  readonly next: readonly ["export", "cjs-export"];
1111
+ readonly blankLine: "always";
1112
1112
  }, {
1113
- readonly blankLine: "never";
1114
1113
  readonly prev: readonly ["export", "cjs-export"];
1115
1114
  readonly next: readonly ["export", "cjs-export"];
1115
+ readonly blankLine: "never";
1116
1116
  }];
1117
1117
  readonly "@stylistic/quote-props": readonly ["error", "as-needed", {
1118
1118
  readonly keywords: true;
@@ -1524,7 +1524,7 @@ declare const _default: {
1524
1524
  readonly onlyEquality: false;
1525
1525
  }];
1526
1526
  readonly "unicode-bom": "off";
1527
- }], readonly ["disable-compiler", {
1527
+ }], readonly ["disable", {
1528
1528
  readonly "constructor-super": "off";
1529
1529
  readonly "no-const-assign": "off";
1530
1530
  readonly "no-dupe-args": "off";
@@ -2028,17 +2028,17 @@ declare const _default: {
2028
2028
  }];
2029
2029
  readonly "@stylistic/lines-between-class-members": readonly ["error", {
2030
2030
  readonly enforce: readonly [{
2031
- readonly blankLine: "never";
2032
2031
  readonly prev: "field";
2033
2032
  readonly next: "field";
2033
+ readonly blankLine: "never";
2034
2034
  }, {
2035
- readonly blankLine: "always";
2036
2035
  readonly prev: "field";
2037
2036
  readonly next: "method";
2038
- }, {
2039
2037
  readonly blankLine: "always";
2038
+ }, {
2040
2039
  readonly prev: "method";
2041
2040
  readonly next: "*";
2041
+ readonly blankLine: "always";
2042
2042
  }];
2043
2043
  }, {
2044
2044
  readonly exceptAfterSingleLine: false;
@@ -2161,89 +2161,89 @@ declare const _default: {
2161
2161
  readonly allowSingleLineBlocks: true;
2162
2162
  }];
2163
2163
  readonly "@stylistic/padding-line-between-statements": readonly ["error", {
2164
- readonly blankLine: "always";
2165
2164
  readonly prev: "directive";
2166
2165
  readonly next: "*";
2166
+ readonly blankLine: "always";
2167
2167
  }, {
2168
- readonly blankLine: "never";
2169
2168
  readonly prev: "directive";
2170
2169
  readonly next: "directive";
2170
+ readonly blankLine: "never";
2171
2171
  }, {
2172
- readonly blankLine: "always";
2173
2172
  readonly prev: readonly ["import", "cjs-import"];
2174
2173
  readonly next: "*";
2174
+ readonly blankLine: "always";
2175
2175
  }, {
2176
- readonly blankLine: "never";
2177
2176
  readonly prev: readonly ["import", "cjs-import"];
2178
2177
  readonly next: readonly ["import", "cjs-import"];
2178
+ readonly blankLine: "never";
2179
2179
  }, {
2180
- readonly blankLine: "always";
2181
2180
  readonly prev: readonly ["class", "interface", "try", "for", "if", "do", "while", "switch", "block", "block-like", "iife", "empty", "debugger", "with"];
2182
2181
  readonly next: "*";
2183
- }, {
2184
2182
  readonly blankLine: "always";
2183
+ }, {
2185
2184
  readonly prev: "case";
2186
2185
  readonly next: "*";
2187
- }, {
2188
2186
  readonly blankLine: "always";
2187
+ }, {
2189
2188
  readonly prev: "case";
2190
2189
  readonly next: readonly ["case", "default"];
2191
- }, {
2192
2190
  readonly blankLine: "always";
2191
+ }, {
2193
2192
  readonly prev: "default";
2194
2193
  readonly next: "*";
2195
- }, {
2196
2194
  readonly blankLine: "always";
2195
+ }, {
2197
2196
  readonly prev: "type";
2198
2197
  readonly next: "*";
2198
+ readonly blankLine: "always";
2199
2199
  }, {
2200
- readonly blankLine: "never";
2201
2200
  readonly prev: "type";
2202
2201
  readonly next: "type";
2202
+ readonly blankLine: "never";
2203
2203
  }, {
2204
- readonly blankLine: "always";
2205
2204
  readonly prev: "function";
2206
2205
  readonly next: "*";
2207
- }, {
2208
2206
  readonly blankLine: "always";
2207
+ }, {
2209
2208
  readonly prev: "function-overload";
2210
2209
  readonly next: "*";
2210
+ readonly blankLine: "always";
2211
2211
  }, {
2212
- readonly blankLine: "never";
2213
2212
  readonly prev: "function-overload";
2214
2213
  readonly next: "function-overload";
2215
- }, {
2216
2214
  readonly blankLine: "never";
2215
+ }, {
2217
2216
  readonly prev: "function-overload";
2218
2217
  readonly next: "function";
2218
+ readonly blankLine: "never";
2219
2219
  }, {
2220
- readonly blankLine: "always";
2221
2220
  readonly prev: readonly ["const", "let", "var"];
2222
2221
  readonly next: "*";
2222
+ readonly blankLine: "always";
2223
2223
  }, {
2224
- readonly blankLine: "never";
2225
2224
  readonly prev: readonly ["const", "let", "var"];
2226
2225
  readonly next: readonly ["const", "let", "var"];
2226
+ readonly blankLine: "never";
2227
2227
  }, {
2228
- readonly blankLine: "always";
2229
2228
  readonly prev: "expression";
2230
2229
  readonly next: "*";
2230
+ readonly blankLine: "always";
2231
2231
  }, {
2232
- readonly blankLine: "never";
2233
2232
  readonly prev: "expression";
2234
2233
  readonly next: "expression";
2234
+ readonly blankLine: "never";
2235
2235
  }, {
2236
- readonly blankLine: "always";
2237
2236
  readonly prev: "*";
2238
2237
  readonly next: readonly ["throw", "return", "break", "continue"];
2239
- }, {
2240
2238
  readonly blankLine: "always";
2239
+ }, {
2241
2240
  readonly prev: "*";
2242
2241
  readonly next: readonly ["export", "cjs-export"];
2242
+ readonly blankLine: "always";
2243
2243
  }, {
2244
- readonly blankLine: "never";
2245
2244
  readonly prev: readonly ["export", "cjs-export"];
2246
2245
  readonly next: readonly ["export", "cjs-export"];
2246
+ readonly blankLine: "never";
2247
2247
  }];
2248
2248
  readonly "@stylistic/quote-props": readonly ["error", "as-needed", {
2249
2249
  readonly keywords: true;
@@ -2655,7 +2655,7 @@ declare const _default: {
2655
2655
  readonly onlyEquality: false;
2656
2656
  }];
2657
2657
  readonly "unicode-bom": "off";
2658
- }], readonly ["disable-compiler", {
2658
+ }], readonly ["disable", {
2659
2659
  readonly "constructor-super": "off";
2660
2660
  readonly "no-const-assign": "off";
2661
2661
  readonly "no-dupe-args": "off";
@@ -3029,7 +3029,7 @@ declare const _default: {
3029
3029
  }], readonly ["disable-ts", {
3030
3030
  readonly "no-unused-vars": "off";
3031
3031
  readonly "@typescript-eslint/no-unused-vars": "off";
3032
- }], readonly ["disable-extend", {
3032
+ }], readonly ["disable", {
3033
3033
  readonly "no-inner-declarations": "off";
3034
3034
  }], readonly ["enable-extend", {
3035
3035
  readonly "svelte/no-inner-declarations": readonly ["error", "both", {
package/dist/rules.js CHANGED
@@ -1,12 +1,12 @@
1
- import js from "./rules/_js.js";
2
- import ts from "./rules/_ts.js";
3
- import svelte from "./rules/_svelte.js";
4
- import mocha from "./rules/_mocha.js";
5
- import html from "./rules/_html.js";
6
- import json from "./rules/_json.js";
7
- import jsonc from "./rules/_jsonc.js";
8
- import yml from "./rules/_yml.js";
9
- import md from "./rules/_md.js";
1
+ import js from "./rules/js.js";
2
+ import ts from "./rules/ts.js";
3
+ import svelte from "./rules/svelte.js";
4
+ import mocha from "./rules/mocha.js";
5
+ import html from "./rules/html.js";
6
+ import json from "./rules/json.js";
7
+ import jsonc from "./rules/jsonc.js";
8
+ import yml from "./rules/yml.js";
9
+ import md from "./rules/md.js";
10
10
  export default {
11
11
  js,
12
12
  ts,
package/dist/rules.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAChC,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAChC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,GAAG,MAAM,iBAAiB,CAAC;AAClC,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEhC,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;IACH,EAAE;CACsC,CAAC"}
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/B,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,KAAK,MAAM,kBAAkB,CAAC;AACrC,OAAO,GAAG,MAAM,gBAAgB,CAAC;AACjC,OAAO,EAAE,MAAM,eAAe,CAAC;AAE/B,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;IACH,EAAE;CACsC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "20.17.8",
3
3
  "name": "linted",
4
- "version": "16.12.2-rc.0",
4
+ "version": "16.12.2-rc.1",
5
5
  "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
6
  "keywords": [
7
7
  "eslint",
@@ -71,7 +71,7 @@
71
71
  "devDependencies": {
72
72
  "@eslint/config-inspector": "^0.5.4",
73
73
  "eslint": "~9.12.0",
74
- "linted": "16.12.1",
74
+ "linted": "16.12.2-rc.0",
75
75
  "npm-run-all": "^4.1.5",
76
76
  "typescript": "^5.6.3"
77
77
  },
@@ -0,0 +1,16 @@
1
+ import { enable, level } from "../_strings.js";
2
+
3
+ const { ERROR, OFF } = level;
4
+
5
+ export default [
6
+ enable,
7
+ {
8
+ "@html-eslint/require-title": OFF,
9
+ "@html-eslint/element-newline": [
10
+ ERROR,
11
+ {
12
+ skip: ["head"],
13
+ },
14
+ ],
15
+ },
16
+ ] as const;
@@ -0,0 +1,9 @@
1
+ import { recommended } from "../_strings.js";
2
+ import html from "@html-eslint/eslint-plugin";
3
+
4
+ // REMOVE shared config once manually configured
5
+ export default [
6
+ recommended,
7
+ (html.configs["flat/recommended"] as Record<"rules", Record<string, "off">>)
8
+ .rules,
9
+ ] as const;
@@ -0,0 +1,4 @@
1
+ import Recommended from "./html/enable_recommended.js";
2
+ import Enable from "./html/enable.js";
3
+
4
+ export default [Recommended, Enable] as const;