/* * Copyright (c) 2019. * author: wally * email: 18603454788@163.com */ module.exports = { root: true, env: { browser: true, node: true }, extends: ['plugin:vue/recommended', 'plugin:vue/essential'], rules: { 'vue/html-self-closing': 'off', 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-param-reassign': ['error', { props: true, ignorePropertyModificationsFor: ['state'] }], 'max-len': ['error', { code: 140, tabWidth: 2 }], 'object-curly-newline': ['error', { multiline: true }], 'arrow-parens': ['error', 'as-needed'], 'linebreak-style': 'off', 'vue/attributes-order': 'off', 'no-param-reassign': 'off', 'vue/singleline-html-element-content-newline': 'off', 'vue/max-attributes-per-line': 'off', 'vue/multiline-html-element-content-newline': 'off', 'vue/html-indent': 'off', }, parserOptions: { parser: 'babel-eslint' }, overrides: [ { files: ['**/__tests__/*.{j,t}s?(x)'], env: { jest: true }, }, ], globals: { Vue: true, VueRouter: true, Vuex: true, axios: true, _: true, Vuetify: true, vuetify: true, }, };