Skip to content

Commit

Permalink
[eslint config] [base] [breaking] enable prefer-object-spread
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 10, 2019
1 parent 11ede40 commit 88e71e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/eslint-config-airbnb-base/rules/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,7 @@ module.exports = {

// Prefer use of an object spread over Object.assign
// https://eslint.org/docs/rules/prefer-object-spread
// TODO: semver-major (eslint 5): enable
'prefer-object-spread': 'off',
'prefer-object-spread': 'error',

// require quotes around object literal property names
// https://eslint.org/docs/rules/quote-props.html
Expand Down

0 comments on commit 88e71e6

Please sign in to comment.