1 Star 0 Fork 100

keyzf / ZSFlowEditor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
// "plugin:vue/essential",
'plugin:vue/vue3-recommended',
'standard',
],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: [
'vue',
],
rules: {
// 尾随逗号
'comma-dangle': [2, 'always-multiline'],
// 空格
'comma-spacing': [2, { before: false, after: true }],
'comma-style': [2, 'last'],
'vue/comment-directive': 'off',
quotes: [2, 'single', { avoidEscape: true, allowTemplateLiterals: true }],
semi: [2, 'always'],
// 分号之前或之后放置不必要的空格
'semi-spacing': [2, { before: false, after: true }],
'space-before-blocks': [2, 'always'],
'space-before-function-paren': ['error', {
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
}],
'vue/max-attributes-per-line': [2, {
singleline: {
max: 5,
},
multiline: {
max: 5,
},
}],
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/html-self-closing': ['error', {
html: {
void: 'never',
normal: 'any',
component: 'any',
},
svg: 'always',
math: 'always',
}],
'vue/no-v-html': 'off',
// 组件名必须是多个单词
'vue/multi-word-component-names': 'off',
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/keyzf/zsflow-editor.git
git@gitee.com:keyzf/zsflow-editor.git
keyzf
zsflow-editor
ZSFlowEditor
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891