Feat: Lerna integration with husky for precommit checks (#57)

* feat: Lerna integration with husky

* Lint-staged integration

* tweak(ci/cd): Removed prettier integration

* Added lint-staged to precommit hook call

* tweak: removed git add from lint-staged

* tweak(gitignore): Removed package.json from ignore
This commit is contained in:
Taso authored and GitHub committed 2021-01-18 15:17:41 -05:00
1 parent 820354aa2e
commit d0de0e4bac
9 files changed
+5783 -30

No files matched your search

+8 -1
View File
@@ -58,6 +58,7 @@
"html-loader": "^0.5.5",
"html-webpack-plugin": "^4.3.0",
"ifdef-loader": "^2.1.5",
"lint-staged": "^10.5.3",
"react-test-renderer": "^16.13.1",
"style-loader": "^0.23.1",
"svg-url-loader": "^2.3.2",
@@ -74,7 +75,8 @@
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack.resources.js --color -p --progress --hide-modules --display-optimization-bailout",
"test": "react-scripts test --watchAll=false --testMatch **/src/**/*.test.{ts,js,tsx}",
"test:watch": "react-scripts test --watchAll --testMatch **/src/**/*.test.{ts,js,tsx}",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"precommit": "npm run test && lint-staged"
},
"eslintConfig": {
"extends": "react-app"
@@ -90,5 +92,10 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"lint-staged": {
"*": [
"prettier --write src/**/*.{js,jsx,ts,tsx,json,css,scss,md}"
]
}
}