强制使用一致的类型导入风格。
该规则仅支持对.js/.ts文件进行检查。
// 默认推荐使用import type Foo from '...'
import type { Foo } from 'Foo';
import type Bar from 'Bar';
export type T = Foo;
export const x: Bar = 1; // 默认推荐使用import type Foo from '...'
import { Foo } from 'Foo';
import Bar from 'Bar';
export type T = Foo;
export const x: Bar = 1; plugin:@typescript-eslint/recommended plugin:@typescript-eslint/all
Code Linter代码检查规则的配置指导请参考Code Linter代码检查。