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.

82 lines
1.4 KiB

4 years ago
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "env": {
  5. "es6": true,
  6. },
  7. "rules": {
  8. "arrow-parens": [2, "always"],
  9. "array-bracket-newline": 0,
  10. "array-element-newline": 0,
  11. "complexity": 0,
  12. "eqeqeq": [2, "allow-null"],
  13. "func-name-matching": 0,
  14. "id-length": [2, { "min": 1, "max": 30 }],
  15. "max-params": [2, 4],
  16. "max-statements": [2, 24],
  17. "max-statements-per-line": [2, { "max": 2 }],
  18. "multiline-comment-style": 0,
  19. "no-magic-numbers": 0,
  20. "new-cap": 0,
  21. "no-extra-parens": 1,
  22. "operator-linebreak": [2, "before"],
  23. "sort-keys": 0,
  24. },
  25. "overrides": [
  26. {
  27. "files": "./es5.js",
  28. "rules": {
  29. "max-lines": [2, 600],
  30. "max-statements": [2, 30],
  31. },
  32. },
  33. {
  34. "files": "./es2015.js",
  35. "rules": {
  36. "max-lines": [2, 1500],
  37. },
  38. },
  39. {
  40. "files": "operations/*",
  41. "rules": {
  42. "max-lines": 0,
  43. },
  44. },
  45. {
  46. "files": "operations/*.js",
  47. "parserOptions": {
  48. "ecmaVersion": "2018",
  49. },
  50. "rules": {
  51. "no-console": 0,
  52. "no-multi-str": 0,
  53. },
  54. },
  55. {
  56. "files": "operations/getOps.js",
  57. "rules": {
  58. "no-console": 0,
  59. "no-process-exit": 0,
  60. },
  61. },
  62. {
  63. "files": "test/**",
  64. "rules": {
  65. "id-length": 0,
  66. "max-lines": 0,
  67. "max-lines-per-function": 0,
  68. "max-statements-per-line": [2, { "max": 3 }],
  69. "max-nested-callbacks": [2, 4],
  70. "max-statements": 0,
  71. "no-implicit-coercion": 0,
  72. "no-invalid-this": 1,
  73. "object-curly-newline": 0,
  74. "prefer-regex-literals": 0,
  75. },
  76. },
  77. ],
  78. }