Eslint
npm install -g eslint
Without running code, find errors and potential errors
Vscode has an eslint plugin that allows you see potential errors
Setup In Project
Setup In Project With Prettier
In root of project:
.eslintrc
Can add additional config in prettier
Rules
The preferred way to include one of these characters is to use the HTML escape code.
>
can be replaced with>
"
can be replaced with “, "'
can be replaced with ‘, '}
can be replaced with }
Last updated