forked from jin-yufeng/mp-html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 861 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
// eslint 检查配置
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": ["eslint:recommended", "plugin:vue/essential"],
"plugins": [
"vue"
],
"globals": {
"App": "readonly",
"Component": "readonly",
"Page": "readonly",
"wx": "readonly",
"qq": "readonly",
"swan": "readonly",
"my": "readonly",
"tt": "readonly",
"uni": "readonly",
"plus": "readonly",
"weex": "readonly"
},
"rules": {
"no-cond-assign": "off",
"no-mixed-spaces-and-tabs": "off", // HBuilderX 格式化就会产生 tab 与空格混合
"vue/valid-v-else": "off", // 条件编译会导致多个 v-else
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-constant-condition": ["error", { "checkLoops": false }]
}
};