Prettier and ESLint usage
To perform formatting with Prettier and checking for errors with ESLint, install the ESLint and Prettier - Code formatter extensions for Visual Studio Code. Check here for more info.
ESLint can scan the entire codebase for errors using: npm lint
npm lint
Code formatting can be done in two ways:
For the current file CTRL + MAIUSC + I
CTRL + MAIUSC + I
For the entire codebase npm run format
npm run format
Last updated 2 years ago