.eslintrc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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": [2, { "max": 150 }],
  14. "max-params": [2, 18],
  15. "max-statements": [2, 100],
  16. "multiline-comment-style": 0,
  17. "no-continue": 1,
  18. "no-magic-numbers": 0,
  19. "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
  20. },
  21. "overrides": [
  22. {
  23. "files": "test/**",
  24. "rules": {
  25. "function-paren-newline": 0,
  26. "max-lines-per-function": 0,
  27. "max-statements": 0,
  28. "no-buffer-constructor": 0,
  29. "no-extend-native": 0,
  30. "no-throw-literal": 0,
  31. },
  32. },
  33. ],
  34. }