
- 添加 .eslintignore 文件并配置忽略规则 - 更新 .oxlintrc.json 的 ignorePatterns 配置 - 简化 package.json 中的 lint 命令 - 调整 .vscode/settings.json 的文件关联
26 lines
556 B
JSON
26 lines
556 B
JSON
{
|
|
"$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/**"],
|
|
"settings": {},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.test.ts", "*.spec.ts"],
|
|
"rules": {
|
|
"@typescript-eslint/no-explicit-any": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|