Skip to content

Commit cd15818

Browse files
authored
chore(lint): bump @rslint/core to 0.2.0 and enable default-param-last rule (#12746)
* chore(deps): bump @rslint/core to 0.2.0 and update rslint.json * fix(lint): enable @typescript-eslint/default-param-last rule
1 parent 0eb2ee3 commit cd15818

File tree

4 files changed

+46
-34
lines changed

4 files changed

+46
-34
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@biomejs/biome": "^2.3.11",
6565
"@microsoft/api-extractor": "7.55.2",
6666
"@microsoft/api-extractor-model": "7.32.2",
67-
"@rslint/core": "0.1.13",
67+
"@rslint/core": "0.2.0",
6868
"@rspack/cli": "workspace:*",
6969
"@taplo/cli": "^0.7.0",
7070
"@types/is-ci": "^3.0.4",

packages/rspack/src/MultiStats.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ export default class MultiStats {
3535
}
3636

3737
#createChildOptions(
38-
options: boolean | StatsPresets | MultiStatsOptions = {},
38+
options: boolean | StatsPresets | MultiStatsOptions,
3939
context: (KnownCreateStatsOptionsContext & Record<string, any>) | undefined,
4040
) {
4141
const { children: childrenOptions = undefined, ...baseOptions } =
4242
typeof options === 'string' || typeof options === 'boolean'
4343
? { preset: options }
44-
: options;
44+
: (options ?? {});
4545

4646
const children = this.stats.map((stat, idx) => {
4747
const childOptions = Array.isArray(childrenOptions)

pnpm-lock.yaml

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

rslint.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,19 @@
3737
"@typescript-eslint/no-unused-vars": "off",
3838
"@typescript-eslint/no-var-requires": "off",
3939
"@typescript-eslint/no-require-imports": "off",
40-
"@typescript-eslint/no-empty-function": "off"
40+
"@typescript-eslint/no-empty-function": "off",
41+
"@typescript-eslint/ban-ts-comment": "off",
42+
"@typescript-eslint/consistent-indexed-object-style": "off",
43+
"@typescript-eslint/no-this-alias": "off",
44+
"@typescript-eslint/consistent-type-definitions": "off",
45+
"@typescript-eslint/consistent-return": "off",
46+
"@typescript-eslint/consistent-type-exports": "off",
47+
"@typescript-eslint/consistent-generic-constructors": "off",
48+
"@typescript-eslint/ban-types": "off",
49+
"@typescript-eslint/no-extraneous-class": "off",
50+
"@typescript-eslint/consistent-type-imports": "off",
51+
"@typescript-eslint/no-invalid-void-type": "off",
52+
"@typescript-eslint/default-param-last": "error"
4153
},
4254
"plugins": ["@typescript-eslint"]
4355
}

0 commit comments

Comments
 (0)