fixup! Add eslint-plugin-import

This commit is contained in:
Aditya Thakral 2021-08-09 03:47:42 -04:00
parent 5f37d7bf08
commit 48b3529adb
1 changed files with 13 additions and 6 deletions

View File

@ -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",
}
],
}, },
], ],