@eslinted/defaults 5.1.1 → 5.2.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/files/index.d.ts +2 -1
- package/dist/files/index.d.ts.map +1 -1
- package/dist/files/index.js +4 -2
- package/dist/files/index.js.map +1 -1
- package/dist/files/scopes/css.d.ts +3 -0
- package/dist/files/scopes/css.d.ts.map +1 -0
- package/dist/files/scopes/css.js +2 -0
- package/dist/files/scopes/css.js.map +1 -0
- package/dist/ignores/index.d.ts +2 -1
- package/dist/ignores/index.d.ts.map +1 -1
- package/dist/ignores/index.js +4 -2
- package/dist/ignores/index.js.map +1 -1
- package/dist/ignores/scopes/css.d.ts +3 -0
- package/dist/ignores/scopes/css.d.ts.map +1 -0
- package/dist/ignores/scopes/css.js +2 -0
- package/dist/ignores/scopes/css.js.map +1 -0
- package/dist/rules/css/enable.d.ts +8 -0
- package/dist/rules/css/enable.d.ts.map +1 -0
- package/dist/rules/css/enable.js +12 -0
- package/dist/rules/css/enable.js.map +1 -0
- package/dist/rules/css/index.d.ts +9 -0
- package/dist/rules/css/index.d.ts.map +1 -0
- package/dist/rules/css/index.js +3 -0
- package/dist/rules/css/index.js.map +1 -0
- package/dist/rules/index.d.ts +57 -50
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/index.js +4 -2
- package/dist/rules/index.js.map +1 -1
- package/package.json +1 -1
- package/src/files/index.ts +4 -2
- package/src/files/scopes/css.ts +1 -0
- package/src/ignores/index.ts +4 -2
- package/src/ignores/scopes/css.ts +1 -0
- package/src/rules/css/enable.ts +17 -0
- package/src/rules/css/index.ts +3 -0
- package/src/rules/index.ts +4 -2
package/dist/files/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare const files: {
|
|
2
2
|
readonly js: string[];
|
|
3
3
|
readonly ts: string[];
|
|
4
|
-
readonly svelte: string[];
|
|
5
4
|
readonly mocha: string[];
|
|
5
|
+
readonly svelte: string[];
|
|
6
6
|
readonly html: string[];
|
|
7
|
+
readonly css: never[];
|
|
7
8
|
readonly json: string[];
|
|
8
9
|
readonly jsonc: string[];
|
|
9
10
|
readonly yml: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,KAAK;;;;;;;;;;CAUR,CAAC"}
|
package/dist/files/index.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import js from "./scopes/js.js";
|
|
2
2
|
import ts from "./scopes/ts.js";
|
|
3
|
-
import svelte from "./scopes/svelte.js";
|
|
4
3
|
import mocha from "./scopes/mocha.js";
|
|
4
|
+
import svelte from "./scopes/svelte.js";
|
|
5
5
|
import html from "./scopes/html.js";
|
|
6
|
+
import css from "./scopes/css.js";
|
|
6
7
|
import json from "./scopes/json.js";
|
|
7
8
|
import jsonc from "./scopes/jsonc.js";
|
|
8
9
|
import yml from "./scopes/yml.js";
|
|
9
10
|
export const files = {
|
|
10
11
|
js,
|
|
11
12
|
ts,
|
|
12
|
-
svelte,
|
|
13
13
|
mocha,
|
|
14
|
+
svelte,
|
|
14
15
|
html,
|
|
16
|
+
css,
|
|
15
17
|
json,
|
|
16
18
|
jsonc,
|
|
17
19
|
yml,
|
package/dist/files/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/files/scopes/css.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sourceRoot":"","sources":["../../../src/files/scopes/css.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAC"}
|
package/dist/ignores/index.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ export declare const ignores: {
|
|
|
2
2
|
readonly "*": string[];
|
|
3
3
|
readonly js: never[];
|
|
4
4
|
readonly ts: never[];
|
|
5
|
-
readonly svelte: never[];
|
|
6
5
|
readonly mocha: never[];
|
|
6
|
+
readonly svelte: never[];
|
|
7
7
|
readonly html: never[];
|
|
8
|
+
readonly css: never[];
|
|
8
9
|
readonly json: never[];
|
|
9
10
|
readonly jsonc: never[];
|
|
10
11
|
readonly yml: never[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ignores/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ignores/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,OAAO;;;;;;;;;;;CAWV,CAAC"}
|
package/dist/ignores/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import global from "./global.js";
|
|
2
2
|
import js from "./scopes/js.js";
|
|
3
3
|
import ts from "./scopes/ts.js";
|
|
4
|
-
import svelte from "./scopes/svelte.js";
|
|
5
4
|
import mocha from "./scopes/mocha.js";
|
|
5
|
+
import svelte from "./scopes/svelte.js";
|
|
6
6
|
import html from "./scopes/html.js";
|
|
7
|
+
import css from "./scopes/css.js";
|
|
7
8
|
import json from "./scopes/json.js";
|
|
8
9
|
import jsonc from "./scopes/jsonc.js";
|
|
9
10
|
import yml from "./scopes/yml.js";
|
|
@@ -11,9 +12,10 @@ export const ignores = {
|
|
|
11
12
|
"*": global,
|
|
12
13
|
js,
|
|
13
14
|
ts,
|
|
14
|
-
svelte,
|
|
15
15
|
mocha,
|
|
16
|
+
svelte,
|
|
16
17
|
html,
|
|
18
|
+
css,
|
|
17
19
|
json,
|
|
18
20
|
jsonc,
|
|
19
21
|
yml,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ignores/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ignores/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,EAAE,MAAM;IACX,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/ignores/scopes/css.ts"],"names":[],"mappings":";AAAA,wBAAkB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sourceRoot":"","sources":["../../../src/ignores/scopes/css.ts"],"names":[],"mappings":"AAAA,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const CssEnable: readonly ["enable", {
|
|
2
|
+
readonly "css/no-duplicate-imports": "error";
|
|
3
|
+
readonly "css/no-empty-blocks": "error";
|
|
4
|
+
readonly "css/no-invalid-at-rules": "error";
|
|
5
|
+
readonly "css/no-invalid-properties": "error";
|
|
6
|
+
readonly "css/use-layers": "off";
|
|
7
|
+
}];
|
|
8
|
+
//# sourceMappingURL=enable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/css/enable.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS;;;;;;EAUZ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ID, ERROR, OFF, } from "../../_strings/index.js";
|
|
2
|
+
export const CssEnable = [
|
|
3
|
+
ID.Enable,
|
|
4
|
+
{
|
|
5
|
+
"css/no-duplicate-imports": ERROR,
|
|
6
|
+
"css/no-empty-blocks": ERROR,
|
|
7
|
+
"css/no-invalid-at-rules": ERROR,
|
|
8
|
+
"css/no-invalid-properties": ERROR,
|
|
9
|
+
"css/use-layers": OFF,
|
|
10
|
+
},
|
|
11
|
+
];
|
|
12
|
+
//# sourceMappingURL=enable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/css/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,KAAK,EACL,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,CAAC,MAAM;IACT;QAEE,0BAA0B,EAAE,KAAK;QACjC,qBAAqB,EAAE,KAAK;QAC5B,yBAAyB,EAAE,KAAK;QAChC,2BAA2B,EAAE,KAAK;QAClC,gBAAgB,EAAE,GAAG;KACb;CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: (readonly ["enable", {
|
|
2
|
+
readonly "css/no-duplicate-imports": "error";
|
|
3
|
+
readonly "css/no-empty-blocks": "error";
|
|
4
|
+
readonly "css/no-invalid-at-rules": "error";
|
|
5
|
+
readonly "css/no-invalid-properties": "error";
|
|
6
|
+
readonly "css/use-layers": "off";
|
|
7
|
+
}])[];
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/css/index.ts"],"names":[],"mappings":";;;;;;;AAEA,wBAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/css/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAe,CAAC,SAAS,CAAC,CAAC"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -1152,6 +1152,56 @@ export declare const rules: {
|
|
|
1152
1152
|
}];
|
|
1153
1153
|
readonly "@typescript-eslint/require-await": "error";
|
|
1154
1154
|
}])[];
|
|
1155
|
+
readonly mocha: (readonly ["disable", {
|
|
1156
|
+
readonly "prefer-arrow-callback": "off";
|
|
1157
|
+
}] | readonly ["disable/ts", {
|
|
1158
|
+
readonly "no-unused-expressions": "off";
|
|
1159
|
+
readonly "@typescript-eslint/no-unused-expressions": "off";
|
|
1160
|
+
}] | readonly ["enable", {
|
|
1161
|
+
readonly "mocha/consistent-spacing-between-blocks": "off";
|
|
1162
|
+
readonly "mocha/handle-done-callback": readonly ["error", {
|
|
1163
|
+
readonly ignoreSkipped: false;
|
|
1164
|
+
}];
|
|
1165
|
+
readonly "mocha/max-top-level-suites": readonly ["error", {
|
|
1166
|
+
readonly limit: 1;
|
|
1167
|
+
}];
|
|
1168
|
+
readonly "mocha/no-async-describe": "error";
|
|
1169
|
+
readonly "mocha/no-empty-description": "error";
|
|
1170
|
+
readonly "mocha/no-exclusive-tests": "error";
|
|
1171
|
+
readonly "mocha/no-exports": "error";
|
|
1172
|
+
readonly "mocha/no-global-tests": "error";
|
|
1173
|
+
readonly "mocha/no-hooks-for-single-case": "off";
|
|
1174
|
+
readonly "mocha/no-hooks": "off";
|
|
1175
|
+
readonly "mocha/no-identical-title": "error";
|
|
1176
|
+
readonly "mocha/no-mocha-arrows": "error";
|
|
1177
|
+
readonly "mocha/no-nested-tests": "error";
|
|
1178
|
+
readonly "mocha/no-pending-tests": "warn";
|
|
1179
|
+
readonly "mocha/no-return-and-callback": "error";
|
|
1180
|
+
readonly "mocha/no-return-from-async": "error";
|
|
1181
|
+
readonly "mocha/no-setup-in-describe": "error";
|
|
1182
|
+
readonly "mocha/no-sibling-hooks": "error";
|
|
1183
|
+
readonly "mocha/no-skipped-tests": "error";
|
|
1184
|
+
readonly "mocha/no-synchronous-tests": "off";
|
|
1185
|
+
readonly "mocha/no-top-level-hooks": "error";
|
|
1186
|
+
readonly "mocha/prefer-arrow-callback": readonly ["error", {
|
|
1187
|
+
readonly allowNamedFunctions: false;
|
|
1188
|
+
readonly allowUnboundThis: true;
|
|
1189
|
+
}];
|
|
1190
|
+
readonly "mocha/valid-suite-description": "off";
|
|
1191
|
+
readonly "mocha/valid-test-description": "off";
|
|
1192
|
+
}] | readonly ["enable/chai", {
|
|
1193
|
+
readonly "chai-friendly/no-unused-expressions": readonly ["error", {
|
|
1194
|
+
readonly allowShortCircuit: true;
|
|
1195
|
+
readonly allowTernary: true;
|
|
1196
|
+
readonly allowTaggedTemplates: true;
|
|
1197
|
+
readonly enforceForJSX: false;
|
|
1198
|
+
}];
|
|
1199
|
+
}] | readonly ["enable/chai/expect", {
|
|
1200
|
+
readonly "chai-expect/no-inner-compare": "error";
|
|
1201
|
+
readonly "chai-expect/no-inner-literal": "error";
|
|
1202
|
+
readonly "chai-expect/missing-assertion": "error";
|
|
1203
|
+
readonly "chai-expect/terminating-properties": "off";
|
|
1204
|
+
}])[];
|
|
1155
1205
|
readonly svelte: (readonly ["disable", {
|
|
1156
1206
|
readonly "no-inner-declarations": "off";
|
|
1157
1207
|
readonly "no-self-assign": "off";
|
|
@@ -1291,56 +1341,6 @@ export declare const rules: {
|
|
|
1291
1341
|
}];
|
|
1292
1342
|
readonly "svelte/no-trailing-spaces": "off";
|
|
1293
1343
|
}])[];
|
|
1294
|
-
readonly mocha: (readonly ["disable", {
|
|
1295
|
-
readonly "prefer-arrow-callback": "off";
|
|
1296
|
-
}] | readonly ["disable/ts", {
|
|
1297
|
-
readonly "no-unused-expressions": "off";
|
|
1298
|
-
readonly "@typescript-eslint/no-unused-expressions": "off";
|
|
1299
|
-
}] | readonly ["enable", {
|
|
1300
|
-
readonly "mocha/consistent-spacing-between-blocks": "off";
|
|
1301
|
-
readonly "mocha/handle-done-callback": readonly ["error", {
|
|
1302
|
-
readonly ignoreSkipped: false;
|
|
1303
|
-
}];
|
|
1304
|
-
readonly "mocha/max-top-level-suites": readonly ["error", {
|
|
1305
|
-
readonly limit: 1;
|
|
1306
|
-
}];
|
|
1307
|
-
readonly "mocha/no-async-describe": "error";
|
|
1308
|
-
readonly "mocha/no-empty-description": "error";
|
|
1309
|
-
readonly "mocha/no-exclusive-tests": "error";
|
|
1310
|
-
readonly "mocha/no-exports": "error";
|
|
1311
|
-
readonly "mocha/no-global-tests": "error";
|
|
1312
|
-
readonly "mocha/no-hooks-for-single-case": "off";
|
|
1313
|
-
readonly "mocha/no-hooks": "off";
|
|
1314
|
-
readonly "mocha/no-identical-title": "error";
|
|
1315
|
-
readonly "mocha/no-mocha-arrows": "error";
|
|
1316
|
-
readonly "mocha/no-nested-tests": "error";
|
|
1317
|
-
readonly "mocha/no-pending-tests": "warn";
|
|
1318
|
-
readonly "mocha/no-return-and-callback": "error";
|
|
1319
|
-
readonly "mocha/no-return-from-async": "error";
|
|
1320
|
-
readonly "mocha/no-setup-in-describe": "error";
|
|
1321
|
-
readonly "mocha/no-sibling-hooks": "error";
|
|
1322
|
-
readonly "mocha/no-skipped-tests": "error";
|
|
1323
|
-
readonly "mocha/no-synchronous-tests": "off";
|
|
1324
|
-
readonly "mocha/no-top-level-hooks": "error";
|
|
1325
|
-
readonly "mocha/prefer-arrow-callback": readonly ["error", {
|
|
1326
|
-
readonly allowNamedFunctions: false;
|
|
1327
|
-
readonly allowUnboundThis: true;
|
|
1328
|
-
}];
|
|
1329
|
-
readonly "mocha/valid-suite-description": "off";
|
|
1330
|
-
readonly "mocha/valid-test-description": "off";
|
|
1331
|
-
}] | readonly ["enable/chai", {
|
|
1332
|
-
readonly "chai-friendly/no-unused-expressions": readonly ["error", {
|
|
1333
|
-
readonly allowShortCircuit: true;
|
|
1334
|
-
readonly allowTernary: true;
|
|
1335
|
-
readonly allowTaggedTemplates: true;
|
|
1336
|
-
readonly enforceForJSX: false;
|
|
1337
|
-
}];
|
|
1338
|
-
}] | readonly ["enable/chai/expect", {
|
|
1339
|
-
readonly "chai-expect/no-inner-compare": "error";
|
|
1340
|
-
readonly "chai-expect/no-inner-literal": "error";
|
|
1341
|
-
readonly "chai-expect/missing-assertion": "error";
|
|
1342
|
-
readonly "chai-expect/terminating-properties": "off";
|
|
1343
|
-
}])[];
|
|
1344
1344
|
readonly html: (readonly ["enable", {
|
|
1345
1345
|
readonly "@html-eslint/no-duplicate-attrs": "error";
|
|
1346
1346
|
readonly "@html-eslint/no-duplicate-id": "error";
|
|
@@ -1410,6 +1410,13 @@ export declare const rules: {
|
|
|
1410
1410
|
readonly "@html-eslint/quotes": readonly ["error", "double"];
|
|
1411
1411
|
readonly "@html-eslint/sort-attrs": "off";
|
|
1412
1412
|
}])[];
|
|
1413
|
+
readonly css: (readonly ["enable", {
|
|
1414
|
+
readonly "css/no-duplicate-imports": "error";
|
|
1415
|
+
readonly "css/no-empty-blocks": "error";
|
|
1416
|
+
readonly "css/no-invalid-at-rules": "error";
|
|
1417
|
+
readonly "css/no-invalid-properties": "error";
|
|
1418
|
+
readonly "css/use-layers": "off";
|
|
1419
|
+
}])[];
|
|
1413
1420
|
readonly json: (readonly ["enable", {
|
|
1414
1421
|
readonly "jsonc/auto": "off";
|
|
1415
1422
|
readonly "jsonc/key-name-casing": "off";
|
|
@@ -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,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUR,CAAC"}
|
package/dist/rules/index.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import js from "./js/index.js";
|
|
2
2
|
import ts from "./ts/index.js";
|
|
3
|
-
import svelte from "./svelte/index.js";
|
|
4
3
|
import mocha from "./mocha/index.js";
|
|
4
|
+
import svelte from "./svelte/index.js";
|
|
5
5
|
import html from "./html/index.js";
|
|
6
|
+
import css from "./css/index.js";
|
|
6
7
|
import json from "./json/index.js";
|
|
7
8
|
import jsonc from "./jsonc/index.js";
|
|
8
9
|
import yml from "./yml/index.js";
|
|
9
10
|
export const rules = {
|
|
10
11
|
js,
|
|
11
12
|
ts,
|
|
12
|
-
svelte,
|
|
13
13
|
mocha,
|
|
14
|
+
svelte,
|
|
14
15
|
html,
|
|
16
|
+
css,
|
|
15
17
|
json,
|
|
16
18
|
jsonc,
|
|
17
19
|
yml,
|
package/dist/rules/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,EAAE;IACF,EAAE;IACF,KAAK;IACL,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,GAAG;CACK,CAAC"}
|
package/package.json
CHANGED
package/src/files/index.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import js from "./scopes/js";
|
|
2
2
|
import ts from "./scopes/ts";
|
|
3
|
-
import svelte from "./scopes/svelte";
|
|
4
3
|
import mocha from "./scopes/mocha";
|
|
4
|
+
import svelte from "./scopes/svelte";
|
|
5
5
|
import html from "./scopes/html";
|
|
6
|
+
import css from "./scopes/css";
|
|
6
7
|
import json from "./scopes/json";
|
|
7
8
|
import jsonc from "./scopes/jsonc";
|
|
8
9
|
import yml from "./scopes/yml";
|
|
@@ -10,9 +11,10 @@ import yml from "./scopes/yml";
|
|
|
10
11
|
export const files = {
|
|
11
12
|
js,
|
|
12
13
|
ts,
|
|
13
|
-
svelte,
|
|
14
14
|
mocha,
|
|
15
|
+
svelte,
|
|
15
16
|
html,
|
|
17
|
+
css,
|
|
16
18
|
json,
|
|
17
19
|
jsonc,
|
|
18
20
|
yml,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default [];
|
package/src/ignores/index.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import global from "./global";
|
|
2
2
|
import js from "./scopes/js";
|
|
3
3
|
import ts from "./scopes/ts";
|
|
4
|
-
import svelte from "./scopes/svelte";
|
|
5
4
|
import mocha from "./scopes/mocha";
|
|
5
|
+
import svelte from "./scopes/svelte";
|
|
6
6
|
import html from "./scopes/html";
|
|
7
|
+
import css from "./scopes/css";
|
|
7
8
|
import json from "./scopes/json";
|
|
8
9
|
import jsonc from "./scopes/jsonc";
|
|
9
10
|
import yml from "./scopes/yml";
|
|
@@ -12,9 +13,10 @@ export const ignores = {
|
|
|
12
13
|
"*": global,
|
|
13
14
|
js,
|
|
14
15
|
ts,
|
|
15
|
-
svelte,
|
|
16
16
|
mocha,
|
|
17
|
+
svelte,
|
|
17
18
|
html,
|
|
19
|
+
css,
|
|
18
20
|
json,
|
|
19
21
|
jsonc,
|
|
20
22
|
yml,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default [];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ID,
|
|
3
|
+
ERROR,
|
|
4
|
+
OFF,
|
|
5
|
+
} from "../../_strings";
|
|
6
|
+
|
|
7
|
+
export const CssEnable = [
|
|
8
|
+
ID.Enable,
|
|
9
|
+
{
|
|
10
|
+
// DOC: https://github.com/eslint/css?tab=readme-ov-file#rules
|
|
11
|
+
"css/no-duplicate-imports": ERROR,
|
|
12
|
+
"css/no-empty-blocks": ERROR,
|
|
13
|
+
"css/no-invalid-at-rules": ERROR,
|
|
14
|
+
"css/no-invalid-properties": ERROR,
|
|
15
|
+
"css/use-layers": OFF /* not recommended by docs; also BUG: ESLint config inspector: css/use-layers: Invalid rule has no description [INVALID] */,
|
|
16
|
+
} as const,
|
|
17
|
+
] as const;
|
package/src/rules/index.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import js from "./js";
|
|
2
2
|
import ts from "./ts";
|
|
3
|
-
import svelte from "./svelte";
|
|
4
3
|
import mocha from "./mocha";
|
|
4
|
+
import svelte from "./svelte";
|
|
5
5
|
import html from "./html";
|
|
6
|
+
import css from "./css";
|
|
6
7
|
import json from "./json";
|
|
7
8
|
import jsonc from "./jsonc";
|
|
8
9
|
import yml from "./yml";
|
|
@@ -10,9 +11,10 @@ import yml from "./yml";
|
|
|
10
11
|
export const rules = {
|
|
11
12
|
js,
|
|
12
13
|
ts,
|
|
13
|
-
svelte,
|
|
14
14
|
mocha,
|
|
15
|
+
svelte,
|
|
15
16
|
html,
|
|
17
|
+
css,
|
|
16
18
|
json,
|
|
17
19
|
jsonc,
|
|
18
20
|
yml,
|