Skip to content

Commit

Permalink
disable unicorn/no-magic-array-flat-depth
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Sep 8, 2024
1 parent 461733a commit ac7c798
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions tests/eslint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,6 @@ const base = {
'unicorn/no-length-as-slice-end': ERROR,
// disallow `if` statements as the only statement in `if` blocks without `else`
'unicorn/no-lonely-if': ERROR,
// disallow a magic number as the depth argument in `Array#flat`
'unicorn/no-magic-array-flat-depth': ERROR,
// disallow negated expression in equality check
'unicorn/no-negation-in-equality-check': ERROR,
// enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`
Expand Down
1 change: 0 additions & 1 deletion tests/unit-global/es.array.flat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-magic-array-flat-depth -- testing */
import { DESCRIPTORS, STRICT } from '../helpers/constants.js';

QUnit.test('Array#flat', assert => {
Expand Down

0 comments on commit ac7c798

Please sign in to comment.