Skip to content

Commit 96bd3cd

Browse files
chore(deps): update dependency @biomejs/biome to ^2.2.2 (#11426)
* chore(deps): update dependency @biomejs/biome to ^2.2.2 * fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: neverland <[email protected]>
1 parent b93f4d0 commit 96bd3cd

File tree

11 files changed

+50
-50
lines changed

11 files changed

+50
-50
lines changed

biome.jsonc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949
"noAssignInExpressions": "off",
5050
"noControlCharactersInRegex": "off",
5151
"noExplicitAny": "off",
52-
"noImplicitAnyLet": "off"
52+
"noImplicitAnyLet": "off",
53+
"noUnknownAtRules": "off",
54+
"useIterableCallbackReturn": "off",
55+
"noTsIgnore": "off"
5356
}
5457
}
5558
},
@@ -78,4 +81,4 @@
7881
"clientKind": "git",
7982
"useIgnoreFile": true
8083
}
81-
}
84+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"pnpm": "10.14.0"
6262
},
6363
"devDependencies": {
64-
"@biomejs/biome": "^2.1.3",
64+
"@biomejs/biome": "^2.2.2",
6565
"@continuous-auth/client": "^2.3.2",
6666
"@jest/reporters": "29.7.0",
6767
"@microsoft/api-extractor": "7.52.9",

packages/rspack-test-tools/src/helper/expect/to-match-file-snapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const { getSerializers } = require(
2121
* Check if 2 strings or buffer are equal
2222
*/
2323
const isEqual = (a: string | Buffer, b: string | Buffer): boolean => {
24-
// @ts-ignore: TypeScript gives error if we pass string to buffer.equals
24+
// @ts-expect-error: TypeScript gives error if we pass string to buffer.equals
2525
return Buffer.isBuffer(a) ? a.equals(b) : a === b;
2626
};
2727

packages/rspack-test-tools/src/helper/setup-expect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { serializers } from "./serializers";
55

66
expect.extend({
77
// CHANGE: new test matcher for `rspack-test-tools`
8-
// @ts-ignore
8+
// @ts-expect-error
99
toMatchFileSnapshot,
1010
toBeTypeOf,
1111
toEndWith

packages/rspack-test-tools/src/processor/normal.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ export class NormalProcessor<
114114
rules: []
115115
},
116116
plugins: (compilerOptions?.plugins || [])
117-
// @ts-ignore
118117
.concat(testConfig.plugins || [])
119118
.concat(function (this: TCompiler<T>) {
120119
this.hooks.compilation.tap("TestCasesTest", compilation => {

packages/rspack/src/Watching.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ export class Watching {
334334
private _done(error: Error | null, compilation?: Compilation) {
335335
this.running = false;
336336

337-
// biome-ignore lint/style/useConst: skip
338337
let stats: undefined | Stats;
339338

340339
const handleError = (err: Error, cbs?: Callback<Error, void>[]) => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Export the `Buffer` from wasm-runtime and reuse it for the overall polyfill in `@rspack/browser`
2-
// @ts-ignore
2+
// @ts-expect-error
33
export { Buffer } from "@napi-rs/wasm-runtime/fs";

packages/rspack/src/browser/fs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @ts-ignore: shimmed with rspack.wasi-browser.js
1+
// @ts-expect-error: shimmed with rspack.wasi-browser.js
22
import { __fs, __volume } from "@rspack/binding";
33
import type { IFs, Volume } from "memfs";
44
export const fs: IFs = __fs;

packages/rspack/src/stats/DefaultStatsPrinterPlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,9 +1389,9 @@ export class DefaultStatsPrinterPlugin {
13891389
}
13901390
}
13911391
for (const format of Object.keys(AVAILABLE_FORMATS)) {
1392-
// @ts-ignore
1392+
// @ts-expect-error
13931393
context[format] = (content, ...args) =>
1394-
// @ts-ignore
1394+
// @ts-expect-error
13951395
AVAILABLE_FORMATS[format](content, context, ...args);
13961396
}
13971397
context.timeReference = compilation.time;

packages/rspack/src/trace/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export class JavaScriptTracer {
2828
// inspector session for CPU Profiler
2929
static session: import("node:inspector").Session;
3030
// plugin counter for different channel in trace viewer, choose 100 to avoid conflict with known tracks
31-
// biome-ignore lint/correctness/noUnusedPrivateClassMembers: this is a bug of biome which can't analyze cross module usage
3231
private static counter = 10000;
3332

3433
/**

0 commit comments

Comments
 (0)