Skip to content

Commit a6b3c6a

Browse files
authored
chore: remove disabling of eslint rule and use ts-expect-error (#649)
1 parent fde35a3 commit a6b3c6a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
**/
77

88
import type {
9-
ESLint,
109
Linter,
1110
} from 'eslint'
1211
import eslintPluginReact from 'eslint-plugin-react'
@@ -25,7 +24,7 @@ export const reactConfig: Linter.Config = {
2524
plugins: {
2625
'jsx-a11y': eslintPluginJsxA11y,
2726
'react-hooks': eslintPluginReactHooks,
28-
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- TODO: remove type assertion after types are fixed in eslint-plugin-react - https://github.com/jsx-eslint/eslint-plugin-react/pull/3840
29-
'react': eslintPluginReact as ESLint.Plugin,
27+
// @ts-expect-error -- TODO: eslint-plugin-react has broken types, remove when new version is published - https://github.com/jsx-eslint/eslint-plugin-react/pull/3840
28+
'react': eslintPluginReact,
3029
},
3130
}

0 commit comments

Comments
 (0)