@repodog/eslint-config 1.1.5 → 1.1.6
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/index.cjs +11 -41
- package/jest.cjs +39 -0
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -12,46 +12,6 @@ module.exports = {
|
|
|
12
12
|
'prettier',
|
|
13
13
|
],
|
|
14
14
|
overrides: [
|
|
15
|
-
{
|
|
16
|
-
env: {
|
|
17
|
-
'jest/globals': true,
|
|
18
|
-
},
|
|
19
|
-
extends: ['plugin:jest/recommended', 'plugin:jest/style'],
|
|
20
|
-
files: ['**/*.{spec,test}.*'],
|
|
21
|
-
plugins: ['jest'],
|
|
22
|
-
rules: {
|
|
23
|
-
'jest/consistent-test-it': [
|
|
24
|
-
2,
|
|
25
|
-
{
|
|
26
|
-
fn: 'it',
|
|
27
|
-
withinDescribe: 'it',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
'jest/max-expects': [
|
|
31
|
-
2,
|
|
32
|
-
{
|
|
33
|
-
max: 1,
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
'jest/max-nested-describe': [
|
|
37
|
-
2,
|
|
38
|
-
{
|
|
39
|
-
max: 5,
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
'jest/no-conditional-in-test': 2,
|
|
43
|
-
'jest/no-duplicate-hooks': 2,
|
|
44
|
-
'jest/no-test-return-statement': 2,
|
|
45
|
-
'jest/prefer-called-with': 2,
|
|
46
|
-
'jest/prefer-comparison-matcher': 2,
|
|
47
|
-
'jest/prefer-each': 2,
|
|
48
|
-
'jest/prefer-equality-matcher': 2,
|
|
49
|
-
'jest/prefer-expect-resolves': 2,
|
|
50
|
-
'jest/prefer-hooks-in-order': 2,
|
|
51
|
-
'jest/prefer-hooks-on-top': 2,
|
|
52
|
-
'jest/prefer-todo': 2,
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
15
|
{
|
|
56
16
|
extends: [
|
|
57
17
|
'plugin:@typescript-eslint/eslint-recommended',
|
|
@@ -306,7 +266,17 @@ module.exports = {
|
|
|
306
266
|
'unicorn/prevent-abbreviations': [
|
|
307
267
|
2,
|
|
308
268
|
{
|
|
309
|
-
ignore: [
|
|
269
|
+
ignore: [
|
|
270
|
+
/.*acc.*/i,
|
|
271
|
+
/.*arg.*/i,
|
|
272
|
+
/.*args.*/i,
|
|
273
|
+
/.*db.*/i,
|
|
274
|
+
/.*dev.*/i,
|
|
275
|
+
/.*params.*/i,
|
|
276
|
+
/.*obj.*/i,
|
|
277
|
+
/.*prop.*/i,
|
|
278
|
+
/.*props.*/i,
|
|
279
|
+
],
|
|
310
280
|
},
|
|
311
281
|
],
|
|
312
282
|
},
|
package/jest.cjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
'jest/globals': true,
|
|
4
|
+
},
|
|
5
|
+
extends: ['plugin:jest/recommended', 'plugin:jest/style'],
|
|
6
|
+
plugins: ['jest'],
|
|
7
|
+
rules: {
|
|
8
|
+
'jest/consistent-test-it': [
|
|
9
|
+
2,
|
|
10
|
+
{
|
|
11
|
+
fn: 'it',
|
|
12
|
+
withinDescribe: 'it',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
'jest/max-expects': [
|
|
16
|
+
2,
|
|
17
|
+
{
|
|
18
|
+
max: 1,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
'jest/max-nested-describe': [
|
|
22
|
+
2,
|
|
23
|
+
{
|
|
24
|
+
max: 5,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
'jest/no-conditional-in-test': 2,
|
|
28
|
+
'jest/no-duplicate-hooks': 2,
|
|
29
|
+
'jest/no-test-return-statement': 2,
|
|
30
|
+
'jest/prefer-called-with': 2,
|
|
31
|
+
'jest/prefer-comparison-matcher': 2,
|
|
32
|
+
'jest/prefer-each': 2,
|
|
33
|
+
'jest/prefer-equality-matcher': 2,
|
|
34
|
+
'jest/prefer-expect-resolves': 2,
|
|
35
|
+
'jest/prefer-hooks-in-order': 2,
|
|
36
|
+
'jest/prefer-hooks-on-top': 2,
|
|
37
|
+
'jest/prefer-todo': 2,
|
|
38
|
+
},
|
|
39
|
+
};
|