.eslintrc.js 517 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. parser: 'babel-eslint',
  4. parserOptions: {
  5. sourceType: 'module'
  6. },
  7. env: {
  8. browser: true,
  9. node: true
  10. },
  11. extends: 'standard',
  12. globals: {
  13. __static: true
  14. },
  15. plugins: [
  16. 'html'
  17. ],
  18. 'rules': {
  19. // allow paren-less arrow functions
  20. 'arrow-parens': 0,
  21. // allow async-await
  22. 'generator-star-spacing': 0,
  23. // allow debugger during development
  24. 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
  25. }
  26. }