text: /*
   * @Author: bytewe
   * @Date: 2021-08-20 22:50:55
   * @LastEditors: bytewe
   * @LastEditTime: 2021-08-20 23:04:41
   * @Description: eslint 配置文件
   */
  
  module.exports = {
      env: {
          browser: true,
          es2021: true,
          node: true
      },
      globals: {
          swan: 'readonly',
          wx: 'readonly',
          uni: 'readonly'
      },
      extends: [
          'eslint:recommended',
          'plugin:vue/essential',
          'plugin:vue/strongly-recommended',
          'plugin:vue/recommended',
          'plugin:@typescript-eslint/recommended'
      ],
      parser: 'vue-eslint-parser',
      parserOptions: {
          ecmaVersion: 12,
          parser: '@typescript-eslint/parser',
          sourceType: 'module'
      },
      plugins: ['vue', '@typescript-eslint'],
      // 规则 0:关闭,1:警告,2:错误
      rules: {
          // html缩进，默认为2
          'vue/html-indent': [2, 4],
          // 允许require
          '@typescript-eslint/no-var-requires': 0,
          // 允许any
          '@typescript-eslint/no-explicit-any': 0
      }
  };
  