Nuxt/examples/with-feathers/.eslintrc.js

40 lines
857 B
JavaScript
Raw Normal View History

2017-10-31 13:43:55 +00:00
module.exports = {
root: true,
env: {
browser: true,
node: true,
mocha: true
},
extends: [
'standard',
'plugin:vue/recommended'
],
2017-10-31 13:43:55 +00:00
// required to lint *.vue files
plugins: [
'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,
'space-before-function-paren': [2, {
anonymous: 'always',
named: 'never'
}],
'vue/no-parsing-error': [2, {
'x-invalid-end-tag': false
}],
'vue/max-attributes-per-line': [2, {
singleline: 5
}],
'vue/multi-word-component-names': 0
2017-10-31 13:43:55 +00:00
},
globals: {}
}