.eslintrc.js 507 B

12345678910111213141516171819202122
  1. module.exports = {
  2. root: true,
  3. 'extends': [
  4. 'plugin:vue/essential',
  5. '@vue/standard'
  6. ],
  7. rules: {
  8. // allow async-await
  9. 'generator-star-spacing': 'off',
  10. 'space-before-function-paren': 0,
  11. // allow debugger during development
  12. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  13. 'vue/no-parsing-error': [2, {
  14. 'x-invalid-end-tag': false
  15. }],
  16. 'no-undef': 'off',
  17. 'camelcase': 'off'
  18. },
  19. parserOptions: {
  20. parser: 'babel-eslint'
  21. }
  22. }