Skip to content

Commit

Permalink
feat(config): enable padding-line-between-statements
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Nov 25, 2020
1 parent 8e123d4 commit 090e3e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ module.exports = {
allow: ['warn', 'error', 'time', 'timeEnd', 'timeStamp'],
}],
'padded-blocks': OFF,
'padding-line-between-statements': [
WARNING,
{ blankLine: 'always', prev: '*', next: 'block' },
{ blankLine: 'always', prev: 'block', next: '*' },
{ blankLine: 'always', prev: '*', next: 'block-like' },
{ blankLine: 'always', prev: 'block-like', next: '*' },
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'any', prev: '*', next: ['case', 'default'] },
],
'spaced-comment': OFF,
'space-before-function-paren': WARNING,
'new-cap': OFF,
Expand Down

0 comments on commit 090e3e3

Please sign in to comment.