Skip to content

Commit

Permalink
fix: husky hooks and lint-staged
Browse files Browse the repository at this point in the history
+ delete useless jest dependencies
  • Loading branch information
Loxeris committed Jul 17, 2024
1 parent 6059e79 commit e0c72ad
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npx lerna exec -- npx lint-staged
9 changes: 3 additions & 6 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"packages/diracx-web"
],
"devDependencies": {
"husky": "^9.0.11",
"lerna": "^8.1.3"
},
"scripts": {
Expand All @@ -15,6 +16,7 @@
"build": "lerna run build",
"build-lib": "lerna run build --scope @dirac-grid/diracx-web-components",
"lint": "lerna run lint",
"ts-lint": "lerna run ts-lint"
"ts-lint": "lerna run ts-lint",
"prepare": "husky"
}
}
7 changes: 7 additions & 0 deletions packages/diracx-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@
"eslint-plugin-storybook": "^0.8.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.2",
"next": "^14.2.3",
"prettier": "^3.2.5",
"storybook": "^8.2.1",
"ts-jest": "^29.1.2",
"tsc-files": "^1.1.4",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
},
Expand Down Expand Up @@ -105,5 +107,10 @@
"workerDirectory": [
"public"
]
},
"lint-staged": {
"*.{js,ts,jsx,tsx}": "eslint --cache --fix",
"*.{js,ts,jsx,tsx,css,md}": "prettier --write",
"src/**/*.{ts,tsx}": "tsc-files --noEmit"
}
}
1 change: 0 additions & 1 deletion packages/diracx-web/.husky/.gitignore

This file was deleted.

17 changes: 0 additions & 17 deletions packages/diracx-web/jest.config.mjs

This file was deleted.

1 change: 0 additions & 1 deletion packages/diracx-web/jest.setup.ts

This file was deleted.

9 changes: 1 addition & 8 deletions packages/diracx-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"start": "next start",
"lint": "next lint",
"ts-lint": "tsc -noEmit -incremental",
"postinstall": "node ../../node_modules/@axa-fr/react-oidc/bin/copy-service-worker-files.mjs public",
"prepare": "husky"
"postinstall": "node ../../node_modules/@axa-fr/react-oidc/bin/copy-service-worker-files.mjs public"
},
"dependencies": {
"@axa-fr/react-oidc": "^7.22.6",
Expand All @@ -33,21 +32,15 @@
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.1",
"@types/jest": "^29.5.12",
"cypress": "^13.12.0",
"eslint": "^8.56.0",
"eslint-config-next": "^14.2.3",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"ts-jest": "^29.1.5",
"tsc-files": "^1.1.4",
"typescript": "5.4.5"
},
Expand Down

0 comments on commit e0c72ad

Please sign in to comment.