Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit d617db6

Browse files
Merge pull request #37 from strvcom/fixable-import-newline
Move import/newline-after-import rule to fixable
2 parents 8ec3b56 + a774eb3 commit d617db6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coding-styles/fixable.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,5 +437,8 @@ module.exports = {
437437

438438
// Enforce a convention in the order of require() / import statements
439439
'import/order': 'warn',
440+
441+
// Enforces having an empty line after the last top-level import statement or require call
442+
'import/newline-after-import': 'warn',
440443
},
441444
}

coding-styles/recommended.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,5 @@ module.exports = {
153153
// requiring a single export declaration all your exports will remain at one place, making it
154154
// easier to see what exports a module provides.
155155
'import/group-exports': 'warn',
156-
157-
// Enforces having an empty line after the last top-level import statement or require call
158-
'import/newline-after-import': 'warn',
159156
},
160157
}

0 commit comments

Comments
 (0)