diff options
Diffstat (limited to 'tools/eslint/lib/rules/object-curly-spacing.js')
-rw-r--r-- | tools/eslint/lib/rules/object-curly-spacing.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eslint/lib/rules/object-curly-spacing.js b/tools/eslint/lib/rules/object-curly-spacing.js index 11224bbdd1..e5dfb8d036 100644 --- a/tools/eslint/lib/rules/object-curly-spacing.js +++ b/tools/eslint/lib/rules/object-curly-spacing.js @@ -171,7 +171,7 @@ module.exports = { closingCurlyBraceMustBeSpaced = ( options.arraysInObjectsException && penultimateType === "ArrayExpression" || - options.objectsInObjectsException && penultimateType === "ObjectExpression" + options.objectsInObjectsException && (penultimateType === "ObjectExpression" || penultimateType === "ObjectPattern") ) ? !options.spaced : options.spaced; lastSpaced = sourceCode.isSpaceBetweenTokens(penultimate, last); |