.eslintrc 781 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "rules": {
  5. "complexity": 0,
  6. "eqeqeq": [2, "always", { "null": "ignore" }],
  7. "func-style": [2, "declaration"],
  8. "id-length": 0,
  9. "indent": [2, 2],
  10. "max-params": [2, 6],
  11. "max-statements-per-line": [2, { "max": 2 }],
  12. "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }],
  13. "no-magic-numbers": [2, { "ignore": [0, 1] }],
  14. },
  15. "globals": {
  16. "Int8Array": false,
  17. "Uint8Array": false,
  18. },
  19. "overrides": [
  20. {
  21. "files": "example/**",
  22. "rules": {
  23. "no-console": 0,
  24. "no-magic-numbers": 0,
  25. }
  26. },
  27. {
  28. "files": "test/**",
  29. "rules": {
  30. "max-lines-per-function": 0,
  31. "max-params": 0,
  32. "no-magic-numbers": 0,
  33. },
  34. },
  35. ],
  36. }