/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
    root: true,
    extends: [
        'plugin:vue/vue3-essential',
        'eslint:recommended',
        '@vue/eslint-config-typescript',
        '@vue/eslint-config-prettier/skip-formatting'
    ],
    parserOptions: {
        ecmaVersion: 'latest'
    },
    env: {
        node: true
    },
    rules: {
        'vue/no-deprecated-slot-attribute': 'off',
        'no-unused-vars': 'off',
        'vue/multi-word-component-names': 'off',
        '@typescript-eslint/no-unused-vars': 'off'
    },
    globals: {
        Chat: 'readonly',
        NoCaptcha: 'readonly',
        wx: 'readonly'
    }
}
