Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
.eslintrc.js 1.84 KB
Copy Edit Raw Blame History
苏圊妖 authored 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 助手
尝试更多
代码解读
代码找茬
代码优化