代码拉取完成,页面将自动刷新
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'plugin:vue/vue3-essential',
'standard'
],
parserOptions: {
// ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
// sourceType: 'module'
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
modules: true
},
requireConfigFile: false
// parser: '@babel/eslint-parser'
},
plugins: [
'vue',
'@typescript-eslint'
],
rules: {
semi: [2, 'never'], // 禁止尾部使用分号“ ; ”
'no-var': 'error', // 禁止使用 var
indent: 0, // 强制使用一致缩进
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'], // 不能空格与tab混用
quotes: [2, 'single'], // 使用单引号
'vue/html-closing-bracket-newline': 'off', // 不强制换行
'vue/singleline-html-element-content-newline': 'off', // 不强制换行
'vue/max-attributes-per-line': ['error', {
singleline: { max: 5 },
multiline: { max: 5 }
}], // vue template模板元素第一行最多5个属性
'vue/multi-word-component-names': 'off', // 关闭组件命名规范
'space-before-function-paren': [0, 'always'], // 方法前面不需要空格 func() {}
eqeqeq: 0, // 不使用 ===
'prefer-const': 0, // 不主使用const
'no-tabs': 0, // 禁止使用 tabs
'eol-last': 0, // 末尾是否空行
camelcase: 0, // 是否强制驼峰
'prefer-promise-reject-errors': 0, // 该规则旨在确保 Promise 只使用 Error 对象拒绝
'no-new': 0, // 禁止使用 new 以避免产生副作用
'no-return-assign': 0 // 禁止在返回语句中赋值
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。