@eslinted/defaults 17.5.0-rc.1 → 17.5.1
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/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +0 -1
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/ts/index.d.ts +0 -1
- package/dist/rules/ts/index.d.ts.map +1 -1
- package/dist/rules/ts/ts.d.ts +0 -1
- package/dist/rules/ts/ts.d.ts.map +1 -1
- package/dist/rules/ts/ts.js +0 -1
- package/dist/rules/ts/ts.js.map +1 -1
- package/dist/tests/index.d.ts.map +1 -1
- package/dist/tests/index.js +0 -5
- package/dist/tests/index.js.map +1 -1
- package/dist/tests/index.spec.js +15 -15
- package/dist/tests/index.spec.js.map +1 -1
- package/package.json +1 -1
- package/src/rules/ts/ts.ts +1 -1
- package/tests/index.spec.ts +15 -15
- package/tests/index.ts +1 -9
package/dist/index.d.ts
CHANGED
|
@@ -688,7 +688,6 @@ declare const _default: {
|
|
|
688
688
|
readonly "ts/no-unsafe-assignment": import("./rules/state.js").State.ON;
|
|
689
689
|
readonly "ts/no-unsafe-call": import("./rules/state.js").State.ON;
|
|
690
690
|
readonly "ts/no-unsafe-declaration-merging": import("./rules/state.js").State.ON;
|
|
691
|
-
readonly "ts/no-unsafe-enum-comparison": import("./rules/state.js").State.ON;
|
|
692
691
|
readonly "ts/no-unsafe-function-type": import("./rules/state.js").State.ON;
|
|
693
692
|
readonly "ts/no-unsafe-member-access": readonly [
|
|
694
693
|
import("./rules/state.js").State.ON,
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -671,7 +671,6 @@ declare const _default: {
|
|
|
671
671
|
readonly "ts/no-unsafe-assignment": import("./state.js").State.ON;
|
|
672
672
|
readonly "ts/no-unsafe-call": import("./state.js").State.ON;
|
|
673
673
|
readonly "ts/no-unsafe-declaration-merging": import("./state.js").State.ON;
|
|
674
|
-
readonly "ts/no-unsafe-enum-comparison": import("./state.js").State.ON;
|
|
675
674
|
readonly "ts/no-unsafe-function-type": import("./state.js").State.ON;
|
|
676
675
|
readonly "ts/no-unsafe-member-access": readonly [
|
|
677
676
|
import("./state.js").State.ON,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAUE"}
|
package/dist/rules/ts/index.d.ts
CHANGED
|
@@ -113,7 +113,6 @@ declare const _default: ({
|
|
|
113
113
|
readonly "ts/no-unsafe-assignment": import("../state.js").State.ON;
|
|
114
114
|
readonly "ts/no-unsafe-call": import("../state.js").State.ON;
|
|
115
115
|
readonly "ts/no-unsafe-declaration-merging": import("../state.js").State.ON;
|
|
116
|
-
readonly "ts/no-unsafe-enum-comparison": import("../state.js").State.ON;
|
|
117
116
|
readonly "ts/no-unsafe-function-type": import("../state.js").State.ON;
|
|
118
117
|
readonly "ts/no-unsafe-member-access": readonly [
|
|
119
118
|
import("../state.js").State.ON,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
package/dist/rules/ts/ts.d.ts
CHANGED
|
@@ -92,7 +92,6 @@ declare const _default: {
|
|
|
92
92
|
readonly "ts/no-unsafe-assignment": State.ON;
|
|
93
93
|
readonly "ts/no-unsafe-call": State.ON;
|
|
94
94
|
readonly "ts/no-unsafe-declaration-merging": State.ON;
|
|
95
|
-
readonly "ts/no-unsafe-enum-comparison": State.ON;
|
|
96
95
|
readonly "ts/no-unsafe-function-type": State.ON;
|
|
97
96
|
readonly "ts/no-unsafe-member-access": readonly [
|
|
98
97
|
State.ON,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGjC,wBA4ME"}
|
package/dist/rules/ts/ts.js
CHANGED
package/dist/rules/ts/ts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/rules/ts/ts.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QAGL,mBAAmB,GAAU;QAC7B,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QACjC,iCAAiC,GAAU;QAC3C,oCAAoC,GAAU;QAE9C,+BAA+B,EAAE;;YAE/B;gBACE,0BAA0B,EAAE,OAAO;gBACnC,2BAA2B,EAAE,OAAO;aACrC;SACF;QAED,4BAA4B,GAAU;QACtC,4BAA4B,GAAU;QAEtC,kCAAkC,EAAE;;YAElC;gBACE,SAAS,EAAE;oBACT,YAAY,EAAE,WAAW;iBAC1B;aACF;SACF;QAED,oBAAoB,EAAE;;YAEpB;gBACE,SAAS,EAAE;oBACT,gBAAgB,EAAE,gBAAgB;iBACnC;aACF;SACF;QACD,2BAA2B,GAAU;QAErC,oBAAoB,GAAU;QAC9B,sBAAsB,GAAU;QAChC,oCAAoC,GAAU;QAC9C,iCAAiC,GAAU;QAE3C,6BAA6B,GAAU;Q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hC;gBACE,yBAAyB,EAAE,IAAI;gBAC/B,kCAAkC,EAAE,IAAI;aACzC;SACF;QAGD,mBAAmB,EAAE;;YAEnB;gBACE,YAAY,EAAE,IAAI;aACnB;SACF;QAED,2CAA2C,GAAU;KAC7C;CACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tests/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tests/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,SAE/B"}
|
package/dist/tests/index.js
CHANGED
package/dist/tests/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tests/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tests/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB;AAEhC,CAAC"}
|
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;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BAC7C,IAAI;6BACD,MAAM;6BACN,EAAE;6BACF,CAAC,CAAC,QAAQ,CAAC,CAAC;wBAEf,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAiC,CAAoB,CAAC;wBAEjF,IAAI,OAAO,KAAK,KAAK,QAAQ;4BAC3B,KAAK;iCACF,MAAM;iCACN,EAAE;iCACF,EAAE,CAAC,OAAO,CAAC;iCACX,IAAI;iCACJ,QAAQ,CAAC,GAAG,CAAC;iCACb,CAAC,CAAC,QAAQ,CAAC,CAAC;oBACnB,CAAC;gBACH,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.
|
|
6
|
+
"version": "17.5.1",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
package/src/rules/ts/ts.ts
CHANGED
|
@@ -105,7 +105,7 @@ export default {
|
|
|
105
105
|
"ts/no-unsafe-assignment": State.ON,
|
|
106
106
|
"ts/no-unsafe-call": State.ON,
|
|
107
107
|
"ts/no-unsafe-declaration-merging": State.ON,
|
|
108
|
-
"ts/no-unsafe-enum-comparison": State.
|
|
108
|
+
// "ts/no-unsafe-enum-comparison": State.OFF /* dumb fucking rule */,
|
|
109
109
|
"ts/no-unsafe-function-type": State.ON,
|
|
110
110
|
"ts/no-unsafe-member-access": [
|
|
111
111
|
State.ON,
|
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
|