Update eslint and eslint-config-openstack to latest versions
The newest eslint-config-openstack provides all the ES2015-related extra rules we had in the local .eslintrc, so that they can be removed. Also, cloudsYamlPath.js was modified to adapt to `keyword-spacing` rule modifications in eslint v3. Change-Id: I55198a323a0ada7a74f425d21db42306d9548cb7
This commit is contained in:
parent
327dceee2b
commit
348b5927e6
27
.eslintrc
27
.eslintrc
|
@ -1,26 +1 @@
|
|||
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
|
||||
extends: openstack/es2015
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
"babel-plugin-transform-inline-environment-variables": "^6.8.0",
|
||||
"babel-preset-es2015": "^6.9.0",
|
||||
"babel-register": "^6.9.0",
|
||||
"eslint": "^2.4.0",
|
||||
"eslint-config-openstack": "2.0.0",
|
||||
"eslint": "^3.0.0",
|
||||
"eslint-config-openstack": "4.0.1",
|
||||
"fetch-mock": "^5.0.5",
|
||||
"istanbul": "^1.0.0-alpha.2",
|
||||
"jasmine": "^2.4.1",
|
||||
|
|
Loading…
Reference in New Issue