-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.json
40 lines (40 loc) · 1.04 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
{
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"es6": true
},
"rules": {
"no-console": ["warn", {"allow": ["warn", "error"]}]
},
"overrides": [
{
"files": ["src/**/*"],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"project": "./tsconfig.json"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"env": {
"browser": true
},
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/prefer-return-this-type": "error",
"@typescript-eslint/explicit-function-return-type": ["error", {"allowExpressions": true}]
}
}
]
}