Skip to content

Commit

Permalink
Add lint rule to prevent trailing spaces, see phetsims/chipper#734
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid authored and zepumph committed Oct 22, 2024
1 parent 56ea061 commit fdaa1c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eslint/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ module.exports = {
'phet-object-shorthand': 2,

// disallow parens surrounding single args in arrow functions
'arrow-parens': [ 2, 'as-needed' ]
'arrow-parens': [ 2, 'as-needed' ],

'no-trailing-spaces': [ 2, { skipBlankLines: true, ignoreComments: true } ]
},
env: {
browser: true,
Expand Down

0 comments on commit fdaa1c3

Please sign in to comment.