Skip to content

refactor node-utils type guards to use the AST_NODE_TYPES enum #203

Closed
@gndelia

Description

@gndelia

I found this enum which contains all the types we've been hardcoding in the type guards in node-utils.ts

image

The import for that enum

import { AST_NODE_TYPES } from '@typescript-eslint/experimental-utils';

We should replace all the hardcoded values in each type guard function (isAwaitExpression, isIdentifier, and so on) for the corresponding values from that enum

Originally posted in #201 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions