-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
46 lines (46 loc) · 1.09 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
module.exports = {
"env": {
"browser": true,
"node": true
},
"extends": [
"plugin:vue/recommended",
"airbnb-base",
"prettier"
],
"plugins": ["prettier", "import", "vue"],
"parserOptions": {
"parser": "@babel/eslint-parser",
"requireConfigFile": false
},
"rules": {
// 使用单引号
"quotes": [
"error",
"single"
],
// 禁止检查模块路径
"import/no-unresolved": 0,
// 不允许对 function 的参数进行重新赋值
"no-param-reassign": 0,
// 禁止出现未使用过的变量
"no-unused-vars": ["error", {
"args": "none"
}],
"prettier/prettier": ["error", {
"singleQuote": true
}],
//强制每行的最大属性数
"vue/max-attributes-per-line": ["error", {
"singleline": {
"max": 4
},
"multiline": {
"max": 1
}
}],
"vue/html-indent": "off",
"vue/html-self-closing": "off",
"vue/singleline-html-element-content-newline": "off"
}
}