Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Oct 22, 2020
1 parent ddbab93 commit 20da949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions rules/array-bracket-even-spacing.js
Expand Up @@ -143,13 +143,15 @@ module.exports = {
(options.objectsInArraysException && second.value === '{') ||
(options.arraysInArraysException && second.value === '[') ||
(options.singleElementException && node.elements.length === 1)
? !options.spaced : options.spaced
? !options.spaced
: options.spaced

var closingBracketMustBeSpaced =
(options.objectsInArraysException && penultimate.value === '}') ||
(options.arraysInArraysException && penultimate.value === ']') ||
(options.singleElementException && node.elements.length === 1)
? !options.spaced : options.spaced
? !options.spaced
: options.spaced

// we only care about evenly spaced things
if (options.either) {
Expand Down
3 changes: 2 additions & 1 deletion rules/object-curly-even-spacing.js
Expand Up @@ -136,7 +136,8 @@ module.exports = {
var closingCurlyBraceMustBeSpaced =
(options.arraysInObjectsException && penultimate.value === ']') ||
(options.objectsInObjectsException && penultimate.value === '}')
? !options.spaced : options.spaced
? !options.spaced
: options.spaced

// we only care about evenly spaced things
if (options.either) {
Expand Down

0 comments on commit 20da949

Please sign in to comment.