Nodejs
Installation
npm install eslint eslint-config-prettier prettier –-save
Configuration
eslint --init
Add .eslintrc.json and .prettierrc
Usage
To check if the formatting matches with Prettier’s rules
npm run format:check
Force the formatting
npm run format:write
Lint your code
npm run lint:check
To Auto-fix the errors
npm run lint:fix
This project uses several environment variables to run the application.
- Description: Specifies the Node.js environment.
- Values: Either
developmentfor development environment orproductionfor the production environment.