.eslintrc.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "root": true,
  3. "extends": [
  4. "plugin:import/errors",
  5. "plugin:import/warnings",
  6. "plugin:unicorn/recommended",
  7. "xo",
  8. "xo/browser"
  9. ],
  10. "rules": {
  11. "capitalized-comments": "off",
  12. "indent": [
  13. "error",
  14. 2,
  15. {
  16. "MemberExpression": "off",
  17. "SwitchCase": 1
  18. }
  19. ],
  20. "max-params": [
  21. "warn",
  22. 5
  23. ],
  24. "multiline-ternary": [
  25. "error",
  26. "always-multiline"
  27. ],
  28. "new-cap": [
  29. "error",
  30. {
  31. "properties": false
  32. }
  33. ],
  34. "no-console": "error",
  35. "object-curly-spacing": [
  36. "error",
  37. "always"
  38. ],
  39. "semi": [
  40. "error",
  41. "never"
  42. ],
  43. "unicorn/consistent-function-scoping": "off",
  44. "unicorn/explicit-length-check": "off",
  45. "unicorn/no-array-callback-reference": "off",
  46. "unicorn/no-array-for-each": "off",
  47. "unicorn/no-for-loop": "off",
  48. "unicorn/no-null": "off",
  49. "unicorn/no-unused-properties": "error",
  50. "unicorn/no-useless-undefined": "off",
  51. "unicorn/prefer-dom-node-append": "off",
  52. "unicorn/prefer-dom-node-dataset": "off",
  53. "unicorn/prefer-dom-node-remove": "off",
  54. "unicorn/prefer-module": "off",
  55. "unicorn/prefer-query-selector": "off",
  56. "unicorn/prefer-spread": "off",
  57. "unicorn/prevent-abbreviations": "off"
  58. }
  59. }