codernew-api-frontend/.eslintrc
gaoziman 37dd759ff9 chore(配置): 添加代码规范和格式化配置
- 配置 ESLint 代码检查规则和忽略文件
- 配置 Prettier 代码格式化规则
- 配置 StyleLint 样式检查规则和忽略文件
- 配置 Husky Git hooks 实现提交前自动检查
2025-11-05 09:46:41 +08:00

35 lines
673 B
Plaintext

{
"root": true,
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"settings": {
"react": {
"version": "16.8"
}
},
"plugins": ["react", "babel", "@typescript-eslint/eslint-plugin"],
"rules": {
"react/display-name": 0,
"react/prop-types": 0
}
}