4 Star 1 Fork 1

内蒙麦盟/婚庆mp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 2.93 KB
一键复制 编辑 原始数据 按行查看 历史
丶DB__ 提交于 2021-08-03 11:21 . 上传项目文件
// 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,
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/inner-mongolia-maimeng/hunqingmap.git
git@gitee.com:inner-mongolia-maimeng/hunqingmap.git
inner-mongolia-maimeng
hunqingmap
婚庆mp
master

搜索帮助