Skip to content

Commit

Permalink
chore: fix CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 12, 2024
1 parent 5a3655b commit 22d25ca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ pnpm install
## Running the tests

```sh
pnpm test
pnpm run test
```

To run the tests with debugging log, you can use `pnpm test:debug`.
To run the tests with debugging log, you can use `pnpm run test:debug`.

This is an [ESLint](http://eslint.org) plugin. Documentation for the APIs that it uses can be found on ESLint's [Working with Plugins](http://eslint.org/docs/developer-guide/working-with-plugins) page.

This plugin is used to lint itself. The style is checked when `pnpm lint` is run, and the build will fail if there are any linting errors. You can use `pnpm lint-fix` to fix some linting errors.
This plugin is used to lint itself. The style is checked when `pnpm run lint` is run, and the build will fail if there are any linting errors. You can use `pnpm run lint-fix` to fix some linting errors.

## Other Development Tools

- `pnpm test` runs tests.
- `pnpm cover` runs tests and measures coverage.
- `pnpm new [new-rule-name]` generate the files needed to implement the new rule.
- `pnpm update` runs in order to update readme and recommended configuration.
- `pnpm docs:watch` launch the document site in development mode.
- `pnpm run test` runs tests.
- `pnpm run cover` runs tests and measures coverage.
- `pnpm run new -- [new-rule-name]` generate the files needed to implement the new rule.
- `pnpm run update` runs in order to update readme and recommended configuration.
- `pnpm run docs:watch` launch the document site in development mode.

## Test the Rule

Expand All @@ -52,7 +52,7 @@ To verify the output of invalid test cases requires `*-errors.json`, and `*-outp
If you want to test only one rule, run the following command (for `indent` rule):

```sh
pnpm test -g indent
pnpm run test -- -g indent
```

Take <https://stackoverflow.com/questions/10832031/how-to-run-a-single-test-with-mocha> as reference for details.
Expand Down

0 comments on commit 22d25ca

Please sign in to comment.