Skip to content

Commit

Permalink
move space-before-function-paren, phetsims/phet-info#156
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 22, 2024
1 parent 46ba4fe commit 7b6d614
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions eslint/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ module.exports = {
// require or disallow space before blocks
'space-before-blocks': 'error',

// require or disallow space before function opening parenthesis
// https://eslint.org/docs/rules/space-before-function-paren
'space-before-function-paren': [ 'error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
} ],

// require or disallow spaces inside parentheses
'space-in-parens': [ 'error', 'always' ],

Expand Down
8 changes: 0 additions & 8 deletions eslint/format_eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,6 @@ module.exports = {
// sort variables within the same declaration block
'sort-vars': 'off',

// require or disallow space before function opening parenthesis
// https://eslint.org/docs/rules/space-before-function-paren
'space-before-function-paren': [ 'error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
} ],

// require or disallow a space immediately following the // or /* in a comment
// https://eslint.org/docs/rules/spaced-comment
// TODO: https://github.com/phetsims/phet-info/issues/150
Expand Down

0 comments on commit 7b6d614

Please sign in to comment.