-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
112 lines (112 loc) · 3.28 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"standard",
"eslint:all",
"plugin:promise/recommended",
"plugin:eqeqeq-fix/recommended",
"plugin:react/all",
"plugin:react-hooks/recommended",
// "plugin:sonarjs/recommended",
"plugin:sonar/recommended",
"plugin:react-redux/recommended",
"plugin:import/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"semi": [2, "always"],
"indent": [2],
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"no-console":"off",
"no-ternary":"off",
"radix": "off",
"max-statements":"off",
"max-lines-per-function":"off",
"sort-keys-fix/sort-keys-fix": "warn",
"id-length":"off",
"no-magic-numbers":"off",
"require-unicode-regexp":"off",
"max-params":"off",
"prefer-destructuring":"off",
"no-multi-assign":"off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"consistent-return":"off",
"max-lines":"off",
"no-plusplus":"off",
"no-continue":"off",
"no-await-in-loop":"off",
"unused-imports/no-unused-imports": "error",
"autofix/no-unused-vars": "error",
"sonar/deprecation": 2,
"sonarjs/cognitive-complexity":"off",
"no-underscore-dangle":"off",
"no-invalid-this":"off",
"new-cap":"off",
"prefer-named-capture-group":"off",
"no-useless-escape":"off",
"capitalized-comments":"off",
"spaced-comment": "off",
"default-param-last":"off",
"no-prototype-builtins":"off",
"require-atomic-updates":"off",
"no-inline-comments":"off",
"line-comment-position":"off",
"no-new":"off",
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": true,
"memberSyntaxSortOrder": ["multiple", "all","single","none"]
}]
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"alias": {
"map": [
["#validations", "./Utils/Validations"],
["#middlewares", "./Utils/Middlewares"],
["#constants", "./Utils/Constants"],
["#utils", "./Utils"],
["#user", "./User"],
["#project", "./Project"],
["#controllers", "./Controllers"],
["#routes", "./Routes"],
["#encryption", "./Encryption"],
["#scheduler", "./Scheduler"],
["#root", "."]
]
}
}
},
"plugins":[
"react",
"promise",
"react",
"react-hooks",
"eqeqeq-fix",
"sort-keys-fix",
"unused-imports",
"simple-import-sort",
"autofix",
"sonarjs",
"sonar",
"react-redux",
"import"
]
}