Skip to content

Commit 6316b2a

Browse files
BahinkorASafaeirad
authored andcommitted
feat: update react options
1 parent 930c862 commit 6316b2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ You can fine-tune module detection by overriding it, the `defineConfig` function
5050

5151
```typescript
5252
interface Options {
53-
react?: boolean; // controls react, react-hooks, jsx/a11y plugins
53+
react?: boolean | { version?: string; additionalEffectHooks?: string }; // controls react, react-hooks, jsx/a11y plugins
5454
typescript?: ParserOptions // https://typescript-eslint.io/packages/parser#configuration
5555
node?: boolean; // controls node plugin
5656
sort?: boolean; // controls perfectionist plugin

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface Options extends Linter.Config {
1919
* Controls React plugin.
2020
* @default true - If you have `react` or `react-dom` in your dependencies.
2121
*/
22-
react?: boolean;
22+
react?: boolean | { version?: string; additionalEffectHooks?: string };
2323
/**
2424
* @default true
2525
*/

0 commit comments

Comments
 (0)