- 配置 ESLint 代码检查规则和忽略文件 - 配置 Prettier 代码格式化规则 - 配置 StyleLint 样式检查规则和忽略文件 - 配置 Husky Git hooks 实现提交前自动检查
35 lines
673 B
Plaintext
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
|
|
}
|
|
}
|