@eslinted/defaults 12.18.0 → 12.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/index.d.ts +562 -563
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.spec.d.ts +2 -0
  6. package/dist/index.spec.d.ts.map +1 -0
  7. package/dist/index.spec.js +154 -0
  8. package/dist/index.spec.js.map +1 -0
  9. package/dist/rules/_strings/option.d.ts +1 -1
  10. package/dist/rules/_strings/option.d.ts.map +1 -1
  11. package/dist/rules/_strings/option.js +1 -1
  12. package/dist/rules/_strings/option.js.map +1 -1
  13. package/dist/rules/_strings/state.d.ts +1 -1
  14. package/dist/rules/_strings/state.d.ts.map +1 -1
  15. package/dist/rules/_strings/state.js +1 -1
  16. package/dist/rules/_strings/state.js.map +1 -1
  17. package/dist/rules/_strings/state.spec.js +23 -18
  18. package/dist/rules/_strings/state.spec.js.map +1 -1
  19. package/dist/rules/css/enable.d.ts +11 -11
  20. package/dist/rules/css/index.d.ts +11 -11
  21. package/dist/rules/enable.d.ts +148 -148
  22. package/dist/rules/html/index.d.ts +41 -41
  23. package/dist/rules/html/plugin/index.d.ts +41 -41
  24. package/dist/rules/index.d.ts +550 -551
  25. package/dist/rules/index.d.ts.map +1 -1
  26. package/dist/rules/json/enable.d.ts +4 -4
  27. package/dist/rules/json/index.d.ts +42 -42
  28. package/dist/rules/json/plugin/extension.d.ts +19 -19
  29. package/dist/rules/json/plugin/index.d.ts +19 -19
  30. package/dist/rules/jsonc/index.d.ts +1 -1
  31. package/dist/rules/jsonc/plugin/index.d.ts +1 -1
  32. package/dist/rules/jsoncc/index.d.ts +1 -1
  33. package/dist/rules/jsoncc/plugin/index.d.ts +1 -1
  34. package/dist/rules/mocha/chai/expect.d.ts +3 -3
  35. package/dist/rules/mocha/chai/index.d.ts +1 -1
  36. package/dist/rules/mocha/disable.d.ts +2 -2
  37. package/dist/rules/mocha/enable.d.ts +16 -16
  38. package/dist/rules/mocha/index.d.ts +22 -22
  39. package/dist/rules/stylistic.d.ts +67 -67
  40. package/dist/rules/svelte/disable.d.ts +6 -6
  41. package/dist/rules/svelte/enable.d.ts +67 -67
  42. package/dist/rules/svelte/extension/disable.d.ts +3 -3
  43. package/dist/rules/svelte/extension/index.d.ts +2 -2
  44. package/dist/rules/svelte/index.d.ts +78 -78
  45. package/dist/rules/ts/disable.d.ts +19 -19
  46. package/dist/rules/ts/enable.d.ts +86 -86
  47. package/dist/rules/ts/extension/disable.d.ts +8 -8
  48. package/dist/rules/ts/extension/index.d.ts +7 -7
  49. package/dist/rules/ts/index.d.ts +120 -120
  50. package/dist/rules/yml/enable.d.ts +11 -12
  51. package/dist/rules/yml/enable.d.ts.map +1 -1
  52. package/dist/rules/yml/enable.js +0 -1
  53. package/dist/rules/yml/enable.js.map +1 -1
  54. package/dist/rules/yml/extension.d.ts +8 -8
  55. package/dist/rules/yml/index.d.ts +19 -20
  56. package/dist/rules/yml/index.d.ts.map +1 -1
  57. package/package.json +1 -1
  58. package/src/index.spec.ts +228 -0
  59. package/src/index.ts +1 -1
  60. package/src/rules/_strings/option.ts +1 -2
  61. package/src/rules/_strings/state.spec.ts +27 -22
  62. package/src/rules/_strings/state.ts +3 -3
  63. package/src/rules/yml/enable.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpB,CAAC"}
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import { ignores } from "./ignores/index.js";
3
3
  import { rules } from "./rules/index.js";
4
4
  export { settings } from "./settings/index.js";
