UNPKG

eslint-config-lofter

Version:

lofter eslint config

19 lines (18 loc) 758 B
module.exports = { plugins: [ 'react-hooks', ], rules: { // Enforce Rules of Hooks // https://github.com/facebook/react/blob/c11015ff4f610ac2924d1fc6d569a17657a404fd/packages/eslint-plugin-react-hooks/src/RulesOfHooks.js 'react-hooks/rules-of-hooks': 'error', // Verify the list of the dependencies for Hooks like useEffect and similar // https://github.com/facebook/react/blob/1204c789776cb01fbaf3e9f032e7e2ba85a44137/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js 'react-hooks/exhaustive-deps': 'error', "react/prefer-stateless-function": 'warn', 'react/prop-types': 'off', 'react/jsx-props-no-spreading': 'off', "react/function-component-definition": "off", "react/jsx-no-bind": "off" } }