-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
37 lines (37 loc) · 979 Bytes
/
.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
{
"parser": "@typescript-eslint/parser",
"root": true,
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true // Allows for the parsing of JSX
}
},
"plugins": ["@typescript-eslint", "react-hooks"],
"extends": [
"plugin:storybook/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"ignorePatterns": ["*.css", "*.scss", "*.d.ts"]
}