Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 0ca0ce5

Browse files
committed
turn on rule for having imports first in a module
1 parent 40a0889 commit 0ca0ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/import.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ module.exports = {
88
'import/export': 'error',
99
'import/exports-last': 'off',
1010
'import/extensions': ['error', 'never', {json: 'ignorePackages'}],
11-
'import/first': 'off',
11+
'import/first': 'error',
1212
'import/group-exports': 'off',
13-
'import/imports-first': 'off',
13+
'import/imports-first': 'off', // deprecated, alias for "first"
1414
'import/max-dependencies': 'off',
1515
'import/named': 'error',
1616
'import/namespace': 'error',

0 commit comments

Comments
 (0)