Skip to content

Commit

Permalink
chore(cb2-0000): run linter and fix on commit (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonT95 authored Sep 24, 2024
1 parent 7598889 commit e58ef3e
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run security-checks
npx lint-staged && npm run security-checks
270 changes: 246 additions & 24 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"jest-preset-angular": "^14.2.2",
"jest-sonar-reporter": "^2.0.0",
"json-server": "^0.17.3",
"lint-staged": "^15.2.10",
"sonarqube-scanner": "^3.3.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
Expand All @@ -104,6 +105,9 @@
"@nx/nx-linux-x64-gnu": "18.0.4",
"@nx/nx-win32-x64-msvc": "18.0.4"
},
"lint-staged": {
"*.{js,ts,mjs,css,md,ts,json}": "npm run lint:fix -- --no-errors-on-unmatched"
},
"jestSonar": {
"reportPath": "./coverage",
"reportFile": "test-report.xml",
Expand Down

0 comments on commit e58ef3e

Please sign in to comment.