Skip to content

Commit

Permalink
feat: enable import/order rule (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerybugakov committed Apr 13, 2021
1 parent 9427a0a commit aa7fa64
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,25 @@ module.exports = {
'import/no-useless-path-segments': 'error',
'import/no-duplicates': 'error',
'import/no-default-export': 'error',
'import/order': [
'error',
{
'newlines-between': 'always',
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
pathGroups: [
{
pattern: '@sourcegraph/**',
group: 'external',
position: 'after',
},
],
pathGroupsExcludedImportTypes: [],
},
],

// JSDoc
'jsdoc/require-returns': 'off',
Expand Down

0 comments on commit aa7fa64

Please sign in to comment.