/* eslint-disable */
module.exports = {
  root: true,
  env: {
    browser: true,
    es2021: true,
    node: true,
  },
  extends: [
    'standard',
    'eslint:recommended',
    '@vue/typescript/recommended',
    'plugin:prettier/recommended',
    'prettier',
  ],
  parser: 'vue-eslint-parser',
  parserOptions: {
    ecmaVersion: 12,
    parser: '@typescript-eslint/parser',
    sourceType: 'module',
  },
  plugins: ['vue', '@typescript-eslint', 'prettier'],
  ignorePatterns: ['*spec*', '*unit*'],
  rules: {
    'prettier/prettier': ['warn', {
      "singleQuote": true,
      "singleAttributePerLine": false,
    }],

    'no-void': 'warn',
    'no-prototype-builtins': 'warn',
    'no-use-before-define': 'off',
    'vue/no-use-v-if-with-v-for': 'warn',

    'vue/require-v-for-key': 'warn',
    'vue/valid-v-for': 'warn',
    'vue/valid-v-slot': 'warn',
    'prefer-promise-reject-errors': 'warn',
    'node/handle-callback-err': 'warn',

    '@typescript-eslint/ban-ts-ignore': 'off',
    '@typescript-eslint/ban-ts-comment': 'off',
  },

  globals: {
    it: true,
    expect: true,
    test: true,
    describe: true,
    beforeEach: true,
    beforeAll: true,
  },
};
