加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 986 Bytes
一键复制 编辑 原始数据 按行查看 历史
xujianhua 提交于 2022-04-28 18:41 . 更新依赖
/*
* @Author: your name
* @Date: 2021-01-07 09:49:29
* @LastEditTime: 2022-04-28 18:32:51
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \vue3-element-admin\.eslintrc.js
*/
module.exports = {
root: true,
env: {
node: true,
"vue/setup-compiler-macros": true,
},
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/prettier",
],
parserOptions: {
parser: "@babel/eslint-parser",
},
// "writable" 以允许重写变量,或 "readonly" 不允许重写变量
globals: {
XE: "readonly",
VE_ENV: "readonly",
VE_API: "readonly",
},
rules: {
indent: [2, 4, { SwitchCase: 1 }],
"prettier/prettier": [2, { tabWidth: 4, endOfLine: "auto" }],
"no-console": "off",
"no-debugger": "off",
"vue/multi-word-component-names": 0,
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化