Skip to content

Commit

Permalink
feat: force imports to be alphabetized
Browse files Browse the repository at this point in the history
BREAKING CHANGE: imports must now be alphabetized in each group
  • Loading branch information
targos committed Mar 27, 2020
1 parent 2a1696f commit 38a6ab1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,18 +308,21 @@ module.exports = {
'index',
],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
},
},
],
'import/newline-after-import': 'error',
'import/prefer-default-export': 'off',
'import/max-dependencies': 'off',
'import/no-unassigned-import': [
'warn',
{ allow: ['make-promises-safe', 'node-report'] },
{ allow: ['make-promises-safe', 'node-report', 'reflect-metadata'] },
],
'import/no-named-default': 'error',
'import/no-default-export': 'off',
'import/no-anonymous-default-export': 'warn',
'import/no-anonymous-default-export': 'off',
'import/group-exports': 'off',
'import/dynamic-import-chunkname': 'off',
},
Expand Down

0 comments on commit 38a6ab1

Please sign in to comment.