From 193920332f10997aacb7188c8912b22fe17fa08c Mon Sep 17 00:00:00 2001 From: samreid Date: Fri, 26 Feb 2021 09:19:29 -0700 Subject: [PATCH] Move array-bracket-spacing from formatting rules to main rules, see https://github.com/phetsims/phet-info/issues/150 --- eslint/.eslintrc.js | 5 ++++- eslint/format_eslintrc.js | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eslint/.eslintrc.js b/eslint/.eslintrc.js index 13df2eb9..d85bae70 100644 --- a/eslint/.eslintrc.js +++ b/eslint/.eslintrc.js @@ -174,7 +174,10 @@ module.exports = { // disallow parens surrounding single args in arrow functions 'arrow-parens': [ 2, 'as-needed' ], - 'no-trailing-spaces': [ 2, { skipBlankLines: true, ignoreComments: true } ] + 'no-trailing-spaces': [ 2, { skipBlankLines: true, ignoreComments: true } ], + + // enforce spacing inside array brackets + 'array-bracket-spacing': [ 'error', 'always' ] // // // disallow certain syntax forms diff --git a/eslint/format_eslintrc.js b/eslint/format_eslintrc.js index 80097c47..2ff7d529 100644 --- a/eslint/format_eslintrc.js +++ b/eslint/format_eslintrc.js @@ -36,9 +36,6 @@ module.exports = { // TODO: enable? semver-major 'array-element-newline': [ 'off', { multiline: true, minItems: 3 } ], - // enforce spacing inside array brackets - 'array-bracket-spacing': [ 'error', 'always' ], - // enforce spacing inside single-line blocks // https://eslint.org/docs/rules/block-spacing 'block-spacing': [ 'error', 'always' ],