JavaScript Style Guidelines for OpenStack.
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-es2015 766B

12345678910111213141516171819202122232425262728
  1. # This file contains rules which should only be enabled in
  2. # ES2015-based projects.
  3. extends: openstack
  4. parserOptions:
  5. ecmaVersion: 6
  6. sourceType: module
  7. rules:
  8. # disallow unnecessary .call() and .apply()
  9. # http://eslint.org/docs/rules/no-useless-call
  10. no-useless-call: 2
  11. # require let or const instead of var
  12. # http://eslint.org/docs/rules/no-var
  13. no-var: 2
  14. # suggest using arrow functions as callbacks
  15. # http://eslint.org/docs/rules/prefer-arrow-callback
  16. prefer-arrow-callback: 2
  17. # suggest using the spread operator instead of .apply().
  18. # http://eslint.org/docs/rules/prefer-spread
  19. prefer-spread: 2
  20. # suggest using the rest parameters instead of arguments
  21. # http://eslint.org/docs/rules/prefer-rest-params
  22. prefer-rest-params: 2