mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
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:
9 files changed
+5783
-30
No files matched your search
+8
-1
@@ -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}"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user