1 Star 0 Fork 36

种蕊 / ballcat-ui-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
Hccake 提交于 2021-03-26 16:09 . :shirt:eslint 扫描修改
// https://eslint.vuejs.org/user-guide
module.exports = {
parser: 'vue-eslint-parser',
parserOptions: {
'parser': 'babel-eslint',
'ecmaVersion': 2020,
'sourceType': 'module'
},
extends: [
// add more generic rulesets here, such as:
// 'eslint:recommended',
'plugin:vue/base',
// 'plugin:vue/vue3-recommended'
'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
],
rules: {
// override/add rules settings here, such as:
// 'vue/no-unused-vars': 'error'
"no-console": process.env.NODE_ENV === "production" ? 2 : 0,
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
// 'vue/require-default-prop': 'off',
// 关闭使用 v-html 的检查
'vue/no-v-html': 'off',
// 3个属性以上才进行换行
'vue/max-attributes-per-line': ['error', {
'singleline': 3,
'multiline': {
'max': 1,
'allowFirstLine': false
}
}],
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off'
}
}
1
https://gitee.com/raidenr/ballcat-ui-vue.git
git@gitee.com:raidenr/ballcat-ui-vue.git
raidenr
ballcat-ui-vue
ballcat-ui-vue
master

搜索帮助