Skip to content

Commit

Permalink
fix(import-x): ajustes na configuracão de do import/order
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefelipeschulle committed Jun 18, 2024
1 parent 3dc195d commit 0e67cfd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brainylab/eslint-config",
"version": "2.3.6",
"version": "2.3.7",
"description": "ESLint config for BrainyLab projects",
"keywords": [
"eslint",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './presets';
export * from './create-config';
export * from './plugins';
42 changes: 18 additions & 24 deletions src/presets/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0e67cfd

Please sign in to comment.