Skip to content

Commit

Permalink
feat: code checking on CI
Browse files Browse the repository at this point in the history
chore: update formatter and linter
  • Loading branch information
hngngn committed Jan 8, 2025
1 parent 9fe5bc4 commit c8b9baf
Show file tree
Hide file tree
Showing 464 changed files with 37,252 additions and 37,251 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Code Quality Check

on:
- push
- pull_request

jobs:
cache-and-install:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Format
run: pnpm ci:format

- name: Lint
run: pnpm ci:lint
1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

1 change: 1 addition & 0 deletions .husky/registry
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm -F docs registry:gen
23 changes: 12 additions & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
],
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit",
"source.removeUnusedImports": "explicit"
},
"astro.content-intellisense": true,
"eslint.useFlatConfig": true
"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.removeUnusedImports": "explicit",
"source.fixAll.eslint": "explicit"
},
"eslint.useFlatConfig": true,
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
}
}
30 changes: 0 additions & 30 deletions biome.json

This file was deleted.

7 changes: 0 additions & 7 deletions docs/.lintstagedrc.json

This file was deleted.

1 change: 1 addition & 0 deletions docs/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/__registry__/**
Loading

0 comments on commit c8b9baf

Please sign in to comment.