feat: 添加 oxlint 配置文件并更新 lint 脚本
This commit is contained in:
8
.oxlintrc.json
Normal file
8
.oxlintrc.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-new-array.html
|
||||
// "rules": {
|
||||
// "unicorn/no-new-array": "warn"
|
||||
// },
|
||||
"ignorePatterns": ["src/shadcn/**", "src/components/InspiraUI/**"]
|
||||
}
|
@ -20,7 +20,6 @@ configureVueProject({ scriptLangs: ['ts', 'tsx', 'js', 'jsx'] });
|
||||
|
||||
export default defineConfigWithVueTs(
|
||||
includeIgnoreFile(path.resolve(__dirname, '.gitignore')),
|
||||
// npx oxlint . --fix -D correctness --ignore-pattern '/src/components/InspiraUI/*'
|
||||
{ ignores: ['typed-router.d.ts', 'src/shadcn/**', 'src/components/InspiraUI/**'] },
|
||||
|
||||
{
|
||||
|
@ -12,7 +12,9 @@
|
||||
"format": "prettier --write src/",
|
||||
"type-check": "vue-tsc --build",
|
||||
"lint": "run-s lint:*",
|
||||
"_lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
|
||||
"_oxlint_cfg": "oxlint . --fix --ignore-path=.gitignore --print-config",
|
||||
"__oxlint_-D": "oxlint . --fix --deny=correctness",
|
||||
"lint:oxlint": "oxlint . --fix",
|
||||
"lint:eslint": "eslint . --fix",
|
||||
"prepare": "husky",
|
||||
"playwright": "playwright test",
|
||||
|
Reference in New Issue
Block a user