-
Notifications
You must be signed in to change notification settings - Fork 69
/
.eslintrc.js
33 lines (33 loc) · 1.07 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
module.exports = {
extends: [
'eslint-config-alloy/vue',
],
globals: {
// 这里填入你的项目需要的全局变量
// 这里值为 false 表示这个全局变量不允许被重新赋值,比如:
//
ams: false,
define: false
},
rules: {
'no-throw-literal': 'off',
'no-param-reassign': 'off',
// eslint 的检测较弱、会误报、先关闭
'vue/valid-template-root': 'off',
// eslint 的检测较弱、会误报、先关闭
'vue/require-component-is': 'off',
'vue/html-indent': 'off',
'vue/html-closing-bracket-spacing': 'off',
'vue/mustache-interpolation-spacing': 'off',
'function-paren-newline': 'off',
'vue/attributes-order': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'implicit-arrow-linebreak': 'off',
'function-call-argument-newline': 'off',
'vue/require-default-prop': 'off'
},
env: {
'jest': true
}
};