2018-02-08 21:21:28 +00:00
|
|
|
module.exports = {
|
2018-02-08 23:02:36 +00:00
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
browser: true,
|
2018-02-09 18:01:38 +00:00
|
|
|
node: true
|
|
|
|
},
|
|
|
|
parserOptions: {
|
|
|
|
parser: 'babel-eslint'
|
2018-02-08 23:02:36 +00:00
|
|
|
},
|
2018-02-09 18:01:38 +00:00
|
|
|
extends: [
|
|
|
|
'plugin:vue/recommended',
|
2018-10-14 06:45:44 +00:00
|
|
|
'plugin:prettier/recommended'
|
2018-02-09 18:01:38 +00:00
|
|
|
],
|
2018-02-08 23:02:36 +00:00
|
|
|
// required to lint *.vue files
|
|
|
|
plugins: [
|
2018-10-14 06:45:44 +00:00
|
|
|
'vue',
|
|
|
|
'prettier'
|
2018-02-08 23:02:36 +00:00
|
|
|
],
|
|
|
|
// add your custom rules here
|
2018-10-14 06:45:44 +00:00
|
|
|
rules: {
|
|
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
|
|
}
|
2018-02-08 23:02:36 +00:00
|
|
|
}
|