text: module.exports = {
    env: {
      browser: true,
      es6: true,
      node: true,
    },
  
    // the ts-eslint recommended ruleset sets the parser so we need to set it back
    parser: 'vue-eslint-parser',
  
    parserOptions: {
      ecmaVersion: 2020,
      parser: '@typescript-eslint/parser',
      extraFileExtensions: ['.vue'],
      ecmaFeatures: {
        jsx: true,
      },
      sourceType: 'module',
    },
  
    extends: [
      'plugin:vue/vue3-essential',
      'eslint:recommended',
      'plugin:@typescript-eslint/eslint-recommended',
      'plugin:@typescript-eslint/recommended',
      'plugin:prettier/recommended',
      'prettier/vue',
      'prettier/@typescript-eslint',
    ],
  
    plugins: ['vue', '@typescript-eslint'],
  
    rules: {
      'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
      'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  
      // this rule, if on, would require explicit return type on the `render` function
      '@typescript-eslint/explicit-function-return-type': 'off',
  
      // conflict with Prettier
      // 'vue/html-indent': 'off',
    },
  
    overrides: [
      {
        files: ['*.js'],
        rules: {
          '@typescript-eslint/no-var-requires': 'off',
        },
      },
    ],
  }
  