-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (58 loc) · 1.42 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"standard-with-typescript",
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"parser": "@typescript-eslint/parser",
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"extends": ["plugin:@typescript-eslint/recommended"]
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["prettier", "@typescript-eslint", "react"],
"rules": {
"quotes": ["error", "double"],
"@typescript-eslint/quotes": ["error", "double"],
"semi": ["error", "always"],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-misused-promises": "off",
"prettier/prettier": [
"error",
{
"semi": true,
"tabWidth": 2,
"printWidth": 80,
"endOfLine": "auto",
"singleAttributePerLine": true,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "all"
}
]
}
}