.eslintrc.json 866 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. "indent": [
  18. "error",
  19. 2,
  20. {
  21. "MemberExpression": "off",
  22. "SwitchCase": 1
  23. }
  24. ],
  25. "multiline-ternary": [
  26. "error",
  27. "always-multiline"
  28. ],
  29. "object-curly-spacing": [
  30. "error",
  31. "always"
  32. ],
  33. "semi": [
  34. "error",
  35. "never"
  36. ],
  37. "strict": "error",
  38. "unicorn/no-for-loop": "off",
  39. "unicorn/no-null": "off",
  40. "unicorn/prefer-dataset": "off",
  41. "unicorn/prefer-includes": "off",
  42. "unicorn/prefer-node-append": "off",
  43. "unicorn/prefer-query-selector": "off",
  44. "unicorn/prevent-abbreviations": "off"
  45. }
  46. }