fix: align oxlint compat config typing
parent
20b4f5c99f
commit
771277d5d9
|
|
@ -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],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue