Skip to content

Commit edd25f9

Browse files
committed
feat(javascript): enable exceptAfterSingleLine option
1 parent 419725d commit edd25f9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ const config = {
4848
'grouped-accessor-pairs': ['error', 'getBeforeSet'],
4949
'guard-for-in': 'error',
5050
'init-declarations': 'error',
51-
'lines-between-class-members': 'error',
51+
'lines-between-class-members': [
52+
'error',
53+
'always',
54+
{ exceptAfterSingleLine: true }
55+
],
5256
'max-classes-per-file': ['error', 1],
5357
'max-statements-per-line': ['error', { max: 1 }],
5458
'new-cap': ['error', { capIsNewExceptions: ['ESLintUtils.RuleCreator'] }],

0 commit comments

Comments
 (0)