eslint-config-openstack/.eslintrc-es2015
Vitaly Kramskikh ec845e5e7f Added config with ES2015-only rules
This commit adds an additional config, which should be used in
ES2015-based projects. It's available by adding
`extends: openstack/es2015` to project's .eslintrc file.

Change-Id: I5d54cdceb206db7a52ee396eafc513b290e38f86
2016-07-29 12:04:22 +03:00

29 lines
766 B
Plaintext

# This file contains rules which should only be enabled in
# ES2015-based projects.
extends: openstack
parserOptions:
ecmaVersion: 6
sourceType: module
rules:
# disallow unnecessary .call() and .apply()
# http://eslint.org/docs/rules/no-useless-call
no-useless-call: 2
# require let or const instead of var
# http://eslint.org/docs/rules/no-var
no-var: 2
# suggest using arrow functions as callbacks
# http://eslint.org/docs/rules/prefer-arrow-callback
prefer-arrow-callback: 2
# suggest using the spread operator instead of .apply().
# http://eslint.org/docs/rules/prefer-spread
prefer-spread: 2
# suggest using the rest parameters instead of arguments
# http://eslint.org/docs/rules/prefer-rest-params
prefer-rest-params: 2