代码拉取完成,页面将自动刷新
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
amd: true,
},
extends: ['plugin:vue/essential', 'eslint:recommended'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
// 解决 < 报错问题
parser: 'vue-eslint-parser',
rules: {
indent: ['error', 4, { SwitchCase: 1 }],
'linebreak-style': [0, 'error', 'windows'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'getter-return': 'error',
'no-console': 'error',
'no-control-regex': 'off',
'no-empty-character-class': 'off',
'valid-jsdoc': 'warn',
'array-callback-return': 'error',
'block-scoped-var': 'error',
complexity: ['error', 20],
curly: 'error',
'default-case': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'no-alert': 'error',
'no-caller': 'error',
'no-case-declarations': 'off',
'no-else-return': 'error',
'no-empty-function': 'error',
'no-eq-null': 'error',
'no-extra-label': 'error',
'no-floating-decimal': 'error',
'no-implicit-coercion': 'error',
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-lone-blocks': 'error',
'no-loop-func': 'error',
'no-multi-spaces': 'error',
'no-multi-str': 'error',
'no-new': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-param-reassign': 'error',
'no-proto': 'error',
'no-return-assign': 'error',
'no-return-await': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-throw-literal': 'error',
'no-unmodified-loop-condition': 'error',
'no-unused-expressions': 'error',
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-useless-return': 'error',
'no-void': 'warn',
'no-warning-comments': 'error',
'no-with': 'warn',
'prefer-promise-reject-errors': 'error',
'init-declarations': ['error', 'always'],
'no-catch-shadow': 'error',
'no-label-var': 'error',
'no-shadow-restricted-names': 'error',
'no-undef': 'off',
'no-undef-init': 'error',
'no-undefined': 'error',
'no-use-before-define': ['error', { functions: true, classes: true }],
'array-bracket-newline': ['error', 'consistent'],
'block-spacing': 'error',
'brace-style': 'error',
camelcase: 'error',
'comma-spacing': ['error', { before: false, after: true }],
'func-call-spacing': ['error', 'never'],
'id-blacklist': ['error', 'err', 'e', 'cb', 'callback'],
'implicit-arrow-linebreak': ['error', 'beside'],
'lines-between-class-members': ['error', 'always'],
'max-depth': ['error', 10],
'max-len': ['error', { code: 300 }],
'max-lines': ['error', 5000],
'max-nested-callbacks': ['error', 15],
'max-params': ['error', 20],
'max-statements-per-line': ['error', { max: 1 }],
'multiline-comment-style': ['error', 'starred-block'],
'multiline-ternary': ['error', 'never'],
'new-parens': 'error',
'no-inline-comments': 'error',
'no-lonely-if': 'error',
'no-multi-assign': 'error',
'no-multiple-empty-lines': ['error', { max: 3 }],
'no-nested-ternary': 'error',
'no-tabs': 'error',
'no-trailing-spaces': 'error',
'no-whitespace-before-property': 'error',
'nonblock-statement-body-position': ['error', 'below'],
'semi-style': ['error', 'last'],
'space-before-blocks': 'error',
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always',
},
],
'space-in-parens': ['error', 'never'],
'space-infix-ops': 'error',
'spaced-comment': ['error', 'always'],
'switch-colon-spacing': 'error',
'template-tag-spacing': ['error', 'always'],
'arrow-body-style': ['error', 'as-needed'],
'arrow-parens': ['error', 'as-needed'],
'arrow-spacing': 'error',
'generator-star-spacing': ['error', { before: true, after: true }],
'no-duplicate-imports': 'error',
'no-useless-computed-key': 'error',
'no-useless-constructor': 'error',
'no-useless-rename': 'error',
'require-yield': 'off',
'rest-spread-spacing': ['error', 'never'],
'yield-star-spacing': ['error', 'both'],
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。