Bug Report
🔎 Search Terms
import type javascript error
🕗 Version & Regression Information
- This is the behavior in every version I tried
⏯ Playground Link
Playground link with relevant code
💻 Code
// Not flagged
import { type ComponentType } from 'react';
// Flagged
import type { ReactNode } from 'react';
🙁 Actual behavior
import { type X } is not flagged as "can only be used in TypeScript files" but crashes at runtime
🙂 Expected behavior
It should be an error
Bug Report
🔎 Search Terms
import type javascript error
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
import { type X }is not flagged as "can only be used in TypeScript files" but crashes at runtime🙂 Expected behavior
It should be an error