Skip to content

Commit

Permalink
Move array-bracket-spacing from formatting rules to main rules, see p…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid authored and zepumph committed Oct 22, 2024
1 parent c7526f2 commit 1939203
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion eslint/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions eslint/format_eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ],
Expand Down

0 comments on commit 1939203

Please sign in to comment.