.eslintrc 799 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "root": true,
  3. "extends": "@ljharb/eslint-config/node/0.4",
  4. "rules": {
  5. "array-bracket-newline": 0,
  6. "array-callback-return": 0,
  7. "array-element-newline": 0,
  8. "complexity": 0,
  9. "func-style": [2, "declaration"],
  10. "global-require": 1,
  11. "max-lines-per-function": 0,
  12. "max-statements-per-line": [1, {"max": 2}],
  13. "multiline-comment-style": 0,
  14. "no-proto": 0,
  15. "no-sparse-arrays": 1,
  16. "no-underscore-dangle": 0,
  17. "no-invalid-this": 0,
  18. "object-curly-newline": 0,
  19. "sort-keys": 0,
  20. "max-lines": "warn",
  21. },
  22. "overrides": [
  23. {
  24. "files": "examples/**",
  25. "rules": {
  26. "no-console": 0,
  27. "no-plusplus": 0,
  28. "no-magic-numbers": 0,
  29. },
  30. },
  31. {
  32. "files": [
  33. "test/typed-array.js",
  34. "test/mutability.js",
  35. ],
  36. "globals": {
  37. "Uint8Array": false
  38. },
  39. }
  40. ],
  41. }