module.exports = {
  root: true,
  env: {
    node: true
  },
  globals: {
    __static: true,
    EXIF: true,
    AMap: true,
    tracking:true,
    pinyinUtil:true,
    faceapi:true
  },
  'extends': [
    'plugin:vue/strongly-recommended',
    '@vue/standard'
  ],
  'rules': {
    // allow async-await
    'generator-star-spacing': 'off',
    // allow debugger during development
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'vue/html-self-closing': ['error', {
      'html': {
        'void': 'never',
        'normal': 'any',
        'component': 'any'
      },
      'svg': 'always',
      'math': 'always'
    }],
    'vue/name-property-casing':'off',
    'vue/html-closing-bracket-newline': 'off',
    'vue/component-name-in-template-casing': 'off',
    'camelcase':'off',
    'prettier/prettier': [
      'warn', {
        singleQuote: true,
        semi: false
      }
    ]
  },
  parserOptions: {
    parser: 'babel-eslint'
  }
}
