.eslintrc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. "CreateIteratorFromClosure",
  21. "CreateIterResultObject",
  22. "GeneratorResume",
  23. "GeneratorResumeAbrupt",
  24. "GeneratorStart",
  25. "GeneratorValidate",
  26. "Get",
  27. "GetIntrinsic",
  28. "GetIterator",
  29. "GetIteratorDirect",
  30. "GetIteratorFlattenable",
  31. "GetMethod",
  32. "IsArray",
  33. "IsCallable",
  34. "IteratorClose",
  35. "IteratorComplete",
  36. "IteratorNext",
  37. "IteratorStepValue",
  38. "IteratorStep",
  39. "NormalCompletion",
  40. "OrdinaryHasInstance",
  41. "OrdinaryObjectCreate",
  42. "PromiseResolve",
  43. "StringToCodePoints",
  44. "ThrowCompletion",
  45. "ToBoolean",
  46. "ToIntegerOrInfinity",
  47. "ToNumber",
  48. "ToObject",
  49. "Type",
  50. ],
  51. }],
  52. "no-negated-condition": 1,
  53. "object-curly-newline": 0,
  54. "sort-keys": 0,
  55. "import/no-extraneous-dependencies": 2,
  56. },
  57. "overrides": [
  58. {
  59. "files": "test/**",
  60. "rules": {
  61. "eqeqeq": ["error", "allow-null"],
  62. "max-params": 0,
  63. "import/no-extraneous-dependencies": [2, { "devDependencies": true }],
  64. },
  65. },
  66. ],
  67. }