Skip to content

Latest commit

 

History

History
98 lines (71 loc) · 3.81 KB

CONTRIBUTING.md

File metadata and controls

98 lines (71 loc) · 3.81 KB

Contributing to eslint-plugin-promise

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

Please note that this project is released with a Contributor Code of Conduct. By participating in this project, you agree to abide by its terms.

Table of Contents

How can I contribute?

Improve documentation

As a user of eslint-plugin-promise, you're the perfect candidate to help us improve our documentation. Typo corrections, error fixes, better explanations, more examples, etc. Open issues for things that could be improved. Anything. Even improvements to this document.

Improve issues

Some issues are created with missing information, not reproducible, or plain invalid. Help make them easier to resolve.

Give feedback on issues

We're always looking for more opinions on discussions in the issue tracker. It's a good opportunity to influence the future direction of this tool.

The question label is a good place to find ongoing discussions.

Write code

You can use issue labels to discover issues you could help out with:

The help wanted and good first issue labels are especially useful.

You may find an issue is assigned. Please double-check before starting on this issue because somebody else is likely already working on it.

Setup

When developing, prefer using Node ≥8 and npm ≥5. While this plugin supports Node 4, writing code with the latest stable Node and npm versions allows us to use newer developer tools.

After cloning the repository, run npm install to install dependencies.

Run npm test to run the test suite (powered by Jest). Sometimes it can be helpful to run a single test file and watch for changes, especially when working on a single rule. You can run npm test -- --watch to achieve this.

Run npm run lint to lint the codebase. If there are any errors reported, try running npm run lint -- --fix first to see if ESLint can fix them for you. npm test will also lint the codebase thanks to jest-runner-eslint.

This codebase uses Prettier for code formatting. Consider installing an editor plugin for the best experience, but code will also be formatted with a precommit script (using lint-staged) as well as by running npm run lint -- --fix.

Submitting an issue

  • Please search the issue tracker before opening an issue.
  • Use a clear and descriptive title.
  • Include as much information as possible by filling out the provided issue template.
  • The more time you put into an issue, the more we will.
  • The best issue report is a failing test proving it.