OpenStack starts to support ES6, so the config has been updated
with instructions how to enable ES6 support.
"ecmaFeatures" were moved under "parserOptions" as it's required
by ESLint 2.x, all ES6-related flags were removed as they're
enabled using env.es6.
This enables the function form of the "use strict" invocation. In
general, 'strict' is considered a good practice, so enabling it
is good. Requiring the function method of use strict avoid a
common bug encountered with a global strict declaration, where
"use strict" statement. Using the function method prevents
brittleness, by creating a scope around the 'strict' case.
This patch adds unit tests that ensure new rules - added by an eslint
upgrade perhaps - are not missed. The patch also adds those rules
that have already fallen through the cracks.
Eslint carries forward a replacement list that indicates when a
rule is about to be renamed/deprecated. This unit test checks our
rules against that list, and will fail if it detects a pending
This unit test goes through all the active rules in the current
installed version of eslint, and errors on every one which
we declare that is no longer in the upstream package. This will
prevent us from having to carry forward out-of-date configuration.