2018-02-08 21:21:28 +00:00
|
|
|
module.exports = {
|
2018-02-08 23:02:36 +00:00
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
browser: true,
|
2018-10-18 05:13:18 +00:00
|
|
|
node: true,
|
2018-02-09 18:01:38 +00:00
|
|
|
},
|
|
|
|
parserOptions: {
|
2018-10-18 05:13:18 +00:00
|
|
|
parser: 'babel-eslint',
|
2018-02-08 23:02:36 +00:00
|
|
|
},
|
2018-10-18 05:13:18 +00:00
|
|
|
extends: ['plugin:vue/recommended', 'plugin:prettier/recommended'],
|
2018-02-08 23:02:36 +00:00
|
|
|
// required to lint *.vue files
|
2018-10-18 05:13:18 +00:00
|
|
|
plugins: ['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',
|
2018-10-18 05:13:18 +00:00
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
|
'comma-dangle': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
arrays: 'only-multiline',
|
|
|
|
objects: 'only-multiline',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2018-02-08 23:02:36 +00:00
|
|
|
}
|