.eslintrc 590 B

1234567891011121314151617181920212223242526
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "rules": {
  5. "complexity": [2, 19],
  6. "id-length": [2, { "min": 1, "max": 30 }],
  7. "max-statements": [2, 33],
  8. "max-statements-per-line": [2, { "max": 2 }],
  9. "no-magic-numbers": [1, { "ignore": [0] }],
  10. "no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
  11. },
  12. "overrides": [
  13. {
  14. "files": "test/**",
  15. "rules": {
  16. "no-invalid-this": 1,
  17. "max-lines-per-function": 0,
  18. "max-statements-per-line": [2, { "max": 3 }],
  19. "no-magic-numbers": 0,
  20. },
  21. },
  22. ],
  23. }