These are settings for ESLint and Prettier used by me
- In your project folder, run:
npm i -D eslint-config-shrimberg
npx install-peerdeps --dev eslint-config-shrimberg
- You will see several dependencies were installed.
- Install .eslint file
- You can install and configure ESLint using this command:
npm init @eslint/config
- Or you could also make empty .eslintrc file
- Now, update a .eslintrc file with the following content:
{
"extends": [
"shrimberg"
]
}
-
Copy the .prettierrc file from this repository into your project folder
-
You need to have Prettier and Eslint extension installed on visual studio code.
This repository is inspired by leonardofaria.