'use strict';

module.exports = {
  extends: [
    'eslint-config-airbnb/rules/react',
    'eslint-config-airbnb/rules/react-a11y',
    'eslint-config-prettier',
    'eslint-config-prettier/react',
    './rules/react',
  ].map(require.resolve),

  settings: {
    'import/resolver': {
      node: {
        extensions: ['.mjs', '.js', '.json', '.jsx'],
      },
    },
  },

  rules: {
    'import/extensions': ['error', { extensions: ['jsx', 'js'] }],
    'react/jsx-filename-extension': ['error', { extensions: ['jsx'] }],
  },
};

@@ -368,16 +368,59 @@
 ,%0A  %7D,%0A%0A
+  plugins: %5B'eslint-plugin-react-hooks'%5D,%0A%0A
   rules:
@@ -560,16 +560,60 @@
 sx'%5D %7D%5D,
+%0A%0A    'react-hooks/rules-of-hooks': 'error',
 %0A  %7D,%0A%7D;

enable react-hooks plugin