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' ],