/
.eslintrc
35 lines (35 loc) · 879 Bytes
/
.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
{
"extends": ["react-app", "prettier/@typescript-eslint", "plugin:prettier/recommended"],
"rules": {
"sort-imports": [
"error",
{
"ignoreCase": false,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "single", "multiple"]
}
],
"import/order": [
"error",
{
"newlines-between": "always",
"pathGroups": [
{
"pattern": "react",
"group": "builtin",
"position": "before"
},
{
"pattern": "{.,..}/**/*.+(css|sass|less|scss|pcss|styl)",
"unnamed": true,
"group": "unknown",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"warnOnUnassignedImports": true
}
]
}
}