Commit Graph

4 Commits

Author SHA1 Message Date
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
Shaoquan Chen f0d0b3fc81 Stop using IIFE for index.js
`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
2015-10-07 10:12:33 -07:00
Michael Krotscheck cba4c7042d Enable strict
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
2015-09-22 10:24:59 -07:00
Michael Krotscheck 4aecdfd567 Initial Commit
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.
2015-06-23 18:40:37 -07:00