代码拉取完成,页面将自动刷新
module.exports = {
root: true,
env: {
node: true,
},
extends: ["plugin:vue/strongly-recommended", "@vue/standard"],
rules: {
// 自定义的规则
"linebreak-style": [0, "error", "windows"],
indent: ["error", 4, { SwitchCase: 1 }], // case缩进层级
"vue/max-attributes-per-line": [
2,
{
singleline: 10,
multiline: {
max: 1,
allowFirstLine: false,
},
},
],
"vue/attribute-hyphenation": 0,
"vue/html-self-closing": 0,
"vue/component-name-in-template-casing": 0,
"vue/html-closing-bracket-spacing": 0,
"vue/singleline-html-element-content-newline": 0,
"vue/no-unused-components": 0,
"vue/multiline-html-element-content-newline": 0,
"vue/no-use-v-if-with-v-for": 0,
"vue/html-closing-bracket-newline": 0,
"vue/no-parsing-error": 0,
/*******/
"no-tabs": 0,
quotes: [
2,
"single",
{
avoidEscape: true,
allowTemplateLiterals: true,
},
],
semi: [
2,
"never",
{
beforeStatementContinuationChars: "never",
},
],
"no-delete-var": 2,
"prefer-const": [
2,
{
ignoreReadBeforeAssign: false,
},
],
"template-curly-spacing": "off",
indent: "off",
camelcase: "off",
"generator-star-spacing": "off",
"no-mixed-operators": 0,
"no-unused-expressions": 0, // 禁止无用的表达式
"no-const-assign": 2, // 禁止修改const声明的变量
"no-new-object": 2, // 禁止使用new Object()
"no-trailing-spaces": 1, // 一行结束后面不要有空格
camelcase: 2, // 强制驼峰法命名
"comma-dangle": [2, "never"], // 对象字面量项尾不能有逗号
"comma-spacing": 1, // 逗号前后的空格
"comma-style": [2, "last"], // 逗号风格,换行时在行首还是行尾
complexity: [0, 15], // 循环复杂度
eqeqeq: 0, // 必须使用全等
indent: [2, 2], // 缩进风格
indent: [
"error",
2,
{
ignoredNodes: ["TemplateLiteral"],
},
],
quotes: [1, "single"], // 引号类型 `` "" ''
indent: 0,
'comma-dangle': 0,
'no-trailing-spaces': 0,
'eol-last': 0
},
parserOptions: {
parser: "babel-eslint",
},
overrides: [
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)",
],
env: {
jest: true,
},
},
],
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。