ESLint (and Prettier) config
These are my custom settings for ESLint and Prettier.
What it does
This setup lints your Typescript code based on my preferencies. Check the .eslintrc.js file to see what is included. Feel free to override the rules that make sense for you.
Installing
- In your project folder, run:
npm i -D eslint-config-zatkoa # or yarn install --dev eslint-config-zatkoa
npx install-peerdeps --dev eslint-config-zatkoa
- You will see several dependencies were installed. Now, create (or update) a
.eslintrc
file with the following content:
{
'extends': [
'zatkoa'
]
}
- Copy the .prettierrc file from this repository into your project folder
This repository is inspired by eslint-config-wesbos.