.eslintrc.js 655 B

12345678910111213141516171819202122232425262728
  1. // https://eslint.org/docs/user-guide/configuring
  2. module.exports = {
  3. root: true,
  4. parser: 'babel-eslint',
  5. parserOptions: {
  6. sourceType: 'module'
  7. },
  8. env: {
  9. browser: true,
  10. },
  11. // https://github.com/standard/standard/blob/master/docs/RULES-en.md
  12. extends: 'standard',
  13. // required to lint *.vue files
  14. plugins: [
  15. 'html'
  16. ],
  17. // add your custom rules here
  18. 'rules': {
  19. // allow paren-less arrow functions
  20. 'arrow-parens': 0,
  21. "indent": ["error", 2],
  22. // allow async-await
  23. 'generator-star-spacing': 0,
  24. // allow debugger during development
  25. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
  26. }
  27. }