-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc
54 lines (54 loc) · 1.18 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"node": true,
"commonjs": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "react"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"quotes": ["error", "single"],
"semi": "error",
"react/prop-types": "off",
"jsx-quotes": ["error", "prefer-single"],
"no-unused-vars": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"react/self-closing-comp": [
"error",
{
"component": true,
"html": true
}
],
"prettier/prettier": [
"error",
{
"endOfLine": "lf"
}
]
}
}