Skip to content

Commit 920b779

Browse files
committed
Remove husky
1 parent 83835ba commit 920b779

File tree

5 files changed

+8
-24
lines changed

5 files changed

+8
-24
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@ repos:
1717
rev: v5.0.0
1818
hooks:
1919
- id: end-of-file-fixer
20+
- repo: local
21+
hooks:
22+
- id: frontend-pre-commit
23+
name: frontend-pre-commit
24+
entry: bash -c "cd frontend && npm run precommit"
25+
language: system
26+
pass_filenames: false

frontend/.husky/pre-commit

Lines changed: 0 additions & 2 deletions
This file was deleted.

frontend/package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"test": "jest",
1717
"test:update-snapshots": "jest -u",
1818
"generate-api": "npx @rtk-query/codegen-openapi openapi-config.ts",
19-
"prepare": "cd .. && husky frontend/.husky",
2019
"precommit": "lint-staged"
2120
},
2221
"devDependencies": {
@@ -69,7 +68,6 @@
6968
"file-loader": "^6.2.0",
7069
"html-webpack-plugin": "^5.6.3",
7170
"http-proxy-middleware": "^2.0.6",
72-
"husky": "^9.1.7",
7371
"identity-obj-proxy": "^3.0.0",
7472
"jest": "^29.7.0",
7573
"jest-styled-components": "^7.2.0",

frontend/src/App/slice.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ const getInitialState = (): IAppState => {
1313
let hideStartUp: null | boolean = null;
1414
let activeMode = getThemeMode();
1515

16-
try {
17-
storageData = localStorage.getItem(AUTH_DATA_STORAGE_KEY);
18-
} catch (e) {
16+
try {storageData = localStorage.getItem(AUTH_DATA_STORAGE_KEY);} catch (e) {
1917
console.log(e);
2018
}
2119

0 commit comments

Comments
 (0)