Skip to content

Commit

Permalink
enhancement/24-add-husky-and-other-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gataniel committed Apr 10, 2020
1 parent bf95c5a commit a805e22
Show file tree
Hide file tree
Showing 2 changed files with 213 additions and 0 deletions.
199 changes: 199 additions & 0 deletions kafka-ui-react-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions kafka-ui-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,23 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"lint": "esprint check",
"lint:fix": "esprint check --fix",
"test": "react-scripts test",
"eject": "react-scripts eject",
"mock": "node ./mock/index.js"
},
"husky": {
"hooks": {
"pre-commit": "yarn tsc --noEmit && lint-staged"
}
},
"lint-staged": {
"*.{js,ts,jsx,tsx}": [
"eslint -c .eslintrc.json --fix",
"git add",
]
},
"eslintConfig": {
"extends": "react-app"
},
Expand All @@ -68,6 +81,7 @@
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^2.5.1",
"husky": "^4.2.5",
"prettier": "^2.0.4"
}
}

0 comments on commit a805e22

Please sign in to comment.