Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use pre-commit #1977

Merged
merged 4 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

jobs:
build:
timeout-minutes: 5
timeout-minutes: 10
runs-on: ubuntu-latest

strategy:
Expand Down Expand Up @@ -40,7 +40,7 @@
"npx wait-on tcp:6006 && npm test"

- name: compressed-size-action
uses: preactjs/[email protected]

Check warning on line 43 in .github/workflows/node.js.yml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (preactjs)
with:
pattern: "./packages/ui/lib/**/*.{js,css,html,json}"
exclude: "{**/*.map,**/node_modules/**}"
Expand All @@ -53,7 +53,7 @@
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2

Check warning on line 56 in .github/workflows/node.js.yml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (biomejs)
with:
version: latest
- name: Run Biome
Expand All @@ -66,8 +66,8 @@
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Install dependencies
uses: bahmutov/npm-install@v1

Check warning on line 69 in .github/workflows/node.js.yml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (bahmutov)
- name: Publish to Chromatic
uses: chromaui/action@v10

Check warning on line 71 in .github/workflows/node.js.yml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (chromaui)
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/biomejs/pre-commit
rev: "v0.1.0"
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/[email protected]"]

Check warning on line 6 in .pre-commit-config.yaml

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (biomejs)
Loading
Loading