Skip to content
This repository has been archived by the owner on Jan 11, 2018. It is now read-only.

Commit

Permalink
feat(padding-line-between-statements): Add padding after const,let,var
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Nov 29, 2017
1 parent 56037f5 commit 4fb872f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ module.exports = {
'no-plusplus': 'off',
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],

'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' },
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] }
],

'import/no-unresolved': 'off',
'import/extensions': ['error', 'never',
[
Expand Down
5 changes: 3 additions & 2 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const example = {
}

const PART_NUM = 12

const inside = resolve(
example,
`report${example['third-e'].join(',')}`,
Expand All @@ -45,7 +44,9 @@ catch (foo) {
}

try {
example.first++
const demo = 1

example.first += demo
example.second = --example.first
}
catch (error) {
Expand Down

0 comments on commit 4fb872f

Please sign in to comment.