Skip to content

Commit dc3fc15

Browse files
authored
chore: enable biome check on CI (#98)
1 parent 8b09452 commit dc3fc15

4 files changed

Lines changed: 50 additions & 45 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ jobs:
7474
- name: Install Dependencies
7575
run: pnpm install
7676

77-
- name: Prettier
78-
run: pnpm run prettier:ci
77+
- name: Lint
78+
run: |
79+
pnpm run prettier:ci
80+
pnpm run lint

biome.jsonc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
3+
"formatter": {
4+
"enabled": false,
5+
},
36
"files": {
47
"ignore": [
58
"client-src/**/*",

rstest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from '@rstest/core';
21
import { version } from '@rspack/core/package.json';
2+
import { defineConfig } from '@rstest/core';
33

44
console.log(`Running tests for rspack @${version} \n`);
55

src/server.ts

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,61 +15,61 @@ import * as url from 'node:url';
1515
import * as util from 'node:util';
1616
import * as ipaddr from 'ipaddr.js';
1717
import type {
18+
AddressInfo,
1819
BasicApplication,
20+
ByPass,
21+
ClientConfiguration,
22+
ClientConnection,
23+
Compiler,
24+
ConnectHistoryApiFallbackOptions,
25+
DevMiddlewareContext,
26+
DevMiddlewareOptions,
27+
DevServer,
28+
EXPECTED_ANY,
1929
ExpressApplication,
30+
FSWatcher,
2031
HTTPServer,
21-
Response,
22-
Request,
32+
HandleFunction,
33+
Headers,
2334
Host,
24-
Port,
25-
DevMiddlewareOptions,
26-
ConnectHistoryApiFallbackOptions,
27-
WatchFiles,
28-
Static,
29-
ServerType,
30-
ServerConfiguration,
31-
WebSocketServerConfiguration,
32-
ProxyConfigArray,
33-
Open,
34-
ClientConfiguration,
35+
IPv6,
36+
IncomingMessage,
3537
Middleware,
36-
DevMiddlewareContext,
37-
OverlayMessageOptions,
38-
Compiler,
38+
MiddlewareHandler,
39+
MiddlewareObject,
3940
MultiCompiler,
40-
FSWatcher,
41-
EXPECTED_ANY,
42-
RequestHandler,
43-
Socket,
44-
WebSocketServerImplementation,
45-
Stats,
4641
MultiStats,
47-
DevServer,
48-
StatsOptions,
4942
NetworkInterfaceInfo,
50-
WebSocketURL,
51-
WatchOptions,
52-
NormalizedStatic,
53-
ServerOptions,
43+
NextFunction,
44+
NextHandleFunction,
5445
NormalizedOpen,
46+
NormalizedStatic,
47+
Open,
48+
OpenApp,
5549
OpenOptions,
56-
StatsCompilation,
57-
NextFunction,
58-
MiddlewareHandler,
50+
OverlayMessageOptions,
51+
Port,
52+
ProxyConfigArray,
5953
ProxyConfigArrayItem,
60-
ByPass,
54+
Request,
55+
RequestHandler,
56+
Response,
6157
ServeIndexOptions,
62-
WebSocketServer,
63-
ClientConnection,
64-
IncomingMessage,
65-
MiddlewareObject,
66-
NextHandleFunction,
67-
HandleFunction,
58+
ServerConfiguration,
59+
ServerOptions,
60+
ServerType,
6861
SimpleHandleFunction,
69-
OpenApp,
70-
AddressInfo,
71-
IPv6,
72-
Headers,
62+
Socket,
63+
Static,
64+
Stats,
65+
StatsCompilation,
66+
StatsOptions,
67+
WatchFiles,
68+
WatchOptions,
69+
WebSocketServer,
70+
WebSocketServerConfiguration,
71+
WebSocketServerImplementation,
72+
WebSocketURL,
7373
} from './types';
7474

7575
const { styleText } = util;

0 commit comments

Comments
 (0)