JavaScript Style Guidelines for OpenStack.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Ghanshyam Mann 7b2a6a5684 Update IRC network to OFTC 2 months ago
doc Update IRC network to OFTC 2 months ago
spec Update descriptions of ES6-related options 5 years ago
.editorconfig Initial Commit 6 years ago
.eslintrc Disallow space between a function & opening paren 5 years ago
.eslintrc-es2015 Added config with ES2015-only rules 5 years ago
.gitignore Copy .gitignore from js-generator-openstack template 5 years ago
.gitreview OpenDev Migration Patch 2 years ago
.npmrc Added npm default config. 6 years ago
.zuul.yaml Add publish-openstack-docs-pti template 2 months ago
CONTRIBUTING.rst [ussuri][goal] Update contributor documentation 1 year ago
LICENSE Initial Commit 6 years ago
README.rst Fix building of the pdf documentation 4 months ago
bindep.txt Fix building of the pdf documentation 4 months ago
es2015.js Added config with ES2015-only rules 5 years ago
index.js Added config with ES2015-only rules 5 years ago
load-config.js Added config with ES2015-only rules 5 years ago
package.json Fix building of the pdf documentation 4 months ago
tox.ini Changed minversion in tox to 3.18.0 2 months ago

README.rst

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.

  1. npm install --save-dev eslint eslint-config-openstack
  2. Add extends: "openstack" to your .eslintrc yaml file. If your project is using ES2015, add extends: "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.