.eslintrc.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. extends:
  2. - sinon
  3. - 'plugin:prettier/recommended'
  4. env:
  5. browser: true
  6. node: true
  7. globals:
  8. ArrayBuffer: false
  9. Map: false
  10. Promise: false
  11. Set: false
  12. Symbol: false
  13. plugins:
  14. - ie11
  15. - local-rules
  16. rules:
  17. strict: [error, 'global']
  18. # authors are expected to understand function hoisting
  19. no-use-before-define: off
  20. ie11/no-collection-args: error
  21. ie11/no-for-in-const: error
  22. ie11/no-loop-func: warn
  23. ie11/no-weak-collections: error
  24. local-rules/no-prototype-methods: error
  25. overrides:
  26. files: '*.test.*'
  27. plugins:
  28. - mocha
  29. env:
  30. mocha: true
  31. rules:
  32. max-nested-callbacks:
  33. - warn
  34. - 6
  35. mocha/handle-done-callback: error
  36. mocha/no-exclusive-tests: error
  37. mocha/no-global-tests: error
  38. mocha/no-hooks-for-single-case: off
  39. mocha/no-identical-title: error
  40. mocha/no-mocha-arrows: error
  41. mocha/no-nested-tests: error
  42. mocha/no-return-and-callback: error
  43. mocha/no-sibling-hooks: error
  44. mocha/no-skipped-tests: error
  45. mocha/no-top-level-hooks: error
  46. local-rules/no-prototype-methods: off