text: module.exports = {
    root: true,
    parserOptions: {
      ecmaFeatures: {
        jsx: true,
      },
      ecmaVersion: 2021,
      sourceType: 'module',
    },
    plugins: ['react', 'jsx-a11y'],
    extends: [
      'eslint:recommended',
      'plugin:react/recommended',
      'plugin:react-hooks/recommended',
      'plugin:prettier/recommended',
      'prettier-standard',
    ],
    env: {
      browser: true,
      es2021: true,
    },
    settings: {
      react: {
        version: 'detect',
      },
    },
    rules: {
      'prettier/prettier': [
        'error',
        {
          arrowParens: 'avoid',
          singleQuote: true,
          semi: false,
        },
      ],
    },
    overrides: [
      // node files
      {
        files: [
          '.eslintrc.js',
          '.prettierrc.js',
          'gatsby-config.js',
          'postcss.config.js',
          'tailwind.config.js',
        ],
        parserOptions: {
          sourceType: 'script',
        },
        env: {
          browser: false,
          node: true,
        },
        plugins: ['node'],
        extends: ['plugin:node/recommended'],
        rules: {
          // this can be removed once the following is fixed
          // https://github.com/mysticatea/eslint-plugin-node/issues/77
          'node/no-unpublished-require': 'off',
        },
      },
    ],
  }
  