Skip to content

Commit

Permalink
Promote no-multi-spaces to main rules, see phetsims/phet-info#156
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 26, 2021
1 parent 571a4bc commit 175d5bb
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 @@ -138,6 +138,9 @@ module.exports = {
// disallow assignment within variable declaration, see https://github.com/phetsims/chipper/issues/794
'no-multi-assign-on-declaration': 2,

// get rid of extra spaces within lines of code
'no-multi-spaces': [ 'error', { ignoreEOLComments: true } ],

// permit only one var declaration per line, see #390
'one-var': [
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 @@ -259,10 +259,6 @@ module.exports = {
// https://eslint.org/docs/rules/no-unneeded-ternary
'no-unneeded-ternary': [ 'error', { defaultAssignment: false } ],

// get rid of extra spaces within lines of code
// https://eslint.org/docs/rules/no-multi-spaces
'no-multi-spaces': 'error',

// enforce "same line" or "multiple line" on object properties.
// https://eslint.org/docs/rules/object-property-newline
// 'object-property-newline': [ 'error', {
Expand Down

0 comments on commit 175d5bb

Please sign in to comment.