forked from DriLLFreAK100/codefee-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
80 lines (80 loc) · 1.59 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": [
"airbnb-typescript",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:storybook/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12
},
"plugins": [
"react",
"@typescript-eslint",
"prettier"
],
"rules": {
"react/jsx-props-no-spreading": 0,
"react/jsx-max-props-per-line": [
2,
{
"maximum": 1,
"when": "multiline"
}
],
"prettier/prettier": 2,
"no-void": 0
},
"overrides": [
{
"files": [
"*.style.tsx",
"*.style.jsx",
"*.styled.tsx",
"*.styled.jsx",
"src/utils/**/*.{js,ts,jsx,tsx}"
],
"rules": {
"import/prefer-default-export": 0
}
},
{
"files": [
"*.stories.@(ts|tsx|js|jsx|mjs|cjs)"
],
"rules": {
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0
}
}
],
"settings": {
"import/resolver": {
"typescript": {},
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
}
}