Skip to content

Commit a158f61

Browse files
authored
chore: align rslint defaults and rstest commands (#1603)
1 parent e699bd0 commit a158f61

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"test:benchmark": "cd ./tests && pnpm run test:benchmark",
2121
"test:e2e": "pnpm run build:examples && cd tests && pnpm run test:e2e",
2222
"test:ecosystem-ci": "pnpm run test:unit && cross-env ECO_CI=1 pnpm run test:integration && pnpm run test:e2e",
23-
"test:integration": "rstest run --project integration",
24-
"test:integration:exe": "rstest run --project integration-exe",
25-
"test:unit": "rstest run --project unit*",
23+
"test:integration": "rstest --project integration",
24+
"test:integration:exe": "rstest --project integration-exe",
25+
"test:unit": "rstest --project unit*",
2626
"testu": "pnpm run test:unit -u && pnpm run test:integration -u",
2727
"type-check": "pnpm -r run type-check",
2828
"update:rsbuild": "npx taze minor --include /rsbuild/ -w -r -l",

packages/core/src/css/libCssExtractLoader.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ export const pitch: Rspack.LoaderDefinition['pitch'] = function (
285285
m.set(distFilepath, `${m.get(distFilepath)}\n${sourceMappingURL}`);
286286
}
287287
}
288-
for (let [distFilepath, content] of m.entries()) {
288+
for (const [distFilepath, initialContent] of m.entries()) {
289+
let content = initialContent;
289290
// add banner and footer to css files in bundleless mode
290291
if (banner) {
291292
content = `${banner}\n${content}`;

rslint.config.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,8 @@ export default defineConfig([
99
},
1010
},
1111
rules: {
12-
'@typescript-eslint/no-unused-vars': [
13-
'error',
14-
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
15-
],
1612
'@typescript-eslint/ban-ts-comment': 'off',
1713
'@typescript-eslint/no-explicit-any': 'off',
18-
'prefer-const': [
19-
'error',
20-
{
21-
destructuring: 'all',
22-
},
23-
],
2414
},
2515
},
2616
]);

0 commit comments

Comments
 (0)