Skip to content

Commit

Permalink
Husky setup for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtarcommunications committed Mar 28, 2024
1 parent 7b55094 commit cc9976f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
CI: true
HUSKY: 0
TZ: "America/Chicago"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
CI: true
HUSKY: 0
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint
16 changes: 16 additions & 0 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 @@ -27,7 +27,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test": "vitest",
"lint": "eslint ."
"lint": "eslint .",
"prepare": "husky"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
Expand All @@ -36,6 +37,7 @@
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.28.0",
"eslint-plugin-svelte": "^2.30.0",
"husky": "^9.0.11",
"svelte": "^4.0.5",
"svelte-check": "^3.4.3",
"tslib": "^2.4.1"
Expand Down

0 comments on commit cc9976f

Please sign in to comment.