From b61f976cacd9f313a1e9197ff6ce3382c8d140db Mon Sep 17 00:00:00 2001 From: "David J. Bradshaw" Date: Wed, 29 Apr 2020 15:46:46 +0100 Subject: [PATCH] Disable array-func/prefer-array-from --- README.md | 8 ++++++++ rules/array-func.js | 3 +++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 5873a2d..33264d9 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,14 @@ The following rules are disabled due to them being considered unduely restrictiv - jest/no-disabled-tests - react-redux/prefer-separate-component-file - redux-saga/no-unhandled-errors +- lodash/prefer over native rules +- lodash-fp/use-fp + +The following rules are disabled due to clashing with other plugins + +- array-func/prefer-array-from +- import/order +- sort-imports ## License diff --git a/rules/array-func.js b/rules/array-func.js index 2029fab..2963fd0 100644 --- a/rules/array-func.js +++ b/rules/array-func.js @@ -2,6 +2,9 @@ module.exports = { plugins: ['array-func'], extends: ['plugin:array-func/recommended'], rules: { + // Rule disabled due to clash with Unicorn + 'array-func/prefer-array-from': 'off', + // Rules not in recommended config 'array-func/prefer-flat': 0, 'array-func/prefer-flat-map': 0,