-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.14 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
{
"extends": [
"airbnb",
"airbnb/hooks",
"next/core-web-vitals",
"prettier",
"plugin:storybook/recommended"
],
"plugins": ["react-hooks", "prettier"],
"rules": {
"prettier/prettier": "error",
"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx", ".svg", "png"] }
],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-props-no-spreading": "off",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-cycle": "off",
"react/require-default-props": "off",
"no-throw-literal": "off",
"no-nested-ternary": "off",
"react/no-array-index-key": "off"
},
"overrides": [
{
"files": ["*.stories.@(ts|tsx|js|jsx|mjs|cjs)"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
}
]
}