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: biome check apply #2136

Merged
merged 1 commit into from
May 28, 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: 0 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
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,9 +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
run: biome ci .

Expand All @@ -66,9 +64,9 @@
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Install dependencies
uses: bahmutov/npm-install@v1

Check warning on line 67 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@v11

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

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (chromaui)
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
onlyChanged: true # 👈 Required option to enable TurboSnap
Expand Down
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
repos:
- repo: https://github.com/biomejs/pre-commit
rev: "v0.1.0"
- repo: local
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/[email protected]"]
- id: local-biome-check
name: biome check
entry: npx biome check --apply --files-ignore-unknown=true --no-errors-on-unmatched
language: system
types: [text]
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?)$"
156 changes: 156 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@app/app",
"private": true,
"author": "github.com/9renpoto",

Check warning on line 4 in package.json

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (renpoto)
"scripts": {
"build": "turbo build",
"storybook": "npm run storybook -w @app/ui",
Expand All @@ -10,7 +10,8 @@
"test": "npm run test --workspaces"
},
"devDependencies": {
"@9renpoto/tsconfig": "^7.8.0",

Check warning on line 13 in package.json

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (renpoto)
"@biomejs/biome": "^1.7.3",

Check warning on line 14 in package.json

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (biomejs)
"@types/rosie": "^0.0.45",
"rosie": "^2.1.0",
"turbo": "^1.13.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Header({ active }: Props) {
</div>
<ul class="flex items-center gap-6">
{menus.map((menu) => (
<li>
<li key={menu.name}>
<a
href={menu.href}
class={`text-gray-500 hover:text-gray-700 py-1 border-gray-500 ${
Expand Down
Loading