.eslintrc.json 874 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. "extends": "eslint-config-airbnb",
  3. "root": true,
  4. "env": {
  5. "browser": true,
  6. "es6": true,
  7. "node": true
  8. },
  9. "globals": {
  10. "Drupal": true,
  11. "drupalSettings": true,
  12. "drupalTranslations": true,
  13. "domready": true,
  14. "jQuery": true,
  15. "_": true,
  16. "matchMedia": true,
  17. "Backbone": true,
  18. "Modernizr": true,
  19. "CKEDITOR": true
  20. },
  21. "rules": {
  22. "consistent-return": [0],
  23. "no-underscore-dangle": [0],
  24. "max-nested-callbacks": [1, 3],
  25. "no-mutable-exports": [1],
  26. "no-plusplus": [1, {
  27. "allowForLoopAfterthoughts": true
  28. }],
  29. "no-param-reassign": [0],
  30. "no-prototype-builtins": [0],
  31. "valid-jsdoc": [1, {
  32. "prefer": {
  33. "returns": "return",
  34. "property": "prop"
  35. },
  36. "requireReturn": false
  37. }],
  38. "brace-style": ["error", "stroustrup"],
  39. "no-unused-vars": [1]
  40. }
  41. }