forked from Liberty-liu/Everright-filter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
42 lines (42 loc) · 1.08 KB
/
.eslintrc.cjs
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
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'plugin:vue/vue3-essential',
'standard'
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: [
'vue'
],
rules: {
'vue/multi-word-component-names': 'off',
'vue/no-export-in-script-setup': 'off',
'no-unused-vars': 'off',
'no-undef': 'off',
'no-debugger': 'off',
'vue/no-mutating-props': 'off',
'import/no-absolute-path': 'off',
'vue/prefer-import-from-vue': 'off',
'prefer-promise-reject-errors': 'off',
'n/no-callback-literal': 'off',
'promise/param-names': 'off',
'no-case-declarations': 'off',
'no-useless-escape': 'off',
'no-mixed-operators': 'off',
'no-async-promise-executor': 'off'
},
overrides: [
// {
// files: ['/Users/liuhaifeng/Documents/own/vue/Everright-editor/src/editor/panels/Config/Config.vue'], // 匹配views和二级目录中的index.vue
// rules: {
// 'vue/multi-word-component-names':"off",
// } //给上面匹配的文件指定规则
// },
]
}