Skip to content

Commit

Permalink
feat(eslint): disable no-array-for-each rule (#59)
Browse files Browse the repository at this point in the history
Disable `unicorn/no-array-for-each` rule by default can help writing cleaner code.
  • Loading branch information
mheob committed Sep 26, 2022
1 parent 7a39ce7 commit ec5e9e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-singers-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mheob/eslint-config': minor
---

Disable `unicorn/no-array-for-each` rule as default
1 change: 1 addition & 0 deletions packages/eslint-config/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand Down

0 comments on commit ec5e9e3

Please sign in to comment.