Skip to content

Commit

Permalink
add brace-style to general rules, phetsims/phet-info#156
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 26, 2021
1 parent b14b068 commit b8c2615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions eslint/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ module.exports = {
// Custom rule for ensuring that images and text use scenery node
'no-html-constructors': 2,

// enforce one true brace style
'brace-style': [ 'error', 'stroustrup', { allowSingleLine: true } ],

// Custom rule for avoiding instanceof Array.
'no-instanceof-array': 2,

Expand Down
3 changes: 0 additions & 3 deletions eslint/format_eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ module.exports = {
// https://eslint.org/docs/rules/block-spacing
'block-spacing': [ 'error', 'always' ],

// enforce one true brace style
'brace-style': [ 'error', 'stroustrup', { allowSingleLine: true } ],

// enforce or disallow capitalization of the first letter of a comment
// https://eslint.org/docs/rules/capitalized-comments
'capitalized-comments': [ 'off', 'never', {
Expand Down

0 comments on commit b8c2615

Please sign in to comment.