I have eslint rule to fix any import with type inside curly braces i.e
import { type Rule } from 'module';
as
import type { Rule } from 'module';
when i run test case it doesn't even reach my eslint-rule and even fails initially saying "A fatal parsing error occurred: Parsing error: Unexpected token Rule" and
iam using "parser": "@typescript-eslint/parser" and
const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 2021, sourceType: 'module' } }); in test cases.
Can you share your thoughts regarding this issue. Thanks
Latest comments (0)