Skip to content

Commit 22d25ca

Browse files
committed
chore: fix CONTRIBUTING.md
1 parent 5a3655b commit 22d25ca

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

CONTRIBUTING.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ pnpm install
1313
## Running the tests
1414

1515
```sh
16-
pnpm test
16+
pnpm run test
1717
```
1818

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

2121
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.
2222

23-
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.
23+
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.
2424

2525
## Other Development Tools
2626

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

3333
## Test the Rule
3434

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

5454
```sh
55-
pnpm test -g indent
55+
pnpm run test -- -g indent
5656
```
5757

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

0 commit comments

Comments
 (0)