Skip to content

Commit

Permalink
feat(eslint-plugin): [no-magic-numbers] remove typeof
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk committed Sep 3, 2019
1 parent 56b9d62 commit 4f7be95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/rules/no-magic-numbers.ts
Expand Up @@ -161,7 +161,7 @@ export default util.createRule<Options, MessageIds>({
*/
function isParentTSReadonlyClassProperty(node: TSESTree.Node): boolean {
return (
typeof node.parent !== 'undefined' &&
!!node.parent &&
node.parent.type === AST_NODE_TYPES.ClassProperty &&
!!node.parent.readonly
);
Expand Down

0 comments on commit 4f7be95

Please sign in to comment.