40 lines
890 B
JavaScript
40 lines
890 B
JavaScript
|
|
module.exports = {
|
||
|
|
root: true,
|
||
|
|
env: {
|
||
|
|
node: true
|
||
|
|
},
|
||
|
|
extends: ['plugin:vue/essential', '@vue/prettier'],
|
||
|
|
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
|
||
|
|
},
|
||
|
|
parserOptions: {
|
||
|
|
parser: 'babel-eslint'
|
||
|
|
}
|
||
|
|
}
|