Skip to content

Commit

Permalink
fix(eslint-plugin): lint - remove isStringLiteral (no longer used)
Browse files Browse the repository at this point in the history
  • Loading branch information
Idan Attias committed Oct 17, 2021
1 parent 2b00d98 commit a57c4a0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/eslint-plugin/src/rules/no-shadow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,6 @@ export default util.createRule<Options, MessageIds>({
return definition.type === AST_NODE_TYPES.ImportDeclaration;
}

function isStringLiteral(
node: TSESTree.Node | null,
): node is TSESTree.StringLiteral {
return (
node?.type === AST_NODE_TYPES.Literal &&
typeof node.value === 'string'
);
}

function isExternalModuleDeclarationWithName(
scope: TSESLint.Scope.Scope,
name: string,
Expand Down

0 comments on commit a57c4a0

Please sign in to comment.