Skip to content

Commit

Permalink
Corrected typing issues after update
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Wendt <steffen.wendt@cloudflight.io>
  • Loading branch information
sateffen committed Oct 25, 2024
1 parent 25f560c commit d1847d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/eslint-plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import type {TSESLint} from '@typescript-eslint/utils';

import {
cloudflightTypescriptBaseConfig,
cloudflightTypescriptConfig, cloudflightTypescriptDisableTypeCheckedConfig,
cloudflightTypescriptConfig,
cloudflightTypescriptDisableTypeCheckedConfig,
cloudflightTypescriptImportConfig,
} from '@cloudflight/eslint-plugin-typescript';
import jsxA11y from 'eslint-plugin-jsx-a11y';
import tseslint from 'typescript-eslint';
// see https://github.com/jsx-eslint/eslint-plugin-react/issues/3838
// eslint-disable-next-line import-x/default
import react from 'eslint-plugin-react';
import pluginReactHooks from 'eslint-plugin-react-hooks';

Expand All @@ -29,12 +29,12 @@ export const cloudflightReactConfig = tseslint.config(
...cloudflightTypescriptImportConfig,
// type assertion is workaround for incorrect TypeScript types in eslint-plugin-react
// see https://github.com/jsx-eslint/eslint-plugin-react/issues/3838
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
react.configs.flat.recommended as TSESLint.FlatConfig.Config,
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions,@typescript-eslint/no-non-null-assertion
react.configs.flat!['recommended'] as TSESLint.FlatConfig.Config,
// type assertion is workaround for incorrect TypeScript types in eslint-plugin-react
// see https://github.com/jsx-eslint/eslint-plugin-react/issues/3838
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
react.configs.flat['jsx-runtime'] as TSESLint.FlatConfig.Config,
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions,@typescript-eslint/no-non-null-assertion
react.configs.flat!['jsx-runtime'] as TSESLint.FlatConfig.Config,
jsxA11y.flatConfigs.recommended,
],
languageOptions: {
Expand Down

0 comments on commit d1847d2

Please sign in to comment.