-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
50 lines (50 loc) · 1.33 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
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
"modules": true
}
},
"env": {
"node": true,
"es6": true,
"jest": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".json", ".ts", ".js"]
}
}
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": "airbnb-base",
"rules": {
"no-await-in-loop": "off",
"guard-for-in": "off",
"no-restricted-syntax": "off",
"prefer-object-spread": 0,
"no-console": "off",
"indent": [ 1, 2 ],
"no-unused-expressions":"error",
"no-multiple-empty-lines":"warn",
"no-trailing-spaces": "warn",
"eol-last": "warn",
"arrow-parens":"off",
"import/no-extraneous-dependencies": "off",
"no-shadow": ["error", { "allow": ["req", "res", "err", "next"] }],
"no-unused-vars": ["error", { "allow": ["next", "req", "res", "err"]}],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never",
"json": "never"
}
]
}
}