diff --git a/packages/eslint-config/src/overrides/cypress.ts b/packages/eslint-config/src/overrides/cypress.ts index 28c70b4..1e674a3 100644 --- a/packages/eslint-config/src/overrides/cypress.ts +++ b/packages/eslint-config/src/overrides/cypress.ts @@ -29,6 +29,7 @@ export const cypressOverrides: Linter.ConfigOverride | undefined = 'promise/always-return': 'off', 'import/no-import-module-exports': 'off', '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/naming-convention': ( ['error'] as Linter.RuleLevelAndOptions diff --git a/packages/eslint-config/src/overrides/storybook.ts b/packages/eslint-config/src/overrides/storybook.ts index c7e92c0..105a6a1 100644 --- a/packages/eslint-config/src/overrides/storybook.ts +++ b/packages/eslint-config/src/overrides/storybook.ts @@ -20,6 +20,7 @@ export const storybookOverrides: Linter.ConfigOverride = { 'react/require-default-props': 'off', 'react-refresh/only-export-components': 'off', '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/naming-convention': 'off', '@typescript-eslint/ban-ts-comment': 'off', 'consistent-return': 'error', diff --git a/packages/eslint-config/src/overrides/typescriptDocumentation.ts b/packages/eslint-config/src/overrides/typescriptDocumentation.ts index 5394083..71aa208 100644 --- a/packages/eslint-config/src/overrides/typescriptDocumentation.ts +++ b/packages/eslint-config/src/overrides/typescriptDocumentation.ts @@ -17,6 +17,7 @@ export const typescriptDocumentationOverrides = mergeDeep( rules: { ...documentationOverrides.rules, '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/naming-convention': 'off', '@typescript-eslint/ban-ts-comment': 'off', // here we use the more lenient consistent-return to help prevent weird errors diff --git a/packages/eslint-config/src/presets/cypressInternal.ts b/packages/eslint-config/src/presets/cypressInternal.ts index ced39bc..91649fe 100644 --- a/packages/eslint-config/src/presets/cypressInternal.ts +++ b/packages/eslint-config/src/presets/cypressInternal.ts @@ -25,6 +25,7 @@ export const cypressPreset = { 'promise/always-return': 'off', 'import/no-import-module-exports': 'off', '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/naming-convention': ( ['error'] as Linter.RuleLevelAndOptions diff --git a/packages/eslint-config/src/presets/typescript.ts b/packages/eslint-config/src/presets/typescript.ts index 6910c8e..8ad6a00 100644 --- a/packages/eslint-config/src/presets/typescript.ts +++ b/packages/eslint-config/src/presets/typescript.ts @@ -35,6 +35,7 @@ module.exports = { '@typescript-eslint/no-empty-interface': 'warn', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unsafe-assignment': 'off', }, }), buildBaseTypescript({