5
5
  export const defaults = {
6
- files,
7
6
  ignores,
7
+ files,
8
8
  rules,
9
9
  };
10
10
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK;IACL,OAAO;IACP,KAAK;CACN,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO;IACP,KAAK;IACL,KAAK;CACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ import "chai/register-should.js";
2
+ //# sourceMappingURL=index.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC"}
@@ -0,0 +1,154 @@
1
+ import "chai/register-should.js";
2
+ import { defaults } from "./index.js";
3
+ describe("Main Export", function () {
4
+ const SCOPE = [
5
+ "js",
6
+ "ts",
7
+ ], GLOBAL_SCOPE = "*", { ignores, files, rules, } = defaults;
8
+ describe("module", function () {
9
+ it("with object submodules: ignores, files, rules", function () {
10
+ ignores
11
+ .should
12
+ .be
13
+ .an("object");
14
+ files
15
+ .should
16
+ .be
17
+ .an("object");
18
+ rules
19
+ .should
20
+ .be
21
+ .an("object");
22
+ });
23
+ });
24
+ describe("submodule: ignores", function () {
25
+ it("has scopes", function () {
26
+ for (const scope of SCOPE)
27
+ ignores
28
+ .should
29
+ .have
30
+ .own
31
+ .property(scope);
32
+ });
33
+ it("has global scope", function () {
34
+ ignores
35
+ .should
36
+ .have
37
+ .own
38
+ .property(GLOBAL_SCOPE);
39
+ });
40
+ it("of arrays", function () {
41
+ for (const scope of Object.values(ignores))
42
+ scope
43
+ .should
44
+ .be
45
+ .an("array");
46
+ });
47
+ it("of strings", function () {
48
+ for (const scope of Object.values(ignores))
49
+ for (const pattern of scope)
50
+ pattern
51
+ .should
52
+ .be
53
+ .a("string");
54
+ });
55
+ it("with at least one global ignore pattern", function () {
56
+ ignores[GLOBAL_SCOPE]
57
+ .should
58
+ .have
59
+ .lengthOf
60
+ .above(0);
61
+ });
62
+ });
63
+ describe("submodule: files", function () {
64
+ it("has scopes", function () {
65
+ for (const scope of SCOPE)
66
+ files
67
+ .should
68
+ .have
69
+ .own
70
+ .property(scope);
71
+ });
72
+ it("NO global scope", function () {
73
+ files
74
+ .should
75
+ .not
76
+ .have
77
+ .own
78
+ .property(GLOBAL_SCOPE);
79
+ });
80
+ it("of arrays", function () {
81
+ for (const scope of Object.values(files))
82
+ scope
83
+ .should
84
+ .be
85
+ .an("array");
86
+ });
87
+ it("of strings", function () {
88
+ for (const scope of Object.values(files))
89
+ for (const pattern of scope)
90
+ pattern
91
+ .should
92
+ .be
93
+ .a("string");
94
+ });
95
+ });
96
+ describe("submodule: rules", function () {
97
+ it("has scopes", function () {
98
+ for (const scope of SCOPE)
99
+ rules
100
+ .should
101
+ .have
102
+ .own
103
+ .property(scope);
104
+ });
105
+ it("NO global scope", function () {
106
+ rules
107
+ .should
108
+ .not
109
+ .have
110
+ .own
111
+ .property(GLOBAL_SCOPE);
112
+ });
113
+ it("of arrays", function () {
114
+ for (const scope of Object.values(files))
115
+ scope
116
+ .should
117
+ .be
118
+ .an("array");
119
+ });
120
+ it("of object", function () {
121
+ for (const scope of Object.values(rules))
122
+ for (const rule of scope)
123
+ rule
124
+ .should
125
+ .be
126
+ .an("object");
127
+ });
128
+ it("named rulesets", function () {
129
+ for (const scope of Object.values(rules))
130
+ for (const rule of scope) {
131
+ rule
132
+ .should
133
+ .have
134
+ .keys("id", "rules");
135
+ rule
136
+ .id
137
+ .should
138
+ .be
139
+ .a("string");
140
+ rule
141
+ .rules
142
+ .should
143
+ .be
144
+ .an("object");
145
+ for (const key of Object.keys(rule.rules))
146
+ key
147
+ .should
148
+ .be
149
+ .a("string");
150
+ }
151
+ });
152
+ });
153
+ });
154
+ //# sourceMappingURL=index.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAE7B,QAAQ,CACN,aAAa,EACb;IACE,MAAM,KAAK,GAAG;QACZ,IAAI;QACJ,IAAI;KACL,EACD,YAAY,GAAG,GAAG,EAClB,EACE,OAAO,EACP,KAAK,EACL,KAAK,GACN,GAAG,QAAQ,CAAC;IAEb,QAAQ,CACN,QAAQ,EACR;QACE,EAAE,CACA,+CAA+C,EAC/C;YACE,OAAO;iBACJ,MAAM;iBACN,EAAE;iBACF,EAAE,CAAC,QAAQ,CAAC,CAAC;YAChB,KAAK;iBACF,MAAM;iBACN,EAAE;iBACF,EAAE,CAAC,QAAQ,CAAC,CAAC;YAChB,KAAK;iBACF,MAAM;iBACN,EAAE;iBACF,EAAE,CAAC,QAAQ,CAAC,CAAC;QAClB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,oBAAoB,EACpB;QACE,EAAE,CACA,YAAY,EACZ;YACE,KAAK,MAAM,KAAK,IAAI,KAAK;gBACvB,OAAO;qBACJ,MAAM;qBACN,IAAI;qBACJ,GAAG;qBACH,QA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,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;oBACzB,IAAI;yBACD,MAAM;yBACN,IAAI;yBACJ,IAAI,CACH,IAAI,EACJ,OAAO,CACR,CAAC;oBACJ,IAAI;yBACD,EAAE;yBACF,MAAM;yBACN,EAAE;yBACF,CAAC,CAAC,QAAQ,CAAC,CAAC;oBACf,IAAI;yBACD,KAAK;yBACL,MAAM;yBACN,EAAE;yBACF,EAAE,CAAC,QAAQ,CAAC,CAAC;oBAEhB,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;wBACvC,GAAG;6BACA,MAAM;6BACN,EAAE;6BACF,CAAC,CAAC,QAAQ,CAAC,CAAC;gBACnB,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const above = "above", after = "after", all = "all", allow = "allow", always = "always", always_multiline = "always-multiline", any = "any", as_needed = "as-needed", before = "before", below = "below", beside = "beside", both = "both", consecutive = "consecutive", consistent = "consistent", double = "double", explicit = "explicit", first = "first", ignore = "ignore", inside = "inside", last = "last", multi = "multi", multiline = "multiline", never = "never", none = "none", outside = "outside", single = "single", wildcard = "*", strict = "strict", zebra = "zebra";
1
+ export declare const above = "above", after = "after", all = "all", allow = "allow", always = "always", always_multiline = "always-multiline", any = "any", as_needed = "as-needed", before = "before", below = "below", beside = "beside", both = "both", consecutive = "consecutive", consistent = "consistent", double = "double", explicit = "explicit", first = "first", ignore = "ignore", inside = "inside", last = "last", multi = "multi", multiline = "multiline", never = "never", none = "none", outside = "outside", single = "single", strict = "strict", wildcard = "*";
2
2
  //# sourceMappingURL=option.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../../src/rules/_strings/option.ts"],"names":[],"mappings":"AAAA,eAAO,MACP,KAAK,UAAU,EACf,KAAK,UAAU,EACf,GAAG,QAAQ,EACX,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,gBAAgB,qBAAqB,EACrC,GAAG,QAAQ,EACX,SAAS,cAAc,EACvB,MAAM,WAAW,EACjB,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,IAAI,SAAS,EACb,WAAW,gBAAgB,EAC3B,UAAU,eAAe,EACzB,MAAM,WAAW,EACjB,QAAQ,aAAa,EACrB,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,MAAM,WAAW,EACjB,IAAI,SAAS,EACb,KAAK,UAAU,EACf,SAAS,cAAc,EACvB,KAAK,UAAU,EACf,IAAI,SAAS,EACb,OAAO,YAAY,EACnB,MAAM,WAAW,EACjB,QAAQ,MAAM,EACd,MAAM,WAAW,EACjB,KAAK,UAAU,CAAC"}
