UNPKG

eslint-config-bananass

Version:

ESLint Config for Bananass Framework.🍌

28 lines (24 loc) 941 B
/** * @fileoverview This file follows: * * - The rules listed on `eslint-plugin-react-hooks`. * - See, {@link https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#eslint-plugin-react-hooks}. */ // -------------------------------------------------------------------------------- // Exports // -------------------------------------------------------------------------------- module.exports = { /** * Verifies the list of dependencies for Hooks like `useEffect` and similar. * * @description This rule uses 'error' instead of 'warn'. * @link https://github.com/facebook/react/blob/v19.0.0/packages/eslint-plugin-react-hooks/src/index.js#L18 */ 'react-hooks/exhaustive-deps': 'error', /** * Enforces the Rules of Hooks. * * @link https://github.com/facebook/react/blob/v19.0.0/packages/eslint-plugin-react-hooks/src/index.js#L17 */ 'react-hooks/rules-of-hooks': 'error', };