Skip to content

Commit

Permalink
Update part5b.md
Browse files Browse the repository at this point in the history
In the package.json, "lint" is lowercase instead of "Lint". So the command should be "npm run lint"

When I ran the command i encountered an error saying jest/globals not found. I found a fix on github.
facebook/react-native#33955
  • Loading branch information
Moise-Kongolo authored Jan 7, 2024
1 parent f79c81d commit af6dd07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/content/5/en/part5b.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,12 +780,19 @@ Now the directories <em>dist</em> and <em>node_modules</em> will be skipped when

As usual, you can perform the linting either from the command line with the command


```bash
npm run Lint
npm run lint
```

or using the editor's Eslint plugin.

If you encounter an error saying ```Environment key "jest/globals" is unknown``` , you can install <em>eslint-plugin-jest</em> module as a development dependency and it will fix the error.

```bash
npm install eslint-plugin-jest --save-dev
```

Component _Togglable_ causes a nasty-looking warning <i>Component definition is missing display name</i>:

![vscode showing component definition error](../../images/5/25x.png)
Expand Down

0 comments on commit af6dd07

Please sign in to comment.