.eslintrc 520 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "rules": {
  5. "new-cap": [2, {
  6. "capIsNewExceptions": [
  7. "ArraySpeciesCreate",
  8. "Call",
  9. "CreateDataPropertyOrThrow",
  10. "FlattenIntoArray",
  11. "Get",
  12. "HasProperty",
  13. "IsArray",
  14. "Set",
  15. "ToIntegerOrInfinity",
  16. "ToLength",
  17. "ToObject",
  18. "ToString",
  19. ],
  20. }],
  21. "no-magic-numbers": 0,
  22. },
  23. "overrides": [
  24. {
  25. "files": "test/**",
  26. "rules": {
  27. "func-name-matching": 0,
  28. "max-params": 0,
  29. "no-invalid-this": [1],
  30. },
  31. },
  32. ],
  33. }