2020-05-04 04:31:12 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
2020-05-18 18:49:30 +00:00
|
|
|
node: true,
|
2020-05-04 04:31:12 +00:00
|
|
|
},
|
2020-05-18 18:49:30 +00:00
|
|
|
extends: [
|
2020-05-04 04:31:12 +00:00
|
|
|
'plugin:vue/essential',
|
2020-05-18 18:49:30 +00:00
|
|
|
// 'plugin:vue/recommended',
|
2020-05-04 04:50:09 +00:00
|
|
|
'@vue/airbnb',
|
2020-05-21 05:21:30 +00:00
|
|
|
'prettier',
|
2020-05-20 05:23:10 +00:00
|
|
|
'plugin:prettier-vue/recommended',
|
|
|
|
'prettier/vue',
|
2020-05-04 04:31:12 +00:00
|
|
|
],
|
|
|
|
parserOptions: {
|
2020-05-18 18:49:30 +00:00
|
|
|
parser: 'babel-eslint',
|
2020-05-04 04:31:12 +00:00
|
|
|
},
|
2020-05-18 18:49:30 +00:00
|
|
|
plugins: ['vue'],
|
2020-05-04 04:31:12 +00:00
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
2020-05-04 05:28:53 +00:00
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
2020-05-18 18:49:30 +00:00
|
|
|
},
|
|
|
|
};
|