build: migrate formatting pipeline to oxfmt

This commit is contained in:
xingyu4j
2026-03-13 21:56:08 +08:00
parent de0181e0d9
commit 6dabb848a5
22 changed files with 318 additions and 180 deletions

View File

@@ -8,7 +8,6 @@ export * from './node';
export * from './oxlint';
export * from './perfectionist';
export * from './pnpm';
export * from './prettier';
export * from './turbo';
export * from './typescript';
export * from './unicorn';

View File

@@ -1,17 +0,0 @@
import type { Linter } from 'eslint';
import { interopDefault } from '../util';
export async function prettier(): Promise<Linter.Config[]> {
const pluginPrettier = await interopDefault(import('eslint-plugin-prettier'));
return [
{
plugins: {
prettier: pluginPrettier,
},
rules: {
'prettier/prettier': 'error',
},
},
];
}

View File

@@ -11,7 +11,6 @@ import {
oxcCompat,
perfectionist,
pnpm,
prettier,
turbo,
typescript,
unicorn,
@@ -33,7 +32,6 @@ async function defineConfig(config: FlatConfig[] = []) {
vue(),
javascript(),
ignores(),
prettier(),
typescript(),
jsonc(),
disableds(),