.eslintrc.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "root": true,
  3. "extends": [
  4. "plugin:compat/recommended",
  5. "plugin:import/errors",
  6. "plugin:import/warnings",
  7. "plugin:unicorn/recommended",
  8. "xo",
  9. "xo/browser"
  10. ],
  11. "env": {
  12. "jquery": true
  13. },
  14. "rules": {
  15. "capitalized-comments": "off",
  16. "eqeqeq": "off",
  17. "indent": [
  18. "error",
  19. 2,
  20. {
  21. "MemberExpression": "off",
  22. "SwitchCase": 1
  23. }
  24. ],
  25. "multiline-ternary": [
  26. "error",
  27. "always-multiline"
  28. ],
  29. "new-cap": [
  30. "error",
  31. {
  32. "properties": false
  33. }
  34. ],
  35. "no-eq-null": "off",
  36. "no-negated-condition": "off",
  37. "no-console": "error",
  38. "object-curly-spacing": [
  39. "error",
  40. "always"
  41. ],
  42. "prefer-template": "error",
  43. "prefer-named-capture-group": "off",
  44. "semi": [
  45. "error",
  46. "never"
  47. ],
  48. "unicorn/filename-case": "off",
  49. "unicorn/consistent-destructuring": "off",
  50. "unicorn/no-array-callback-reference": "off",
  51. "unicorn/no-array-for-each": "off",
  52. "unicorn/no-for-loop": "off",
  53. "unicorn/no-null": "off",
  54. "unicorn/no-unused-properties": "error",
  55. "unicorn/prefer-dom-node-append": "off",
  56. "unicorn/prefer-dom-node-dataset": "off",
  57. "unicorn/prefer-dom-node-remove": "off",
  58. "unicorn/prefer-includes": "off",
  59. "unicorn/prefer-number-properties": "off",
  60. "unicorn/prefer-optional-catch-binding": "off",
  61. "unicorn/prefer-query-selector": "off",
  62. "unicorn/prefer-set-has": "off",
  63. "unicorn/prevent-abbreviations": "off"
  64. }
  65. }