Skip to content

Commit

Permalink
feat(eslint): add import order rule
Browse files Browse the repository at this point in the history
This requires imports to be sorted, and can automatically be fixed by eslint
  • Loading branch information
ismay committed Oct 15, 2020
1 parent b14b893 commit 122c046
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/js/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,15 @@ module.exports = {
],
'no-mixed-spaces-and-tabs': [SEVERITY],
'prettier/prettier': [SEVERITY],
'import/order': [
SEVERITY,
{
'newlines-between': 'never',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
}

0 comments on commit 122c046

Please sign in to comment.