Skip to content

Commit

Permalink
fix: disable @typescript-eslint/no-unsafe-assignment where any is all…
Browse files Browse the repository at this point in the history
…owed
  • Loading branch information
SimeonC committed Jan 30, 2024
1 parent 5049551 commit 4362ec0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config/src/overrides/cypress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/src/overrides/storybook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/src/presets/cypressInternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/src/presets/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 4362ec0

Please sign in to comment.