2024-07-10 14:30:39 +00:00
|
|
|
import type { Linter } from 'eslint';
|
|
|
|
|
2024-08-02 14:18:46 +00:00
|
|
|
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
|
2024-08-02 14:18:46 +00:00
|
|
|
interopDefault(import('eslint-config-turbo')),
|
2024-07-10 14:30:39 +00:00
|
|
|
] as const);
|
|
|
|
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
plugins: {
|
|
|
|
turbo: pluginTurbo,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|