Common real-world rule sets
Apply popular ESLint + Prettier rule sets used in open-source and company projects to save setup time.
Intro
Goal: Use community rule sets like airbnb, standard, and google for consistent style without manual tuning.
Airbnb config
Airbnb is a popular strict style, especially for React. It enforces semicolons, spacing, and React best practices.
npm install --save-dev eslint-config-airbnb-typescript eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooksAll lessons in this course
- ESLint + @typescript-eslint
- Prettier integration & rule conflicts
- Common real-world rule sets