.eslintrc.yaml 543B

123456789101112131415161718192021222324252627282930
  1. ---
  2. parserOptions:
  3. ecmaVersion: 8
  4. env:
  5. node: true
  6. mocha: true
  7. es6: true
  8. extends: 'eslint:recommended'
  9. rules:
  10. quotes: [2, 'single']
  11. semi: [2, 'always']
  12. no-fallthrough: 2
  13. no-redeclare: 2
  14. no-self-assign: 2
  15. spaced-comment:
  16. - 2
  17. - always
  18. no-trailing-spaces: 2
  19. no-var: 2
  20. prefer-const: 2
  21. indent:
  22. - 2
  23. - 2
  24. - VariableDeclarator:
  25. let: 2
  26. const: 3
  27. SwitchCase: 1
  28. no-unsafe-regex/no-unsafe-regex: 2
  29. plugins:
  30. - no-unsafe-regex