module.exports = {
  root: true,
  env: {
    node: true
  },
  plugins:["jsdoc"],
  extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier',"plugin:jsdoc/recommended"],
  parserOptions: {
    parser: 'babel-eslint'
  },
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    "jsdoc/require-jsdoc" : 0,
    // allow async-await
    'generator-star-spacing': 'off',
    'no-new': 0,
    'no-unused-vars': 'warn',
    'jsdoc/check-tag-names': ['error', { 'definedTags': ['getter'] }],
    'prettier/prettier': [
      'error',
      { singleQuote: true, arrowParens: 'avoid', jsxBracketSameLine: true }
    ]
  },
  overrides: [
    {
      files: [
        '**/__tests__/*.{j,t}s?(x)',
        '**/tests/unit/**/*.spec.{j,t}s?(x)'
      ],
      env: {
        mocha: true
      }
    }
  ]
};
