@enormora/eslint-config-mocha 0.0.74 → 0.0.75
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/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@enormora/eslint-config-test-base": "0.0.
|
|
10
|
+
"@enormora/eslint-config-test-base": "0.0.49",
|
|
11
11
|
"eslint-plugin-mocha": "12.0.2"
|
|
12
12
|
},
|
|
13
13
|
"description": "Enormora’s ESLint mocha configuration",
|
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "git://github.com/enormora/eslint-config.git"
|
|
27
27
|
},
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"./presets/mocha/mocha.js"
|
|
30
|
+
],
|
|
28
31
|
"type": "module",
|
|
29
|
-
"version": "0.0.
|
|
32
|
+
"version": "0.0.75"
|
|
30
33
|
}
|
package/presets/mocha/mocha.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import mochaPlugin from 'eslint-plugin-mocha';
|
|
2
2
|
import { testRuleSet } from "@enormora/eslint-config-test-base";
|
|
3
|
+
import { disable } from "../../rule-severity.js";
|
|
3
4
|
/* eslint-disable no-barrel-files/no-barrel-files -- expose testSupportConfig as public API so consumers can apply the shared relaxations to non-test test files without depending on @enormora/eslint-config-test-base directly */
|
|
4
5
|
export { testSupportConfig } from "@enormora/eslint-config-test-base";
|
|
5
6
|
/* eslint-enable no-barrel-files/no-barrel-files -- end of public re-exports */
|
|
@@ -9,7 +10,7 @@ export const mochaConfig = {
|
|
|
9
10
|
},
|
|
10
11
|
rules: {
|
|
11
12
|
...testRuleSet.rules,
|
|
12
|
-
'prefer-arrow-callback':
|
|
13
|
+
'prefer-arrow-callback': disable(),
|
|
13
14
|
'mocha/consistent-structure': ['error', { disallowDuplicateHooks: true }],
|
|
14
15
|
'mocha/handle-done-callback': 'error',
|
|
15
16
|
'mocha/limit-retries': 'error',
|
|
@@ -26,21 +27,21 @@ export const mochaConfig = {
|
|
|
26
27
|
'mocha/no-exclusive-tests': 'error',
|
|
27
28
|
'mocha/no-exports': 'error',
|
|
28
29
|
'mocha/no-hooks': 'error',
|
|
29
|
-
'mocha/no-hooks-for-single-child':
|
|
30
|
+
'mocha/no-hooks-for-single-child': disable(),
|
|
30
31
|
'mocha/no-identical-title': 'error',
|
|
31
32
|
'mocha/no-mocha-arrows': 'error',
|
|
32
|
-
'mocha/no-nested-suites':
|
|
33
|
+
'mocha/no-nested-suites': disable(),
|
|
33
34
|
'mocha/no-nested-tests': 'error',
|
|
34
35
|
'mocha/no-pending-tests': 'error',
|
|
35
36
|
'mocha/no-return-and-done': 'error',
|
|
36
|
-
'mocha/no-return-from-async':
|
|
37
|
-
'mocha/no-root-hooks':
|
|
38
|
-
'mocha/no-setup-in-suite':
|
|
39
|
-
'mocha/no-synchronous-tests':
|
|
37
|
+
'mocha/no-return-from-async': disable(),
|
|
38
|
+
'mocha/no-root-hooks': disable(),
|
|
39
|
+
'mocha/no-setup-in-suite': disable(),
|
|
40
|
+
'mocha/no-synchronous-tests': disable(),
|
|
40
41
|
'mocha/no-top-level-tests': 'error',
|
|
41
|
-
'mocha/prefer-arrow-callback':
|
|
42
|
-
'mocha/valid-suite-title':
|
|
43
|
-
'mocha/valid-test-title':
|
|
42
|
+
'mocha/prefer-arrow-callback': disable(),
|
|
43
|
+
'mocha/valid-suite-title': disable(),
|
|
44
|
+
'mocha/valid-test-title': disable(),
|
|
44
45
|
'mocha/consistent-spacing-between-blocks': 'error',
|
|
45
46
|
'mocha/consistent-interface': ['error', { interface: 'TDD' }]
|
|
46
47
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocha.js","sourceRoot":"","sources":["../../../../../configs/presets/mocha/mocha.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9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OAAO,EAAqD;QAC1F,qBAAqB,EAAE,OAAO,EAAoD;QAClF,yBAAyB,EAAE,OAAO,EAAoD;QACtF,4BAA4B,EAAE,OAAO,EAAoD;QACzF,0BAA0B,EAAE,OAAO;QACnC,6BAA6B,EAAE,OAAO,EAA0C;QAChF,yBAAyB,EAAE,OAAO,EAAgE;QAClG,wBAAwB,EAAE,OAAO,EAA+D;QAChG,yCAAyC,EAAE,OAAO;QAClD,4BAA4B,EAAE,CAAE,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAE;KAClE;IACD,QAAQ,EAAE;QACN,KAAK,EAAE;YACH,SAAS,EAAE,SAAS;SACvB;KACJ;CACwB,CAAC"}
|
package/rule-severity.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-severity.js","sourceRoot":"","sources":["../../../configs/rule-severity.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,OAAO;IACnB,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -9,31 +9,31 @@
|
|
|
9
9
|
{
|
|
10
10
|
"type": "application",
|
|
11
11
|
"name": "packtory",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.126"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@enormora/eslint-config-mocha",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@enormora/eslint-config-mocha@0.0.
|
|
21
|
-
"purl": "pkg:npm/@enormora/eslint-config-mocha@0.0.
|
|
19
|
+
"version": "0.0.75",
|
|
20
|
+
"bom-ref": "pkg:npm/@enormora/eslint-config-mocha@0.0.75",
|
|
21
|
+
"purl": "pkg:npm/@enormora/eslint-config-mocha@0.0.75"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"components": [
|
|
25
25
|
{
|
|
26
26
|
"type": "library",
|
|
27
27
|
"name": "@enormora/eslint-config-test-base",
|
|
28
|
-
"version": "0.0.
|
|
29
|
-
"bom-ref": "pkg:npm/@enormora/eslint-config-test-base@0.0.
|
|
28
|
+
"version": "0.0.49",
|
|
29
|
+
"bom-ref": "pkg:npm/@enormora/eslint-config-test-base@0.0.49",
|
|
30
30
|
"scope": "required",
|
|
31
31
|
"licenses": [
|
|
32
32
|
{
|
|
33
33
|
"expression": "MIT"
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
|
-
"purl": "pkg:npm/@enormora/eslint-config-test-base@0.0.
|
|
36
|
+
"purl": "pkg:npm/@enormora/eslint-config-test-base@0.0.49"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"type": "library",
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
],
|
|
52
52
|
"dependencies": [
|
|
53
53
|
{
|
|
54
|
-
"ref": "pkg:npm/@enormora/eslint-config-mocha@0.0.
|
|
54
|
+
"ref": "pkg:npm/@enormora/eslint-config-mocha@0.0.75",
|
|
55
55
|
"dependsOn": [
|
|
56
|
-
"pkg:npm/@enormora/eslint-config-test-base@0.0.
|
|
56
|
+
"pkg:npm/@enormora/eslint-config-test-base@0.0.49",
|
|
57
57
|
"pkg:npm/eslint-plugin-mocha@12.0.2"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
"ref": "pkg:npm/@enormora/eslint-config-test-base@0.0.
|
|
61
|
+
"ref": "pkg:npm/@enormora/eslint-config-test-base@0.0.49"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"ref": "pkg:npm/eslint-plugin-mocha@12.0.2"
|