UNPKG

vue-mobile-calendar-lhq

Version:

vue calendar lhq

39 lines (38 loc) 1.48 kB
module.exports = { root: true, env: { node: true }, 'extends': [ 'plugin:vue/essential', '@vue/standard' ], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'vue/require-prop-type-constructor':'off', "indent": ["error", 2], //缩进风格 "semi": [2, "always"], // 句尾强制分号 "eqeqeq": 2, // 要求使用 === 和 !== "no-alert": [2], // 禁止使用alert confirm prompt "quotes": [2, "single"], // 单引号 "arrow-parens": 2, //箭头函数用小括号括起来 "comma-spacing": ["error", { "before": false, "after": true }], //逗号前后的空格 "no-trailing-spaces": [2], // 语句前后空格 "key-spacing": [2, { "beforeColon": false, "afterColon": true }], // 对象字面量中冒号的前后空格 "space-before-function-paren": [2, "never"], // 函数定义时括号前面要不要有空格 "no-unreachable": 2, //不能有无法执行的代码 "spaced-comment": 2, //注释风格,//后加空格 "comma-dangle": ["error", { // 数组、对象逗号风格 "arrays": "always-multiline", "objects": "always-multiline", "imports": "always-multiline", "exports": "always-multiline", "functions": "ignore" }], "no-unused-vars": 'off', }, parserOptions: { parser: 'babel-eslint' } }