You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc 1.2KB

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": "operations/*",
  26. "rules": {
  27. "max-lines": 0,
  28. },
  29. },
  30. {
  31. "files": "operations/*.js",
  32. "parserOptions": {
  33. "ecmaVersion": 2020,
  34. },
  35. "rules": {
  36. "no-console": 0,
  37. "no-multi-str": 0,
  38. },
  39. },
  40. {
  41. "files": "operations/getOps.js",
  42. "rules": {
  43. "no-console": 0,
  44. "no-process-exit": 0,
  45. },
  46. },
  47. {
  48. "files": "test/**",
  49. "rules": {
  50. "id-length": 0,
  51. "max-lines": 0,
  52. "max-lines-per-function": 0,
  53. "max-statements-per-line": [2, { "max": 3 }],
  54. "max-statements": 0,
  55. "no-implicit-coercion": 0,
  56. "no-invalid-this": 1,
  57. "object-curly-newline": 0,
  58. "prefer-regex-literals": 0,
  59. },
  60. },
  61. ],
  62. }