加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
苏圊妖 提交于 2021-07-30 18:20 . first commit
/*
* @Author: suxunying
* @desc:
* @Date: 2021-07-30 15:24:21
* @LastEditors: suxunying
* @LastEditTime: 2021-07-30 15:24:21
* @FilePath: \cocosdashboard\.eslintrc.js
*/
/*
* @desc: eslint文件配置
* @Author: linlianqiang
* @Date: 2021-07-22 14:21:35
* @LastEditTime: 2021-07-29 10:28:28
* @LastEditors: Choim
* @FilePath: \cocosdashboard\.eslintrc.js
*/
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb',
'@vue/typescript/recommended',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'linebreak-style': 0,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
'@typescript-eslint/no-var-requires': 0,
"global-require": 0,
"max-len": [0, 150],
"indent": ["error", 4],
"vue/html-indent": ["error", 4],
"class-methods-use-this": "off",
"vue/singleline-html-element-content-newline": "off",
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true, // Allow `const { props, state } = this`; false by default
"allowedNames": ["_this"] // Allow `const _this = this`; `[]` by default
}
]
},
settings: {
"import/resolver": {
"webpack": {
//此处config对应webpack.config.js的路径,我这个路径是vue-cli3默认的路径
"config": "node_modules/@vue/cli-service/webpack.config.js"
}
}
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化