linted 16.1.0-rc.1 → 16.1.1-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/dist/imports/index.d.ts +1 -1
  2. package/dist/imports/index.d.ts.map +1 -1
  3. package/dist/imports/index.js +1 -1
  4. package/dist/imports/index.js.map +1 -1
  5. package/dist/index.d.ts +5 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/statics/index.d.ts +1 -1
  10. package/dist/statics/index.d.ts.map +1 -1
  11. package/dist/statics/index.js +1 -1
  12. package/dist/statics/index.js.map +1 -1
  13. package/dist/statics/rules/index.d.ts +23 -23
  14. package/dist/statics/rules/presets/Html.d.ts.map +1 -1
  15. package/dist/statics/rules/presets/Html.js +1 -4
  16. package/dist/statics/rules/presets/Html.js.map +1 -1
  17. package/dist/statics/rules/presets/Js.d.ts +4 -4
  18. package/dist/statics/rules/presets/Js.d.ts.map +1 -1
  19. package/dist/statics/rules/presets/Js.js +1 -4
  20. package/dist/statics/rules/presets/Js.js.map +1 -1
  21. package/dist/statics/rules/presets/Json.d.ts +1 -1
  22. package/dist/statics/rules/presets/Json.d.ts.map +1 -1
  23. package/dist/statics/rules/presets/Json.js +1 -4
  24. package/dist/statics/rules/presets/Json.js.map +1 -1
  25. package/dist/statics/rules/presets/Jsonc.d.ts +1 -1
  26. package/dist/statics/rules/presets/Jsonc.d.ts.map +1 -1
  27. package/dist/statics/rules/presets/Jsonc.js +1 -4
  28. package/dist/statics/rules/presets/Jsonc.js.map +1 -1
  29. package/dist/statics/rules/presets/Mocha.d.ts.map +1 -1
  30. package/dist/statics/rules/presets/Mocha.js +1 -4
  31. package/dist/statics/rules/presets/Mocha.js.map +1 -1
  32. package/dist/statics/rules/presets/Svelte.d.ts +8 -8
  33. package/dist/statics/rules/presets/Ts.d.ts +8 -8
  34. package/dist/statics/rules/presets/Yml.d.ts +1 -1
  35. package/dist/statics/rules/presets/Yml.d.ts.map +1 -1
  36. package/dist/statics/rules/presets/Yml.js +1 -4
  37. package/dist/statics/rules/presets/Yml.js.map +1 -1
  38. package/dist/statics/rules/presets/html/Enable.d.ts.map +1 -1
  39. package/dist/statics/rules/presets/html/Enable.js +1 -4
  40. package/dist/statics/rules/presets/html/Enable.js.map +1 -1
  41. package/dist/statics/rules/presets/html/Recommended.d.ts.map +1 -1
  42. package/dist/statics/rules/presets/html/Recommended.js +1 -4
  43. package/dist/statics/rules/presets/html/Recommended.js.map +1 -1
  44. package/dist/statics/rules/presets/index.d.ts +1 -1
  45. package/dist/statics/rules/presets/index.d.ts.map +1 -1
  46. package/dist/statics/rules/presets/index.js.map +1 -1
  47. package/dist/statics/rules/presets/js/Enable.d.ts.map +1 -1
  48. package/dist/statics/rules/presets/js/Enable.js +51 -254
  49. package/dist/statics/rules/presets/js/Enable.js.map +1 -1
  50. package/dist/statics/rules/presets/js/EnableStylistic.d.ts +4 -4
  51. package/dist/statics/rules/presets/js/EnableStylistic.d.ts.map +1 -1
  52. package/dist/statics/rules/presets/js/EnableStylistic.js +85 -486
  53. package/dist/statics/rules/presets/js/EnableStylistic.js.map +1 -1
  54. package/dist/statics/rules/presets/json/Enable.d.ts.map +1 -1
  55. package/dist/statics/rules/presets/json/Enable.js.map +1 -1
  56. package/dist/statics/rules/presets/json/EnableX.d.ts +1 -1
  57. package/dist/statics/rules/presets/json/EnableX.d.ts.map +1 -1
  58. package/dist/statics/rules/presets/json/EnableX.js +12 -66
  59. package/dist/statics/rules/presets/json/EnableX.js.map +1 -1
  60. package/dist/statics/rules/presets/jsonc/OverrideJson.d.ts.map +1 -1
  61. package/dist/statics/rules/presets/jsonc/OverrideJson.js +2 -11
  62. package/dist/statics/rules/presets/jsonc/OverrideJson.js.map +1 -1
  63. package/dist/statics/rules/presets/md/Enable.d.ts.map +1 -1
  64. package/dist/statics/rules/presets/md/Enable.js +11 -49
  65. package/dist/statics/rules/presets/md/Enable.js.map +1 -1
  66. package/dist/statics/rules/presets/mocha/Enable.d.ts.map +1 -1
  67. package/dist/statics/rules/presets/mocha/Enable.js +1 -4
  68. package/dist/statics/rules/presets/mocha/Enable.js.map +1 -1
  69. package/dist/statics/rules/presets/mocha/Recommended.d.ts.map +1 -1
  70. package/dist/statics/rules/presets/mocha/Recommended.js +1 -4
  71. package/dist/statics/rules/presets/mocha/Recommended.js.map +1 -1
  72. package/dist/statics/rules/presets/svelte/DisableJS.d.ts.map +1 -1
  73. package/dist/statics/rules/presets/svelte/DisableJS.js +1 -7
  74. package/dist/statics/rules/presets/svelte/DisableJS.js.map +1 -1
  75. package/dist/statics/rules/presets/svelte/DisableTS.d.ts.map +1 -1
  76. package/dist/statics/rules/presets/svelte/DisableTS.js +1 -7
  77. package/dist/statics/rules/presets/svelte/DisableTS.js.map +1 -1
  78. package/dist/statics/rules/presets/svelte/DisableX.d.ts.map +1 -1
  79. package/dist/statics/rules/presets/svelte/DisableX.js +1 -6
  80. package/dist/statics/rules/presets/svelte/DisableX.js.map +1 -1
  81. package/dist/statics/rules/presets/svelte/Enable.d.ts.map +1 -1
  82. package/dist/statics/rules/presets/svelte/Enable.js +19 -108
  83. package/dist/statics/rules/presets/svelte/Enable.js.map +1 -1
  84. package/dist/statics/rules/presets/svelte/EnableX.d.ts.map +1 -1
  85. package/dist/statics/rules/presets/svelte/EnableX.js +2 -12
  86. package/dist/statics/rules/presets/svelte/EnableX.js.map +1 -1
  87. package/dist/statics/rules/presets/ts/DisableX.d.ts.map +1 -1
  88. package/dist/statics/rules/presets/ts/DisableX.js.map +1 -1
  89. package/dist/statics/rules/presets/ts/Enable.d.ts +4 -4
  90. package/dist/statics/rules/presets/ts/Enable.d.ts.map +1 -1
  91. package/dist/statics/rules/presets/ts/Enable.js +38 -175
  92. package/dist/statics/rules/presets/ts/Enable.js.map +1 -1
  93. package/dist/statics/rules/presets/ts/EnableX.d.ts.map +1 -1
  94. package/dist/statics/rules/presets/ts/EnableX.js +4 -29
  95. package/dist/statics/rules/presets/ts/EnableX.js.map +1 -1
  96. package/dist/statics/rules/presets/yml/Enable.d.ts.map +1 -1
  97. package/dist/statics/rules/presets/yml/Enable.js +9 -50
  98. package/dist/statics/rules/presets/yml/Enable.js.map +1 -1
  99. package/dist/statics/rules/presets/yml/EnableX.d.ts +1 -1
  100. package/dist/statics/rules/presets/yml/EnableX.d.ts.map +1 -1
  101. package/dist/statics/rules/presets/yml/EnableX.js +9 -60
  102. package/dist/statics/rules/presets/yml/EnableX.js.map +1 -1
  103. package/dist/statics/rules/strings/level/index.d.ts +1 -1
  104. package/dist/statics/rules/strings/level/index.d.ts.map +1 -1
  105. package/dist/statics/rules/strings/level/index.js +1 -1
  106. package/dist/statics/rules/strings/level/index.js.map +1 -1
  107. package/dist/statics/rules/strings/state/index.d.ts +2 -2
  108. package/dist/statics/rules/strings/state/index.d.ts.map +1 -1
  109. package/dist/statics/rules/strings/state/index.js +2 -2
  110. package/dist/statics/rules/strings/state/index.js.map +1 -1
  111. package/package.json +3 -2
  112. package/src/imports/index.ts +1 -4
  113. package/src/index.ts +18 -7
  114. package/src/statics/index.ts +1 -4
  115. package/src/statics/rules/presets/Html.ts +1 -4
  116. package/src/statics/rules/presets/Js.ts +1 -4
  117. package/src/statics/rules/presets/Json.ts +1 -4
  118. package/src/statics/rules/presets/Jsonc.ts +1 -4
  119. package/src/statics/rules/presets/Mocha.ts +1 -4
  120. package/src/statics/rules/presets/Yml.ts +1 -4
  121. package/src/statics/rules/presets/html/Enable.ts +1 -4
  122. package/src/statics/rules/presets/html/Recommended.ts +2 -4
  123. package/src/statics/rules/presets/index.ts +1 -4
  124. package/src/statics/rules/presets/js/Enable.ts +53 -257
  125. package/src/statics/rules/presets/js/EnableStylistic.ts +86 -490
  126. package/src/statics/rules/presets/json/Enable.ts +0 -1
  127. package/src/statics/rules/presets/json/EnableX.ts +12 -67
  128. package/src/statics/rules/presets/jsonc/OverrideJson.ts +3 -19
  129. package/src/statics/rules/presets/md/Enable.ts +11 -50
  130. package/src/statics/rules/presets/mocha/Enable.ts +1 -4
  131. package/src/statics/rules/presets/mocha/Recommended.ts +2 -4
  132. package/src/statics/rules/presets/svelte/DisableJS.ts +3 -10
  133. package/src/statics/rules/presets/svelte/DisableTS.ts +1 -7
  134. package/src/statics/rules/presets/svelte/DisableX.ts +2 -11
  135. package/src/statics/rules/presets/svelte/Enable.ts +50 -137
  136. package/src/statics/rules/presets/svelte/EnableX.ts +3 -21
  137. package/src/statics/rules/presets/ts/DisableX.ts +1 -2
  138. package/src/statics/rules/presets/ts/Enable.ts +39 -191
  139. package/src/statics/rules/presets/ts/EnableX.ts +9 -41
  140. package/src/statics/rules/presets/yml/Enable.ts +9 -59
  141. package/src/statics/rules/presets/yml/EnableX.ts +9 -69
  142. package/src/statics/rules/strings/level/index.ts +1 -5
  143. package/src/statics/rules/strings/state/index.ts +2 -0
