@eslinted/defaults 17.5.0-rc.1 → 17.5.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.
- package/dist/tests/index.spec.js +15 -15
- package/dist/tests/index.spec.js.map +1 -1
- package/package.json +1 -1
- package/tests/index.spec.ts +15 -15
package/dist/tests/index.spec.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "chai/register-should.js";
|
|
2
2
|
import defaults from "../index.js";
|
|
3
3
|
import { scopes } from "./index.scopes.spec.js";
|
|
4
|
-
describe("Main Export",
|
|
4
|
+
describe("Main Export", () => {
|
|
5
5
|
const GLOBAL = "*", { ignores, files, rules, } = defaults;
|
|
6
|
-
describe("module",
|
|
7
|
-
it("with object submodules: files, ignores, rules",
|
|
6
|
+
describe("module", () => {
|
|
7
|
+
it("with object submodules: files, ignores, rules", () => {
|
|
8
8
|
files
|
|
9
9
|
.should
|
|
10
10
|
.be
|
|
@@ -19,21 +19,21 @@ describe("Main Export", function () {
|
|
|
19
19
|
.an("object");
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
describe("files",
|
|
23
|
-
it("only has all scopes",
|
|
22
|
+
describe("files", () => {
|
|
23
|
+
it("only has all scopes", () => {
|
|
24
24
|
files
|
|
25
25
|
.should
|
|
26
26
|
.have
|
|
27
27
|
.keys(scopes);
|
|
28
28
|
});
|
|
29
|
-
it("of arrays",
|
|
29
|
+
it("of arrays", () => {
|
|
30
30
|
for (const scope of Object.values(files))
|
|
31
31
|
scope
|
|
32
32
|
.should
|
|
33
33
|
.be
|
|
34
34
|
.an("array");
|
|
35
35
|
});
|
|
36
|
-
it("of expanded strings",
|
|
36
|
+
it("of expanded strings", () => {
|
|
37
37
|
for (const scope of Object.values(files))
|
|
38
38
|
for (const pattern of scope)
|
|
39
39
|
pattern
|
|
@@ -48,21 +48,21 @@ describe("Main Export", function () {
|
|
|
48
48
|
.string("}");
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
-
describe("ignores",
|
|
52
|
-
it("only has globals and any scopes",
|
|
51
|
+
describe("ignores", () => {
|
|
52
|
+
it("only has globals and any scopes", () => {
|
|
53
53
|
ignores
|
|
54
54
|
.should
|
|
55
55
|
.have
|
|
56
56
|
.keys(GLOBAL, ...new Set(scopes).intersection(new Set(Object.keys(ignores))));
|
|
57
57
|
});
|
|
58
|
-
it("of arrays",
|
|
58
|
+
it("of arrays", () => {
|
|
59
59
|
for (const scope of Object.values(ignores))
|
|
60
60
|
scope
|
|
61
61
|
.should
|
|
62
62
|
.be
|
|
63
63
|
.an("array");
|
|
64
64
|
});
|
|
65
|
-
it("of expanded strings",
|
|
65
|
+
it("of expanded strings", () => {
|
|
66
66
|
for (const scope of Object.values(ignores))
|
|
67
67
|
for (const pattern of scope)
|
|
68
68
|
pattern
|
|
@@ -77,21 +77,21 @@ describe("Main Export", function () {
|
|
|
77
77
|
.string("}");
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
|
-
describe("rules",
|
|
81
|
-
it("only has all scopes",
|
|
80
|
+
describe("rules", () => {
|
|
81
|
+
it("only has all scopes", () => {
|
|
82
82
|
rules
|
|
83
83
|
.should
|
|
84
84
|
.have
|
|
85
85
|
.keys(scopes);
|
|
86
86
|
});
|
|
87
|
-
it("of arrays",
|
|
87
|
+
it("of arrays", () => {
|
|
88
88
|
for (const scope of Object.values(rules))
|
|
89
89
|
scope
|
|
90
90
|
.should
|
|
91
91
|
.be
|
|
92
92
|
.an("array");
|
|
93
93
|
});
|
|
94
|
-
it("of rule config objects",
|
|
94
|
+
it("of rule config objects", () => {
|
|
95
95
|
for (const scope of Object.values(rules))
|
|
96
96
|
for (const config of scope) {
|
|
97
97
|
config
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../tests/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,QAAQ,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,QAAQ,CACN,aAAa,EACb;
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../tests/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,QAAQ,MAAM,IAAI,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,QAAQ,CACN,aAAa,EACb,GAAG,EAAE;IACH,MAAM,MAAM,GAAG,GAAG,EAClB,EACE,OAAO,EACP,KAAK,EACL,KAAK,GACN,GAAG,QAAQ,CAAC;IAEb,QAAQ,CACN,QAAQ,EACR,GAAG,EAAE;QACH,EAAE,CACA,+CAA+C,EAC/C,GAAG,EAAE;YACH,KAAK;iBACF,MAAM;iBACN,EAAE;iBACF,EAAE,CAAC,QAAQ,CAAC,CAAC;YAChB,OAAO;iBACJ,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,OAAO,EACP,GAAG,EAAE;QACH,EAAE,CACA,qBAAqB,EACrB,GAAG,EAAE;YACH,KAAK;iBACF,MAAM;iBACN,IAAI;iBACJ,IAAI,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC,CACF,CAAC;QACF,EAAE,CACA,WAAW,EACX,GAAG,EAAE;YACH,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;gBACtC,KAAK;qBACF,MAAM;qBACN,EAAE;qBACF,EAAE,CAAC,OAAO,CAAC,CAAC;QACnB,CAAC,CACF,CAAC;QACF,EAAE,CACA,qBAAqB,EACrB,GAAG,EAAE;YACH,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KA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
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "17.5.0
|
|
6
|
+
"version": "17.5.0",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
package/tests/index.spec.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { scopes } from "./index.scopes.spec";
|
|
|
4
4
|
|
|
5
5
|
describe(
|
|
6
6
|
"Main Export",
|
|
7
|
-
|
|
7
|
+
() => {
|
|
8
8
|
const GLOBAL = "*",
|
|
9
9
|
{
|
|
10
10
|
ignores,
|
|
@@ -14,10 +14,10 @@ describe(
|
|
|
14
14
|
|
|
15
15
|
describe(
|
|
16
16
|
"module",
|
|
17
|
-
|
|
17
|
+
() => {
|
|
18
18
|
it(
|
|
19
19
|
"with object submodules: files, ignores, rules",
|
|
20
|
-
|
|
20
|
+
() => {
|
|
21
21
|
files
|
|
22
22
|
.should
|
|
23
23
|
.be
|
|
@@ -36,10 +36,10 @@ describe(
|
|
|
36
36
|
);
|
|
37
37
|
describe(
|
|
38
38
|
"files",
|
|
39
|
-
|
|
39
|
+
() => {
|
|
40
40
|
it(
|
|
41
41
|
"only has all scopes",
|
|
42
|
-
|
|
42
|
+
() => {
|
|
43
43
|
files
|
|
44
44
|
.should
|
|
45
45
|
.have
|
|
@@ -48,7 +48,7 @@ describe(
|
|
|
48
48
|
);
|
|
49
49
|
it(
|
|
50
50
|
"of arrays",
|
|
51
|
-
|
|
51
|
+
() => {
|
|
52
52
|
for (const scope of Object.values(files))
|
|
53
53
|
scope
|
|
54
54
|
.should
|
|
@@ -58,7 +58,7 @@ describe(
|
|
|
58
58
|
);
|
|
59
59
|
it(
|
|
60
60
|
"of expanded strings",
|
|
61
|
-
|
|
61
|
+
() => {
|
|
62
62
|
for (const scope of Object.values(files))
|
|
63
63
|
for (const pattern of scope)
|
|
64
64
|
pattern
|
|
@@ -77,10 +77,10 @@ describe(
|
|
|
77
77
|
);
|
|
78
78
|
describe(
|
|
79
79
|
"ignores",
|
|
80
|
-
|
|
80
|
+
() => {
|
|
81
81
|
it(
|
|
82
82
|
"only has globals and any scopes",
|
|
83
|
-
|
|
83
|
+
() => {
|
|
84
84
|
ignores
|
|
85
85
|
.should
|
|
86
86
|
.have
|
|
@@ -96,7 +96,7 @@ describe(
|
|
|
96
96
|
);
|
|
97
97
|
it(
|
|
98
98
|
"of arrays",
|
|
99
|
-
|
|
99
|
+
() => {
|
|
100
100
|
for (const scope of Object.values(ignores))
|
|
101
101
|
scope
|
|
102
102
|
.should
|
|
@@ -106,7 +106,7 @@ describe(
|
|
|
106
106
|
);
|
|
107
107
|
it(
|
|
108
108
|
"of expanded strings",
|
|
109
|
-
|
|
109
|
+
() => {
|
|
110
110
|
for (const scope of Object.values(ignores))
|
|
111
111
|
for (const pattern of scope)
|
|
112
112
|
pattern
|
|
@@ -125,10 +125,10 @@ describe(
|
|
|
125
125
|
);
|
|
126
126
|
describe(
|
|
127
127
|
"rules",
|
|
128
|
-
|
|
128
|
+
() => {
|
|
129
129
|
it(
|
|
130
130
|
"only has all scopes",
|
|
131
|
-
|
|
131
|
+
() => {
|
|
132
132
|
rules
|
|
133
133
|
.should
|
|
134
134
|
.have
|
|
@@ -137,7 +137,7 @@ describe(
|
|
|
137
137
|
);
|
|
138
138
|
it(
|
|
139
139
|
"of arrays",
|
|
140
|
-
|
|
140
|
+
() => {
|
|
141
141
|
for (const scope of Object.values(rules))
|
|
142
142
|
scope
|
|
143
143
|
.should
|
|
@@ -147,7 +147,7 @@ describe(
|
|
|
147
147
|
);
|
|
148
148
|
it(
|
|
149
149
|
"of rule config objects",
|
|
150
|
-
|
|
150
|
+
() => {
|
|
151
151
|
for (const scope of Object.values(rules))
|
|
152
152
|
for (const config of scope) {
|
|
153
153
|
config
|