style: update eslint
This commit is contained in:
parent
c51c36c041
commit
326d503f7f
53
.eslintrc
53
.eslintrc
@ -3,5 +3,58 @@
|
|||||||
"reportUnusedDisableDirectives": true,
|
"reportUnusedDisableDirectives": true,
|
||||||
"settings": {
|
"settings": {
|
||||||
"import/resolver": "webpack"
|
"import/resolver": "webpack"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"import/order": [
|
||||||
|
"error", {
|
||||||
|
"pathGroups": [
|
||||||
|
{
|
||||||
|
"pattern": "apps/**",
|
||||||
|
"group": "internal",
|
||||||
|
"position": "after"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pattern": "pages/**",
|
||||||
|
"group": "internal",
|
||||||
|
"position": "after"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pattern": "widgets/**",
|
||||||
|
"group": "internal",
|
||||||
|
"position": "after"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pattern": "features/**",
|
||||||
|
"group": "internal",
|
||||||
|
"position": "after"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pattern": "entities/**",
|
||||||
|
"group": "internal",
|
||||||
|
"position": "after"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pattern": "shared/**",
|
||||||
|
"group": "internal",
|
||||||
|
"position": "after"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"distinctGroup": true,
|
||||||
|
"groups": [
|
||||||
|
"builtin",
|
||||||
|
"external",
|
||||||
|
"internal",
|
||||||
|
"parent",
|
||||||
|
"sibling",
|
||||||
|
"object",
|
||||||
|
"index",
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"newlines-between": "always",
|
||||||
|
"alphabetize": {
|
||||||
|
"order": "asc",
|
||||||
|
"caseInsensitive": true
|
||||||
|
}
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user