@lego/eslint-config-react
Version:
LEGO shareable eslint config for js projects
15 lines • 552 B
JavaScript
;
const config = {
rules: {
// Rules of hooks ensures that you can
// - Only Call Hooks at the Top Level
// - Only Call Hooks from React Functions
// see https://reactjs.org/docs/hooks-rules.html
'react-hooks/rules-of-hooks': 'error',
// verifies the list of dependencies for Hooks like useEffect and similar, protecting against
// the stale closure pitfalls
'react-hooks/exhaustive-deps': 'warn',
},
};
module.exports = config;
//# sourceMappingURL=react-hooks.js.map