Skip to content

Commit

Permalink
Disallow too many empty lines, see phetsims/phet-info#156
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid authored and zepumph committed Oct 22, 2024
1 parent 12f08f8 commit 63e7971
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions eslint/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ module.exports = {
capIsNewExceptions: [ 'Immutable.Map', 'Immutable.Set', 'Immutable.List' ]
} ],

// disallow too many empty lines
'no-multiple-empty-lines': [ 'error', { max: 2, maxBOF: 0, maxEOF: 1 } ],

// don't escape characters that don't need to be escaped
'no-useless-escape': 2,

Expand Down
4 changes: 0 additions & 4 deletions eslint/format_eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,6 @@ module.exports = {
// https://eslint.org/docs/rules/no-multi-assign
// 'no-multi-assign': [ 'error' ],

// disallow multiple empty lines, only one newline at the end, and no new lines at the beginning
// https://eslint.org/docs/rules/no-multiple-empty-lines
'no-multiple-empty-lines': [ 'error', { max: 2, maxBOF: 0, maxEOF: 1 } ],

// disallow negated conditions
// https://eslint.org/docs/rules/no-negated-condition
'no-negated-condition': 'off',
Expand Down

0 comments on commit 63e7971

Please sign in to comment.