-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
61 lines (60 loc) · 1.51 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "airbnb", "prettier"],
"plugins": ["react", "prettier", "import-helpers"],
"ignorePatterns": ["*.test.js", "*.test.tsx"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"babel-plugin-root-import": {
"rootPathPrefix": "~",
"rootPathSuffix": "src"
}
}
},
"rules": {
"import/prefer-default-export": "off",
"default-param-last": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/function-component-definition": [
2,
{ "namedComponents": "function-declaration" }
],
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"import-helpers/order-imports": [
"warn",
{
// example configuration
"newlinesBetween": "always",
"groups": [
"/^@mui/",
"module",
["/^~/assets/", "/^~/theme/", "/^~/styles/"],
["/^~/router/", "/^~/pages/"],
["/^~/containers/", "/^~/store/"],
["/^~/intl/", "/^~/helpers/", "/^~/hooks/"],
"/^~/components/",
["parent", "sibling", "index"]
],
"alphabetize": { "order": "asc", "ignoreCase": true }
}
]
}
}