diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..4e2a8c0 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +name: Lint + +on: pull_request + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.18.0 + + - name: Install dependencies + run: yarn + + - name: Validate current commit (last commit) with commitlint + run: npx commitlint --last --verbose + + - name: Typecheck + run: yarn typecheck + + - name: Lint + run: yarn lint + + - name: Format check + run: yarn format-check diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..3867a0f --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +npm run lint diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 0000000..25f5fe3 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,2 @@ +npm run lint +npm run typecheck diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..fa584fb --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1 @@ +export default { extends: ["@commitlint/config-conventional"] }; diff --git a/components/Footer.vue b/components/Footer.vue index e817552..f7ae5a7 100644 --- a/components/Footer.vue +++ b/components/Footer.vue @@ -11,42 +11,42 @@ const links = useLinks(); alt="Redot logo" class="footer-logo" src="~/assets/images/TopBarLogo.svg" - /> + >