Skip to content

Commit

Permalink
Add no-multiple-empty-lines with maxBOF: 0
Browse files Browse the repository at this point in the history
This rule configured this way will disallow empty lines at the beginning
of files.
  • Loading branch information
wyze committed Mar 4, 2016
1 parent 20c7ee9 commit 0121e9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module.exports = {
// allow/disallow an empty newline after var statement
// https://github.com/eslint/eslint/blob/master/docs/rules/newline-after-var.md
'newline-after-var': [2, 'always'],
// disallow multiple empty lines and only one newline at the end
// https://github.com/eslint/eslint/blob/master/docs/rules/no-multiple-empty-lines.md
'no-multiple-empty-lines': [2, { 'max': 2, 'maxBOF': 0, 'maxEOF': 1 }],
// require or disallow use of semicolons instead of ASI
// I use Babel, it takes care of this for me
'semi': [2, 'never'],
Expand Down

0 comments on commit 0121e9a

Please sign in to comment.