import { JSX } from '@babel/types'; import { VisitorFunction } from '../types'; import { FileTypes } from '../util/file'; export const jsxVisitor: VisitorFunction = (path, state): void => { // Files using JSX need to get the ".tsx" file extension FileTypes.set(state.filename, '.tsx'); };