Skip to content

Commit

Permalink
fix: temporarily disable no unsafe rules
Browse files Browse the repository at this point in the history
  • Loading branch information
stefl committed Dec 9, 2024
1 parent af9645d commit 4946638
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/eslint-config/src/rules.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@ const rulesToMoveToError = {
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-redundant-type-constituents": "warn",
"@typescript-eslint/no-redundant-type-constituents": "warn",
}

const rulesToDecideOn = {
"@typescript-eslint/no-unsafe-assignment": "off", // this rule is buggy and is causing a lot of false positives
"@typescript-eslint/no-unsafe-call": "off", // this rule is buggy and is causing a lot of false positives
}

// @ts-check
/** @type {Partial<Record<string, import('@typescript-eslint/utils/ts-eslint').SharedConfig.RuleEntry>>} */
export const rules = {
...typescript.rules,
...rulesToMoveToError,
...rulesToDecideOn,
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/no-unsafe-enum-comparison": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
Expand All @@ -31,11 +37,9 @@ export const rules = {
allowTaggedTemplates: true,
}],
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/restrict-template-expressions": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/explicit-function-return-type": ["off", {
allowExpressions: true,
allowTypedFunctionExpressions: true,
Expand Down

0 comments on commit 4946638

Please sign in to comment.