Skip to content

Commit 7062cc5

Browse files
committed
feat(react): add react-web-api plugin support
- register react-web-api plugin from @eslint-react/web-api - enable web api specific linting rules for react components
1 parent 40e2bb8 commit 7062cc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/configs/react.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export async function react(options: ReactOptions = {}): Promise<ESLintFlatConfi
7878
'react-hooks-extra': plugins['@eslint-react/hooks-extra'],
7979
'react-naming-convention': plugins['@eslint-react/naming-convention'],
8080
'react-refresh': ReactRefreshPlugin,
81+
'react-web-api': plugins['@eslint-react/web-api'],
8182
...(a11y && JsxA11yPlugin ? { 'jsx-a11y': JsxA11yPlugin } : {}),
8283
},
8384
rules: {

0 commit comments

Comments
 (0)