2018-09-26 22:27:42 +08:00
|
|
|
module.exports = {
|
2018-09-27 13:41:08 +08:00
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'plugin:vue/essential',
|
|
|
|
'@vue/airbnb',
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
|
indent: ['error', 'tab'],
|
|
|
|
'no-tabs': 'off',
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
parser: 'babel-eslint',
|
|
|
|
},
|
2018-09-26 22:27:42 +08:00
|
|
|
};
|