Skip to content

Commit d6d72ce

Browse files
committed
stop using as
1 parent a5eef2b commit d6d72ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules/converters/space-before-function-paren.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export const convertSpaceBeforeFunctionParen: RuleConverter = tslintRule => {
1414
.map(option => `Option "${option}" is not supported by ESLint.`);
1515
const filtered = Object.keys(argument)
1616
.filter(option => SUPPORTED_OPTIONS.includes(option))
17-
.reduce((obj, option) => {
17+
.reduce<Record<string, "always" | "never">>((obj, option) => {
1818
return { ...obj, [option]: argument[option] };
19-
}, {} as { [key: string]: "always" | "never" });
19+
}, {});
2020
return {
2121
rules: [
2222
{

0 commit comments

Comments
 (0)