-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
40 lines (40 loc) · 1003 Bytes
/
Copy path.eslintrc.js
File metadata and controls
40 lines (40 loc) · 1003 Bytes
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
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'standard',
'plugin:vue/vue3-essential'
],
overrides: [
{
env: {
node: true
},
files: [
'.eslintrc.{js,cjs}'
],
parserOptions: {
sourceType: 'script'
}
}
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: [
'vue'
],
rules: {
'vue/multi-word-component-names': ['off'], // 是否强制组件名称多单词
camelcase: 'off', // 是否强制使用驼峰拼写法命名规定
'space-before-function-paren': ['off'], // 是否强制方法圆括号左边空格
'no-multiple-empty-lines': 'off', // 不允许多个空行
'new-cap': 'off', // 构造函数名首字母大写
'eol-last': 'off', // 要求或禁止文件末尾存在空行
'dot-notation': 'off', // 允许不使用点表示写法
'vue/no-mutating-props': ['off'] // 关闭Vue不能修改props警告
}
}