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

Commit 52a2dd0

Browse files
Enable lines-between-class-members
1 parent 6721fd4 commit 52a2dd0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

coding-styles/fixable.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@ module.exports = {
152152
// This rule aims to ensure having consistent line endings independent of operating system.
153153
'linebreak-style': ['error', 'unix'],
154154

155+
// Require an empty line between class members
156+
// This rule improves readability by enforcing lines between class members. It will not check
157+
// empty lines before the first member and after the last member, since that is already taken
158+
// care of by padded-blocks.
159+
'lines-between-class-members': ['warn', 'always', {
160+
exceptAfterSingleLine: true,
161+
}],
162+
155163
// Newline Per Chained Method Call
156164
// This rule checks and reports the chained calls if there are no new lines after each call or
157165
// deep member access.

0 commit comments

Comments
 (0)