1 Star 0 Fork 21

Find Biao/vue-datav-chart

forked from upholdjx/vue-datav-chart 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
upholdjx 提交于 2020-10-12 13:30 . 优化全局组件注册
/*
* @Author: your name
* @Date: 2020-10-12 12:53:58
* @LastEditTime: 2020-10-12 13:22:04
* @LastEditors: Please set LastEditors
* @Description: Eslint 规则
*/
module.exports = {
root: true,
env: {
node: true
},
extends: ["plugin:vue/vue3-essential", "@vue/airbnb"],
parserOptions: {
parser: "babel-eslint"
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"linebreak-style": [0, "error", "windows"],
"import/no-named-as-default": 0,
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
//强制驼峰法命名
camelcase: [
0,
{
properties: "always"
}
],
quotes: [2, "double"], //引号类型 `` "" ''
semi: [2, "never"], //语句强制分号结尾
"comma-style": [2, "last"] // 控制逗号在行尾出现还是在行首出现
},
overrides: [
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
env: {
mocha: true
}
}
]
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/biao1996/vue-datav-chart.git
git@gitee.com:biao1996/vue-datav-chart.git
biao1996
vue-datav-chart
vue-datav-chart
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385