@eslinted/defaults 10.12.0 → 10.13.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/rules/index.d.ts +6 -6
- package/dist/rules/scopes/mocha/enable.d.ts +6 -6
- package/dist/rules/scopes/mocha/enable.d.ts.map +1 -1
- package/dist/rules/scopes/mocha/enable.js +7 -7
- package/dist/rules/scopes/mocha/enable.js.map +1 -1
- package/dist/rules/scopes/mocha/index.d.ts +6 -6
- package/package.json +1 -1
- package/src/rules/scopes/mocha/enable.ts +6 -7
package/dist/rules/index.d.ts
CHANGED
|
@@ -1107,14 +1107,15 @@ export declare const rules: {
|
|
|
1107
1107
|
} | {
|
|
1108
1108
|
readonly id: "enable";
|
|
1109
1109
|
readonly rules: {
|
|
1110
|
+
readonly "mocha/consistent-interface": "off";
|
|
1110
1111
|
readonly "mocha/consistent-spacing-between-blocks": "off";
|
|
1111
1112
|
readonly "mocha/handle-done-callback": readonly ["error", {
|
|
1112
|
-
readonly
|
|
1113
|
+
readonly ignorePending: false;
|
|
1113
1114
|
}];
|
|
1114
1115
|
readonly "mocha/max-top-level-suites": readonly ["error", {
|
|
1115
1116
|
readonly limit: 1;
|
|
1116
1117
|
}];
|
|
1117
|
-
readonly "mocha/no-async-
|
|
1118
|
+
readonly "mocha/no-async-suite": "error";
|
|
1118
1119
|
readonly "mocha/no-empty-description": "error";
|
|
1119
1120
|
readonly "mocha/no-exclusive-tests": "error";
|
|
1120
1121
|
readonly "mocha/no-exports": "error";
|
|
@@ -1124,20 +1125,19 @@ export declare const rules: {
|
|
|
1124
1125
|
readonly "mocha/no-identical-title": "error";
|
|
1125
1126
|
readonly "mocha/no-mocha-arrows": "error";
|
|
1126
1127
|
readonly "mocha/no-nested-tests": "error";
|
|
1127
|
-
readonly "mocha/no-pending-tests": "
|
|
1128
|
+
readonly "mocha/no-pending-tests": "error";
|
|
1128
1129
|
readonly "mocha/no-return-and-callback": "error";
|
|
1129
1130
|
readonly "mocha/no-return-from-async": "error";
|
|
1130
1131
|
readonly "mocha/no-setup-in-describe": "error";
|
|
1131
1132
|
readonly "mocha/no-sibling-hooks": "error";
|
|
1132
|
-
readonly "mocha/no-skipped-tests": "error";
|
|
1133
1133
|
readonly "mocha/no-synchronous-tests": "off";
|
|
1134
1134
|
readonly "mocha/no-top-level-hooks": "error";
|
|
1135
1135
|
readonly "mocha/prefer-arrow-callback": readonly ["error", {
|
|
1136
1136
|
readonly allowNamedFunctions: false;
|
|
1137
1137
|
readonly allowUnboundThis: true;
|
|
1138
1138
|
}];
|
|
1139
|
-
readonly "mocha/valid-suite-
|
|
1140
|
-
readonly "mocha/valid-test-
|
|
1139
|
+
readonly "mocha/valid-suite-title": "off";
|
|
1140
|
+
readonly "mocha/valid-test-title": "off";
|
|
1141
1141
|
};
|
|
1142
1142
|
} | {
|
|
1143
1143
|
readonly id: "enable/chai";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export declare const MochaEnable: {
|
|
2
2
|
readonly id: "enable";
|
|
3
3
|
readonly rules: {
|
|
4
|
+
readonly "mocha/consistent-interface": "off";
|
|
4
5
|
readonly "mocha/consistent-spacing-between-blocks": "off";
|
|
5
6
|
readonly "mocha/handle-done-callback": readonly ["error", {
|
|
6
|
-
readonly
|
|
7
|
+
readonly ignorePending: false;
|
|
7
8
|
}];
|
|
8
9
|
readonly "mocha/max-top-level-suites": readonly ["error", {
|
|
9
10
|
readonly limit: 1;
|
|
10
11
|
}];
|
|
11
|
-
readonly "mocha/no-async-
|
|
12
|
+
readonly "mocha/no-async-suite": "error";
|
|
12
13
|
readonly "mocha/no-empty-description": "error";
|
|
13
14
|
readonly "mocha/no-exclusive-tests": "error";
|
|
14
15
|
readonly "mocha/no-exports": "error";
|
|
@@ -18,20 +19,19 @@ export declare const MochaEnable: {
|
|
|
18
19
|
readonly "mocha/no-identical-title": "error";
|
|
19
20
|
readonly "mocha/no-mocha-arrows": "error";
|
|
20
21
|
readonly "mocha/no-nested-tests": "error";
|
|
21
|
-
readonly "mocha/no-pending-tests": "
|
|
22
|
+
readonly "mocha/no-pending-tests": "error";
|
|
22
23
|
readonly "mocha/no-return-and-callback": "error";
|
|
23
24
|
readonly "mocha/no-return-from-async": "error";
|
|
24
25
|
readonly "mocha/no-setup-in-describe": "error";
|
|
25
26
|
readonly "mocha/no-sibling-hooks": "error";
|
|
26
|
-
readonly "mocha/no-skipped-tests": "error";
|
|
27
27
|
readonly "mocha/no-synchronous-tests": "off";
|
|
28
28
|
readonly "mocha/no-top-level-hooks": "error";
|
|
29
29
|
readonly "mocha/prefer-arrow-callback": readonly ["error", {
|
|
30
30
|
readonly allowNamedFunctions: false;
|
|
31
31
|
readonly allowUnboundThis: true;
|
|
32
32
|
}];
|
|
33
|
-
readonly "mocha/valid-suite-
|
|
34
|
-
readonly "mocha/valid-test-
|
|
33
|
+
readonly "mocha/valid-suite-title": "off";
|
|
34
|
+
readonly "mocha/valid-test-title": "off";
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=enable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/mocha/enable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../../src/rules/scopes/mocha/enable.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Cd,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { ID, ON,
|
|
1
|
+
import { ID, ON, OFF, } from "../../strings/index.js";
|
|
2
2
|
export const MochaEnable = {
|
|
3
3
|
id: ID.Enable,
|
|
4
4
|
rules: {
|
|
5
5
|
// DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
|
|
6
|
+
"mocha/consistent-interface": OFF, /* unable, must choose BDD or TDD first */
|
|
6
7
|
"mocha/consistent-spacing-between-blocks": OFF,
|
|
7
8
|
"mocha/handle-done-callback": [
|
|
8
9
|
ON,
|
|
9
10
|
{
|
|
10
|
-
|
|
11
|
+
ignorePending: false,
|
|
11
12
|
},
|
|
12
13
|
],
|
|
13
14
|
"mocha/max-top-level-suites": [
|
|
@@ -16,7 +17,7 @@ export const MochaEnable = {
|
|
|
16
17
|
limit: 1,
|
|
17
18
|
},
|
|
18
19
|
],
|
|
19
|
-
"mocha/no-async-
|
|
20
|
+
"mocha/no-async-suite": ON,
|
|
20
21
|
"mocha/no-empty-description": ON,
|
|
21
22
|
"mocha/no-exclusive-tests": ON,
|
|
22
23
|
"mocha/no-exports": ON,
|
|
@@ -26,12 +27,11 @@ export const MochaEnable = {
|
|
|
26
27
|
"mocha/no-identical-title": ON,
|
|
27
28
|
"mocha/no-mocha-arrows": ON,
|
|
28
29
|
"mocha/no-nested-tests": ON,
|
|
29
|
-
"mocha/no-pending-tests":
|
|
30
|
+
"mocha/no-pending-tests": ON,
|
|
30
31
|
"mocha/no-return-and-callback": ON,
|
|
31
32
|
"mocha/no-return-from-async": ON,
|
|
32
33
|
"mocha/no-setup-in-describe": ON,
|
|
33
34
|
"mocha/no-sibling-hooks": ON,
|
|
34
|
-
"mocha/no-skipped-tests": ON,
|
|
35
35
|
"mocha/no-synchronous-tests": OFF,
|
|
36
36
|
"mocha/no-top-level-hooks": ON,
|
|
37
37
|
"mocha/prefer-arrow-callback": [
|
|
@@ -41,8 +41,8 @@ export const MochaEnable = {
|
|
|
41
41
|
allowUnboundThis: true,
|
|
42
42
|
},
|
|
43
43
|
] /* MUST match ../js/enable.ts */,
|
|
44
|
-
"mocha/valid-suite-
|
|
45
|
-
"mocha/valid-test-
|
|
44
|
+
"mocha/valid-suite-title": OFF /* preference */,
|
|
45
|
+
"mocha/valid-test-title": OFF /* preference */,
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
//# sourceMappingURL=enable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/mocha/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,
|
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../../src/rules/scopes/mocha/enable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,EAAE,EACF,GAAG,GACJ,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,EAAE,CAAC,MAAM;IACb,KAAK,EAAE;QACP,yFAAyF;QACvF,4BAA4B,EAAE,GAAG,EAAE,0CAA0C;QAC7E,yCAAyC,EAAE,GAAG;QAC9C,4BAA4B,EAAE;YAC5B,EAAE;YACF;gBACE,aAAa,EAAE,KAAK;aACrB;SACF;QACD,4BAA4B,EAAE;YAC5B,EAAE;YACF;gBACE,KAAK,EAAE,CAAC;aACT;SACF;QACD,sBAAsB,EAAE,EAAE;QAC1B,4BAA4B,EAAE,EAAE;QAChC,0BAA0B,EAAE,EAAE;QAC9B,kBAAkB,EAAE,EAAE;QACtB,uBAAuB,EAAE,EAAE;QAC3B,gCAAgC,EAAE,GAAG;QACrC,gBAAgB,EAAE,GAAG;QACrB,0BAA0B,EAAE,EAAE;QAC9B,uBAAuB,EAAE,EAAE;QAC3B,uBAAuB,EAAE,EAAE;QAC3B,wBAAwB,EAAE,EAAE;QAC5B,8BAA8B,EAAE,EAAE;QAClC,4BAA4B,EAAE,EAAE;QAChC,4BAA4B,EAAE,EAAE;QAChC,wBAAwB,EAAE,EAAE;QAC5B,4BAA4B,EAAE,GAAG;QACjC,0BAA0B,EAAE,EAAE;QAC9B,6BAA6B,EAAE;YAC7B,EAAE;YACF;gBACE,mBAAmB,EAAE,KAAK;gBAC1B,gBAAgB,EAAE,IAAI;aACvB;SACF,CAAC,gCAAgC;QAClC,yBAAyB,EAAE,GAAG,CAAC,gBAAgB;QAC/C,wBAAwB,EAAE,GAAG,CAAC,gBAAgB;KACtC;CACF,CAAC"}
|
|
@@ -7,14 +7,15 @@ declare const _default: ({
|
|
|
7
7
|
} | {
|
|
8
8
|
readonly id: "enable";
|
|
9
9
|
readonly rules: {
|
|
10
|
+
readonly "mocha/consistent-interface": "off";
|
|
10
11
|
readonly "mocha/consistent-spacing-between-blocks": "off";
|
|
11
12
|
readonly "mocha/handle-done-callback": readonly ["error", {
|
|
12
|
-
readonly
|
|
13
|
+
readonly ignorePending: false;
|
|
13
14
|
}];
|
|
14
15
|
readonly "mocha/max-top-level-suites": readonly ["error", {
|
|
15
16
|
readonly limit: 1;
|
|
16
17
|
}];
|
|
17
|
-
readonly "mocha/no-async-
|
|
18
|
+
readonly "mocha/no-async-suite": "error";
|
|
18
19
|
readonly "mocha/no-empty-description": "error";
|
|
19
20
|
readonly "mocha/no-exclusive-tests": "error";
|
|
20
21
|
readonly "mocha/no-exports": "error";
|
|
@@ -24,20 +25,19 @@ declare const _default: ({
|
|
|
24
25
|
readonly "mocha/no-identical-title": "error";
|
|
25
26
|
readonly "mocha/no-mocha-arrows": "error";
|
|
26
27
|
readonly "mocha/no-nested-tests": "error";
|
|
27
|
-
readonly "mocha/no-pending-tests": "
|
|
28
|
+
readonly "mocha/no-pending-tests": "error";
|
|
28
29
|
readonly "mocha/no-return-and-callback": "error";
|
|
29
30
|
readonly "mocha/no-return-from-async": "error";
|
|
30
31
|
readonly "mocha/no-setup-in-describe": "error";
|
|
31
32
|
readonly "mocha/no-sibling-hooks": "error";
|
|
32
|
-
readonly "mocha/no-skipped-tests": "error";
|
|
33
33
|
readonly "mocha/no-synchronous-tests": "off";
|
|
34
34
|
readonly "mocha/no-top-level-hooks": "error";
|
|
35
35
|
readonly "mocha/prefer-arrow-callback": readonly ["error", {
|
|
36
36
|
readonly allowNamedFunctions: false;
|
|
37
37
|
readonly allowUnboundThis: true;
|
|
38
38
|
}];
|
|
39
|
-
readonly "mocha/valid-suite-
|
|
40
|
-
readonly "mocha/valid-test-
|
|
39
|
+
readonly "mocha/valid-suite-title": "off";
|
|
40
|
+
readonly "mocha/valid-test-title": "off";
|
|
41
41
|
};
|
|
42
42
|
} | {
|
|
43
43
|
readonly id: "enable/chai";
|
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": "10.
|
|
6
|
+
"version": "10.13.1",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"private": false,
|
|
9
9
|
"engineStrict": true,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID,
|
|
3
3
|
ON,
|
|
4
|
-
WARN,
|
|
5
4
|
OFF,
|
|
6
5
|
} from "../../strings";
|
|
7
6
|
|
|
@@ -9,11 +8,12 @@ export const MochaEnable = {
|
|
|
9
8
|
id: ID.Enable,
|
|
10
9
|
rules: {
|
|
11
10
|
// DOC: https://github.com/lo1tuma/eslint-plugin-mocha/tree/main?tab=readme-ov-file#rules
|
|
11
|
+
"mocha/consistent-interface": OFF, /* unable, must choose BDD or TDD first */
|
|
12
12
|
"mocha/consistent-spacing-between-blocks": OFF,
|
|
13
13
|
"mocha/handle-done-callback": [
|
|
14
14
|
ON,
|
|
15
15
|
{
|
|
16
|
-
|
|
16
|
+
ignorePending: false,
|
|
17
17
|
},
|
|
18
18
|
],
|
|
19
19
|
"mocha/max-top-level-suites": [
|
|
@@ -22,7 +22,7 @@ export const MochaEnable = {
|
|
|
22
22
|
limit: 1,
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
|
-
"mocha/no-async-
|
|
25
|
+
"mocha/no-async-suite": ON,
|
|
26
26
|
"mocha/no-empty-description": ON,
|
|
27
27
|
"mocha/no-exclusive-tests": ON,
|
|
28
28
|
"mocha/no-exports": ON,
|
|
@@ -32,12 +32,11 @@ export const MochaEnable = {
|
|
|
32
32
|
"mocha/no-identical-title": ON,
|
|
33
33
|
"mocha/no-mocha-arrows": ON,
|
|
34
34
|
"mocha/no-nested-tests": ON,
|
|
35
|
-
"mocha/no-pending-tests":
|
|
35
|
+
"mocha/no-pending-tests": ON,
|
|
36
36
|
"mocha/no-return-and-callback": ON,
|
|
37
37
|
"mocha/no-return-from-async": ON,
|
|
38
38
|
"mocha/no-setup-in-describe": ON,
|
|
39
39
|
"mocha/no-sibling-hooks": ON,
|
|
40
|
-
"mocha/no-skipped-tests": ON,
|
|
41
40
|
"mocha/no-synchronous-tests": OFF,
|
|
42
41
|
"mocha/no-top-level-hooks": ON,
|
|
43
42
|
"mocha/prefer-arrow-callback": [
|
|
@@ -47,7 +46,7 @@ export const MochaEnable = {
|
|
|
47
46
|
allowUnboundThis: true,
|
|
48
47
|
},
|
|
49
48
|
] /* MUST match ../js/enable.ts */,
|
|
50
|
-
"mocha/valid-suite-
|
|
51
|
-
"mocha/valid-test-
|
|
49
|
+
"mocha/valid-suite-title": OFF /* preference */,
|
|
50
|
+
"mocha/valid-test-title": OFF /* preference */,
|
|
52
51
|
} as const,
|
|
53
52
|
} as const;
|