代码拉取完成,页面将自动刷新
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'plugin:vue/essential',
'standard'
],
parserOptions: {
ecmaVersion: 13,
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
globals: {
/** 避免uni报错 */
uni: true,
UniApp: true,
defineEmits: true,
defineProps: true
},
plugins: [
'vue',
'@typescript-eslint'
],
rules: {
'no-tabs': 'off',
'import/first': 0,
'vue/multi-word-component-name': 'off',
quotes: ['error', 'single'],
// 'arrow-parens': 'off',
// 'arrow-body-style': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
camelcase: 'off',
'@typescript-eslint/camelcase': 0,
'space-before-function-paren': ['error', 'never'],
'no-unused-expressions': 'off',
'no-useless-constructor': 'off',
// html结束括号换号:关闭
'vue/html-closing-bracket-newline': [0, {
singleline: 'never',
multiline: 'always'
}],
// html缩进为两个空格
'vue/html-indent': ['error', 2, {
attribute: 1, // 属性缩进的乘数
baseIndent: 1, // 顶级语句的缩进倍数
closeBracket: 0, // 右括号缩进的乘数
alignAttributesVertically: true, // 在多行情况下,属性是否应与第一个属性垂直对齐的条件
ignores: [] // 忽略节点的选择器
}],
// html中引号强制使用双引号
'vue/html-quotes': ['error', 'double'],
// 正常标签内左右都不允许有空格,自闭合(单标签)标签可以存在一个或多个空格
'vue/html-closing-bracket-spacing': ['error', {
startTag: 'never',
endTag: 'never',
selfClosingTag: 'always'
}],
// 标签中单行属性最多不能超过3个
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 4
},
multiline: {
max: 1
}
}],
// 需要在多行元素的内容前后换行
'vue/multiline-html-element-content-newline': [0, {
ignoreWhenEmpty: true,
ignores: ['a', 'b', 'u', 'span', 'img', 'input', 'strong', 'select', 'sub', 'sup', 'label', 'em', 'button', 'textarea', 'tt', 'var', 'samp', 'br', 'cite', 'code', 'font', 'strike']
}]
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。