Skip to content

Commit

Permalink
copy edit
Browse files Browse the repository at this point in the history
  • Loading branch information
bpmutter committed Jun 8, 2023
1 parent ac9e8d8 commit da582e5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/src/extend/custom-rule-tutorial.md
Expand Up @@ -183,6 +183,12 @@ Next, create the file for the tests, `enforce-foo-bar.test.js`:
touch enforce-foo-bar.test.js
```

You will use the `eslint` package in the test file. Install it as a development dependency:

```shell
npm install eslint --save-dev
```

And add a test script to your `package.json` file to run the tests:

```javascript
Expand All @@ -196,12 +202,6 @@ And add a test script to your `package.json` file to run the tests:
}
```

Also install `eslint` as a development dependency:

```shell
npm install eslint --save-dev
```

## Step 6: Write the Test

To write the test using `RuleTester`, import the class and your custom rule into the `enforce-foo-bar.test.js` file.
Expand Down

0 comments on commit da582e5

Please sign in to comment.