91b9608ab1
Disallow Early Use (no-use-before-define) In JavaScript, prior to ES6, variable and function declarations are 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. http://eslint.org/docs/rules/no-use-before-define Change-Id: Ia905b77e0938ac3e0279712bc6e5ccdb18a102e7 |
||
---|---|---|
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