fixup! Add eslint-plugin-import
This commit is contained in:
parent
5f37d7bf08
commit
48b3529adb
19
.eslintrc.js
19
.eslintrc.js
|
@ -19,7 +19,7 @@ module.exports = {
|
||||||
rules: {
|
rules: {
|
||||||
"prettier/prettier": "error",
|
"prettier/prettier": "error",
|
||||||
|
|
||||||
"import/first": "warn",
|
"import/first": "error",
|
||||||
"import/order": [
|
"import/order": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
|
@ -28,11 +28,18 @@ module.exports = {
|
||||||
"order": "asc",
|
"order": "asc",
|
||||||
"caseInsensitive": true,
|
"caseInsensitive": true,
|
||||||
},
|
},
|
||||||
"pathGroups": {
|
"pathGroups": [
|
||||||
"pattern": "@/**",
|
{
|
||||||
"group": "external",
|
"pattern": "@/**",
|
||||||
"position": "after",
|
"group": "external",
|
||||||
}
|
"position": "after",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pattern": "./*.css",
|
||||||
|
"group": "index",
|
||||||
|
"position": "after",
|
||||||
|
}
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue