.eslintrc.js 631 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. parserOptions: {
  4. parser: 'babel-eslint',
  5. sourceType: 'module'
  6. },
  7. // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
  8. extends: [
  9. 'standard',
  10. 'plugin:vue/recommended'
  11. ],
  12. // required to lint *.vue files
  13. plugins: [
  14. 'vue'
  15. ],
  16. // add your custom rules here
  17. rules: {
  18. // allow paren-less arrow functions
  19. 'arrow-parens': 0,
  20. // allow async-await
  21. 'generator-star-spacing': 0,
  22. // allow debugger during development
  23. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
  24. 'vue/require-prop-types': 0
  25. }
  26. }