.eslintrc.js 595 B

1234567891011121314151617181920212223242526272829
  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. 'vue/no-side-effects-in-computed-properties': 0
  27. }
  28. }