-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.json
93 lines (93 loc) · 2.73 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"root": true,
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:sonarjs/recommended",
"plugin:import/recommended",
"plugin:sort-class-members/recommended",
"plugin:promise/recommended",
"plugin:node/recommended",
"plugin:unicorn/recommended",
"plugin:security/recommended",
"plugin:jsdoc/recommended",
"plugin:you-dont-need-lodash-underscore/compatible",
"plugin:eslint-comments/recommended",
"plugin:sonarjs/recommended",
"plugin:prettier/recommended"
],
"rules": {
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/order": "error",
"jsdoc/require-jsdoc": [
"error",
{
"require": {
"MethodDefinition": true
}
}
],
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"no-console": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": [
"error",
{
"allowAfterThis": true
}
],
"node/exports-style": "error",
"node/no-missing-import": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/prefer-global/buffer": "error",
"node/prefer-global/console": "error",
"node/prefer-global/process": "error",
"node/prefer-global/url-search-params": "error",
"node/prefer-global/url": "error",
"node/prefer-promises/dns": "error",
"node/prefer-promises/fs": "error",
"promise/always-return": "off",
"promise/prefer-await-to-callbacks": "error",
"promise/prefer-await-to-then": "error",
"security/detect-non-literal-fs-filename": "off",
"sonarjs/cognitive-complexity": ["error", 25],
"sonarjs/no-duplicate-string": "off",
"unicorn/filename-case": "off",
"unicorn/no-array-reduce": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-object-from-entries": "off",
"unicorn/prefer-spread": "off",
"unicorn/prevent-abbreviations": "off",
"you-dont-need-lodash-underscore/cast-array": "off"
},
"overrides": [
{
"files": ["**/*.test.js"],
"plugins": ["jest"],
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:jest-formatting/recommended"
],
"rules": {
"jest/consistent-test-it": "error",
"jest/no-disabled-tests": "error",
"jest/no-if": "error",
"jest/no-large-snapshots": "error",
"jest/no-test-return-statement": "error",
"jest/prefer-lowercase-title": [
"error",
{
"ignore": ["describe"]
}
],
"jest/prefer-spy-on": "error",
"jest/prefer-strict-equal": "error",
"jest/prefer-todo": "error",
"jest/require-top-level-describe": "error"
}
}
]
}