-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
70 lines (70 loc) · 1.82 KB
/
Copy pathindex.js
File metadata and controls
70 lines (70 loc) · 1.82 KB
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
module.exports = {
"env": {
"browser": true,
"es2020": true,
"jest": true,
"commonjs": true,
"jquery": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier",
"prettier/react",
"plugin:sonarjs/recommended"
],
"plugins": ["import", "prettier", "react", "react-hooks", "sonarjs"],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"printWidth": 120
},
],
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "error", // Checks effect dependencies
"no-case-declarations": "off",
"no-inner-declarations": "off",
"prefer-const": "error",
"curly": "error",
"spaced-comment": ["error", "always", { "block": { "balanced": true } }],
"radix": "error",
"one-var": ["error", "never"],
"object-shorthand": "error",
"no-var": "error",
"no-param-reassign": "error",
"no-underscore-dangle": "error",
"no-undef-init": "error",
"no-throw-literal": "error",
"no-new-wrappers": "error",
"no-eval": "error",
"no-caller": "error",
"no-bitwise": "error",
"eqeqeq": ["error", "smart"],
"max-classes-per-file": ["error", 1],
"guard-for-in": "error",
"complexity": "error",
"arrow-body-style": "error",
"no-unused-expressions": "off",
"semi": "off",
"max-lines-per-function": ["error", 200],
"import/order": "error",
"sonarjs/no-duplicate-string": "error",
"sonarjs/cognitive-complexity": ["error", 19],
"sonarjs/no-small-switch": "error",
"sonarjs/no-inverted-boolean-check": "error"
},
"settings": {
"react": {
"version": "detect"
}
}
};