-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
45 lines (45 loc) · 996 Bytes
/
.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
{
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"project": "./tsconfig.json",
"tsconfigRootDir": "./"
},
"rules": {
"strict": "warn",
"indent": ["error", 2],
"max-len": ["error", 120],
"semi": ["error", "always"],
"semi-spacing": ["error", {"before": false, "after": true}],
"no-var": "error",
"no-global-assign": 0,
"prefer-const": ["error", {
"destructuring": "all"
}],
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": ["error", {
"vars": "all",
"args": "none",
"ignoreRestSiblings": false
}]
},
"overrides": [
{
"files": "*.js",
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
]
}