import type { TSESLint , TSESTree } from '@typescript-eslint/experimental-utils' ; export function isIdentifier ( node , ... values ) { return node . type === 'Identifier' && values . some ( value => value === node . name ) ; } export function isReferenceTo ( ref , node ) { return node . type === 'Identifier' && node === ref . identifier ; }