This rule was adopted in js-openstack-lib and I propose
we adopt it here as well. Whether we enforce a space or
no space, so long as it is consistent.
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.
Arrow functions can omit parentheses when they have exactly one
parameter. In all other cases the parameter(s) must be wrapped
in parentheses. This rule enforces the consistent use of
parentheses in arrow functions.
If there are declarations of the same name in class members,
the last declaration overwrites other declarations silently.
It can cause unexpected behaviors.
This rule checks usage of super() calls in class constructors.
Constructors of derived classes must call super().
Constructors of non derived classes must not call super().
a runtime error.
This rule ensures that parameters used to declare a loop, are modified
within the loop. If they are not, it is likely that this is an error.
This adds the builtinGlobals flag to the no-redeclare rule, which
will throw errors when known globals - such as Object, Array,
window, document, etc - are used as variable names.
Disallow Early Use (no-use-before-define)
hoisted to the top of a scope, so it's possible to use identifiers
before their formal declarations in code. This can be confusing and
some believe it is best to always declare variables and functions
before using them.
In ES6, block-level bindings (let and const) introduce a "temporal
dead zone" where a ReferenceError will be thrown with any attempt to
access the variable before its declaration.
This rule aims to enforce use of quotes in property names, only
in cases where they are strictly required (such as +/- in the name).
In all other cases, it will point out unecessary quotes.
This rule aims to enforce spacing around a semicolon. This rule
prevents the use of spaces before a semicolon in expressions.