-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
97 lines (97 loc) · 2.3 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"eslint:recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:prettier/recommended",
"airbnb-base"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"babel-plugin-root-import": {
"rootPathSuffix": "./src/",
"rootPathPrefix": "@/"
}
},
"react": {
"pragma": "React",
"version": "detect"
}
},
"plugins": [
"react",
"prettier",
"react-hooks"
],
"rules": {
"indent": [
"error",
"space"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"react/react-in-jsx-scope": 0,
"react/jsx-uses-react": 0,
"prettier/prettier": [
"error",
{
"bracketSpacing": true,
"jsxBracketSameLine": true,
"jsxSingleQuote": true,
"singleQuote": true,
"semi": true,
"trailingComma": "none",
"tabWidth": 2,
"endOfLine": "auto"
}
],
"no-case-declarations": "off",
"no-eval": "error",
"implicit-arrow-linebreak": [
"error",
"beside"
],
"import/first": "error",
"import/prefer-default-export": "off",
"operator-linebreak": [
"error",
"before"
],
"react/prop-types": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"comma-dangle": [
"error",
{
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}
]
}
}