-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
99 lines (99 loc) · 2.5 KB
/
Copy path.eslintrc.json
File metadata and controls
99 lines (99 loc) · 2.5 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"next/core-web-vitals",
"plugin:storybook/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:import/warnings",
"plugin:react/recommended",
"plugin:tailwindcss/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"project": ["./tsconfig.json"],
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import", "react", "storybook", "unused-imports", "prettier"],
"rules": {
"@typescript-eslint/no-floating-promises": [
"warn",
{
"ignoreIIFE": true
}
],
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-use-before-define": ["error"],
"consistent-return": "warn",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/no-cycle": "warn",
"import/no-extraneous-dependencies": "warn",
"import/no-relative-packages": "off",
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": true,
"order": "asc"
}
}
],
"import/prefer-default-export": "off",
"no-alert": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-lonely-if": "off",
"no-param-reassign": ["error", { "props": false }],
"no-shadow": "off",
"no-use-before-define": "off",
"no-useless-escape": "warn",
"radix": "off",
"react/function-component-definition": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".ts", ".tsx"]
}
],
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"unused-imports/no-unused-imports": "error"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx"]
},
"typescript": {}
}
}
}