.eslintrc.js 623 B

12345678910111213141516171819202122232425262728293031
  1. // https://eslint.org/docs/user-guide/configuring
  2. module.exports = {
  3. root: true,
  4. parserOptions: {
  5. parser: 'babel-eslint'
  6. },
  7. env: {
  8. node: true,
  9. browser: true
  10. },
  11. extends: [
  12. 'plugin:vue/essential',
  13. 'standard'
  14. ],
  15. plugins: [
  16. 'vue'
  17. ],
  18. // add your custom rules here
  19. rules: {
  20. // allow async-await
  21. 'generator-star-spacing': 'off',
  22. // allow debugger during development
  23. indent: 0,
  24. 'no-useless-escape': 0,
  25. 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  26. 'space-before-function-paren': 0,
  27. 'prefer-const': 0,
  28. 'camelcase': 0
  29. }
  30. }