-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
47 lines (47 loc) · 1.07 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
{
"overrides": [
{
"extends": ["plugin:@typescript-eslint/recommended-requiring-type-checking"],
"files": ["src/**/*.ts", "src/**/*.tsx"],
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/consistent-type-imports": [
"warn",
{
"prefer": "type-imports",
"fixStyle": "inline-type-imports"
}
],
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"object-curly-spacing": ["error", "always"],
"no-console": ["error", { "allow": ["warn", "error"] }]
},
"env": {
"browser": true,
"es6": true,
"node": true
}
}