.eslintrc.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "root": true,
  3. "parserOptions": {
  4. "ecmaVersion": 5,
  5. "sourceType": "script"
  6. },
  7. "env": {
  8. "jquery": true
  9. },
  10. "extends": [
  11. "plugin:unicorn/recommended",
  12. "xo",
  13. "xo/browser"
  14. ],
  15. "rules": {
  16. "capitalized-comments": "off",
  17. "comma-dangle": [
  18. "error",
  19. "never"
  20. ],
  21. "indent": [
  22. "error",
  23. 2,
  24. {
  25. "MemberExpression": "off",
  26. "SwitchCase": 1
  27. }
  28. ],
  29. "multiline-ternary": [
  30. "error",
  31. "always-multiline"
  32. ],
  33. "no-var": "off",
  34. "object-curly-spacing": [
  35. "error",
  36. "always"
  37. ],
  38. "object-shorthand": "off",
  39. "prefer-arrow-callback": "off",
  40. "semi": [
  41. "error",
  42. "never"
  43. ],
  44. "strict": "error",
  45. "unicorn/no-array-for-each": "off",
  46. "unicorn/no-for-loop": "off",
  47. "unicorn/no-null": "off",
  48. "unicorn/no-typeof-undefined": "off",
  49. "unicorn/numeric-separators-style": "off",
  50. "unicorn/prefer-dataset": "off",
  51. "unicorn/prefer-includes": "off",
  52. "unicorn/prefer-module": "off",
  53. "unicorn/prefer-node-append": "off",
  54. "unicorn/prefer-query-selector": "off",
  55. "unicorn/prefer-spread": "off",
  56. "unicorn/prefer-top-level-await": "off",
  57. "unicorn/prevent-abbreviations": "off"
  58. }
  59. }