These are settings for ESLint and Prettier used by me in my projects.
This setup lints your JavaScript code based on practices. Check the .eslintrc.js file to see what is included. Feel free to override the rules that make sense for you.
- In your project folder, run:
npm i -D eslint-config-anafrost01 # or yarn install --dev eslint-config-anafrost01
npx install-peerdeps --dev eslint-config-anafrost01
- Add the following to
package.json
:
{
"eslintConfig": {
"extends": [
"eslint-config-anafrost01"
]
}
}
Or, touch .eslintrc
file and add:
{
"extends": [
"eslint-config-anafrost01"
]
}