@@ -1 +1 @@
1
- {"version":3,"file":"EnableX.d.ts","sourceRoot":"","sources":["../../../../../src/statics/rules/presets/yml/EnableX.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,wBAiE+B"}
1
+ {"version":3,"file":"EnableX.d.ts","sourceRoot":"","sources":["../../../../../src/statics/rules/presets/yml/EnableX.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAa+B"}
@@ -1,67 +1,16 @@
1
1
  import { Strings } from "../index.js";
2
- const { Id: { EnableX }, Level: { ERROR }, State: { NEVER, ALWAYS, STRICT, }, } = Strings;
2
+ const { Id: { EnableX }, Level: { ERROR }, State: { NEVER, ALWAYS, STRICT } } = Strings;
3
3
  export default [
4
4
  EnableX,
5
5
  {
6
- "yml/flow-mapping-curly-newline": [
7
- ERROR,
8
- {
9
- multiline: true,
10
- minProperties: 2,
11
- consistent: false,
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
- ],
61
- "yml/spaced-comment": [
62
- ERROR,
63
- ALWAYS,
64
- ],
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 }],
13
+ "yml/spaced-comment": [ERROR, ALWAYS],
65
14
  },
66
15
  ];
67
16
  //# sourceMappingURL=EnableX.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnableX.js","sourceRoot":"","sources":["../../../../../src/statics/rules/presets/yml/EnableX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkB,MAAM,aAAa,CAAC;AAEtD,MAAM,EACJ,EAAE,EAAE,EAAE,OAAO,EAAE,EACf,KAAK,EAAE,EAAE,KAAK,EAAE,EAChB,KAAK,EAAE,EACL,KAAK,EACL,MAAM,EACN,MAAM,GACP,GACF,GAAG,OAAO,CAAC;AAEZ,eAAe;IACb,OAAO;IACP;QAGE,gCAAgC,EAAE;YAChC,KAAK;YACL;gBACE,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;gBAChB,UAAU,EAAE,KAAK;aAClB;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;YACpB,KAAK;YACL,MAAM;SACP;KACF;CAC2B,CAAC"}
1
+ {"version":3,"file":"EnableX.js","sourceRoot":"","sources":["../../../../../src/statics/rules/presets/yml/EnableX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAkB,MAAM,aAAa,CAAC;AAEtD,MAAM,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,OAAO,CAAC;AAExF,eAAe;IACb,OAAO;IACP;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;CAC2B,CAAC"}
@@ -1,3 +1,3 @@
1
1
  declare const ERROR = "error", WARN = "warn", OFF = "off";
2
- export { ERROR, WARN, OFF, };
2
+ export { ERROR, WARN, OFF };
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/statics/rules/strings/level/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK,UAAU,EACrB,IAAI,SAAS,EACb,GAAG,QAAQ,CAAC;AAEZ,OAAO,EACL,KAAK,EACL,IAAI,EACJ,GAAG,GACJ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/statics/rules/strings/level/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK,UAAU,EACrB,IAAI,SAAS,EACb,GAAG,QAAQ,CAAC;AAEZ,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
1
  const ERROR = "error", WARN = "warn", OFF = "off";
2
- export { ERROR, WARN, OFF, };
2
+ export { ERROR, WARN, OFF };
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/statics/rules/strings/level/index.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,EACrB,IAAI,GAAG,MAAM,EACb,GAAG,GAAG,KAAK,CAAC;AAEZ,OAAO,EACL,KAAK,EACL,IAAI,EACJ,GAAG,GACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/statics/rules/strings/level/index.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,EACrB,IAAI,GAAG,MAAM,EACb,GAAG,GAAG,KAAK,CAAC;AAEZ,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC"}
@@ -1,3 +1,3 @@
1
- declare const NEVER = "never", ALWAYS = "always", ALWAYS_MULTILINE = "always-multiline", MULTILINE = "multiline", CONSISTENT = "consistent", CONSECUTIVE = "consecutive", AS_NEEDED = "as-needed", ALLOW = "allow", STRICT = "strict", ANY = "any", ALL = "all", STAR = "*", FIRST = "first", LAST = "last", BEFORE = "before", AFTER = "after", ABOVE = "above", BELOW = "below", BESIDE = "beside", INSIDE = "inside", OUTSIDE = "outside", SINGLE = "single", DOUBLE = "double", MULTI = "multi", BOTH = "both";
2
- export { NEVER, ALWAYS, ALWAYS_MULTILINE, MULTILINE, CONSISTENT, CONSECUTIVE, AS_NEEDED, ALLOW, STRICT, ANY, ALL, STAR, FIRST, LAST, BEFORE, AFTER, ABOVE, BELOW, BESIDE, INSIDE, OUTSIDE, SINGLE, DOUBLE, MULTI, BOTH, };
1
+ declare const NEVER = "never", ALWAYS = "always", ALWAYS_MULTILINE = "always-multiline", MULTILINE = "multiline", CONSISTENT = "consistent", CONSECUTIVE = "consecutive", AS_NEEDED = "as-needed", EXPLICIT = "explicit", ALLOW = "allow", STRICT = "strict", ANY = "any", ALL = "all", STAR = "*", FIRST = "first", LAST = "last", BEFORE = "before", AFTER = "after", ABOVE = "above", BELOW = "below", BESIDE = "beside", INSIDE = "inside", OUTSIDE = "outside", SINGLE = "single", DOUBLE = "double", MULTI = "multi", BOTH = "both";
2
+ export { NEVER, ALWAYS, ALWAYS_MULTILINE, MULTILINE, CONSISTENT, CONSECUTIVE, AS_NEEDED, EXPLICIT, ALLOW, STRICT, ANY, ALL, STAR, FIRST, LAST, BEFORE, AFTER, ABOVE, BELOW, BESIDE, INSIDE, OUTSIDE, SINGLE, DOUBLE, MULTI, BOTH, };
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/statics/rules/strings/state/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK,UAAU,EACrB,MAAM,WAAW,EACjB,gBAAgB,qBAAqB,EACrC,SAAS,cAAc,EACvB,UAAU,eAAe,EACzB,WAAW,gBAAgB,EAC3B,SAAS,cAAc,EACvB,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,GAAG,QAAQ,EACX,GAAG,QAAQ,EACX,IAAI,MAAM,EACV,KAAK,UAAU,EACf,IAAI,SAAS,EACb,MAAM,WAAW,EACjB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,MAAM,WAAW,EACjB,OAAO,YAAY,EACnB,MAAM,WAAW,EACjB,MAAM,WAAW,EACjB,KAAK,UAAU,EACf,IAAI,SAAS,CAAC;AAEd,OAAO,EACL,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,GACL,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/statics/rules/strings/state/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK,UAAU,EACrB,MAAM,WAAW,EACjB,gBAAgB,qBAAqB,EACrC,SAAS,cAAc,EACvB,UAAU,eAAe,EACzB,WAAW,gBAAgB,EAC3B,SAAS,cAAc,EACvB,QAAQ,aAAa,EACrB,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,GAAG,QAAQ,EACX,GAAG,QAAQ,EACX,IAAI,MAAM,EACV,KAAK,UAAU,EACf,IAAI,SAAS,EACb,MAAM,WAAW,EACjB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,MAAM,WAAW,EACjB,OAAO,YAAY,EACnB,MAAM,WAAW,EACjB,MAAM,WAAW,EACjB,KAAK,UAAU,EACf,IAAI,SAAS,CAAC;AAEd,OAAO,EACL,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,GACL,CAAC"}
@@ -1,3 +1,3 @@
1
- const NEVER = "never", ALWAYS = "always", ALWAYS_MULTILINE = "always-multiline", MULTILINE = "multiline", CONSISTENT = "consistent", CONSECUTIVE = "consecutive", AS_NEEDED = "as-needed", ALLOW = "allow", STRICT = "strict", ANY = "any", ALL = "all", STAR = "*", FIRST = "first", LAST = "last", BEFORE = "before", AFTER = "after", ABOVE = "above", BELOW = "below", BESIDE = "beside", INSIDE = "inside", OUTSIDE = "outside", SINGLE = "single", DOUBLE = "double", MULTI = "multi", BOTH = "both";
2
- export { NEVER, ALWAYS, ALWAYS_MULTILINE, MULTILINE, CONSISTENT, CONSECUTIVE, AS_NEEDED, ALLOW, STRICT, ANY, ALL, STAR, FIRST, LAST, BEFORE, AFTER, ABOVE, BELOW, BESIDE, INSIDE, OUTSIDE, SINGLE, DOUBLE, MULTI, BOTH, };
1
+ const NEVER = "never", ALWAYS = "always", ALWAYS_MULTILINE = "always-multiline", MULTILINE = "multiline", CONSISTENT = "consistent", CONSECUTIVE = "consecutive", AS_NEEDED = "as-needed", EXPLICIT = "explicit", ALLOW = "allow", STRICT = "strict", ANY = "any", ALL = "all", STAR = "*", FIRST = "first", LAST = "last", BEFORE = "before", AFTER = "after", ABOVE = "above", BELOW = "below", BESIDE = "beside", INSIDE = "inside", OUTSIDE = "outside", SINGLE = "single", DOUBLE = "double", MULTI = "multi", BOTH = "both";
2
+ export { NEVER, ALWAYS, ALWAYS_MULTILINE, MULTILINE, CONSISTENT, CONSECUTIVE, AS_NEEDED, EXPLICIT, ALLOW, STRICT, ANY, ALL, STAR, FIRST, LAST, BEFORE, AFTER, ABOVE, BELOW, BESIDE, INSIDE, OUTSIDE, SINGLE, DOUBLE, MULTI, BOTH, };
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/statics/rules/strings/state/index.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,EACrB,MAAM,GAAG,QAAQ,EACjB,gBAAgB,GAAG,kBAAkB,EACrC,SAAS,GAAG,WAAW,EACvB,UAAU,GAAG,YAAY,EACzB,WAAW,GAAG,aAAa,EAC3B,SAAS,GAAG,WAAW,EACvB,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,GAAG,GAAG,KAAK,EACX,GAAG,GAAG,KAAK,EACX,IAAI,GAAG,GAAG,EACV,KAAK,GAAG,OAAO,EACf,IAAI,GAAG,MAAM,EACb,MAAM,GAAG,QAAQ,EACjB,KAAK,GAAG,OAAO,EACf,KAAK,GAAG,OAAO,EACf,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,MAAM,GAAG,QAAQ,EACjB,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,QAAQ,EACjB,MAAM,GAAG,QAAQ,EACjB,KAAK,GAAG,OAAO,EACf,IAAI,GAAG,MAAM,CAAC;AAEd,OAAO,EACL,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,GACL,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/statics/rules/strings/state/index.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,EACrB,MAAM,GAAG,QAAQ,EACjB,gBAAgB,GAAG,kBAAkB,EACrC,SAAS,GAAG,WAAW,EACvB,UAAU,GAAG,YAAY,EACzB,WAAW,GAAG,aAAa,EAC3B,SAAS,GAAG,WAAW,EACvB,QAAQ,GAAG,UAAU,EACrB,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,GAAG,GAAG,KAAK,EACX,GAAG,GAAG,KAAK,EACX,IAAI,GAAG,GAAG,EACV,KAAK,GAAG,OAAO,EACf,IAAI,GAAG,MAAM,EACb,MAAM,GAAG,QAAQ,EACjB,KAAK,GAAG,OAAO,EACf,KAAK,GAAG,OAAO,EACf,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,MAAM,GAAG,QAAQ,EACjB,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,QAAQ,EACjB,MAAM,GAAG,QAAQ,EACjB,KAAK,GAAG,OAAO,EACf,IAAI,GAAG,MAAM,CAAC;AAEd,OAAO,EACL,KAAK,EACL,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACN,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,MAAM,EACN,OAAO,EACP,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,GACL,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "20.14.0",
3
3
  "name": "linted",
4
- "version": "16.1.0-rc.1",
4
+ "version": "16.1.1-rc.0",
5
5
  "description": "Zero-config ESLint flat config factory for (strict, agglutinative) entire-stack formatting and linting: TypeScript, JavaScript, Svelte, HTML, (Tailwind) CSS, Mocha, JSON(C), and sadly YAML.",
6
6
  "keywords": [
7
7
  "eslint",
@@ -69,8 +69,9 @@
69
69
  "yaml-eslint-parser": "~1.2.3"
70
70
  },
71
71
  "devDependencies": {
72
+ "@eslint/config-inspector": "^0.5.2",
72
73
  "eslint": "~9.8.0",
73
- "linted": "~16.1.0-rc.0",
74
+ "linted": "~16.1.0",
74
75
  "npm-run-all": "^4.1.5",
75
76
  "typescript": "^5.5.4"
76
77
  },
@@ -1,7 +1,4 @@
1
1
  import plugins from "./plugins/index.js";
2
2
  import parsers from "./parsers/index.js";
3
3
 
4
- export {
5
- plugins,
6
- parsers,
7
- };
4
+ export { plugins, parsers };
package/src/index.ts CHANGED
@@ -2,8 +2,20 @@ import core, { type Boundary } from "@eslinted/core";
2
2
  import { plugins, parsers } from "./imports/index.js";
3
3
  import { base, preset } from "./statics/index.js";
4
4
 
5
+ declare type Scope =
6
+ | "js"
7
+ | "ts"
8
+ | "svelte"
9
+ | "mocha"
10
+ | "html"
11
+ | "json"
12
+ | "jsonc"
13
+ | "yml"
14
+ | "md"
15
+ ;
16
+
5
17
  export default function (
6
- includes: Boundary.Input.Files.Includes = {},
18
+ includes: Partial<Record<Scope, readonly string[]>> = {},
7
19
  overrides: Boundary.Input.Rules.Overrides = {},
8
20
  ) {
9
21
  try {
@@ -14,10 +26,9 @@ export default function (
14
26
  { preset, overrides },
15
27
  );
16
28
  }
17
- catch (e) {
18
- throw new Error(
19
- `linted(): Caught exception.`,
20
- { cause: e },
21
- );
22
- }
29
+ catch (e) { throw new Error(`linted(): `, { cause: e }); }
23
30
  }
31
+
32
+ declare type ScopeOK = Scope extends keyof Boundary.Input.Files.Base ? keyof Boundary.Input.Files.Base extends Scope ? "OK" : never : never;
33
+
34
+ export type BoundaryTest = ScopeOK & {}; /* typescript-eslint will fail if `ScopeOK` is `never` */
@@ -1,7 +1,4 @@
1
1
  import base from "./files/index.js";
2
2
  import preset from "./rules/index.js";
3
3
 
4
- export {
5
- base,
6
- preset,
7
- };
4
+ export { base, preset };
@@ -2,7 +2,4 @@ import type RuleEntry from "./index.js";
2
2
  import Recommended from "./html/Recommended.js";
3
3
  import Enable from "./html/Enable.js";
4
4
 
5
- export default [
6
- Recommended,
7
- Enable,
8
- ] as const satisfies readonly RuleEntry[];
5
+ export default [Recommended, Enable] as const satisfies readonly RuleEntry[];
@@ -2,7 +2,4 @@ import type RuleEntry from "./index.js";
2
2
  import EnableStylistic from "./js/EnableStylistic.js";
3
3
  import Enable from "./js/Enable.js";
4
4
 
5
- export default [
6
- EnableStylistic,
7
- Enable,
8
- ] as const satisfies readonly RuleEntry[];
5
+ export default [EnableStylistic, Enable] as const satisfies readonly RuleEntry[];
@@ -2,7 +2,4 @@ import type RuleEntry from "./index.js";
2
2
  import EnableX from "./json/EnableX.js";
3
3
  import Enable from "./json/Enable.js";
4
4
 
5
- export default [
6
- EnableX,
7
- Enable,
8
- ] as const satisfies readonly RuleEntry[];
5
+ export default [EnableX, Enable] as const satisfies readonly RuleEntry[];
@@ -2,7 +2,4 @@ import type RuleEntry from "./index.js";
2
2
  import Json from "./Json.js";
3
3
  import OverrideJson from "./jsonc/OverrideJson.js";
4
4
 
5
- export default [
6
- ...Json,
7
- OverrideJson,
8
- ] as const satisfies readonly RuleEntry[];
5
+ export default [...Json, OverrideJson] as const satisfies readonly RuleEntry[];
@@ -2,7 +2,4 @@ import type RuleEntry from "./index.js";
2
2
  import Recommended from "./mocha/Recommended.js";
3
3
  import Enable from "./html/Enable.js";
4
4
 
5
- export default [
6
- Recommended,
7
- Enable,
8
- ] as const satisfies readonly RuleEntry[];
5
+ export default [Recommended, Enable] as const satisfies readonly RuleEntry[];
@@ -2,7 +2,4 @@ import type RuleEntry from "./index.js";
2
2
  import EnableX from "./yml/EnableX.js";
3
3
  import Enable from "./yml/Enable.js";
4
4
 
5
- export default [
6
- EnableX,
7
- Enable,
8
- ] as const satisfies readonly RuleEntry[];
5
+ export default [EnableX, Enable] as const satisfies readonly RuleEntry[];
@@ -2,7 +2,4 @@ import { Strings, type RuleEntry } from "../index.js";
2
2
 
3
3
  const { Id: { Enable }, Level: { OFF } } = Strings;
4
4
 
5
- export default [
6
- Enable,
7
- { "@html-eslint/require-title": OFF },
8
- ] as const satisfies RuleEntry;
5
+ export default [Enable, { "@html-eslint/require-title": OFF }] as const satisfies RuleEntry;
@@ -3,7 +3,5 @@ import { Strings, type RuleEntry } from "../index.js";
3
3
 
4
4
  const { Id: { Recommended } } = Strings;
5
5
 
6
- export default [
7
- Recommended,
8
- (html.configs["flat/recommended"] as Record<"rules", RuleEntry.Object>).rules, // Remove shared config once manually configured
9
- ] as const satisfies RuleEntry;
6
+ // Remove shared config once manually configured
7
+ export default [Recommended, (html.configs["flat/recommended"] as Record<"rules", RuleEntry.Object>).rules] as const satisfies RuleEntry;
@@ -6,8 +6,5 @@ namespace RuleEntry {
6
6
  export type Object = Boundary.Input.Rules.Preset.Entry.Object;
7
7
  }
8
8
 
9
- export type {
10
- RuleEntry as default,
11
- RuleEntry,
12
- };
9
+ export type { RuleEntry, RuleEntry as default };
13
10
  export * as Strings from "../strings/index.js";