Skip to content

Commit 525a6fa

Browse files
committed
chore: simplify prettier config
1 parent b59c361 commit 525a6fa

136 files changed

Lines changed: 20900 additions & 20874 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/renovate.json5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3-
extends: ["config:base", "schedule:monthly", "group:allNonMajor"],
4-
rangeStrategy: "bump",
5-
packageRules: [{ depTypeList: ["peerDependencies"], enabled: false }]
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: ['config:base', 'schedule:monthly', 'group:allNonMajor'],
4+
rangeStrategy: 'bump',
5+
packageRules: [{ depTypeList: ['peerDependencies'], enabled: false }],
66
}

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ on:
55
inputs:
66
version:
77
type: choice
8-
description: "Release Version Type"
8+
description: 'Release Version Type'
99
required: true
10-
default: "patch"
10+
default: 'patch'
1111
options:
1212
- major
1313
- premajor
@@ -19,9 +19,9 @@ on:
1919

2020
tag:
2121
type: choice
22-
description: "Release Npm Tag"
22+
description: 'Release Npm Tag'
2323
required: true
24-
default: "latest"
24+
default: 'latest'
2525
options:
2626
- canary
2727
- nightly
@@ -31,7 +31,7 @@ on:
3131

3232
dry_run:
3333
type: boolean
34-
description: "DryRun release"
34+
description: 'DryRun release'
3535
required: true
3636
default: false
3737

@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/setup-node@v6
5959
with:
6060
node-version: 20
61-
cache: "pnpm"
61+
cache: 'pnpm'
6262

6363
# Update npm to the latest version to enable OIDC
6464
- name: Update npm

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: actions/setup-node@v6
4444
with:
4545
node-version: ${{ matrix.node }}
46-
cache: "pnpm"
46+
cache: 'pnpm'
4747

4848
- name: Install Dependencies
4949
run: pnpm install
@@ -70,7 +70,7 @@ jobs:
7070
uses: actions/setup-node@v6
7171
with:
7272
node-version: 20
73-
cache: "pnpm"
73+
cache: 'pnpm'
7474

7575
- name: Install Dependencies
7676
run: pnpm install

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

.prettierrc.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ While starting the development server, you can specify the configuration by the
7575
```js
7676
// rspack.config.mjs
7777
export default {
78-
// ...
79-
devServer: {
80-
// the configuration of the development server
81-
port: 8080
82-
}
78+
// ...
79+
devServer: {
80+
// the configuration of the development server
81+
port: 8080,
82+
},
8383
};
8484
```
8585

@@ -90,21 +90,21 @@ export default {
9090
While it's recommended to run `@rspack/dev-server` via the CLI, you may also choose to start a server via the API.
9191

9292
```js
93-
import { RspackDevServer } from "@rspack/dev-server";
94-
import rspack from "@rspack/core";
95-
import rspackConfig from "./rspack.config.mjs";
93+
import { RspackDevServer } from '@rspack/dev-server';
94+
import rspack from '@rspack/core';
95+
import rspackConfig from './rspack.config.mjs';
9696

9797
const compiler = rspack(rspackConfig);
9898
const devServerOptions = {
99-
...rspackConfig.devServer,
100-
// override
101-
port: 8888
99+
...rspackConfig.devServer,
100+
// override
101+
port: 8888,
102102
};
103103

104104
const server = new RspackDevServer(devServerOptions, compiler);
105105

106106
server.startCallback(() => {
107-
console.log("Successfully started server on http://localhost:8888");
107+
console.log('Successfully started server on http://localhost:8888');
108108
});
109109
```
110110

biome.jsonc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
3-
"files": {
4-
"ignore": [
5-
"client-src/**/*",
6-
"client/**/*.js",
7-
"dist/**/*",
8-
"tests/fixtures/**/*"
9-
]
10-
}
2+
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
3+
"files": {
4+
"ignore": [
5+
"client-src/**/*",
6+
"client/**/*.js",
7+
"dist/**/*",
8+
"tests/fixtures/**/*",
9+
],
10+
},
1111
}

0 commit comments

Comments
 (0)