OpenStack Dashboard (Horizon)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Set up globals
  2. globals:
  3. angular: false
  4. extends: openstack
  5. # Most environment options are not explicitly enabled or disabled, only
  6. # included here for completeness' sake. They are commented out, because the
  7. # global updates.py script would otherwise override them during a global
  8. # requirements synchronization.
  9. #
  10. # Individual projects should choose which platforms they deploy to.
  11. env:
  12. # browser global variables.
  13. browser: true
  14. # Adds all of the Jasmine testing global variables for version 1.3 and 2.0.
  15. jasmine: true
  16. # Below we adjust rules specific to horizon's usage of openstack's linting
  17. # rules, and its own plugin inclusions.
  18. rules:
  19. #############################################################################
  20. # Disabled Rules from eslint-config-openstack
  21. #############################################################################
  22. valid-jsdoc: [1, {
  23. requireParamDescription: false
  24. }]
  25. no-undefined: 1
  26. brace-style: 1
  27. no-extra-parens: 1
  28. callback-return: 1
  29. block-scoped-var: 1
  30. quote-props: 0
  31. space-in-parens: 1
  32. no-use-before-define: 1
  33. no-unneeded-ternary: 1
  34. #############################################################################
  35. # Angular Plugin Customization
  36. #############################################################################
  37. angular/controller-as-vm:
  38. - 1
  39. - "ctrl"
  40. # Remove after migrating to angular 1.4 or later.
  41. angular/no-cookiestore:
  42. - 1