diff --git a/.oxlintrc.json b/.oxlintrc.json deleted file mode 100644 index 7b5e001..0000000 --- a/.oxlintrc.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "$schema": "./node_modules/oxlint/configuration_schema.json", - "extends": ["config:recommended"], - "plugins": ["import", "typescript", "unicorn"], - "rules": { - "no-console": "off", - "no-unused-vars": "off" - }, - "env": { - "es6": true - }, - "globals": { - "foo": "readonly" - }, - "ignorePatterns": [ - "node_modules", - "dist", - "src/static/**", - "src/uni_modules/**", - "vite.config.ts", - "uno.config.ts", - "pages.config.ts", - "manifest.config.ts" - ], - "settings": {}, - "overrides": [ - { - "files": ["*.test.ts", "*.spec.ts"], - "rules": { - "@typescript-eslint/no-explicit-any": "off" - } - } - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json index b0f278a..8cdc821 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -53,7 +53,7 @@ "README.md": "index.html,favicon.ico,robots.txt,CHANGELOG.md", "pages.config.ts": "manifest.config.ts,openapi-ts-request.config.ts", "package.json": "pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitattributes,.gitignore,.gitpod.yml,CNAME,.npmrc,.browserslistrc", - ".oxlintrc.json": "tsconfig.json,.commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*" + "eslint.config.mjs": "tsconfig.json,.commitlintrc.*,.prettier*,.editorconfig,.commitlint.cjs,.eslint*" }, // 保存的时候自动格式化 diff --git a/package.json b/package.json index e7130fc..ebaad85 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,6 @@ "husky": "^9.1.7", "lint-staged": "^15.2.10", "openapi-ts-request": "^1.1.2", - "oxlint": "1.0.0", "postcss": "^8.4.49", "postcss-html": "^1.7.0", "postcss-scss": "^4.0.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e7e789..b4b9e85 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -191,9 +191,6 @@ importers: openapi-ts-request: specifier: ^1.1.2 version: 1.1.2(@types/node@20.17.9)(@vue/compiler-sfc@3.5.15)(chokidar@3.6.0)(typescript@5.7.2) - oxlint: - specifier: 1.0.0 - version: 1.0.0 postcss: specifier: ^8.4.49 version: 8.4.49 @@ -1934,50 +1931,6 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@oxlint/darwin-arm64@1.0.0': - resolution: {integrity: sha512-Ei8wLh65Th/si5EY6mfQIXVpdXbJWOoh56FaxxPgVxTeJaj3NHUIlxICHkvTZ5dz8bnOFcbS/+9MaW8Qkzfm9g==} - cpu: [arm64] - os: [darwin] - - '@oxlint/darwin-x64@1.0.0': - resolution: {integrity: sha512-dbdtQ+rJTUb4jFKTzV+j08yYcR8lZssLF10n7MggK/jI7pBtoQN04cupzYdkxOWSy6uDXjDmWYFDIqlTqV7zOg==} - cpu: [x64] - os: [darwin] - - '@oxlint/linux-arm64-gnu@1.0.0': - resolution: {integrity: sha512-71wy9zMxsAeRhCFQjUkDLT8N5tm10L5FxNxsUcEsezgM187X9tPGP1gwlFpYig7F+bg2X1dijFuTA/FSe0YpKg==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@oxlint/linux-arm64-musl@1.0.0': - resolution: {integrity: sha512-UbD4+2k7aGZOFtKK/yeESX7Fv0w9gQbcjrjr1HGY7QOYg7XlFlqzycZdPS6XbAuKA5oOXFpafaYOD4AyX3p2AA==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@oxlint/linux-x64-gnu@1.0.0': - resolution: {integrity: sha512-0NXWqsm65I3VaLgADW4y9r7Pwurqgs2fr1lqoTyTIlidD18LQ3UMAWp8NzBPMCYzw8c/rTgOzsFf0gLtxzMtwg==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@oxlint/linux-x64-musl@1.0.0': - resolution: {integrity: sha512-AY1NLnVQI+tBeuaB8KCriWfiD6O1zZFAQHphRDcZiqSz4mauNq9FFuffW0N9RSR9hYttGr0UVdQ6eK72RhzOYg==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@oxlint/win32-arm64@1.0.0': - resolution: {integrity: sha512-X9y2KAdoqT/jy/sITGDZNMJHJAmhDhofItBnCf2DWS1HPakdtCAKGX9KMx6SivTbtPn1+JpZgfHn4Y7rNMvujQ==} - cpu: [arm64] - os: [win32] - - '@oxlint/win32-x64@1.0.0': - resolution: {integrity: sha512-x2eQwZCfRUi6GG0lhRuC54O6TK2uW7UbIvERh83vPi0ftd+rtGUuJauNdyC+pPx+iwFToFVet43/5MBMu4bMWg==} - cpu: [x64] - os: [win32] - '@pkgr/core@0.2.7': resolution: {integrity: sha512-YLT9Zo3oNPJoBjBc4q8G2mjU4tqIbf5CEOORbUUr48dCD9q3umJ3IPlVqOqDakPfd2HuwccBaqlGhN4Gmr5OWg==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} @@ -5156,11 +5109,6 @@ packages: resolution: {integrity: sha512-Sv0OvhPiMutICiwORAUefv02DCPb62IelBmo8ZsSrRHyI3FStqIWZvjqDkvtjU+lcujo7UNir+dCwKSqlEQ/5w==} engines: {node: '>=10', yarn: ^1.22.4} - oxlint@1.0.0: - resolution: {integrity: sha512-yyeryHnd21wPBLBEF4Uf8hvzJlftrIGHxyUaqFaP2JYiZ9cbiColygZhrezvv/Z/aThCmYu3j6iJMxlVPxNt6g==} - engines: {node: '>=8.*'} - hasBin: true - p-cancelable@2.1.1: resolution: {integrity: sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==} engines: {node: '>=8'} @@ -9067,30 +9015,6 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@oxlint/darwin-arm64@1.0.0': - optional: true - - '@oxlint/darwin-x64@1.0.0': - optional: true - - '@oxlint/linux-arm64-gnu@1.0.0': - optional: true - - '@oxlint/linux-arm64-musl@1.0.0': - optional: true - - '@oxlint/linux-x64-gnu@1.0.0': - optional: true - - '@oxlint/linux-x64-musl@1.0.0': - optional: true - - '@oxlint/win32-arm64@1.0.0': - optional: true - - '@oxlint/win32-x64@1.0.0': - optional: true - '@pkgr/core@0.2.7': {} '@polka/url@1.0.0-next.29': {} @@ -13033,17 +12957,6 @@ snapshots: dependencies: lcid: 3.1.1 - oxlint@1.0.0: - optionalDependencies: - '@oxlint/darwin-arm64': 1.0.0 - '@oxlint/darwin-x64': 1.0.0 - '@oxlint/linux-arm64-gnu': 1.0.0 - '@oxlint/linux-arm64-musl': 1.0.0 - '@oxlint/linux-x64-gnu': 1.0.0 - '@oxlint/linux-x64-musl': 1.0.0 - '@oxlint/win32-arm64': 1.0.0 - '@oxlint/win32-x64': 1.0.0 - p-cancelable@2.1.1: {} p-limit@2.3.0: