1
0

.eslintrc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "rules": {
  5. "indent": [2, 4],
  6. "strict": 0,
  7. "complexity": 0,
  8. "consistent-return": 0,
  9. "curly": 0,
  10. "dot-notation": [2, { "allowKeywords": true }],
  11. "func-name-matching": 0,
  12. "func-style": 0,
  13. "global-require": 1,
  14. "id-length": [2, { "min": 1, "max": 40 }],
  15. "max-lines": [2, 350],
  16. "max-lines-per-function": 0,
  17. "max-nested-callbacks": 0,
  18. "max-params": 0,
  19. "max-statements-per-line": [2, { "max": 2 }],
  20. "max-statements": 0,
  21. "no-magic-numbers": 0,
  22. "no-shadow": 0,
  23. "no-use-before-define": 0,
  24. "sort-keys": 0,
  25. },
  26. "overrides": [
  27. {
  28. "files": "bin/**",
  29. "rules": {
  30. "no-process-exit": "off",
  31. },
  32. },
  33. {
  34. "files": "example/**",
  35. "rules": {
  36. "no-console": 0,
  37. },
  38. },
  39. {
  40. "files": "test/resolver/nested_symlinks/mylib/*.js",
  41. "rules": {
  42. "no-throw-literal": 0,
  43. },
  44. },
  45. {
  46. "files": "test/**",
  47. "parserOptions": {
  48. "ecmaVersion": 5,
  49. "allowReserved": false,
  50. },
  51. "rules": {
  52. "dot-notation": [2, { "allowPattern": "throws" }],
  53. "max-lines": 0,
  54. "max-lines-per-function": 0,
  55. "no-unused-vars": [2, { "vars": "all", "args": "none" }],
  56. },
  57. },
  58. ],
  59. "ignorePatterns": [
  60. "./test/resolver/malformed_package_json/package.json",
  61. ],
  62. }