chore(web): config oxc

This commit is contained in:
2026-03-10 11:17:14 +08:00
parent 3ab225d76b
commit 102e065979
4 changed files with 57 additions and 3 deletions

6
.oxfmtrc.json Normal file
View File

@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": [
"hardware/**",
]
}

42
.oxlintrc.json Normal file
View File

@@ -0,0 +1,42 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": null,
"categories": {},
"rules": {},
"settings": {
"jsx-a11y": {
"polymorphicPropName": null,
"components": {},
"attributes": {}
},
"next": {
"rootDir": []
},
"react": {
"formComponents": [],
"linkComponents": [],
"version": null,
"componentWrapperFunctions": []
},
"jsdoc": {
"ignorePrivate": false,
"ignoreInternal": false,
"ignoreReplacesDocs": true,
"overrideReplacesDocs": true,
"augmentsExtendsReplacesDocs": false,
"implementsReplacesDocs": false,
"exemptDestructuredRootsFromChecks": false,
"tagNamePreference": {}
},
"vitest": {
"typecheck": false
}
},
"env": {
"builtin": true
},
"globals": {},
"ignorePatterns": [
"hardware/**",
]
}

View File

@@ -1,5 +1,5 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono, Noto_Sans, Saira } from "next/font/google";
import { Geist_Mono, Noto_Sans, Saira } from "next/font/google";
import "./globals.css";
const fontSaira = Saira({

View File

@@ -11,7 +11,11 @@
"build:web": "pnpm --filter helios-web build",
"start:web": "pnpm --filter helios-web start",
"dev": "run-p dev:csms dev:web",
"build": "run-p build:csms build:web"
"build": "run-p build:csms build:web",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"fmt": "oxfmt",
"fmt:check": "oxfmt --check"
},
"keywords": [
"ev",
@@ -25,6 +29,8 @@
"license": "ISC",
"packageManager": "pnpm@10.18.2",
"devDependencies": {
"npm-run-all": "^4.1.5"
"npm-run-all": "^4.1.5",
"oxfmt": "^0.36.0",
"oxlint": "^1.52.0"
}
}