//更详细的配置文档请参考:https://github.com/vuejs/eslint-plugin-vue#gear-configs module.exports = { "extends": "plugin:vue/base", "parserOptions": { "ecmaVersion": "latest", "sourceType": 'module' }, 'settings': { 'html/html-extensions': [ ".erb", ".handlebars", ".hbs", ".htm", ".html", ".mustache", ".nunjucks", ".php", ".tag", ".twig", ".wxml", ".we", ] }, "rules": { 'no-alert': 0, 'eqeqeq': ['error', 'always'], // 用强等于做判断 'semi': [2, "always"], // 结尾不分号 'no-multi-spaces': 'error', 'quotes': ['error', 'single'], // 使用单引号 'arrow-parens': ['error', 'as-needed'], // 简略箭头函数 'object-curly-newline': ['error', { 'multiline': true }], // 在属性内部或属性之间有换行符,就要求有换行符 'object-curly-spacing': ['error', 'always'], // 要求花括号内有空格 (除了 {}) //在computed properties中禁用异步actions 'vue/no-async-in-computed-properties': 'error', //不允许重复的keys 'vue/no-dupe-keys': 'error', //不允许重复的attributes 'vue/no-duplicate-attributes': 'warn', //在