module.exports = {
  root: true,
  env: {
    node: true,
    'vue/setup-compiler-macros': true
  },
  // 指定如何解析语法
  parser: "vue-eslint-parser",
  'extends': [
    'plugin:vue/vue3-essential',
    'eslint:recommended',
    '@vue/typescript/recommended',
    'eslint-config-hpsfir/tslint',
  ],
  parserOptions: {
    ecmaVersion: 2020,
    parser: '@typescript-eslint/parser'
  },
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    "vue/multi-word-component-names": 'off',
    "no-warning-comments": 'warn',
    '@typescript-eslint/no-var-requires': 'off',
    "@typescript-eslint/no-unused-vars": 'off'
  }
}
