.eslintrc.js 522 B

12345678910111213141516171819
  1. module.exports = {
  2. env: {
  3. mocha: true,
  4. },
  5. globals: {
  6. expect: true,
  7. },
  8. rules: {
  9. /* unit tests will use chai expressions and construct classes to check for side effects */
  10. 'no-unused-expressions': 'off',
  11. 'no-new': 'off',
  12. 'no-use-before-define': 'off',
  13. /* TODO: Change `=> call()` to `=> { call() }` in tests. */
  14. 'no-promise-executor-return': 'off',
  15. /* TODO: Change `=> foo += 1` to `=> { foo += 1; }` in tests. */
  16. 'no-return-assign': 'off',
  17. 'no-console': 'off',
  18. },
  19. };