Skip to content

Commit

Permalink
Make unicorn/prefer-flat-map not enabled by default in the recommen…
Browse files Browse the repository at this point in the history
…ded config

Fixes #771
  • Loading branch information
sindresorhus committed Jun 15, 2020
1 parent 7781c3f commit 655220a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -51,7 +51,8 @@ module.exports = {
'unicorn/prefer-array-find': 'error',
'unicorn/prefer-dataset': 'error',
'unicorn/prefer-event-key': 'error',
'unicorn/prefer-flat-map': 'error',
// TODO: Enable this by default when targeting Node.js 12.
'unicorn/prefer-flat-map': 'off',
'unicorn/prefer-includes': 'error',
'unicorn/prefer-modern-dom-apis': 'error',
'unicorn/prefer-negative-index': 'error',
Expand Down

0 comments on commit 655220a

Please sign in to comment.