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