Skip to content

Commit 7629413

Browse files
authored
chore(deps): upgrade Rslint to v0.8.0 (#54)
1 parent edd2685 commit 7629413

4 files changed

Lines changed: 54 additions & 45 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"@rslib/core": "^0.23.2",
36-
"@rslint/core": "^0.7.0",
36+
"@rslint/core": "^0.8.0",
3737
"@rspack/core": "^2.1.4",
3838
"@rstest/core": "0.11.2",
3939
"@types/node": "^24.13.3",

pnpm-lock.yaml

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rslint.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
import { defineConfig, ts } from '@rslint/core';
1+
import { defineConfig, js, ts } from '@rslint/core';
22

33
export default defineConfig([
4+
js.configs.recommended,
45
ts.configs.recommended,
56
{
67
rules: {
78
'@typescript-eslint/no-explicit-any': 'off',
89
},
910
},
11+
{
12+
files: ['test/**/*'],
13+
rules: {
14+
'@typescript-eslint/no-require-imports': 'off',
15+
'no-undef': 'off',
16+
'no-useless-assignment': 'off',
17+
},
18+
},
1019
]);

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export class SyncBailHook<
490490
}
491491
for (const tap of tapsInRange) {
492492
this._runTapInterceptors(tap);
493-
let r = undefined;
493+
let r;
494494
try {
495495
r = tap.fn(...args2);
496496
} catch (e) {

0 commit comments

Comments
 (0)