|
|
|
|
|
by hansmayer
21 days ago
|
|
> The linter rules is just about lowering the amount of mistakes you have to catch at code review time. Aren't they, in the modern context, mostly used for code formatting and such? I don't recall anyone using them today for "catching errors". Unless you count code formatting style violations as 'errors'. |
|
Like for instance there are tons of eslint rules to make sure you aren't breaking the rules of react, like having missing dependencies in a useEffect dependencies array, or calling a react hook conditionally.