代码拉取完成,页面将自动刷新
同步操作将从 bs_zz_1/bs-visual-dashboard 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'plugin:vue/essential',
'plugin:vue/recommended',
'airbnb-base',
'./packages/web/auto-imports.json',
],
parserOptions: {
ecmaVersion: 13,
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: ['vue', '@typescript-eslint', 'import'],
rules: {
indent: ['error', 2],
// 'linebreak-style': ['error', 'unix'],
'linebreak-style': 'off',
quotes: ['error', 'single'],
semi: ['error', 'never'],
'no-console': 'warn',
'no-unused-vars': 0,
'arrow-parens': 0,
// 防止赋值给声明为函数参数的变量引起的错误
'no-param-reassign': ['warn', { props: false }],
// 可以使用 for in
'no-restricted-syntax': 0,
// 可在方法中使用require
'global-require': 'warn',
// 函数内局部变量可与全局变量重名,阅读代码时容易混淆
'no-shadow': 'warn',
// 数组和对象键值对最后一个逗号, never参数:不能带末尾的逗号, always参数:必须带末尾的逗号,
// 'comma-dangle': [
// 'error',
// {
// arrays: 'always',
// objects: 'always',
// imports: 'never',
// exports: 'never',
// functions: 'never',
// },
// ],
// 控制逗号前后的空格
'comma-spacing': [2, { before: false, after: true }],
// 控制逗号在行尾出现还是在行首出现
'comma-style': [2, 'last'],
'no-tabs': 0,
'no-undef': 'off',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'import/no-extraneous-dependencies': [1, { devDependencies: true }],
'import/no-unresolved': 0,
'import/no-absolute-path': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/html-self-closing': 'off',
'vue/no-multiple-template-root': 0,
'vue/multi-word-component-names': 0,
'vue/max-attributes-per-line': ['warn', { // 标签一行最多容纳6个属性,超过换行
singleline: 6,
multiline: { max: 1 },
}],
'max-len': ['warn', 120],
'object-curly-newline': ['error', { multiline: true }],
'prefer-destructuring': ['error', { object: true, array: false }],
// add new line above comment
'lines-around-comment': [
'error',
{
beforeBlockComment: true,
beforeLineComment: true,
allowBlockStart: true,
allowClassStart: true,
allowObjectStart: true,
allowArrayStart: true,
},
],
'newline-before-return': 0,
'import/newline-after-import': ['error', { count: 1 }],
'import/extensions': ['warn', { scss: 'ignorePackages' }],
},
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。