Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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
18 changes: 18 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code quality

on:
push:
pull_request:

jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- name: Run Biome
run: biome ci .
10 changes: 5 additions & 5 deletions apps/examples/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'

export default defineConfig({
plugins: [react()],
root: "src",
root: 'src',
build: {
outDir: "../dist",
outDir: '../dist',
},
});
})
6 changes: 5 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": { "ignoreUnknown": false, "ignore": [] },
"files": {
"ignoreUnknown": false,
"ignore": [],
"include": ["packages/**/*", "apps/**/*"]
},
"formatter": {
"enabled": true,
"useEditorconfig": true,
Expand Down
6 changes: 3 additions & 3 deletions docs/CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

## Run `examples` Steps

- open the `packages/useWorker` directory
- run `pnpm run start`
- open the `apps/examples` directory
- run `pnpm run dev`

## How to debug

- the `packages/examples` project is linked to the `packages/useWorker` build so you can test your changes immediately
- the `apps/examples` project is linked to the `packages/useWorker` build so you can test your changes immediately
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"changeset": "changeset",
"check": "biome check --write packages/**/*",
"check:fix": "biome check --write packages/**/*",
"check": "biome check",
"check:fix": "biome check --write",
"ci:build": "pnpm run build -r",
"ci:publish": "pnpm run build -r && changeset publish",
"ci:version": "changeset version"
Expand Down