Skip to content

Commit 6cf96bd

Browse files
authored
chore: disable Rslint warnings (#12243)
1 parent 7d5c56d commit 6cf96bd

File tree

2 files changed

+27
-32
lines changed

2 files changed

+27
-32
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"lint:js": "pnpm run lint-ci:js --write",
3434
"lint-ci:js": "biome check --diagnostic-level=warn --no-errors-on-unmatched --max-diagnostics=none --error-on-warnings",
3535
"lint:rs": "cargo clippy --workspace --all-targets",
36-
"lint:type": "rslint --config rslint.json --max-warnings=2261",
36+
"lint:type": "rslint --config rslint.json",
3737
"build:binding:dev": "pnpm --filter @rspack/binding run build:dev",
3838
"build:binding:debug": "pnpm --filter @rspack/binding run build:debug",
3939
"build:binding:ci": "pnpm --filter @rspack/binding run build:ci",

rslint.json

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,32 @@
1313
}
1414
},
1515
"rules": {
16-
"@typescript-eslint/no-explicit-any": "warn",
17-
"@typescript-eslint/no-unsafe-argument": "warn",
18-
"@typescript-eslint/no-unsafe-member-access": "warn",
19-
"@typescript-eslint/no-unsafe-return": "warn",
20-
"@typescript-eslint/no-unsafe-assignment": "warn",
21-
"@typescript-eslint/no-unsafe-call": "warn",
22-
"@typescript-eslint/no-unsafe-type-assertion": "warn",
23-
"@typescript-eslint/restrict-template-expressions": "warn",
24-
"@typescript-eslint/no-floating-promises": "warn",
25-
"@typescript-eslint/no-confusing-void-expression": "warn",
26-
"@typescript-eslint/promise-function-async": "warn",
27-
"@typescript-eslint/use-unknown-in-catch-callback-variable": "warn",
28-
"@typescript-eslint/require-await": "warn",
29-
"@typescript-eslint/switch-exhaustiveness-check": "warn",
30-
"@typescript-eslint/await-thenable": "warn",
31-
"@typescript-eslint/return-await": "warn",
32-
"@typescript-eslint/non-nullable-type-assertion-style": "warn",
33-
"@typescript-eslint/no-misused-spread": "warn",
34-
"@typescript-eslint/unbound-method": "warn",
35-
"@typescript-eslint/prefer-promise-reject-errors": "warn",
36-
"@typescript-eslint/restrict-plus-operands": "warn",
37-
"@typescript-eslint/no-implied-eval": "warn",
38-
"@typescript-eslint/no-unused-vars": [
39-
"warn",
40-
{
41-
"argsIgnorePattern": "^_"
42-
}
43-
],
44-
"@typescript-eslint/no-var-requires": "warn",
45-
"@typescript-eslint/no-require-imports": "warn",
46-
"@typescript-eslint/no-empty-function": "warn"
16+
"@typescript-eslint/no-explicit-any": "off",
17+
"@typescript-eslint/no-unsafe-argument": "off",
18+
"@typescript-eslint/no-unsafe-member-access": "off",
19+
"@typescript-eslint/no-unsafe-return": "off",
20+
"@typescript-eslint/no-unsafe-assignment": "off",
21+
"@typescript-eslint/no-unsafe-call": "off",
22+
"@typescript-eslint/no-unsafe-type-assertion": "off",
23+
"@typescript-eslint/restrict-template-expressions": "off",
24+
"@typescript-eslint/no-floating-promises": "off",
25+
"@typescript-eslint/no-confusing-void-expression": "off",
26+
"@typescript-eslint/promise-function-async": "off",
27+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "off",
28+
"@typescript-eslint/require-await": "off",
29+
"@typescript-eslint/switch-exhaustiveness-check": "off",
30+
"@typescript-eslint/await-thenable": "off",
31+
"@typescript-eslint/return-await": "off",
32+
"@typescript-eslint/non-nullable-type-assertion-style": "off",
33+
"@typescript-eslint/no-misused-spread": "off",
34+
"@typescript-eslint/unbound-method": "off",
35+
"@typescript-eslint/prefer-promise-reject-errors": "off",
36+
"@typescript-eslint/restrict-plus-operands": "off",
37+
"@typescript-eslint/no-implied-eval": "off",
38+
"@typescript-eslint/no-unused-vars": "off",
39+
"@typescript-eslint/no-var-requires": "off",
40+
"@typescript-eslint/no-require-imports": "off",
41+
"@typescript-eslint/no-empty-function": "off"
4742
},
4843
"plugins": ["@typescript-eslint"]
4944
}

0 commit comments

Comments
 (0)