-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
40 lines (39 loc) · 1.01 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
module.exports = {
root: true,
env: {
node: true,
browser: true,
es6: true,
},
extends: [
'plugin:vue/essential'
// 是个讲究人的话还是加上规则校验吧!! 然而我喜欢浪~~
// , '@vue/standard'
// , '@vue/prettier'
],
// vue-element-admin的校验规则
// https://github.com/PanJiaChen/vue-element-admin/blob/master/.eslintrc.js
// extends: ['plugin:vue/recommended', 'eslint:recommended'],
rules: {
// allow async-await
'generator-star-spacing': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// iview-admin放宽条件 ===========
'vue/no-parsing-error': [2, {
'x-invalid-end-tag': false
}],
'no-undef': 'off',
'camelcase': 'off'
// 'prettier/prettier': [
// 'error',
// {
// semi: false,
// singleQuote: true
// }
// ]
},
parserOptions: {
parser: 'babel-eslint'
}
};