Skip to content

Commit

Permalink
TP2000-1285 Implementing fix for pre-commit hook (#1198)
Browse files Browse the repository at this point in the history
* implimenting fix for pre-commit hook

* removing prettier and eslint from pre-commmit-config.yml
  • Loading branch information
CPrich905 authored Apr 3, 2024
1 parent 1a172dc commit 38a7fed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
14 changes: 0 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,4 @@ repos:
name: Checking local hooks against latest release
verbose: true
require_serial: true
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.6.1"
hooks:
- id: prettier
files: "common/static/common/js"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v8.44.0'
hooks:
- id: eslint
files: "common/static/common/js"
additional_dependencies:
- [email protected]
- [email protected]
- [email protected]

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,18 @@
"heroku-postbuild": "npm run build",
"test": "jest",
"lint:js": "npx eslint --ext .jsx,.js",
"lint:js:fix": "npx eslint --ext .jsx,.js --fix"
"lint:js:fix": "npx eslint --ext .jsx,.js --fix",
"lint-staged": "lint-staged --verbose"
},
"lint-staged": {
"stash": false,
"*.{js,jsx}": [
"eslint --fix",
"prettier --write"
]
},
"pre-commit": "lint-staged",
"pre-commit": [
"lint-staged"
],
"devDependencies": {
"@testing-library/jest-dom": "^6.2.1",
"@testing-library/react": "^14.1.2",
Expand Down

0 comments on commit 38a7fed

Please sign in to comment.