ff33b1b5c3
This additional rule will validate that case statements inside of switch blocks are indented by x-times the normal indent. In this case it is 1x the normal indent -> 2 spaces. The default is 0. Change-Id: Ib79e859d1ec3aaafdc22c886a9c01030d5f913c7 |
||
---|---|---|
spec | ||
.editorconfig | ||
.eslintrc | ||
.gitignore | ||
.gitreview | ||
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