mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-04-23 00:38:34 +08:00
fix: align oxlint compat config typing
This commit is contained in:
@@ -5,5 +5,9 @@ import { mergeOxlintConfigs, oxlintConfig } from '@vben/oxlint-config';
|
||||
import oxlint from 'eslint-plugin-oxlint';
|
||||
|
||||
export async function oxcCompat(): Promise<Linter.Config[]> {
|
||||
return oxlint.buildFromOxlintConfig(mergeOxlintConfigs(oxlintConfig));
|
||||
const { extends: _extends, ...config } = mergeOxlintConfigs(oxlintConfig);
|
||||
|
||||
return oxlint.buildFromOxlintConfig(
|
||||
config as Parameters<typeof oxlint.buildFromOxlintConfig>[0],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user