Skip to content

Commit aa7fa64

Browse files
feat: enable import/order rule (#196)
1 parent 9427a0a commit aa7fa64

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.eslintrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,25 @@ module.exports = {
143143
'import/no-useless-path-segments': 'error',
144144
'import/no-duplicates': 'error',
145145
'import/no-default-export': 'error',
146+
'import/order': [
147+
'error',
148+
{
149+
'newlines-between': 'always',
150+
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
151+
alphabetize: {
152+
order: 'asc',
153+
caseInsensitive: true,
154+
},
155+
pathGroups: [
156+
{
157+
pattern: '@sourcegraph/**',
158+
group: 'external',
159+
position: 'after',
160+
},
161+
],
162+
pathGroupsExcludedImportTypes: [],
163+
},
164+
],
146165

147166
// JSDoc
148167
'jsdoc/require-returns': 'off',

0 commit comments

Comments
 (0)