-
| It is known that Create React App comes with built-in eslint, so there is no need to install the package once more in the project. But... How can eslint be used in scripts? In some issues regarding this topic I have seen that it is used in the following way: "scripts": {
    "lint": "eslint src"
    ...
}usage 
 I don't understand why this works, but if I do  I was reviewing some RPs from a while ago where the topic of  Help ! 😔 | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| @vicasas,  | 
Beta Was this translation helpful? Give feedback.
@vicasas,
npm run eslintwill throw an error in case you don't have any script with name eslint in your package.json.