UNPKG

eslint-flat-config-airbnb

Version:

A mostly reasonable approach to JavaScript and React using Airbnb's ESLint config, updated for ESLint 9+

19 lines (16 loc) 396 B
import reactHooksPlugin from 'eslint-plugin-react-hooks'; const reactHooks = { plugins: { 'react-hooks': reactHooksPlugin, }, languageOptions: { parserOptions: { ecmaFeatures: { jsx: true }, }, }, rules: { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'error', }, }; export default reactHooks;