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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Run `npm run bump` to bump the version and create a git tag.
push:
tags:
- "v*"
- 'v*'

workflow_dispatch:

Expand Down Expand Up @@ -46,4 +46,4 @@ jobs:
- name: Create GitHub Release
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1
with:
generateReleaseNotes: "true"
generateReleaseNotes: 'true'
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 24.15.0
cache: "pnpm"
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install

- name: Run Test
run: pnpm run build && pnpm run build-storybook

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
Comment thread
chenjiahan marked this conversation as resolved.
19 changes: 10 additions & 9 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ pnpm build # Build with Rslib
pnpm build:watch # Watch mode

# Lint (prefer file-scoped)
pnpm lint # Check all with Biome
pnpm lint:fix # Auto-fix
pnpm lint # Check all with Rslint + Prettier
pnpm lint:write # Auto-fix
pnpm lint:fix # Alias for lint:write

# Single file commands
npx tsc --noEmit 'path/to/file.tsx'
npx prettier --write 'path/to/file.tsx'
npx biome check --write 'path/to/file.tsx'
npx rslint --fix 'path/to/file.tsx'
```

No test framework - visual testing via Storybook.
Expand Down Expand Up @@ -60,10 +61,11 @@ stories/ # Storybook stories

- Single quotes, trailing commas (`all`), no parens for single arrow params

### Linting (Biome - `biome.json`)
### Linting (Rslint - `rslint.config.ts`)

- `noExplicitAny`: off, `noArrayIndexKey`: off
- File naming: `camelCase`, `PascalCase`, or export name
- Rslint uses TypeScript and React recommended rules
- `@typescript-eslint/no-explicit-any`: off
- Prettier handles formatting

### TypeScript

Expand Down Expand Up @@ -152,10 +154,9 @@ export default { title: 'Hero' };

## Git Hooks

Pre-commit via `simple-git-hooks` + `nano-staged`:
Pre-commit via `simple-git-hooks`:

- Biome lint on JS/TS
- Prettier format on all files
- `pnpm run lint:write`

## Adding Components

Expand Down
45 changes: 0 additions & 45 deletions biome.json

This file was deleted.

17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,26 +81,20 @@
"prepare": "rslib && simple-git-hooks",
"build": "rslib",
"build:watch": "rslib -w",
"lint": "biome check",
"lint:fix": "biome check --write --unsafe",
"lint": "rslint && prettier -c .",
"lint:write": "rslint --fix && prettier -w .",
"lint:fix": "pnpm lint:write",
Comment thread
chenjiahan marked this conversation as resolved.
"bump": "npx bumpp",
"chromatic": "chromatic"
},
"nano-staged": {
"*.{md,mdx,json,css,less,scss}": "prettier --write",
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"biome check --write --formatter-enabled=false --linter-enabled=true --no-errors-on-unmatched",
"prettier --write"
]
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
"pre-commit": "pnpm run lint:write"
Comment thread
chenjiahan marked this conversation as resolved.
Comment thread
chenjiahan marked this conversation as resolved.
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@rsbuild/plugin-react": "1.4.6",
"@rsbuild/plugin-sass": "1.5.1",
"@rslib/core": "^0.21.2",
"@rslint/core": "^0.5.0",
"@rstack-dev/doc-ui": "workspace:*",
"@storybook/addon-themes": "^10.3.5",
"@storybook/react": "^10.3.5",
Expand All @@ -113,7 +107,6 @@
"execa": "9.6.1",
"fs-extra": "11.3.4",
"lottie-web": "5.13.0",
"nano-staged": "^0.9.0",
"prettier": "~3.8.3",
"react": "^19.2.5",
"react-dom": "^19.2.5",
Expand Down
Loading
Loading