-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
47 lines (47 loc) · 1.26 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb-base",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:json/recommended"
],
"plugins": [
"@typescript-eslint",
"react-hooks"
],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"rules": {
"indent": ["error", 4],
"linebreak-style": ["error", "windows"],
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"object-curly-newline": [
"error",
{
"consistent": true
}
],
"no-use-before-define": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
}
}