1 Star 0 Fork 21

cnhans / vue-datav-chart

forked from upholdjx / vue-datav-chart 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
upholdjx 提交于 2022-07-11 14:30 . update
/*
* @Author: your name
* @Date: 2020-10-12 12:53:58
* @LastEditTime: 2022-07-11 11:48:59
* @LastEditors: zhangjx
* @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
}
}
]
};
JavaScript
1
https://gitee.com/cnhans/vue-datav-chart.git
git@gitee.com:cnhans/vue-datav-chart.git
cnhans
vue-datav-chart
vue-datav-chart
master

搜索帮助