.eslintrc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "plugins": [
  5. "import",
  6. ],
  7. "globals": {
  8. "Iterator": false,
  9. },
  10. "rules": {
  11. "array-bracket-newline": 0,
  12. "func-name-matching": 0,
  13. "id-length": 0,
  14. "max-lines-per-function": 0,
  15. "max-statements": 0,
  16. "multiline-comment-style": 0,
  17. "new-cap": [2, {
  18. "capIsNewExceptions": [
  19. "Call",
  20. "CreateDataPropertyOrThrow",
  21. "CreateIteratorFromClosure",
  22. "CreateIterResultObject",
  23. "GeneratorResume",
  24. "GeneratorResumeAbrupt",
  25. "GeneratorStart",
  26. "GeneratorValidate",
  27. "Get",
  28. "GetIntrinsic",
  29. "GetIterator",
  30. "GetIteratorDirect",
  31. "GetIteratorFlattenable",
  32. "GetMethod",
  33. "GetOptionsObject",
  34. "IfAbruptCloseIterators",
  35. "IsAccessorDescriptor",
  36. "IsArray",
  37. "IsCallable",
  38. "IsDataDescriptor",
  39. "IteratorClose",
  40. "IteratorCloseAll",
  41. "IteratorStep",
  42. "IteratorStepValue",
  43. "IteratorZip",
  44. "NormalCompletion",
  45. "OrdinaryHasInstance",
  46. "OrdinaryObjectCreate",
  47. "ReturnCompletion",
  48. "StringToCodePoints",
  49. "ThrowCompletion",
  50. "ToBoolean",
  51. "ToIntegerOrInfinity",
  52. "ToNumber",
  53. "ToPropertyDescriptor",
  54. "Type",
  55. ],
  56. }],
  57. "no-negated-condition": 1,
  58. "object-curly-newline": 0,
  59. "sort-keys": 0,
  60. "import/no-extraneous-dependencies": 2,
  61. },
  62. "overrides": [
  63. {
  64. "files": "test/**",
  65. "rules": {
  66. "eqeqeq": ["error", "allow-null"],
  67. "func-style": 0,
  68. "max-params": 0,
  69. "import/no-extraneous-dependencies": [2, { "devDependencies": true }],
  70. },
  71. },
  72. {
  73. "files": "Iterator.zip*/implementation.js",
  74. "rules": {
  75. "complexity": "off",
  76. "max-depth": "off",
  77. },
  78. },
  79. {
  80. "files": "aos/IteratorZip.js",
  81. "rules": {
  82. "max-depth": "off",
  83. "max-params": "off",
  84. },
  85. },
  86. ],
  87. }