d5acf57357
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. http://eslint.org/docs/rules/no-redeclare Change-Id: I36b94c69cdb1fbe5f42b99aec06af01205002cf6 |
||
---|---|---|
spec | ||
.editorconfig | ||
.eslintrc | ||
.gitignore | ||
.gitreview | ||
.npmrc | ||
LICENSE | ||
README.md | ||
index.js | ||
package.json |
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
npm install --save-dev eslint eslint-config-openstack
- Add
extends: "openstack"
to your.eslintrc