Commit 214a7b64 by mazhenxiao

eslint

1 parent 8206018e
const eslintrc = { const eslintrc = {
extends: [ extends: [
//'eslint-config-airbnb', // 'eslint-config-airbnb',
'plugin:@typescript-eslint/recommended' 'plugin:@typescript-eslint/recommended'
], ],
env: { env: {
......
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
"gitHooks": { "gitHooks": {
"pre-commit": "lint-staged" "pre-commit": "lint-staged"
}, },
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": { "lint-staged": {
"*.{js,jsx,less,md,json}": [ "*.{js,jsx,less,md,json}": [
"prettier --write" "prettier --write"
...@@ -37,6 +42,7 @@ ...@@ -37,6 +42,7 @@
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-plugin-babel": "^5.3.1", "eslint-plugin-babel": "^5.3.1",
"eslint-plugin-react": "^7.24.0", "eslint-plugin-react": "^7.24.0",
"husky": "^7.0.2",
"lint-staged": "^10.0.7", "lint-staged": "^10.0.7",
"prettier": "^2.2.0", "prettier": "^2.2.0",
"typescript": "^4.1.2", "typescript": "^4.1.2",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!