Skip to content

Commit ddf10ec

Browse files
BahinkorASafaeirad
authored andcommitted
feat: dev react file
1 parent a6e30e2 commit ddf10ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/react.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import a11yPlugin from 'eslint-plugin-jsx-a11y';
33
import hooksPlugin from 'eslint-plugin-react-hooks';
44

55
/** @return { import('eslint').Linter.Config } */
6-
function react() {
6+
function react(options = {}) {
77
return {
88
plugins: {
99
...reactPlugin.configs.all.plugins,
@@ -16,7 +16,7 @@ function react() {
1616
version: 'detect',
1717
},
1818
'react-hooks': {
19-
additionalEffectHooks: '(useMyEffect|useCustomEffect)',
19+
additionalEffectHooks: options.react.additionalEffectHooks,
2020
},
2121
},
2222
rules: {

0 commit comments

Comments
 (0)