代码拉取完成,页面将自动刷新
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2020,
// parser: 'babel-eslint',
ecmaFeatures: {
legacyDecorators: true,
},
},
env: {
browser: true,
node: true,
},
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
extends: ['plugin:vue/essential', 'airbnb-base', '@vue/typescript/recommended'],
// required to lint *.vue files
plugins: [
'vue'
],
// check if imports actually resolve
settings: {
'import/resolver': {
webpack: {
config: 'build/webpack.base.config.js'
}
}
},
rules: {
// disallow reassignment of function parameters
// disallow parameter object manipulation except for specific exclusions
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state', // for vuex state
'acc', // for reduce accumulators
'e' // for e.returnvalue
]
}],
// allow optionalDependencies
'import/no-extraneous-dependencies': ['error', {
optionalDependencies: ['test/unit/index.js']
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// others
'no-console': 'off',
'semi': [
'error',
'never'
],
'no-new': 'off',
'comma-dangle': [
'error',
'only-multiline'
],
'import/no-webpack-loader-syntax': 'off',
'import/first': 'off',
'linebreak-style': ['off', 'windows'],
"indent": ["error", 4],
"semi": 'off',
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-param-reassign": "off",
"no-plusplus": "off",
"default-case": "off",
"func-names": "off",
"no-else-return": "off",
"max-len": "off",
"no-use-before-define": "off",
"space-before-function-paren": "off",
"no-underscore-dangle": "off",
"consistent-return": "off",
"no-unused-vars": "off",
"no-multi-assign": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-mixed-operators": "off",
"array-bracket-spacing": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-this-alias": "off",
"arrow-body-style": "off",
"import/no-extraneous-dependencies": "off",
"prefer-template": "off",
"@typescript-eslint/no-non-null-assertion": "off",
},
'globals': {
'window': true,
'document': true,
'App': true,
'Page': true,
'Component': true,
'Behavior': true,
'wx': true,
'getCurrentPages': true,
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。