Skip to content

Commit a9817f3

Browse files
committed
chore(eslint): update react hooks config
1 parent e39088e commit a9817f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/site/eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import next from '@next/eslint-plugin-next';
22
import * as mdx from 'eslint-plugin-mdx';
33
import react from 'eslint-plugin-react';
4-
import * as hooks from 'eslint-plugin-react-hooks';
4+
import reactHooks from 'eslint-plugin-react-hooks';
55

66
import baseConfig from '../../eslint.config.js';
77

@@ -11,7 +11,7 @@ export default baseConfig.concat([
1111
},
1212

1313
react.configs.flat['jsx-runtime'],
14-
hooks.configs['recommended-latest'],
14+
reactHooks.configs.flat['recommended-latest'],
1515
next.configs['core-web-vitals'],
1616
mdx.flatCodeBlocks,
1717

packages/ui-components/eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import react from 'eslint-plugin-react';
2-
import * as hooks from 'eslint-plugin-react-hooks';
2+
import reactHooks from 'eslint-plugin-react-hooks';
33
import storybook from 'eslint-plugin-storybook';
44

55
import baseConfig from '../../eslint.config.js';
66

77
export default baseConfig.concat([
88
react.configs.flat['jsx-runtime'],
9-
hooks.configs['recommended-latest'],
9+
reactHooks.configs.flat['recommended-latest'],
1010
...storybook.configs['flat/recommended'],
1111

1212
// Type-checking

0 commit comments

Comments
 (0)