Skip to content

Commit c07928d

Browse files
committed
docs: minor improvements
1 parent 9d787a8 commit c07928d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

website/pages/docs/configuration.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ React version to use, `"detect"` means auto detect React version from the projec
3131
(type: `Record<string, string[]>`)
3232

3333
A Record of aliases for React's built-in Hooks. ESLint React will recognize these aliases as equivalent to the built-in Hooks in all its rules.\
34-
For example, `useState` can also be referred to as `useLocalStorageState`, and `useLayoutEffect` can also be referred to as `useIsomorphicLayoutEffect`\
35-
(e.g. `{ useState: ["useLocalStorageState"], useLayoutEffect: ["useIsomorphicLayoutEffect"] }`).
34+
This is intended to cover edge cases. We suggest to use this option very sparingly, if at all.\
35+
(e.g. `{ useLayoutEffect: ["useIsomorphicLayoutEffect"] }`).
3636

3737
## Examples
3838

@@ -49,7 +49,6 @@ module.exports = {
4949
jsxPragma: "React",
5050
jsxPragmaFrag: "Fragment",
5151
additionalHooks: {
52-
useState: ["useLocalStorageState"],
5352
useLayoutEffect: ["useIsomorphicLayoutEffect"],
5453
// ...
5554
},

0 commit comments

Comments
 (0)