@eslinted/defaults 17.0.6 → 17.1.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 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.scopes.spec.d.ts +2 -0
- package/dist/index.scopes.spec.d.ts.map +1 -0
- package/dist/index.scopes.spec.js +13 -0
- package/dist/index.scopes.spec.js.map +1 -0
- package/dist/index.spec.js +58 -71
- package/dist/index.spec.js.map +1 -1
- package/dist/rules/css/index.d.ts +0 -1
- package/dist/rules/css/index.d.ts.map +1 -1
- package/dist/rules/css/index.js +0 -1
- package/dist/rules/css/index.js.map +1 -1
- package/dist/rules/html/index.d.ts +0 -1
- package/dist/rules/html/index.d.ts.map +1 -1
- package/dist/rules/html/index.js +0 -1
- package/dist/rules/html/index.js.map +1 -1
- package/dist/rules/index.d.ts +0 -20
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/js.d.ts +0 -2
- package/dist/rules/js.d.ts.map +1 -1
- package/dist/rules/js.eslint.d.ts +0 -1
- package/dist/rules/js.eslint.d.ts.map +1 -1
- package/dist/rules/js.eslint.js +0 -1
- package/dist/rules/js.eslint.js.map +1 -1
- package/dist/rules/js.stylistic.d.ts +0 -1
- package/dist/rules/js.stylistic.d.ts.map +1 -1
- package/dist/rules/js.stylistic.js +0 -1
- package/dist/rules/js.stylistic.js.map +1 -1
- package/dist/rules/json/index.d.ts +0 -3
- package/dist/rules/json/index.d.ts.map +1 -1
- package/dist/rules/json/json.d.ts +0 -1
- package/dist/rules/json/json.d.ts.map +1 -1
- package/dist/rules/json/json.js +0 -1
- package/dist/rules/json/json.js.map +1 -1
- package/dist/rules/json/plugin/extend.d.ts +0 -1
- package/dist/rules/json/plugin/extend.d.ts.map +1 -1
- package/dist/rules/json/plugin/extend.js +0 -1
- package/dist/rules/json/plugin/extend.js.map +1 -1
- package/dist/rules/json/plugin/index.d.ts +0 -1
- package/dist/rules/json/plugin/index.d.ts.map +1 -1
- package/dist/rules/json/plugin/index.js +0 -1
- package/dist/rules/json/plugin/index.js.map +1 -1
- package/dist/rules/jsonc/index.d.ts +0 -1
- package/dist/rules/jsonc/index.d.ts.map +1 -1
- package/dist/rules/jsonc/index.js +0 -1
- package/dist/rules/jsonc/index.js.map +1 -1
- package/dist/rules/jsoncc/index.d.ts +0 -1
- package/dist/rules/jsoncc/index.d.ts.map +1 -1
- package/dist/rules/jsoncc/index.js +0 -1
- package/dist/rules/jsoncc/index.js.map +1 -1
- package/dist/rules/mocha/chai/expect.d.ts +0 -1
- package/dist/rules/mocha/chai/expect.d.ts.map +1 -1
- package/dist/rules/mocha/chai/expect.js +0 -1
- package/dist/rules/mocha/chai/expect.js.map +1 -1
- package/dist/rules/mocha/chai/index.d.ts +0 -1
- package/dist/rules/mocha/chai/index.d.ts.map +1 -1
- package/dist/rules/mocha/chai/index.js +0 -1
- package/dist/rules/mocha/chai/index.js.map +1 -1
- package/dist/rules/mocha/index.d.ts +0 -3
- package/dist/rules/mocha/index.d.ts.map +1 -1
- package/dist/rules/mocha/mocha.d.ts +0 -1
- package/dist/rules/mocha/mocha.d.ts.map +1 -1
- package/dist/rules/mocha/mocha.js +0 -1
- package/dist/rules/mocha/mocha.js.map +1 -1
- package/dist/rules/svelte/disable.d.ts +0 -1
- package/dist/rules/svelte/disable.d.ts.map +1 -1
- package/dist/rules/svelte/disable.js +0 -1
- package/dist/rules/svelte/disable.js.map +1 -1
- package/dist/rules/svelte/extend.d.ts +0 -1
- package/dist/rules/svelte/extend.d.ts.map +1 -1
- package/dist/rules/svelte/extend.js +0 -1
- package/dist/rules/svelte/extend.js.map +1 -1
- package/dist/rules/svelte/index.d.ts +0 -3
- package/dist/rules/svelte/index.d.ts.map +1 -1
- package/dist/rules/svelte/svelte.d.ts +0 -1
- package/dist/rules/svelte/svelte.d.ts.map +1 -1
- package/dist/rules/svelte/svelte.js +0 -1
- package/dist/rules/svelte/svelte.js.map +1 -1
- package/dist/rules/ts/disable.d.ts +0 -1
- package/dist/rules/ts/disable.d.ts.map +1 -1
- package/dist/rules/ts/disable.js +0 -1
- package/dist/rules/ts/disable.js.map +1 -1
- package/dist/rules/ts/extend.d.ts +0 -1
- package/dist/rules/ts/extend.d.ts.map +1 -1
- package/dist/rules/ts/extend.js +0 -1
- package/dist/rules/ts/extend.js.map +1 -1
- package/dist/rules/ts/index.d.ts +0 -3
- 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/rules/yml/extend.d.ts +0 -1
- package/dist/rules/yml/extend.d.ts.map +1 -1
- package/dist/rules/yml/extend.js +0 -1
- package/dist/rules/yml/extend.js.map +1 -1
- package/dist/rules/yml/index.d.ts +0 -2
- package/dist/rules/yml/index.d.ts.map +1 -1
- package/dist/rules/yml/yml.d.ts +0 -1
- package/dist/rules/yml/yml.d.ts.map +1 -1
- package/dist/rules/yml/yml.js +0 -1
- package/dist/rules/yml/yml.js.map +1 -1
- package/package.json +1 -1
- package/src/index.scopes.spec.ts +12 -0
- package/src/index.spec.ts +67 -87
- package/src/rules/css/index.ts +0 -1
- package/src/rules/html/index.ts +0 -1
- package/src/rules/js.eslint.ts +0 -1
- package/src/rules/js.stylistic.ts +0 -1
- package/src/rules/json/json.ts +0 -1
- package/src/rules/json/plugin/extend.ts +0 -1
- package/src/rules/json/plugin/index.ts +0 -1
- package/src/rules/jsonc/index.ts +0 -1
- package/src/rules/jsoncc/index.ts +0 -1
- package/src/rules/mocha/chai/expect.ts +0 -1
- package/src/rules/mocha/chai/index.ts +0 -1
- package/src/rules/mocha/mocha.ts +0 -1
- package/src/rules/svelte/disable.ts +0 -1
- package/src/rules/svelte/extend.ts +0 -1
- package/src/rules/svelte/svelte.ts +0 -1
- package/src/rules/ts/disable.ts +0 -1
- package/src/rules/ts/extend.ts +0 -1
- package/src/rules/ts/ts.ts +0 -1
- package/src/rules/yml/extend.ts +0 -1
- package/src/rules/yml/yml.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../src/rules/yml/extend.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,
|
|
1
|
+
{"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../src/rules/yml/extend.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACL,gCAAgC,EAAE;;YAEhC;gBACE,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,aAAa,EAAE,CAAC;aACjB;SACF;QACD,gCAAgC,EAAE;;YAEhC,OAAO;YACP;gBACE,gBAAgB,EAAE,IAAI;aACvB;SACF;QACD,mCAAmC,GAAU;QAC7C,mCAAmC,GAAU;QAC7C,iBAAiB,GAAU;QAC3B,6BAA6B,GAAU;QACvC,6BAA6B,EAAE;;YAE7B;gBACE,GAAG,EAAE,CAAC;gBACN,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;aACV;SACF;QACD,oBAAoB,EAAE;;YAEpB,QAAQ;YACR;gBACE,UAAU,EAAE,CAAC,GAAG,CAAC;gBACjB,OAAO,EAAE;oBACP,GAAG;oBACH,GAAG;oBACH,IAAI;oBACJ,KAAK;oBACL,MAAM;oBACN,OAAO;oBACP,QAAQ;oBACR,WAAW;iBACZ;aACF;SACF;KACO;CACX,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare const _default: ({
|
|
2
|
-
name: string;
|
|
3
2
|
rules: {
|
|
4
3
|
readonly "yml/block-mapping-colon-indicator-newline": import("../state.js").State.ON;
|
|
5
4
|
readonly "yml/block-mapping-question-indicator-newline": import("../state.js").State.ON;
|
|
@@ -14,7 +13,6 @@ declare const _default: ({
|
|
|
14
13
|
readonly "yml/require-string-key": import("../state.js").State.ON;
|
|
15
14
|
};
|
|
16
15
|
} | {
|
|
17
|
-
name: string;
|
|
18
16
|
rules: {
|
|
19
17
|
readonly "yml/flow-mapping-curly-newline": readonly [
|
|
20
18
|
import("../state.js").State.ON,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
package/dist/rules/yml/yml.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"yml.d.ts","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;AAGjC,wBAuBE"}
|
package/dist/rules/yml/yml.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,
|
|
1
|
+
{"version":3,"file":"yml.js","sourceRoot":"","sources":["../../../src/rules/yml/yml.ts"],"names":[],"mappings":"AAGA,eAAe;IACb,KAAK,EAAE;QACL,2CAA2C,GAAU;QACrD,8CAA8C,GAAU;QACxD,mBAAmB,GAAU;QAC7B,6CAA6C,GAAU;QACvD,oBAAoB,GAAU;QAE9B,YAAY,GAAU;QAGtB,kBAAkB,GAAU;QAE5B,6BAA6B,GAAU;QACvC,mBAAmB,GAAU;QAC7B,uBAAuB,GAAU;QAGjC,wBAAwB,GAAU;KAI1B;CACX,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.
|
|
6
|
+
"version": "17.1.1",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
package/src/index.spec.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import "chai/register-should.js";
|
|
2
2
|
import defaults from ".";
|
|
3
|
+
import { scopes } from "./index.scopes.spec";
|
|
3
4
|
|
|
4
5
|
describe(
|
|
5
6
|
"Main Export",
|
|
6
7
|
function () {
|
|
7
|
-
const
|
|
8
|
-
"js",
|
|
9
|
-
"ts",
|
|
10
|
-
],
|
|
11
|
-
GLOBAL = "*",
|
|
8
|
+
const GLOBAL = "*",
|
|
12
9
|
{
|
|
13
10
|
ignores,
|
|
14
11
|
files,
|
|
@@ -19,13 +16,13 @@ describe(
|
|
|
19
16
|
"module",
|
|
20
17
|
function () {
|
|
21
18
|
it(
|
|
22
|
-
"with object submodules:
|
|
19
|
+
"with object submodules: files, ignores, rules",
|
|
23
20
|
function () {
|
|
24
|
-
|
|
21
|
+
files
|
|
25
22
|
.should
|
|
26
23
|
.be
|
|
27
24
|
.an("object");
|
|
28
|
-
|
|
25
|
+
ignores
|
|
29
26
|
.should
|
|
30
27
|
.be
|
|
31
28
|
.an("object");
|
|
@@ -38,166 +35,149 @@ describe(
|
|
|
38
35
|
},
|
|
39
36
|
);
|
|
40
37
|
describe(
|
|
41
|
-
"
|
|
38
|
+
"files",
|
|
42
39
|
function () {
|
|
43
40
|
it(
|
|
44
|
-
"has
|
|
41
|
+
"only has all scopes",
|
|
45
42
|
function () {
|
|
46
|
-
|
|
43
|
+
files
|
|
47
44
|
.should
|
|
48
45
|
.have
|
|
49
|
-
.
|
|
50
|
-
.property(GLOBAL);
|
|
46
|
+
.keys(scopes);
|
|
51
47
|
},
|
|
52
48
|
);
|
|
53
49
|
it(
|
|
54
50
|
"of arrays",
|
|
55
51
|
function () {
|
|
56
|
-
for (const scope of Object.values(
|
|
52
|
+
for (const scope of Object.values(files))
|
|
57
53
|
scope
|
|
58
|
-
|
|
59
54
|
.should
|
|
60
55
|
.be
|
|
61
56
|
.an("array");
|
|
62
57
|
},
|
|
63
58
|
);
|
|
64
59
|
it(
|
|
65
|
-
"of strings",
|
|
60
|
+
"of expanded strings",
|
|
66
61
|
function () {
|
|
67
|
-
for (const scope of Object.values(
|
|
62
|
+
for (const scope of Object.values(files))
|
|
68
63
|
for (const pattern of scope)
|
|
69
64
|
pattern
|
|
70
65
|
.should
|
|
71
66
|
.be
|
|
72
|
-
.a("string")
|
|
67
|
+
.a("string")
|
|
68
|
+
.not
|
|
69
|
+
.have
|
|
70
|
+
.string("{")
|
|
71
|
+
.not
|
|
72
|
+
.have
|
|
73
|
+
.string("}");
|
|
73
74
|
},
|
|
74
75
|
);
|
|
75
76
|
},
|
|
76
77
|
);
|
|
77
78
|
describe(
|
|
78
|
-
"
|
|
79
|
+
"ignores",
|
|
79
80
|
function () {
|
|
80
81
|
it(
|
|
81
|
-
"has scopes",
|
|
82
|
+
"only has globals and any scopes",
|
|
82
83
|
function () {
|
|
83
|
-
|
|
84
|
-
files
|
|
85
|
-
.should
|
|
86
|
-
.have
|
|
87
|
-
.own
|
|
88
|
-
.property(scope);
|
|
89
|
-
},
|
|
90
|
-
);
|
|
91
|
-
it(
|
|
92
|
-
"NO global scope",
|
|
93
|
-
function () {
|
|
94
|
-
files
|
|
84
|
+
ignores
|
|
95
85
|
.should
|
|
96
|
-
.not
|
|
97
86
|
.have
|
|
98
|
-
.
|
|
99
|
-
|
|
87
|
+
.keys(
|
|
88
|
+
GLOBAL,
|
|
89
|
+
...new Set(scopes).intersection(
|
|
90
|
+
new Set(
|
|
91
|
+
Object.keys(ignores),
|
|
92
|
+
),
|
|
93
|
+
),
|
|
94
|
+
);
|
|
100
95
|
},
|
|
101
96
|
);
|
|
102
97
|
it(
|
|
103
98
|
"of arrays",
|
|
104
99
|
function () {
|
|
105
|
-
for (const scope of Object.values(
|
|
100
|
+
for (const scope of Object.values(ignores))
|
|
106
101
|
scope
|
|
107
|
-
|
|
108
102
|
.should
|
|
109
103
|
.be
|
|
110
104
|
.an("array");
|
|
111
105
|
},
|
|
112
106
|
);
|
|
113
107
|
it(
|
|
114
|
-
"of strings",
|
|
108
|
+
"of expanded strings",
|
|
115
109
|
function () {
|
|
116
|
-
for (const scope of Object.values(
|
|
110
|
+
for (const scope of Object.values(ignores))
|
|
117
111
|
for (const pattern of scope)
|
|
118
112
|
pattern
|
|
119
113
|
.should
|
|
120
114
|
.be
|
|
121
|
-
.a("string")
|
|
115
|
+
.a("string")
|
|
116
|
+
.not
|
|
117
|
+
.have
|
|
118
|
+
.string("{")
|
|
119
|
+
.not
|
|
120
|
+
.have
|
|
121
|
+
.string("}");
|
|
122
122
|
},
|
|
123
123
|
);
|
|
124
124
|
},
|
|
125
125
|
);
|
|
126
126
|
describe(
|
|
127
|
-
"
|
|
127
|
+
"rules",
|
|
128
128
|
function () {
|
|
129
129
|
it(
|
|
130
|
-
"has scopes",
|
|
131
|
-
function () {
|
|
132
|
-
for (const scope of SCOPE)
|
|
133
|
-
rules
|
|
134
|
-
.should
|
|
135
|
-
.have
|
|
136
|
-
.own
|
|
137
|
-
.property(scope);
|
|
138
|
-
},
|
|
139
|
-
);
|
|
140
|
-
it(
|
|
141
|
-
"NO global scope",
|
|
130
|
+
"only has all scopes",
|
|
142
131
|
function () {
|
|
143
132
|
rules
|
|
144
133
|
.should
|
|
145
|
-
.not
|
|
146
134
|
.have
|
|
147
|
-
.
|
|
148
|
-
.property(GLOBAL);
|
|
135
|
+
.keys(scopes);
|
|
149
136
|
},
|
|
150
137
|
);
|
|
151
138
|
it(
|
|
152
139
|
"of arrays",
|
|
153
140
|
function () {
|
|
154
|
-
for (const scope of Object.values(
|
|
141
|
+
for (const scope of Object.values(rules))
|
|
155
142
|
scope
|
|
156
|
-
|
|
157
143
|
.should
|
|
158
144
|
.be
|
|
159
145
|
.an("array");
|
|
160
146
|
},
|
|
161
147
|
);
|
|
162
148
|
it(
|
|
163
|
-
"of
|
|
164
|
-
function () {
|
|
165
|
-
for (const scope of Object.values(rules))
|
|
166
|
-
for (const rule of scope)
|
|
167
|
-
rule
|
|
168
|
-
.should
|
|
169
|
-
.be
|
|
170
|
-
.an("object");
|
|
171
|
-
},
|
|
172
|
-
);
|
|
173
|
-
it(
|
|
174
|
-
"named rulesets",
|
|
149
|
+
"of rule config objects",
|
|
175
150
|
function () {
|
|
176
151
|
for (const scope of Object.values(rules))
|
|
177
|
-
for (const
|
|
178
|
-
|
|
179
|
-
.should
|
|
180
|
-
.have
|
|
181
|
-
.keys(
|
|
182
|
-
"name",
|
|
183
|
-
"rules",
|
|
184
|
-
);
|
|
185
|
-
rule
|
|
186
|
-
.name
|
|
187
|
-
.should
|
|
188
|
-
.be
|
|
189
|
-
.a("string");
|
|
190
|
-
rule
|
|
191
|
-
.rules
|
|
152
|
+
for (const config of scope) {
|
|
153
|
+
config
|
|
192
154
|
.should
|
|
193
155
|
.be
|
|
156
|
+
.an("object")
|
|
157
|
+
.with
|
|
158
|
+
.keys("rules")
|
|
159
|
+
.with
|
|
160
|
+
.own
|
|
161
|
+
.property("rules")
|
|
194
162
|
.an("object");
|
|
195
163
|
|
|
196
|
-
for (const
|
|
197
|
-
|
|
164
|
+
for (const rule of Object.keys(config.rules)) {
|
|
165
|
+
rule
|
|
198
166
|
.should
|
|
199
167
|
.be
|
|
200
168
|
.a("string");
|
|
169
|
+
|
|
170
|
+
const value = config.rules[rule as keyof typeof config.rules] as number | object;
|
|
171
|
+
|
|
172
|
+
if (typeof value !== "number")
|
|
173
|
+
value
|
|
174
|
+
.should
|
|
175
|
+
.be
|
|
176
|
+
.an("array")
|
|
177
|
+
.with
|
|
178
|
+
.property("0")
|
|
179
|
+
.a("number");
|
|
180
|
+
}
|
|
201
181
|
}
|
|
202
182
|
},
|
|
203
183
|
);
|
package/src/rules/css/index.ts
CHANGED
package/src/rules/html/index.ts
CHANGED
package/src/rules/js.eslint.ts
CHANGED
package/src/rules/json/json.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { State } from "../state";
|
|
|
2
2
|
|
|
3
3
|
// DOC: https://github.com/eslint/json?tab=readme-ov-file#rules
|
|
4
4
|
export default {
|
|
5
|
-
name: "json",
|
|
6
5
|
rules: {
|
|
7
6
|
"json/no-duplicate-keys": State.ON /* replaces jsonc/no-dupe-keys */,
|
|
8
7
|
// "json/no-empty-keys": State.OFF /* preference */,
|
|
@@ -2,7 +2,6 @@ import { State } from "../../state";
|
|
|
2
2
|
|
|
3
3
|
// DOC: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/#extension-rules
|
|
4
4
|
export default {
|
|
5
|
-
name: "jsonc/json/extend",
|
|
6
5
|
rules: {
|
|
7
6
|
// "jsonc/array-bracket-newline": State.OFF /* @OVERRIDE: BIGGER BUG: i mean this basically just doesn't work, even with multiple lines it will still fail| BUG: the spec says: `requires line breaks if the number of elements is at least the given integer. If this is 0, this condition will act the same as the option "always". If this is null (the default), this condition is disabled`. However, when null, the jsonc plugin actually errors when there are linebreaks with a single item | (was: MUST match stylistic/array-bracket-newline) */,
|
|
8
7
|
"jsonc/array-bracket-spacing": State.ON /* MUST match stylistic/array-bracket-spacing */,
|
package/src/rules/jsonc/index.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { State } from "../../state";
|
|
|
2
2
|
|
|
3
3
|
// DOC: https://github.com/ihordiachenko/eslint-plugin-chai-friendly?tab=readme-ov-file#usage
|
|
4
4
|
export default {
|
|
5
|
-
name: "chai",
|
|
6
5
|
rules: {
|
|
7
6
|
/* @OVERRIDE */ "no-unused-expressions": State.OFF /* INFO: looks like these guys got the hint too ;) https://github.com/ihordiachenko/eslint-plugin-chai-friendly/releases/tag/v1.1.0 */,
|
|
8
7
|
"chai/no-unused-expressions": [
|
package/src/rules/mocha/mocha.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { State } from "../state";
|
|
|
2
2
|
|
|
3
3
|
// DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
|
|
4
4
|
export default {
|
|
5
|
-
name: "mocha",
|
|
6
5
|
rules: {
|
|
7
6
|
// "mocha/consistent-interface": State.OFF /* unable, must choose BDD or TDD first */,
|
|
8
7
|
// "mocha/consistent-spacing-between-blocks": State.OFF,
|
|
@@ -2,7 +2,6 @@ import { State } from "../state";
|
|
|
2
2
|
|
|
3
3
|
// DOC: https://github.com/sveltejs/eslint-plugin-svelte/blob/ca37fbbe82d01019946e12eeb1b57c2a5736c018/packages/eslint-plugin-svelte/src/configs/base.ts
|
|
4
4
|
export default {
|
|
5
|
-
name: "svelte/disable",
|
|
6
5
|
rules: {
|
|
7
6
|
// ESLint core rules known to cause problems with `.svelte`.
|
|
8
7
|
"no-inner-declarations": State.OFF /* The AST generated by svelte-eslint-parser will false positive because the root node of the script is not `Program`. INFO: also extended by svelte */,
|
|
@@ -2,7 +2,6 @@ import { State } from "../state";
|
|
|
2
2
|
|
|
3
3
|
// DOC: http://sveltejs.github.io/eslint-plugin-svelte/rules/#extension-rules
|
|
4
4
|
export default {
|
|
5
|
-
name: "svelte/extend",
|
|
6
5
|
rules: {
|
|
7
6
|
"no-inner-declarations": State.OFF /* INFO: also disabled by svelte */,
|
|
8
7
|
"svelte/no-inner-declarations": [
|
package/src/rules/ts/disable.ts
CHANGED
package/src/rules/ts/extend.ts
CHANGED
package/src/rules/ts/ts.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { State } from "../state";
|
|
|
2
2
|
|
|
3
3
|
// DOC: https://typescript-eslint.io/rules/?=xextension-xdeprecated#rules
|
|
4
4
|
export default {
|
|
5
|
-
name: "enable",
|
|
6
5
|
rules: {
|
|
7
6
|
// "ts/adjacent-overload-signatures": State.OFF,
|
|
8
7
|
// "ts/array-type": State.OFF /* preference: ideally, I'd like to don't-care mutable arrays while requiring readonly [] syntax for immutable arrays, but there is no way to do that with the current rule options */,
|
package/src/rules/yml/extend.ts
CHANGED
package/src/rules/yml/yml.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { State } from "../state";
|
|
|
2
2
|
|
|
3
3
|
// DOC: https://ota-meshi.github.io/eslint-plugin-yml/rules/#yaml-rules
|
|
4
4
|
export default {
|
|
5
|
-
name: "enable",
|
|
6
5
|
rules: {
|
|
7
6
|
"yml/block-mapping-colon-indicator-newline": State.ON,
|
|
8
7
|
"yml/block-mapping-question-indicator-newline": State.ON,
|