Node-Red configuration
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

.eslintrc 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "root": true,
  3. "extends": "@ljharb",
  4. "rules": {
  5. "complexity": 0,
  6. "func-style": [2, "declaration"],
  7. "indent": [2, 4],
  8. "max-lines": 1,
  9. "max-lines-per-function": 1,
  10. "max-params": [2, 4],
  11. "max-statements": 0,
  12. "max-statements-per-line": [2, { "max": 2 }],
  13. "no-magic-numbers": 0,
  14. "no-param-reassign": 1,
  15. "strict": 0, // TODO
  16. },
  17. "overrides": [
  18. {
  19. "files": ["test/**", "test-*", "example/**"],
  20. "extends": "@ljharb/eslint-config/tests",
  21. "rules": {
  22. "id-length": 0,
  23. },
  24. },
  25. {
  26. "files": ["example/**"],
  27. "rules": {
  28. "no-console": 0,
  29. },
  30. },
  31. {
  32. "files": ["test/browser/**"],
  33. "env": {
  34. "browser": true,
  35. },
  36. },
  37. {
  38. "files": ["test/bigint*"],
  39. "rules": {
  40. "new-cap": [2, { "capIsNewExceptions": ["BigInt"] }],
  41. },
  42. },
  43. {
  44. "files": "index.js",
  45. "globals": {
  46. "HTMLElement": false,
  47. },
  48. "rules": {
  49. "no-use-before-define": 1,
  50. },
  51. },
  52. ],
  53. }