.eslintrc 627 B

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