/* * @Descripttion: eslint配置 * @version: 1.0.0 * @Author: dream * @Date: 2021-03-26 09:48:52 * @LastEditors: dream * @LastEditTime: 2021-03-28 12:40:35 */ module.exports = { env: { browser: true, es2021: true }, extends: [ 'plugin:vue/essential', 'standard' ], parserOptions: { ecmaVersion: 9, sourceType: 'module' }, plugins: [ 'vue' ], rules: { // allow async-await 'generator-star-spacing': 'off', // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-tabs': 'off', indent: ['warn', 2], 'no-async-promise-executor': 'off', 'no-undef': 'off', 'vue/valid-v-bind': 'off' } }