Skip to content

Commit

Permalink
chore(eslint): add no-duplicates, consistent-type-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Oct 14, 2023
1 parent ac33b3a commit 68472df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configs/eslint-config-js/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ module.exports = {
extends: ['plugin:import/recommended', './noimport.js'],
plugins: ['import'],
rules: {
'sort-imports': ['error', { ignoreDeclarationSort: true }],
'import/no-duplicates': ['warn'],
'import/order': [
'warn',
{
groups: ['builtin', 'external', 'internal', ['parent', 'sibling'], 'index'],
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
'sort-imports': ['error', { ignoreDeclarationSort: true }],
},
}
1 change: 1 addition & 0 deletions configs/eslint-config-ts/noimport.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
rules: {
'@typescript-eslint/no-empty-function': ['off'],
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/consistent-type-imports': ['warn'],
'jsdoc/require-description': 'warn',
'jsdoc/require-returns': 'off',
'jsdoc/require-jsdoc': 'off',
Expand Down
1 change: 1 addition & 0 deletions configs/eslint-config-ts/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
],
rules: {
'sort-imports': ['error', { ignoreDeclarationSort: true }],
'import/no-duplicates': ['warn'],
'import/order': [
'error',
{
Expand Down

0 comments on commit 68472df

Please sign in to comment.