-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
40 lines (36 loc) · 986 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* @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,
},
};