Files
novalon-website/config/lint/.eslintrc.json
T
张翔 c9de806109 chore(config): 更新项目构建与测试配置
- 升级 Next.js 配置,移除 webpackBuildWorker 实验特性
- 更新 Tailwind 设计令牌系统,对齐新品牌色与字体
- 配置 TypeScript strict 模式 (noUncheckedIndexedAccess)
- 更新 ESLint 规则与 Jest 测试配置
- 添加 prisma.config.ts 数据库配置
2026-07-07 06:51:48 +08:00

64 lines
1.5 KiB
JSON

{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"plugins": ["@typescript-eslint", "react", "react-hooks"],
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": [
".next/**",
"out/**",
"build/**",
"dist/**",
"node_modules/**",
"coverage/**",
"scripts/**",
"config/test/**",
"**/_archive/**"
],
"globals": {
"jest": "readonly"
},
"rules": {
"react/react-in-jsx-scope": "off",
"react/no-unescaped-entities": "error",
"react/jsx-no-target-blank": "error",
"react/self-closing-comp": "error",
"react/display-name": "off",
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-empty-object-type": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"prefer-const": "error",
"no-var": "error",
"eqeqeq": ["error", "always"],
"curly": ["error", "multi-line"],
"no-throw-literal": "error",
"prefer-promise-reject-errors": "error",
"react-hooks/set-state-in-effect": "warn"
}
}