This is the base configuration used in my personal JavaScript projects:
It mainly:
- Extends Airbnb Style Guide
- Uses Prettier for code formatting
- Enforces no-for-of-loops
- Install the configuration using your favourite Node package manager.
npm install --save-dev eslint-config-carjuan eslint prettier
yarn add -D eslint-config-carjuan eslint prettier
pnpm install -D eslint-config-carjuan eslint prettier
- In your ESLint configuration
// .eslintrc.*
{
env: {
// Your env
}
extends: "carjuan"
rules:
{
// Your rules go here
}
...
}