I appreciate your considering contributing eslint-config-moneyforward
. This document is a guide to help make your contribution easier.
- Node.js (See
.node-version
)
-
Fork this repository and clone it locally
git clone https://github.com/your-username/eslint-config-moneyforward.git
-
Move to the directory and install dependencies
cd eslint-config-moneyforward npm install
The main scripts used during development are:
npm run lint
: Runs lint on your code.npm run test
: Runs unit tests.
- Check the Issue Tracker for existing issues.
- When requesting a new issue or feature, please use the templates and provide as much detail as possible.
-
Check the Issue Tracker, make sure if there is anything relevant to the problem you are trying to solve.
-
Keep the repository you did fork up to date.
git fetch upstream git rebase upstream/main
-
Create a new branch.
git switch -c feature/your-feature-name
-
Make changes to the code and run tests to make sure everything is working properly.
-
Write a clear commit message.
- Commit messages should concisely describe the changes you made.
- Commits should be split into appropriate chunks, and we recommend using the Conventional Commits style. Below are the available Conventional Commits types:
feat
: a commit that adds new functionality.fix
: a commit that fixes a bug.docs
: a commit that adds or improves a documentation.style
: changes that do not affect the meaning of the code.refactor
: a code change that neither fixes a bug nor adds a feature.perf
: a commit that improves performance, without functional changes.test
: adding missing tests or correcting existing tests.build
: changes that affect the build system or external dependencies.ci
: changes to our CI configuration files and scripts.chore
: other changes that don't modify src or test files.revert
: reverts a previous commit.
Note
If there is a single commit in the pull request, the commit message must be the same as a pull request title. Because the merge strategy in this repository is "Squash and merge". When you "Squash and merge" a pull request on a branch that has only one commit, the default commit message will be the commit message in that branch.
- If you make changes, add unit tests or make sure that the existing tests pass.
- Tests are powered by Jest. When adding tests, try to increase test coverage.
- Write the title of pull request in the the Conventional Commits style. Below are the available Conventional Commits types:
feat
: a commit that adds new functionality.fix
: a commit that fixes a bug.docs
: a commit that adds or improves a documentation.style
: changes that do not affect the meaning of the code.refactor
: a code change that neither fixes a bug nor adds a feature.perf
: a commit that improves performance, without functional changes.test
: adding missing tests or correcting existing tests.build
: changes that affect the build system or external dependencies.ci
: changes to our CI configuration files and scripts.chore
: other changes that don't modify src or test files.revert
: reverts a previous commit.
- Create a pull request and include the following information:
- Description of the change
- Purpose of the change
- Relevant issue number (if any)
This project is based on MIT License.