admin-vben/internal/lint-configs/eslint-config/src/configs/turbo.ts

19 lines
371 B
TypeScript
Raw Normal View History

2024-07-10 14:30:39 +00:00
import type { Linter } from 'eslint';
import { interopDefault } from '../util';
export async function turbo(): Promise<Linter.Config[]> {
2024-07-10 14:30:39 +00:00
const [pluginTurbo] = await Promise.all([
// @ts-expect-error - no types
interopDefault(import('eslint-config-turbo')),
2024-07-10 14:30:39 +00:00
] as const);
return [
{
plugins: {
turbo: pluginTurbo,
},
},
];
}