diff --git a/eslint.config.js b/eslint.config.js index 281e99135..a08ec294e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -334,7 +334,6 @@ const configs = [ "unicorn/no-global-object-property-assignment": "off", "unicorn/prefer-await": "off", "unicorn/no-top-level-side-effects": "off", - "unicorn/prefer-array-from-map": "off", }, linterOptions: { diff --git a/tests/format/markdown/splitCjkText/format.test.js b/tests/format/markdown/splitCjkText/format.test.js index cd2dbc533..a80abe149 100644 --- a/tests/format/markdown/splitCjkText/format.test.js +++ b/tests/format/markdown/splitCjkText/format.test.js @@ -1,9 +1,11 @@ const snippets = [ { name: "Should ignore single trailing space after han before New Line before han", - code: Array.from({ length: 6 }) + code: Array.from( + { length: 6 }, // less "文" <= [..., "文...文 ", "文...文", ...] => more "文" - .map((_, i) => ["文".repeat(39 + (i >> 1)), i & 1 ? "" : " "]) + (_, i) => ["文".repeat(39 + (i >> 1)), i & 1 ? "" : " "], + ) // ["", "", ...] .reduce( (previousInputLines, [base, space]) => [