File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ const baseConfig = {
5353 "etc/no-implicit-any-catch" : "error" ,
5454 "filenames/match-regex" : "off" ,
5555 "filenames/match-regexp" : "off" ,
56- "func-style" : "off" ,
5756 "i18n-text/no-en" : "off" ,
5857 "no-invalid-this" : "off" ,
5958 "no-console" : "off" ,
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ export function assertNever(value: never): never {
2727/**
2828 * Use to perform array filters where the predicate is asynchronous.
2929 */
30- export const asyncFilter = async function < T > (
30+ export async function asyncFilter < T > (
3131 arr : T [ ] ,
3232 predicate : ( arg0 : T ) => Promise < boolean > ,
3333) {
3434 const results = await Promise . all ( arr . map ( predicate ) ) ;
3535 return arr . filter ( ( _ , index ) => results [ index ] ) ;
36- } ;
36+ }
3737
3838/**
3939 * This regex matches strings of the form `owner/repo` where:
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { expect } from "@jest/globals";
22import type { MatcherFunction } from "expect" ;
33import { pathsEqual } from "../../src/common/files" ;
44
5+ // eslint-disable-next-line func-style -- We need to set the type of this function
56const toEqualPath : MatcherFunction < [ expectedPath : unknown ] > = function (
67 actual ,
78 expectedPath ,
You can’t perform that action at this time.
0 commit comments