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
@@ -9,7 +9,8 @@
"build": "webpack --mode production",
"format": "prettier --write \"./**/*.ts\"",
"watch": "webpack --mode development --watch true",
"test": "jest"
"test": "jest",
"precommit": "npm run test && lint-staged"
},
"license": "MIT",
"private": false,
@@ -37,6 +38,7 @@
"eslint-loader": "^4.0.2",
"husky": "^4.3.0",
"jest": "^26.5.3",
"lint-staged": "^10.5.3",
"prettier": "^2.0.5",
"remove-files-webpack-plugin": "^1.4.3",
"ts-jest": "^26.4.1",
@@ -44,5 +46,10 @@
"typescript": "^3.9.7",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
},
"lint-staged": {
"*": [
"prettier --write \"./**/*.ts\""
]
}
}