From 655220a411d36ca62cbe6d294293705196efc2d3 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 15 Jun 2020 15:46:47 +0800 Subject: [PATCH] Make `unicorn/prefer-flat-map` not enabled by default in the recommended config Fixes #771 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7242a47191..21ef42c3f6 100644 --- a/index.js +++ b/index.js @@ -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',