Skip to content

Commit 655220a

Browse files
committed
Make unicorn/prefer-flat-map not enabled by default in the recommended config
Fixes #771
1 parent 7781c3f commit 655220a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ module.exports = {
5151
'unicorn/prefer-array-find': 'error',
5252
'unicorn/prefer-dataset': 'error',
5353
'unicorn/prefer-event-key': 'error',
54-
'unicorn/prefer-flat-map': 'error',
54+
// TODO: Enable this by default when targeting Node.js 12.
55+
'unicorn/prefer-flat-map': 'off',
5556
'unicorn/prefer-includes': 'error',
5657
'unicorn/prefer-modern-dom-apis': 'error',
5758
'unicorn/prefer-negative-index': 'error',

0 commit comments

Comments
 (0)