Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
feat: add pre-commit hooks to enforce formatting and conventional com…
Browse files Browse the repository at this point in the history
…mits
  • Loading branch information
kclejeune committed Jan 5, 2022
1 parent 3767a60 commit 83ef5aa
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/compilerla/conventional-pre-commit
rev: v1.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: "3"
version: '3'
services:
app:
image: "kclejeune/tmobile-isp-client:${TAG}"
image: 'kclejeune/tmobile-isp-client:${TAG}'
build: .
restart: "unless-stopped"
restart: 'unless-stopped'
ports:
- "${PORT}:${PORT}"
- '${PORT}:${PORT}'
environment:
PORT: "${PORT}"
PORT: '${PORT}'
2 changes: 1 addition & 1 deletion src/lib/components/ui/OnlineIndicator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<span>
<span class="text-lg font-light">{online ? 'Online' : 'Offline'}</span>
<span
class="indicator-item indicator-middle indicator-center badge badge-xs
class="indicator-item indicator-middle indicator-center badge badge-xs
{online ? 'bg-success' : 'bg-error'}"
/>
</span>

0 comments on commit 83ef5aa

Please sign in to comment.