build: migrate formatting pipeline to oxfmt
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user