From 7b6d6142d1c79f10a794e3fa3af22bdd76d2b2b3 Mon Sep 17 00:00:00 2001 From: zepumph Date: Fri, 26 Feb 2021 11:22:13 -0900 Subject: [PATCH] move space-before-function-paren, https://github.com/phetsims/phet-info/issues/156 --- eslint/.eslintrc.js | 8 ++++++++ eslint/format_eslintrc.js | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/eslint/.eslintrc.js b/eslint/.eslintrc.js index cf60f185..1e68993d 100644 --- a/eslint/.eslintrc.js +++ b/eslint/.eslintrc.js @@ -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' ], diff --git a/eslint/format_eslintrc.js b/eslint/format_eslintrc.js index 5b659895..e477ef19 100644 --- a/eslint/format_eslintrc.js +++ b/eslint/format_eslintrc.js @@ -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