代码拉取完成,页面将自动刷新
// 参考 https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
env: {
node: true,
},
extends: ["plugin:vue/essential", "eslint:recommended", "prettier"],
rules: {
"no-console": "off",
"no-debugger": "off",
"no-unused-vars": "warn",
"no-useless-escape": "off",
// plugin:vue/recommended 规则
"vue/attributes-order": "error",
"vue/html-quotes": ["error", "double"],
// plugin:vue/strongly-recommended 规则
"vue/attribute-hyphenation": ["error", "always"],
"vue/html-end-tags": "error",
"vue/html-indent": "off",
"vue/require-default-prop": "error",
"vue/require-prop-types": "error",
"vue/jsx-uses-vars": "error",
"consistent-this": ["error", "that"], // this别名
"vue/order-in-components": [
"error",
{
// methods 顺序和 官网推荐稍有不同
order: [
"el",
"name",
"parent",
"functional",
["delimiters", "comments"],
["components", "directives", "filters"],
"extends",
"mixins",
"inheritAttrs",
"model",
["props", "propsData"],
"data",
"computed",
"watch",
"methods",
"LIFECYCLE_HOOKS",
["template", "render"],
"renderError",
],
},
],
},
parserOptions: {
parser: "babel-eslint",
},
globals: {},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。