1
+ {"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../../src/rules/_strings/option.ts"],"names":[],"mappings":"AAAA,eAAO,MACP,KAAK,UAAU,EACf,KAAK,UAAU,EACf,GAAG,QAAQ,EACX,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,gBAAgB,qBAAqB,EACrC,GAAG,QAAQ,EACX,SAAS,cAAc,EACvB,MAAM,WAAW,EACjB,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,IAAI,SAAS,EACb,WAAW,gBAAgB,EAC3B,UAAU,eAAe,EACzB,MAAM,WAAW,EACjB,QAAQ,aAAa,EACrB,KAAK,UAAU,EACf,MAAM,WAAW,EACjB,MAAM,WAAW,EACjB,IAAI,SAAS,EACb,KAAK,UAAU,EACf,SAAS,cAAc,EACvB,KAAK,UAAU,EACf,IAAI,SAAS,EACb,OAAO,YAAY,EACnB,MAAM,WAAW,EACjB,MAAM,WAAW,EACjB,QAAQ,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- export const above = "above", after = "after", all = "all", allow = "allow", always = "always", always_multiline = "always-multiline", any = "any", as_needed = "as-needed", before = "before", below = "below", beside = "beside", both = "both", consecutive = "consecutive", consistent = "consistent", double = "double", explicit = "explicit", first = "first", ignore = "ignore", inside = "inside", last = "last", multi = "multi", multiline = "multiline", never = "never", none = "none", outside = "outside", single = "single", wildcard = "*", strict = "strict", zebra = "zebra";
1
+ export const above = "above", after = "after", all = "all", allow = "allow", always = "always", always_multiline = "always-multiline", any = "any", as_needed = "as-needed", before = "before", below = "below", beside = "beside", both = "both", consecutive = "consecutive", consistent = "consistent", double = "double", explicit = "explicit", first = "first", ignore = "ignore", inside = "inside", last = "last", multi = "multi", multiline = "multiline", never = "never", none = "none", outside = "outside", single = "single", strict = "strict", wildcard = "*";
2
2
  //# sourceMappingURL=option.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"option.js","sourceRoot":"","sources":["../../../src/rules/_strings/option.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MACP,KAAK,GAAG,OAAO,EACf,KAAK,GAAG,OAAO,EACf,GAAG,GAAG,KAAK,EACX,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,gBAAgB,GAAG,kBAAkB,EACrC,GAAG,GAAG,KAAK,EACX,SAAS,GAAG,WAAW,EACvB,MAAM,GAAG,QAAQ,EACjB,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,IAAI,GAAG,MAAM,EACb,WAAW,GAAG,aAAa,EAC3B,UAAU,GAAG,YAAY,EACzB,MAAM,GAAG,QAAQ,EACjB,QAAQ,GAAG,UAAU,EACrB,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,MAAM,GAAG,QAAQ,EACjB,IAAI,GAAG,MAAM,EACb,KAAK,GAAG,OAAO,EACf,SAAS,GAAG,WAAW,EACvB,KAAK,GAAG,OAAO,EACf,IAAI,GAAG,MAAM,EACb,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,QAAQ,EACjB,QAAQ,GAAG,GAAG,EACd,MAAM,GAAG,QAAQ,EACjB,KAAK,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"option.js","sourceRoot":"","sources":["../../../src/rules/_strings/option.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MACP,KAAK,GAAG,OAAO,EACf,KAAK,GAAG,OAAO,EACf,GAAG,GAAG,KAAK,EACX,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,gBAAgB,GAAG,kBAAkB,EACrC,GAAG,GAAG,KAAK,EACX,SAAS,GAAG,WAAW,EACvB,MAAM,GAAG,QAAQ,EACjB,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,IAAI,GAAG,MAAM,EACb,WAAW,GAAG,aAAa,EAC3B,UAAU,GAAG,YAAY,EACzB,MAAM,GAAG,QAAQ,EACjB,QAAQ,GAAG,UAAU,EACrB,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,QAAQ,EACjB,MAAM,GAAG,QAAQ,EACjB,IAAI,GAAG,MAAM,EACb,KAAK,GAAG,OAAO,EACf,SAAS,GAAG,WAAW,EACvB,KAAK,GAAG,OAAO,EACf,IAAI,GAAG,MAAM,EACb,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,QAAQ,EACjB,MAAM,GAAG,QAAQ,EACjB,QAAQ,GAAG,GAAG,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const OFF = "off", ON = "error", WARN = "warn";
