From aa7857bf70b1af3824c6f8bfc28874e602147958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20B=C3=B6hm?= Date: Mon, 26 Sep 2022 07:30:16 +0200 Subject: [PATCH] feat(eslint): disable `no-array-for-each` rule --- .changeset/clean-singers-press.md | 5 +++++ packages/eslint-config/src/base.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/clean-singers-press.md diff --git a/.changeset/clean-singers-press.md b/.changeset/clean-singers-press.md new file mode 100644 index 0000000..ccba872 --- /dev/null +++ b/.changeset/clean-singers-press.md @@ -0,0 +1,5 @@ +--- +'@mheob/eslint-config': minor +--- + +Disable `unicorn/no-array-for-each` rule as default diff --git a/packages/eslint-config/src/base.ts b/packages/eslint-config/src/base.ts index 91a2d7e..6ace55f 100644 --- a/packages/eslint-config/src/base.ts +++ b/packages/eslint-config/src/base.ts @@ -9,6 +9,7 @@ const config: Linter.Config = { 'no-implicit-coercion': ['error', { allow: ['!!', '+', '~'] }], 'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], 'unicorn/import-index': 'error', + 'unicorn/no-array-for-each': 'off', 'unicorn/prevent-abbreviations': [ 'error', {