JavaScript Style Guidelines for OpenStack.
Go to file
Diana Whitten ba6146b361 Enable no-undefined
Disallow Use of undefined Variable (no-undefined)

The undefined variable is unique in JavaScript because it is
actually a property of the global object. As such, in ECMAScript 3
it was possible to overwrite the value of undefined. While
ECMAScript 5 disallows overwriting undefined, it's still possible
to shadow undefined

http://eslint.org/docs/rules/no-undefined

Change-Id: I49bc0c26c19cbb7f12810066bdb8afc292c814bf
2015-08-27 16:59:07 -07:00
spec Initial Commit 2015-06-23 18:40:37 -07:00
.editorconfig Initial Commit 2015-06-23 18:40:37 -07:00
.eslintrc Enable no-undefined 2015-08-27 16:59:07 -07:00
.gitignore Initial Commit 2015-06-23 18:40:37 -07:00
.gitreview Added gitreview file to project. 2015-07-09 11:05:51 -07:00
.npmrc Added npm default config. 2015-08-18 14:45:23 -07:00
LICENSE Initial Commit 2015-06-23 18:40:37 -07:00
README.md Initial Commit 2015-06-23 18:40:37 -07:00
index.js Initial Commit 2015-06-23 18:40:37 -07:00
package.json 1.2.2 2015-08-21 13:33:59 -07:00

README.md

eslint-config-openstack

OpenStack has a set of style guidelines for clarity. OpenStack is a very large code base, spanning dozens of git trees, with over a thousand developers contributing every 6 months. As such, common style helps developers understand code in reviews, move between projects smoothly, and overall make the code more maintainable.

Even though eslint permits overriding rules on a per-project basis, it should be the goal of every project to stay as close to the common guidelines as possible.

Installation

  1. npm install --save-dev eslint eslint-config-openstack
  2. Add extends: "openstack" to your .eslintrc