.eslintrc.js 508 B

123456789101112131415161718192021222324252627
  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. __lib: true
  15. },
  16. plugins: [
  17. 'html'
  18. ],
  19. 'rules': {
  20. // allow paren-less arrow functions
  21. 'arrow-parens': 0,
  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. }