.eslintrc 890 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "extends": [
  3. "standard",
  4. "prettier",
  5. "prettier/standard"
  6. ],
  7. "plugins": [
  8. "mocha",
  9. "chai-expect",
  10. "chai-friendly"
  11. ],
  12. "env": {
  13. "mocha": true
  14. },
  15. "globals": {
  16. "expect": true,
  17. "define": true,
  18. },
  19. "settings": {
  20. },
  21. "rules": {
  22. // Add some mocha specific rules
  23. "mocha/handle-done-callback": "error",
  24. "mocha/no-exclusive-tests": "error",
  25. "mocha/no-global-tests": "error",
  26. "mocha/no-identical-title": "error",
  27. "mocha/no-nested-tests": "error",
  28. "mocha/no-pending-tests": "error",
  29. "mocha/no-skipped-tests": "error",
  30. // Add some chai specific rules
  31. "chai-expect/missing-assertion": "error",
  32. "chai-expect/terminating-properties": "error",
  33. // Swap the no-unused-expressions rule with a more chai-friendly one
  34. "no-unused-expressions": 0,
  35. "chai-friendly/no-unused-expressions": "error"
  36. }
  37. }