[lint] Enable custom hooks configuration for useEffectEvent calling rules
We need to be able to specify additional effect hooks for the RulesOfHooks lint rule
in order to allow useEffectEvent to be called by custom effects. ExhaustiveDeps
does this with a regex suppplied to the rule, but that regex is not accessible from
other rules.
This diff introduces a `react-eslint` entry you can put in the eslint settings that
allows you to specify custom effect hooks and share them across all rules.
This works like:
```
{
settings: {
'react-eslint': {
additionalEffectHooks: string,
},
},
}
```
The next diff allows useEffect to read from the same configuration.
---- J
Jordan Brown committed
4e248b30477838ee16471fde3fde388b9642d153
Parent: 09d3cd8