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
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"rstack.rslint",
"biomejs.biome",
"esbenp.prettier-vscode",
"unifiedjs.vscode-mdx"
Expand Down
2 changes: 1 addition & 1 deletion e2e/test-api/fixtures/moduleNotFound.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const expectNotFound = async () => {
// @ts-expect-error
const res = await import('404');
return res;
} catch (_err) {
} catch {
return null;
}
};
Expand Down
4 changes: 2 additions & 2 deletions packages/browser/src/hostController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1573,10 +1573,10 @@ const createBrowserRuntime = async ({
dispatchHandlers,
wss,
};
} catch (_error) {
} catch (error) {
wss.close();
await devServer.close();
throw _error;
throw error;
}
};

Expand Down
4 changes: 3 additions & 1 deletion packages/browser/src/watchCliShortcuts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export async function setupBrowserWatchCliShortcuts({
try {
process.stdin.setRawMode(false);
process.stdin.pause();
} catch {}
} catch {
// do nothing
}

process.stdin.off('keypress', handleKeypress);
};
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/rsbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function parseInlineSourceMapStr(code: string) {
const base64Data = match[1];
const decodedStr = Buffer.from(base64Data, 'base64').toString('utf-8');
return decodedStr;
} catch (_error) {
} catch {
return null;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/runtime/runner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class TestRunner {
},
],
};
} catch (_err) {
} catch {
result = {
testId: test.testId,
project,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/runtime/worker/loadModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const createRequire = (
try {
// compat with some testPath may not be an available path but the third-party package name
return createNativeRequire(filename);
} catch (_err) {
} catch {
return createNativeRequire(distPath);
}
})();
Expand Down
19 changes: 19 additions & 0 deletions rslint.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig, ts } from '@rslint/core';

export default defineConfig([
{ ignores: ['**/dist/**', '**/dist-types/**'] },
ts.configs.recommended,
{
languageOptions: {
parserOptions: {
project: ['./packages/*/tsconfig.json'],
Comment thread
chenjiahan marked this conversation as resolved.
},
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-require-imports': 'off',
},
Comment thread
chenjiahan marked this conversation as resolved.
},
Comment thread
chenjiahan marked this conversation as resolved.
]);
40 changes: 0 additions & 40 deletions rslint.jsonc

This file was deleted.

Loading