generated from SoftwareEngineering2-Assignment/se2-backend
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
62 lines (62 loc) · 1.38 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"plugins": ["ava"],
"extends": "airbnb-base",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-throw-literal": "off",
"block-spacing": "warn",
"eol-last": "warn",
"quotes": "warn",
"space-infix-ops": "warn",
"arrow-spacing": "warn",
"padded-blocks": "warn",
"comma-spacing": "warn",
"comma-dangle": "off",
"no-empty": "off",
"no-trailing-spaces": "off",
"no-underscore-dangle": "off",
"no-multiple-empty-lines": "warn",
"no-param-reassign": 0,
"key-spacing": "warn",
"no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "(^_$)|(^__)|(req)|(res)|(next)",
"varsIgnorePattern": "(^_$)|(^__)"
}
],
"no-nested-ternary": "off",
"semi": "warn",
"global-require": "off",
"implicit-arrow-linebreak": ["off", "below"],
"object-curly-spacing": ["warn", "never"],
"object-curly-newline": [
"warn",
{
"ObjectExpression": {
"multiline": true,
"minProperties": 5
},
"ObjectPattern": {
"multiline": true
},
"ExportDeclaration": {
"multiline": true,
"minProperties": 3
}
}
]
}
}