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

Commit 2bff63a

Browse files
Enable import/exports-last rule
1 parent b3ee0dd commit 2bff63a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coding-styles/recommended.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ module.exports = {
142142
const: 'never',
143143
}],
144144

145+
// Enforce all exports to be declared at the bottom of the file
146+
// The exports-last rule is currently only working on ES6 exports.
147+
'import/exports-last': 'warn',
148+
145149
// Enforces having an empty line after the last top-level import statement or require call
146150
'import/newline-after-import': 'warn',
147151
},

0 commit comments

Comments
 (0)