1
+ export declare const OFF = 0, WARN = 1, ON = 2;
2
2
  //# sourceMappingURL=state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/rules/_strings/state.ts"],"names":[],"mappings":"AAAA,eAAO,MACP,GAAG,QAAQ,EACX,EAAE,UAAU,EACZ,IAAI,SAAS,CAAC"}
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/rules/_strings/state.ts"],"names":[],"mappings":"AAAA,eAAO,MACP,GAAG,IAAI,EACP,IAAI,IAAI,EACR,EAAE,IAAI,CAAC"}
@@ -1,2 +1,2 @@
1
- export const OFF = "off", ON = "error", WARN = "warn";
1
+ export const OFF = 0, WARN = 1, ON = 2;
2
2
  //# sourceMappingURL=state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/rules/_strings/state.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MACP,GAAG,GAAG,KAAK,EACX,EAAE,GAAG,OAAO,EACZ,IAAI,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/rules/_strings/state.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MACP,GAAG,GAAG,CAAC,EACP,IAAI,GAAG,CAAC,EACR,EAAE,GAAG,CAAC,CAAC"}
@@ -1,35 +1,40 @@
1
1
  import "chai/register-should.js";
2
2
  import * as State from "./state.js";
3
- const state = { ...State };
4
- describe("Strings:Level", function () {
3
+ describe("Strings: State", function () {
4
+ const state = { ...State };
5
5
  describe("shape", function () {
6
- it("is module (converted to object)", function () {
6
+ it("is object module", function () {
7
7
  state
8
- .should.be
8
+ .should
9
+ .be
9
10
  .an("object");
10
11
  });
11
12
  });
12
- describe("count", function () {
13
- it("is 3", function () {
14
- Object.keys(state)
15
- .should.have
13
+ describe("keys", function () {
14
+ const keys = Object.keys(state);
15
+ it("count 3", function () {
16
+ keys
17
+ .should
18
+ .have
16
19
  .lengthOf(3);
17
20
  });
18
- });
19
- describe("unique count", function () {
20
- it("is 3", function () {
21
- new Map(Object.entries(state))
22
- .should.have
21
+ it("unique count 3", function () {
22
+ new Set(keys)
23
+ .should
24
+ .have
23
25
  .lengthOf(3);
24
26
  });
25
27
  });
26
28
  describe("values", function () {
27
- it("are: error | warn | off", function () {
28
- new Map(Object.entries(state))
29
+ it("off(0) | warn(1) | error(2)", function () {
30
+ new Set(Object.values(state))
29
31
  .should
30
- .include("error")
31
- .and.include("warn")
32
- .and.include("off");
32
+ .have
33
+ .members([
34
+ 0,
35
+ 1,
36
+ 2,
37
+ ]);
33
38
  });
34
39
  });
35
40
  });
@@ -1 +1 @@
1
- {"version":3,"file":"state.spec.js","sourceRoot":"","sources":["../../../src/rules/_strings/state.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,MAAM,KAAK,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;AAE3B,QAAQ,CACN,eAAe,EACf;IACE,QAAQ,CACN,OAAO,EACP;QACE,EAAE,CACA,iCAAiC,EACjC;YACE,KAAK;iBACF,MAAM,CAAC,EAAE;iBACT,EAAE,CAAC,QAAQ,CAAC,CAAC;QAClB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,OAAO,EACP;QACE,EAAE,CACA,MAAM,EACN;YACE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;iBACf,MAAM,CAAC,IAAI;iBACX,QAAQ,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,cAAc,EACd;QACE,EAAE,CACA,MAAM,EACN;YACE,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;iBAC3B,MAAM,CAAC,IAAI;iBACX,QAAQ,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,QAAQ,EACR;QACE,EAAE,CACA,yBAAyB,EACzB;YACE,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;iBAC3B,MAAM;iBACN,OAAO,CAAC,OAAO,CAAC;iBAChB,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC;iBACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"state.spec.js","sourceRoot":"","sources":["../../../src/rules/_strings/state.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,QAAQ,CACN,gBAAgB,EAChB;IACE,MAAM,KAAK,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;IAE3B,QAAQ,CACN,OAAO,EACP;QACE,EAAE,CACA,kBAAkB,EAClB;YACE,KAAK;iBACF,MAAM;iBACN,EAAE;iBACF,EAAE,CAAC,QAAQ,CAAC,CAAC;QAClB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,MAAM,EACN;QACE,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEhC,EAAE,CACA,SAAS,EACT;YACE,IAAI;iBACD,MAAM;iBACN,IAAI;iBACJ,QAAQ,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CACF,CAAC;QACF,EAAE,CACA,gBAAgB,EAChB;YACE,IAAI,GAAG,CAAC,IAAI,CAAC;iBACV,MAAM;iBACN,IAAI;iBACJ,QAAQ,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,QAAQ,EACR;QACE,EAAE,CACA,6BAA6B,EAC7B;YACE,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;iBAC1B,MAAM;iBACN,IAAI;iBACJ,OAAO,CACN;gBACE,CAAC;gBACD,CAAC;gBACD,CAAC;aACF,CACF,CAAC;QACN,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,17 +1,17 @@
1
1
  export declare const CssEnable: {
2
2
  id: "enable";
3
3
  rules: {
4
- readonly "css/font-family-fallbacks": "error";
5
- readonly "css/no-duplicate-imports": "error";
6
- readonly "css/no-duplicate-keyframe-selectors": "error";
7
- readonly "css/no-empty-blocks": "error";
8
- readonly "css/no-important": "error";
9
- readonly "css/no-invalid-at-rule-placement": "error";
10
- readonly "css/no-invalid-at-rules": "error";
11
- readonly "css/no-invalid-named-grid-areas": "error";
12
- readonly "css/prefer-logical-properties": "error";
13
- readonly "css/relative-font-units": "error";
14
- readonly "css/use-baseline": "error";
4
+ readonly "css/font-family-fallbacks": 2;
5
+ readonly "css/no-duplicate-imports": 2;
6
+ readonly "css/no-duplicate-keyframe-selectors": 2;
7
+ readonly "css/no-empty-blocks": 2;
8
+ readonly "css/no-important": 2;
9
+ readonly "css/no-invalid-at-rule-placement": 2;
10
+ readonly "css/no-invalid-at-rules": 2;
11
+ readonly "css/no-invalid-named-grid-areas": 2;
12
+ readonly "css/prefer-logical-properties": 2;
13
+ readonly "css/relative-font-units": 2;
14
+ readonly "css/use-baseline": 2;
15
15
  };
16
16
  };
17
17
  //# sourceMappingURL=enable.d.ts.map
@@ -1,17 +1,17 @@
1
1
  declare const _default: {
2
2
  id: "enable";
3
3
  rules: {
4
- readonly "css/font-family-fallbacks": "error";
5
- readonly "css/no-duplicate-imports": "error";
6
- readonly "css/no-duplicate-keyframe-selectors": "error";
7
- readonly "css/no-empty-blocks": "error";
8
- readonly "css/no-important": "error";
9
- readonly "css/no-invalid-at-rule-placement": "error";
10
- readonly "css/no-invalid-at-rules": "error";
11
- readonly "css/no-invalid-named-grid-areas": "error";
12
- readonly "css/prefer-logical-properties": "error";
13
- readonly "css/relative-font-units": "error";
14
- readonly "css/use-baseline": "error";
4
+ readonly "css/font-family-fallbacks": 2;
5
+ readonly "css/no-duplicate-imports": 2;
6
+ readonly "css/no-duplicate-keyframe-selectors": 2;
7
+ readonly "css/no-empty-blocks": 2;
8
+ readonly "css/no-important": 2;
9
+ readonly "css/no-invalid-at-rule-placement": 2;
10
+ readonly "css/no-invalid-at-rules": 2;
11
+ readonly "css/no-invalid-named-grid-areas": 2;
12
+ readonly "css/prefer-logical-properties": 2;
13
+ readonly "css/relative-font-units": 2;
14
+ readonly "css/use-baseline": 2;
15
15
  };
16
16
  }[];
17
17
  export default _default;