From 48b3529adb5342a7bf36a83cfbe79c0779a4e78b Mon Sep 17 00:00:00 2001 From: Aditya Thakral Date: Mon, 9 Aug 2021 03:47:42 -0400 Subject: [PATCH] fixup! Add eslint-plugin-import --- .eslintrc.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index da144938..7beb8793 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -19,7 +19,7 @@ module.exports = { rules: { "prettier/prettier": "error", - "import/first": "warn", + "import/first": "error", "import/order": [ "error", { @@ -28,11 +28,18 @@ module.exports = { "order": "asc", "caseInsensitive": true, }, - "pathGroups": { - "pattern": "@/**", - "group": "external", - "position": "after", - } + "pathGroups": [ + { + "pattern": "@/**", + "group": "external", + "position": "after", + }, + { + "pattern": "./*.css", + "group": "index", + "position": "after", + } + ], }, ],