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
`index.js` is a NodeJS file. NodeJS automatically adds IIFE around
JS code from each NodeJS file and passes in some variables like
`module` object. Therefore it is redundant to have IIFE in
`index.js`.
Change-Id: Iea8ad83d8f3598aa506063614db482eeef52db4e
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
the rule applies to all javascript that comes after the global
"use strict" statement. Using the function method prevents
brittleness, by creating a scope around the 'strict' case.
http://eslint.org/docs/rules/strict
Change-Id: I5c89c26d2d7a38c342e7c8f49f8cabe145dd02c0
This module creates a set of shareable eslint style guidelines
for use in OpenStack. The base rule set is taken from the current
horizon rules under consideration.