-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
63 lines (63 loc) · 1.56 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"useJSXTextNode": true
},
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended"
],
"plugins": ["react-hooks", "@typescript-eslint", "jest"],
"env": {
"browser": true,
"es6": true
// "jest": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"rules": {
"linebreak-style": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/function-component-definition": [
1,
{ "namedComponents": "arrow-function" }
],
"react/require-default-props": [1],
"no-restricted-exports": [0],
"indent": "off",
"@typescript-eslint/indent": "off",
"object-curly-newline": "off",
"jsx-quotes": ["error", "prefer-single"],
"operator-linebreak": [
"warn",
"after",
{ "overrides": { "?": "before", ":": "before" } }
],
"@typescript-eslint/comma-dangle": "off",
"implicit-arrow-linebreak": "off",
"arrow-parens": ["error", "as-needed"],
"no-confusing-arrow": "off",
"function-paren-newline": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": false,
"optionalDependencies": false,
"peerDependencies": false
}
]
}
}