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/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>rstackjs/renovate"]
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['github>rstackjs/renovate'],
}
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'
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 24.15.0
cache: "pnpm"
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install && npx playwright install
Expand Down
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["biomejs.biome"]
"recommendations": ["rstack.rslint", "esbenp.prettier-vscode"]
}
16 changes: 1 addition & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{
"search.useIgnoreFiles": true,
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[css]": {
"editor.defaultFormatter": "biomejs.biome"
}
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Add plugin to your `rsbuild.config.ts`:

```ts
// rsbuild.config.ts
import { pluginStyledComponents } from "@rsbuild/plugin-styled-components";
import { pluginStyledComponents } from '@rsbuild/plugin-styled-components';

export default {
plugins: [pluginStyledComponents()],
Expand All @@ -54,13 +54,13 @@ export default {
After registering the plugin, you can use styled-components to write styles:

```ts
import styled from "styled-components";
import styled from 'styled-components';

const div = styled.div`
color: red;
`;

console.log("div", div);
console.log('div', div);
```

## Options
Expand Down
31 changes: 0 additions & 31 deletions biome.json

This file was deleted.

19 changes: 7 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,27 @@
"scripts": {
"build": "rslib",
"dev": "rslib -w",
"lint": "biome check .",
"lint:write": "biome check . --write",
"prepare": "simple-git-hooks && npm run build",
"lint": "rslint && prettier -c .",
"lint:write": "rslint --fix && prettier -w .",
Comment thread
chenjiahan marked this conversation as resolved.
"prepare": "simple-git-hooks && pnpm run build",
"test": "playwright test",
"bump": "npx bumpp"
"bump": "pnpx bumpp"
Comment thread
chenjiahan marked this conversation as resolved.
},
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
},
"nano-staged": {
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"biome check --write --no-errors-on-unmatched"
]
"pre-commit": "pnpm run lint:write"
Comment thread
chenjiahan marked this conversation as resolved.
Comment thread
chenjiahan marked this conversation as resolved.
},
"dependencies": {
"@swc/plugin-styled-components": "^12.8.0",
"reduce-configs": "^1.1.2"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@playwright/test": "^1.59.1",
"@rsbuild/core": "^2.0.1",
"@rslib/core": "^0.21.3",
"@rslint/core": "^0.5.0",
"@types/node": "^24.12.2",
"nano-staged": "^1.0.2",
"playwright": "^1.59.1",
"prettier": "^3.8.3",
"simple-git-hooks": "^2.13.1",
"styled-components": "^6.4.1",
"typescript": "^6.0.3"
Expand Down
Loading
Loading