From af6943a2c4751913023913fb7b5bc58bbba1d841 Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Thu, 8 Aug 2024 11:49:41 +0300 Subject: [PATCH] fix: Import order --- index.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/index.js b/index.js index fe958d2..8eb5e03 100644 --- a/index.js +++ b/index.js @@ -16,5 +16,24 @@ module.exports = { 'no-implicit-globals': 'off', 'no-param-reassign': 'off', '@typescript-eslint/no-shadow': 'off', + 'import/no-extraneous-dependencies': 'error', + 'import/order': [ + 'error', + { + alphabetize: { + order: 'ignore', + orderImportKind: 'asc' + }, + 'newlines-between': 'always', + groups: ['type', ['builtin', 'external'], 'internal', 'parent', 'sibling', 'index'], + warnOnUnassignedImports: true, + pathGroups: [ + { + pattern: '*.s?css$', + group: 'index', + }, + ], + }, + ], }, };