From ac7c798f85d69633b1eb189b601ad9e05e291543 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Sun, 8 Sep 2024 22:20:23 +0700 Subject: [PATCH] disable `unicorn/no-magic-array-flat-depth` --- tests/eslint/eslint.config.js | 2 -- tests/unit-global/es.array.flat.js | 1 - 2 files changed, 3 deletions(-) diff --git a/tests/eslint/eslint.config.js b/tests/eslint/eslint.config.js index 101864e42b12..980e1a7eacb3 100644 --- a/tests/eslint/eslint.config.js +++ b/tests/eslint/eslint.config.js @@ -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()` diff --git a/tests/unit-global/es.array.flat.js b/tests/unit-global/es.array.flat.js index 9626f6997973..9e1a5a15c9e7 100644 --- a/tests/unit-global/es.array.flat.js +++ b/tests/unit-global/es.array.flat.js @@ -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 => {