module.exports = {
    root: true,
    env: {
        node: true
    },
    extends: ['plugin:vue/essential', '@vue/prettier'],
    rules: {
        'no-console': 'off',
        'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
        'no-unused-vars': 'off',
        'no-empty': ['error', { allowEmptyCatch: true }],
        'prettier/prettier': ['error']
    },
    parserOptions: {
        parser: 'babel-eslint'
    },
    globals: {
        Chart: true,
        AMap: true,
        FontAwesome: true
    }
};
