-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
43 lines (43 loc) · 956 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
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'eslint:recommended',
'plugin:prettier/recommended',
],
parserOptions: {
parser: '@babel/eslint-parser',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'global-require': 0,
//强制使用单引号
quotes: ['error', 'single'],
indent: 0,
'no-new': 0,
camelcase: 0,
'padded-blocks': 0,
'no-unused-vars': 0,
'no-trailing-spaces': 0,
'no-mixed-spaces-and-tabs': 0,
'space-before-function-paren': [0, 'always'],
'no-multiple-empty-lines': 0,
},
globals: {
__SERVICE_URL__: false,
Vue: false,
Vuex: false,
VueRouter: false,
Fetch: false,
Hub: false,
echarts: false,
axios: false,
Cesium: false,
DC: false,
'%=': false,
},
}