We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e30e2 commit ddf10ecCopy full SHA for ddf10ec
src/modules/react.mjs
@@ -3,7 +3,7 @@ import a11yPlugin from 'eslint-plugin-jsx-a11y';
3
import hooksPlugin from 'eslint-plugin-react-hooks';
4
5
/** @return { import('eslint').Linter.Config } */
6
-function react() {
+function react(options = {}) {
7
return {
8
plugins: {
9
...reactPlugin.configs.all.plugins,
@@ -16,7 +16,7 @@ function react() {
16
version: 'detect',
17
},
18
'react-hooks': {
19
- additionalEffectHooks: '(useMyEffect|useCustomEffect)',
+ additionalEffectHooks: options.react.additionalEffectHooks,
20
21
22
rules: {
0 commit comments