eslint: Fix unicorn/prefer-array-flat.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-05-09 13:44:10 -07:00 committed by Tim Abbott
parent 42abc1b635
commit a284299b85
2 changed files with 1 additions and 2 deletions

View File

@ -99,7 +99,6 @@
"unicorn/no-useless-undefined": "off",
"unicorn/number-literal-case": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-array-flat": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-spread": "off",

View File

@ -54,7 +54,7 @@ export function get_group_typists(group) {
}
export function get_all_typists() {
let typists = [].concat(...Array.from(typist_dct.values()));
let typists = Array.from(typist_dct.values()).flat();
typists = util.sorted_ids(typists);
typists = _.sortedUniq(typists);
return muting.filter_muted_user_ids(typists);