2017-10-31 13:43:55 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
node: true,
|
|
|
|
mocha: true
|
|
|
|
},
|
2018-07-12 12:03:50 +00:00
|
|
|
extends: [
|
|
|
|
'standard',
|
|
|
|
'plugin:vue/recommended'
|
|
|
|
],
|
2017-10-31 13:43:55 +00:00
|
|
|
// required to lint *.vue files
|
|
|
|
plugins: [
|
2018-07-12 12:03:50 +00:00
|
|
|
'vue'
|
2017-10-31 13:43:55 +00:00
|
|
|
],
|
|
|
|
// add your custom rules here
|
|
|
|
rules: {
|
|
|
|
// allow paren-less arrow functions
|
|
|
|
'arrow-parens': 0,
|
|
|
|
// allow async-await
|
|
|
|
'generator-star-spacing': 0,
|
|
|
|
// allow debugger during development
|
|
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
|
|
// do not allow console.logs etc...
|
|
|
|
'no-console': 2,
|
2018-07-12 12:03:50 +00:00
|
|
|
'space-before-function-paren': [2, {
|
|
|
|
anonymous: 'always',
|
|
|
|
named: 'never'
|
|
|
|
}],
|
|
|
|
'vue/no-parsing-error': [2, {
|
|
|
|
'x-invalid-end-tag': false
|
|
|
|
}],
|
2020-05-11 08:21:54 +00:00
|
|
|
'vue/max-attributes-per-line': [2, {
|
|
|
|
singleline: 5
|
2022-06-23 22:58:52 +00:00
|
|
|
}],
|
|
|
|
'vue/multi-word-component-names': 0
|
2017-10-31 13:43:55 +00:00
|
|
|
},
|
|
|
|
globals: {}
|
|
|
|
}
|