Skip to content

Commit

Permalink
chore: typecheck fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha committed Apr 2, 2020
1 parent 69b5aae commit 08ef749
Show file tree
Hide file tree
Showing 2 changed files with 343 additions and 50 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/rules/no-invalid-this.ts
Expand Up @@ -47,7 +47,7 @@ export default createRule<Options, MessageIds>({
...rules,
FunctionDeclaration(node: TSESTree.FunctionDeclaration): void {
const names = node?.params.map(
(param: TSESTree.Parameter) => param?.name,
(param: TSESTree.Identifier) => param?.name,
);
argList.push(names);
// baseRule's work
Expand All @@ -60,7 +60,7 @@ export default createRule<Options, MessageIds>({
},
FunctionExpression(node: TSESTree.FunctionExpression): void {
const names = node?.params.map(
(param: TSESTree.Parameter) => param?.name,
(param: TSESTree.Identifier) => param.name,
);
argList.push(names);
// baseRule's work
Expand Down

0 comments on commit 08ef749

Please sign in to comment.