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';
|
import oxlint from 'eslint-plugin-oxlint';
|
||||||
|
|
||||||
export async function oxcCompat(): Promise<Linter.Config[]> {
|
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