module.exports = {
  env: {
    browser: true,
    es2021: true,
    node: true,
    es6: true,
    jquery: true
  },
  extends: [
    'eslint:recommended',
    'plugin:@typescript-eslint/recommended',
    'plugin:vue/vue3-essential',
    'prettier',
    'plugin:prettier/recommended'
  ],
  overrides: [],
  parser: 'vue-eslint-parser',
  parserOptions: {
    ecmaVersion: 12,
    parser: '@typescript-eslint/parser',
    sourceType: 'module'
  },
  plugins: ['vue', '@typescript-eslint'],
  rules: {
    'linebreak-style': ['off', 'windows'],
    quotes: ['error', 'single'],
    semi: ['error', 'never'],
    indent: 'off',
    'vue/no-unused-components': 1,
    '@typescript-eslint/no-explicit-any': 0,
    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 1,
    'no-const-assign': 2,
    '@typescript-eslint/no-var-requires': ['error'],
    'no-mixed-spaces-and-tabs': 2,
    'no-multi-spaces': 2,
    'no-trailing-spaces': 2,
    'no-spaced-func': 2,
    'no-whitespace-before-property': 2,
    'spaced-comment': [
      2,
      'always',
      {
        markers: [
          'global',
          'globals',
          'eslint',
          'eslint-disable',
          '*package',
          '!',
          ','
        ]
      }
    ],
    'no-unused-vars': 'off',
    'vue/multi-word-component-names': 0
  },
  globals: {
    _: true,
    Cesium: true,
    Glodon: true
  }
}
