-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (48 loc) · 1.03 KB
/
.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
41
42
43
44
45
46
47
48
49
/*
* @Description: your description
* @Author: lkxian
* @@@Email: [email protected]
* @Date: 2022-08-27 13:34:48
* @LastEditTime: 2022-08-27 18:10:17
*/
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
// "off" or 0 - 关闭规则
// "warn" or 1 - 将规则视为一个警告
// "error" or 2 - 将规则视为一个错误
eqeqeq: 2, // 强制使用 === 和 !==
htmlWhitespaceSensitivity: 0, // 忽略'>'下落问题
// semi: [0],
'prettier/prettier': [
'error',
{
// singleQuote: true,
// parser: 'flow'
semi: true
}
],
'vue/multi-word-component-names': [
'off',
{
ignores: []
}
]
}
};