21 Star 188 Fork 52

huangshuwei/vue-easytable

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
huangshuwei 提交于 2021-08-26 09:39 . Update .eslintrc.js
// 参考 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: {},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/huangshuwei/vue-easytable.git
git@gitee.com:huangshuwei/vue-easytable.git
huangshuwei
vue-easytable
vue-easytable
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385