96195f64a5
This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have. |
||
---|---|---|
doc | ||
spec | ||
.editorconfig | ||
.eslintrc | ||
.eslintrc-es2015 | ||
.gitignore | ||
.gitreview | ||
.npmrc | ||
.zuul.yaml | ||
bindep.txt | ||
es2015.js | ||
index.js | ||
LICENSE | ||
load-config.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
To add these rules to your project, follow these steps.
npm install --save-dev eslint eslint-config-openstack
- Add
extends: "openstack"
to your.eslintrc
yaml file. If your project is using ES2015, addextends: "openstack/es2015"
instead.
Approval Policies
If you would like to contribute, please follow OpenStack's contribution guidelines.
Rules only land with consensus
Patches that activate, deactivate, or modify rules, should only be merged if a consensus of reviewers is reached. In this case, consensus means at least five positive votes (+1 or +2), with no -1 votes. Cores may not override and/or ignore -1 votes.
Library upgrades require two cores
Patches that upgrade eslint only require two core approvers to land. These patches must add new upstream rules in a deactivated state, and delete any deprecated rules.
Policy upgrades require all cores
Updates to policies and governance on this project require +2 votes from all direct cores on the project. Core votes from the parent OpenStack QA project are optional.
Patches should be abandoned after a month of inactivity
Cores should attempt to keep the list of extant patches small and managable. As such, they should talk to any author whose patch has failed to garner the necessary support, and has experienced one month of inactivity. Reasonable notice should be given to the author before a patch is abandoned.