.eslintrc 1012 B

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