.eslintrc 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "rules": {
  5. "complexity": [2, 12],
  6. "func-name-matching": 0,
  7. "id-length": 0,
  8. "max-nested-callbacks": [2, 3],
  9. "max-params": [2, 4],
  10. "max-statements-per-line": [2, { "max": 2 }],
  11. "max-statements": [2, 24],
  12. "new-cap": [2, {
  13. "capIsNewExceptions": [
  14. "AdvanceStringIndex",
  15. "Call",
  16. "Construct",
  17. "CreateIterResultObject",
  18. "CreateRegExpStringIterator",
  19. "Get",
  20. "GetIntrinsic",
  21. "GetMethod",
  22. "Invoke",
  23. "IsRegExp",
  24. "OrdinaryObjectCreate",
  25. "RegExpExec",
  26. "RequireObjectCoercible",
  27. "Set",
  28. "SpeciesConstructor",
  29. "ToBoolean",
  30. "ToLength",
  31. "ToString",
  32. "Type",
  33. ],
  34. }],
  35. "no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
  36. },
  37. "overrides": [
  38. {
  39. "files": "test/**",
  40. "extends": "@ljharb/eslint-config/tests",
  41. "rules": {
  42. "max-lines-per-function": 0,
  43. },
  44. },
  45. ],
  46. }