.eslintrc 956 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "ignorePatterns": [
  5. "dist/",
  6. ],
  7. "rules": {
  8. "complexity": 0,
  9. "consistent-return": 1,
  10. "func-name-matching": 0,
  11. "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
  12. "indent": [2, 4],
  13. "max-lines-per-function": 0,
  14. "max-params": [2, 12],
  15. "max-statements": [2, 45],
  16. "multiline-comment-style": 0,
  17. "no-continue": 1,
  18. "no-magic-numbers": 0,
  19. "no-param-reassign": 1,
  20. "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
  21. },
  22. "overrides": [
  23. {
  24. "files": "test/**",
  25. "rules": {
  26. "max-lines-per-function": 0,
  27. "max-statements": 0,
  28. "no-extend-native": 0,
  29. "function-paren-newline": 0,
  30. },
  31. },
  32. ],
  33. }