refactor: 将 unicorn / TypeScript 规则迁移至 oxlint,并完善 oxfmt 配置 (#8067)

* chore: update deps

* chore: update archiver v8

* fix: 还原 vue/html-closing-bracket-newline

* feat: 增加默认配置和配置注释

* feat: 增加oxlint默认插件配置和注释

* refactor: remove unicorn ESLint configuration and update dependencies

- Deleted the unicorn ESLint configuration file from the lint-configs package.
- Removed unicorn configuration from the main index file.
- Updated oxlint-config to include a comprehensive set of unicorn rules.
- Adjusted preferences and vxe-table files to disable specific unicorn rules.
- Removed references to eslint-plugin-unicorn from pnpm-lock.yaml and pnpm-workspace.yaml.

* refactor: 移除 eslint 的 @typescript-eslint/eslint-plugin 依赖,将 TypeScript 配置迁移到 oxlint

* feat: open typeAware

* fix: mac 和linux下报错
This commit is contained in:
xingyu
2026-06-18 16:10:01 +08:00
committed by GitHub
parent 65885ea74b
commit dc3466d77a
24 changed files with 977 additions and 859 deletions

View File

@@ -3,6 +3,6 @@ import type { RouteMeta as IRouteMeta } from './dist/index.d.mts';
import 'vue-router';
declare module 'vue-router' {
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
// oxlint-disable-next-line typescript/no-empty-object-type
interface RouteMeta extends IRouteMeta {}
}

View File

@@ -28,7 +28,7 @@ const _bem = (
const is: {
(name: string): string;
// eslint-disable-next-line @typescript-eslint/unified-signatures
// oxlint-disable-next-line typescript/unified-signatures
(name: string, state: boolean | undefined): string;
} = (name: string, ...args: [] | [boolean | undefined]) => {
const state = args.length > 0 ? args[0] : true;

View File

@@ -1,3 +1,4 @@
/* oxlint-disable unicorn/prefer-export-from */
import type { Preferences } from './types';
import { preferencesManager } from './preferences';

View File

@@ -1,4 +1,4 @@
/* eslint-disable unicorn/no-nested-ternary */
/* oxlint-disable unicorn/no-nested-ternary */
import type { VxeGridProps as VxeTableGridProps } from 'vxe-table';
import type {

View File

@@ -3,7 +3,7 @@ import type { RouteMeta as IRouteMeta } from '@vben-core/typings';
import 'vue-router';
declare module 'vue-router' {
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
// oxlint-disable-next-line typescript/no-empty-object-type
interface RouteMeta extends IRouteMeta {}
}