From 0e67cfd962e1bc477c7b2691f9143b91a8f8b4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Felipe=20Schulle?= Date: Tue, 18 Jun 2024 15:16:53 -0300 Subject: [PATCH] =?UTF-8?q?fix(import-x):=20ajustes=20na=20configurac?= =?UTF-8?q?=C3=A3o=20de=20do=20import/order?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/index.ts | 1 - src/presets/base.ts | 42 ++++++++++++++++++------------------------ 3 files changed, 19 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index ea9281d..6417d38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@brainylab/eslint-config", - "version": "2.3.6", + "version": "2.3.7", "description": "ESLint config for BrainyLab projects", "keywords": [ "eslint", diff --git a/src/index.ts b/src/index.ts index 4b510ae..b37df84 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,2 @@ export * from './presets'; export * from './create-config'; -export * from './plugins'; diff --git a/src/presets/base.ts b/src/presets/base.ts index f4836a1..b609b14 100644 --- a/src/presets/base.ts +++ b/src/presets/base.ts @@ -35,30 +35,24 @@ export const base = [ ...pluginJs.configs.recommended.rules, 'no-unused-vars': 'off', 'import-x/named': 'off', - // 'import/order': [ - // 'error', - // { - // 'newlines-between': 'always', - // groups: [ - // 'builtin', - // 'external', - // 'internal', - // 'parent', - // 'sibling', - // 'index', - // 'object', - // ['type'], - // ], - // // pathGroups: [ - // // { - // // pattern: '~/**', - // // group: 'external', - // // }, - // // ], - // // pathGroups: [{ group: 'internal', pattern: '{{@,~}/,#}**' }], - // pathGroupsExcludedImportTypes: ['type'], - // }, - // ], + 'import/order': [ + 'error', + { + 'newlines-between': 'always', + groups: [ + 'builtin', + 'external', + 'internal', + 'parent', + 'sibling', + 'index', + 'object', + 'type', + ], + pathGroups: [{ group: 'internal', pattern: '{{@,~}/,#}**' }], + pathGroupsExcludedImportTypes: ['type'], + }, + ], }, }, configPrettier,