-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
39 lines (39 loc) · 1.03 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
{
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/eslintrc.json",
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime", // disable all rules conflict with React 17 JSX transform
"plugin:react-hooks/recommended",
"plugin:jest-dom/recommended",
"plugin:storybook/recommended",
"prettier" // disable all rules conflict with Prettier
],
"plugins": ["jest-dom"],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["dist"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"react/require-default-props": "off"
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": []
}