Skip to main content
Ganesh Joshi
Back to Cheatsheets

ESLint and Prettier config

Updated 2026-02-15

Common ESLint rules and Prettier options. .eslintrc, .prettierrc, and integrating both.

ESLint

.eslintrc.json: extends eslint:recommended, @typescript-eslint/recommended. parser: @typescript-eslint/parser. rules: { 'no-unused-vars': 'warn' }. plugins for React, etc.

Prettier

.prettierrc: semi, singleQuote, tabWidth, trailingComma. .prettierignore for build/node_modules. Use eslint-config-prettier to turn off ESLint formatting rules.

ESLint and Prettier config | Cheatsheet | Ganesh Joshi