-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
51 lines (51 loc) · 1.39 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
{
"parserOptions": {
"ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features
"sourceType": "module" // Allows for the use of imports
},
"extends": [
"eslint:recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"plugin:sonarjs/recommended"
],
"rules": {
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-use-before-define": "off",
"arrow-parens": ["error", "as-needed"],
"arrow-body-style": ["error", "as-needed"],
"arrow-spacing": ["error"],
"no-confusing-arrow": [
"error",
{
"allowParens": true
}
],
"max-len": [
"error",
{
"code": 80,
"ignoreUrls": true
}
],
"eol-last": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-rename": ["error"],
"no-var": ["error"],
"object-shorthand": ["error", "always"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"prefer-numeric-literals": ["error"],
"prefer-rest-params": ["error"],
"prefer-spread": ["error"],
"rest-spread-spacing": ["error", "never"],
"template-curly-spacing": ["error", "never"],
"indent": ["error", 2]
},
"env": {
"browser": true,
"es2021": true,
"node": true
},
"plugins": ["sonarjs"],
"ignorePatterns": ["/build/static/js/*.js", "/build/static/js/*.js.map"]
}