generated from jblossomweb/cra-scaffold-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
59 lines (59 loc) · 1.35 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
48
49
50
51
52
53
54
55
56
57
58
59
{
"extends": [
"react-app",
"react-app/jest",
"plugin:@typescript-eslint/recommended",
"plugin:storybook/recommended",
"airbnb",
"prettier"
],
"plugins": [
"@typescript-eslint",
"import",
"prettier",
"jest",
"testing-library",
"storybook"
],
"env": { "jest/globals": true },
"overrides": [
{
"extends": ["plugin:testing-library/react"],
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"]
},
{
"files": ["**/*.stories.*"],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
],
"rules": {
"prettier/prettier": ["error"],
"@typescript-eslint/consistent-type-imports": [
"error",
{ "prefer": "type-imports" }
],
"import/extensions": [
"error",
"never",
{ "css": "always", "json": "always", "svg": "always" }
],
"import/no-extraneous-dependencies": "off",
"no-restricted-exports": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": [
"error",
{ "extensions": [".jsx", ".tsx"] }
],
"react/jsx-props-no-spreading": "off",
"react/function-component-definition": "off",
"semi": ["error", "never"],
"arrow-body-style": ["error", "as-needed"]
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}