0Pricing
TypeScript Academy · Lesson

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-hooks

All lessons in this course

  1. ESLint + @typescript-eslint
  2. Prettier integration & rule conflicts
  3. Common real-world rule sets
← Back to TypeScript Academy