2019-09-11 11:52:20 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
},
|
|
|
|
'extends': [
|
|
|
|
'plugin:vue/essential',
|
|
|
|
'@vue/standard'
|
|
|
|
],
|
|
|
|
rules: {
|
2019-10-28 12:10:17 +00:00
|
|
|
'no-console': 'off',
|
2019-09-18 15:24:45 +00:00
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
|
'vue/script-indent': ['error', 2, {
|
|
|
|
baseIndent: 1,
|
|
|
|
switchCase: 1
|
|
|
|
}]
|
2019-09-11 11:52:20 +00:00
|
|
|
},
|
2019-09-18 15:24:45 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['*.vue'],
|
|
|
|
rules: {
|
|
|
|
indent: 'off'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2019-09-11 11:52:20 +00:00
|
|
|
parserOptions: {
|
|
|
|
parser: 'babel-eslint'
|
|
|
|
}
|
|
|
|
}
|