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.
- package/dist/imports/index.d.ts +1 -1
- package/dist/imports/index.d.ts.map +1 -1
- package/dist/imports/index.js +1 -1
- package/dist/imports/index.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/statics/index.d.ts +1 -1
- package/dist/statics/index.d.ts.map +1 -1
- package/dist/statics/index.js +1 -1
- package/dist/statics/index.js.map +1 -1
- package/dist/statics/rules/index.d.ts +23 -23
- package/dist/statics/rules/presets/Html.d.ts.map +1 -1
- package/dist/statics/rules/presets/Html.js +1 -4
- package/dist/statics/rules/presets/Html.js.map +1 -1
- package/dist/statics/rules/presets/Js.d.ts +4 -4
- package/dist/statics/rules/presets/Js.d.ts.map +1 -1
- package/dist/statics/rules/presets/Js.js +1 -4
- package/dist/statics/rules/presets/Js.js.map +1 -1
- package/dist/statics/rules/presets/Json.d.ts +1 -1
- package/dist/statics/rules/presets/Json.d.ts.map +1 -1
- package/dist/statics/rules/presets/Json.js +1 -4
- package/dist/statics/rules/presets/Json.js.map +1 -1
- package/dist/statics/rules/presets/Jsonc.d.ts +1 -1
- package/dist/statics/rules/presets/Jsonc.d.ts.map +1 -1
- package/dist/statics/rules/presets/Jsonc.js +1 -4
- package/dist/statics/rules/presets/Jsonc.js.map +1 -1
- package/dist/statics/rules/presets/Mocha.d.ts.map +1 -1
- package/dist/statics/rules/presets/Mocha.js +1 -4
- package/dist/statics/rules/presets/Mocha.js.map +1 -1
- package/dist/statics/rules/presets/Svelte.d.ts +8 -8
- package/dist/statics/rules/presets/Ts.d.ts +8 -8
- package/dist/statics/rules/presets/Yml.d.ts +1 -1
- package/dist/statics/rules/presets/Yml.d.ts.map +1 -1
- package/dist/statics/rules/presets/Yml.js +1 -4
- package/dist/statics/rules/presets/Yml.js.map +1 -1
- package/dist/statics/rules/presets/html/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/html/Enable.js +1 -4
- package/dist/statics/rules/presets/html/Enable.js.map +1 -1
- package/dist/statics/rules/presets/html/Recommended.d.ts.map +1 -1
- package/dist/statics/rules/presets/html/Recommended.js +1 -4
- package/dist/statics/rules/presets/html/Recommended.js.map +1 -1
- package/dist/statics/rules/presets/index.d.ts +1 -1
- package/dist/statics/rules/presets/index.d.ts.map +1 -1
- package/dist/statics/rules/presets/index.js.map +1 -1
- package/dist/statics/rules/presets/js/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/js/Enable.js +51 -254
- package/dist/statics/rules/presets/js/Enable.js.map +1 -1
- package/dist/statics/rules/presets/js/EnableStylistic.d.ts +4 -4
- package/dist/statics/rules/presets/js/EnableStylistic.d.ts.map +1 -1
- package/dist/statics/rules/presets/js/EnableStylistic.js +85 -486
- package/dist/statics/rules/presets/js/EnableStylistic.js.map +1 -1
- package/dist/statics/rules/presets/json/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/json/Enable.js.map +1 -1
- package/dist/statics/rules/presets/json/EnableX.d.ts +1 -1
- package/dist/statics/rules/presets/json/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/json/EnableX.js +12 -66
- package/dist/statics/rules/presets/json/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/jsonc/OverrideJson.d.ts.map +1 -1
- package/dist/statics/rules/presets/jsonc/OverrideJson.js +2 -11
- package/dist/statics/rules/presets/jsonc/OverrideJson.js.map +1 -1
- package/dist/statics/rules/presets/md/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/md/Enable.js +11 -49
- package/dist/statics/rules/presets/md/Enable.js.map +1 -1
- package/dist/statics/rules/presets/mocha/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/mocha/Enable.js +1 -4
- package/dist/statics/rules/presets/mocha/Enable.js.map +1 -1
- package/dist/statics/rules/presets/mocha/Recommended.d.ts.map +1 -1
- package/dist/statics/rules/presets/mocha/Recommended.js +1 -4
- package/dist/statics/rules/presets/mocha/Recommended.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableJS.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableJS.js +1 -7
- package/dist/statics/rules/presets/svelte/DisableJS.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableTS.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableTS.js +1 -7
- package/dist/statics/rules/presets/svelte/DisableTS.js.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/DisableX.js +1 -6
- package/dist/statics/rules/presets/svelte/DisableX.js.map +1 -1
- package/dist/statics/rules/presets/svelte/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/Enable.js +19 -108
- package/dist/statics/rules/presets/svelte/Enable.js.map +1 -1
- package/dist/statics/rules/presets/svelte/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/svelte/EnableX.js +2 -12
- package/dist/statics/rules/presets/svelte/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/ts/DisableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/DisableX.js.map +1 -1
- package/dist/statics/rules/presets/ts/Enable.d.ts +4 -4
- package/dist/statics/rules/presets/ts/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/Enable.js +38 -175
- package/dist/statics/rules/presets/ts/Enable.js.map +1 -1
- package/dist/statics/rules/presets/ts/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/ts/EnableX.js +4 -29
- package/dist/statics/rules/presets/ts/EnableX.js.map +1 -1
- package/dist/statics/rules/presets/yml/Enable.d.ts.map +1 -1
- package/dist/statics/rules/presets/yml/Enable.js +9 -50
- package/dist/statics/rules/presets/yml/Enable.js.map +1 -1
- package/dist/statics/rules/presets/yml/EnableX.d.ts +1 -1
- package/dist/statics/rules/presets/yml/EnableX.d.ts.map +1 -1
- package/dist/statics/rules/presets/yml/EnableX.js +9 -60
- package/dist/statics/rules/presets/yml/EnableX.js.map +1 -1
- package/dist/statics/rules/strings/level/index.d.ts +1 -1
- package/dist/statics/rules/strings/level/index.d.ts.map +1 -1
- package/dist/statics/rules/strings/level/index.js +1 -1
- package/dist/statics/rules/strings/level/index.js.map +1 -1
- package/dist/statics/rules/strings/state/index.d.ts +2 -2
- package/dist/statics/rules/strings/state/index.d.ts.map +1 -1
- package/dist/statics/rules/strings/state/index.js +2 -2
- package/dist/statics/rules/strings/state/index.js.map +1 -1
- package/package.json +3 -2
- package/src/imports/index.ts +1 -4
- package/src/index.ts +18 -7
- package/src/statics/index.ts +1 -4
- package/src/statics/rules/presets/Html.ts +1 -4
- package/src/statics/rules/presets/Js.ts +1 -4
- package/src/statics/rules/presets/Json.ts +1 -4
- package/src/statics/rules/presets/Jsonc.ts +1 -4
- package/src/statics/rules/presets/Mocha.ts +1 -4
- package/src/statics/rules/presets/Yml.ts +1 -4
- package/src/statics/rules/presets/html/Enable.ts +1 -4
- package/src/statics/rules/presets/html/Recommended.ts +2 -4
- package/src/statics/rules/presets/index.ts +1 -4
- package/src/statics/rules/presets/js/Enable.ts +53 -257
- package/src/statics/rules/presets/js/EnableStylistic.ts +86 -490
- package/src/statics/rules/presets/json/Enable.ts +0 -1
- package/src/statics/rules/presets/json/EnableX.ts +12 -67
- package/src/statics/rules/presets/jsonc/OverrideJson.ts +3 -19
- package/src/statics/rules/presets/md/Enable.ts +11 -50
- package/src/statics/rules/presets/mocha/Enable.ts +1 -4
- package/src/statics/rules/presets/mocha/Recommended.ts +2 -4
- package/src/statics/rules/presets/svelte/DisableJS.ts +3 -10
- package/src/statics/rules/presets/svelte/DisableTS.ts +1 -7
- package/src/statics/rules/presets/svelte/DisableX.ts +2 -11
- package/src/statics/rules/presets/svelte/Enable.ts +50 -137
- package/src/statics/rules/presets/svelte/EnableX.ts +3 -21
- package/src/statics/rules/presets/ts/DisableX.ts +1 -2
- package/src/statics/rules/presets/ts/Enable.ts +39 -191
- package/src/statics/rules/presets/ts/EnableX.ts +9 -41
- package/src/statics/rules/presets/yml/Enable.ts +9 -59
- package/src/statics/rules/presets/yml/EnableX.ts +9 -69
- package/src/statics/rules/strings/level/index.ts +1 -5
- 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
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
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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,
|
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 +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,
|
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 +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,
|
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.
|
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
|
74
|
+
"linted": "~16.1.0",
|
74
75
|
"npm-run-all": "^4.1.5",
|
75
76
|
"typescript": "^5.5.4"
|
76
77
|
},
|
package/src/imports/index.ts
CHANGED
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:
|
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` */
|
package/src/statics/index.ts
CHANGED
@@ -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
|
-
|
7
|
-
|
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;
|