Skip to content

Commit

Permalink
feat: Cleanup githooks
Browse files Browse the repository at this point in the history
  • Loading branch information
nimdanitro committed Feb 7, 2024
1 parent e6a9093 commit a180044
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 294 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
.idea
.vscode
node_modules
ui/node_modules
ui/.pnp.*
ui/.yarn/*
Expand Down Expand Up @@ -82,4 +85,3 @@ ui/*.tgz

# Yarn Integrity file
ui/.yarn-integrity

20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: go-imports
- id: no-go-testing
- id: golangci-lint
- id: go-unit-tests
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
12 changes: 2 additions & 10 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@mapbox/mapbox-gl-draw": "^1.3.0",
"@testing-library/dom": "^9.3.4",
"@turf/bearing": "^6.5.0",
"@turf/center": "^6.5.0",
"@turf/helpers": "^6.5.0",
Expand All @@ -34,10 +33,7 @@
"react-markdown": "^8.0.7",
"react-router-dom": "^6.21.3",
"usehooks-ts": "^2.10.0",
"web-vitals": "^3.5.1",
"workbox-core": "^7.0.0",
"workbox-expiration": "^7.0.0",
"workbox-precaching": "^7.0.0"
"web-vitals": "^3.5.1"
},
"scripts": {
"analyze": "source-map-explorer 'build/static/js/*.js'",
Expand All @@ -62,17 +58,13 @@
"last 1 safari version"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write"
]
},
"devDependencies": {
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
Expand Down
85 changes: 0 additions & 85 deletions ui/src/service-worker.ts

This file was deleted.

142 changes: 0 additions & 142 deletions ui/src/serviceWorkerRegistration.ts

This file was deleted.

56 changes: 0 additions & 56 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7230,13 +7230,6 @@ __metadata:
languageName: node
linkType: hard

"idb@npm:^7.0.1":
version: 7.1.1
resolution: "idb@npm:7.1.1"
checksum: 10/8e33eaebf21055129864acb89932e0739b8c96788e559df24c253ce114d8c6deb977a3b30ea47a9bb8a2ae8a55964861c3df65f360d95745e341cee40d5c17f4
languageName: node
linkType: hard

"ieee754@npm:^1.1.12":
version: 1.2.1
resolution: "ieee754@npm:1.2.1"
Expand Down Expand Up @@ -10910,9 +10903,6 @@ __metadata:
vite-tsconfig-paths: "npm:^4.3.1"
vitest: "npm:^1.2.2"
web-vitals: "npm:^3.5.1"
workbox-core: "npm:^7.0.0"
workbox-expiration: "npm:^7.0.0"
workbox-precaching: "npm:^7.0.0"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -12438,52 +12428,6 @@ __metadata:
languageName: node
linkType: hard

"workbox-core@npm:7.0.0, workbox-core@npm:^7.0.0":
version: 7.0.0
resolution: "workbox-core@npm:7.0.0"
checksum: 10/680c65e926517a6cd7b515243b9a33a5f4cdc45de31e060fbdc89e28f79b10a2fa211576802a29790cd37fa8a801f3fccfb9cbe371acaa8095c858c9afefc7e6
languageName: node
linkType: hard

"workbox-expiration@npm:^7.0.0":
version: 7.0.0
resolution: "workbox-expiration@npm:7.0.0"
dependencies:
idb: "npm:^7.0.1"
workbox-core: "npm:7.0.0"
checksum: 10/a9b23c7c76cbabe8f04567e603428db939cb169cf40c1e5ba1c5a1eb966f7b8a4d0182dffdd3d77917b5edca966be0d6e347b7eff274292256fe6ea9a40fa754
languageName: node
linkType: hard

"workbox-precaching@npm:^7.0.0":
version: 7.0.0
resolution: "workbox-precaching@npm:7.0.0"
dependencies:
workbox-core: "npm:7.0.0"
workbox-routing: "npm:7.0.0"
workbox-strategies: "npm:7.0.0"
checksum: 10/8882d5ba888b08aba5e82656b26cd2f293c5adbb858bdff5e17cb4bf1823063cf51d16d3d6640716de96f11cf458f8aaf33b5ffef1ef07d327df8680711bf02e
languageName: node
linkType: hard

"workbox-routing@npm:7.0.0":
version: 7.0.0
resolution: "workbox-routing@npm:7.0.0"
dependencies:
workbox-core: "npm:7.0.0"
checksum: 10/294c4b0f136e39c44678caa736195bd99bf93e55ba3605d0a880e36e7ffc9a4b6be36c2c37bca3ee1f905615641167d5b2a0eab742f46b94536f2c5eaac0e832
languageName: node
linkType: hard

"workbox-strategies@npm:7.0.0":
version: 7.0.0
resolution: "workbox-strategies@npm:7.0.0"
dependencies:
workbox-core: "npm:7.0.0"
checksum: 10/7d7dbe9dff54c22e01d01238dbf0b3ba259b85c08cbd8b617b9f5104efef948b760848fcf36385d26fd651a2fe57c4faa3d6a4fc2739e05fc684da0a7eb2197a
languageName: node
linkType: hard

"wrap-ansi@npm:^7.0.0":
version: 7.0.0
resolution: "wrap-ansi@npm:7.0.0"
Expand Down

0 comments on commit a180044

Please sign in to comment.