.eslintrc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "env": {
  5. "es6": true,
  6. },
  7. "rules": {
  8. "array-bracket-newline": 0,
  9. "complexity": 0,
  10. "eqeqeq": [2, "allow-null"],
  11. "func-name-matching": 0,
  12. "id-length": [2, { "min": 1, "max": 40 }],
  13. "max-params": [2, 4],
  14. "max-statements-per-line": [2, { "max": 2 }],
  15. "multiline-comment-style": 0,
  16. "no-magic-numbers": 0,
  17. "new-cap": 0,
  18. "no-extra-parens": 1,
  19. "sort-keys": 0,
  20. },
  21. "overrides": [
  22. {
  23. "files": "GetIntrinsic.js",
  24. "rules": {
  25. "max-statements": 0,
  26. }
  27. },
  28. {
  29. "files": "operations/*",
  30. "rules": {
  31. "max-lines": 0,
  32. },
  33. },
  34. {
  35. "files": [
  36. "operations/deltas.js",
  37. "operations/getOps.js",
  38. "operations/spackle.js",
  39. "operations/years.js",
  40. ],
  41. "extends": "@ljharb/eslint-config/node/latest",
  42. "rules": {
  43. "complexity": 0,
  44. "func-style": 0,
  45. "max-lines-per-function": 0,
  46. "max-nested-callbacks": 0,
  47. "max-statements": 0,
  48. "no-magic-numbers": 0,
  49. "no-throw-literal": 0,
  50. },
  51. },
  52. {
  53. "files": "test/**",
  54. "extends": "@ljharb/eslint-config/tests",
  55. "rules": {
  56. "max-lines-per-function": 0,
  57. "no-implicit-coercion": 0,
  58. "no-invalid-this": 1,
  59. },
  60. },
  61. ],
  62. }