liveBook · Manning

ESLint

ESLint is an open-source, configurable static-analysis tool that identifies and optionally fixes coding problems in JavaScript, TypeScript, and related source code.

How 3 Manning books explain it

"Looks Good to Me"

An open-source JavaScript and TypeScript linting tool that detects coding errors, style violations, and other source-code problems.

How it is used
Automates recurring style and lint checks during development so code reviews can focus on higher-value concerns.
How deep it goes
Explains rule selection, severity changes, configuration, and representative code, but does not detail ESLint internals or custom rule development.
Examples
Uses no-console, brace-style, declaration, import, asynchronous-loop, equality, alert, and ternary rules with contrasting JavaScript snippets.
What you can do after
Apply it via ESLint configuration and editor integration to catch agreed violations before code review.

Read how "Looks Good to Me" explains ESLint →

Secrets of the JavaScript Ninja, Third Edition

An open-source linter for JavaScript and TypeScript with configurable rules and automatic fixes.

How it is used
Checks JavaScript and TypeScript projects for potential mistakes and enforces chosen coding conventions without running the code.
How deep it goes
Explains rule examples, configuration choices, local exceptions, and the tradeoff between broader checks and unwanted warnings; does not detail ESLint internals.
Examples
Uses shadowed variables, unreachable code, deprecated React methods, and a non-null assertion rejected by a strict rule.
What you can do after
Operate/configure it to select rules, run a lint check, and justify either project-wide or local exceptions.

Read how Secrets of the JavaScript Ninja, Third Edition explains ESLint →

React in Depth

ESLint is a static analysis tool for identifying problematic patterns and enforcing coding rules in JavaScript code.

How it is used
Enforces shared JavaScript coding rules and catches errors before code reaches teammates.
How deep it goes
Walks through initialization, configuration, rule severity, and editor/build enforcement; does not examine ESLint internals.
Examples
Uses opposing semicolon rules, `eslint:recommended`, and a generated `.eslintrc` configuration.
What you can do after
Operate/configure it to apply team rules in an editor and build, with automatic fixes available for many violations.

Read how React in Depth explains ESLint →

Also covered in

What to know first

Related concepts

Questions about ESLint

What is ESLint?

ESLint is an open-source, configurable static-analysis tool that identifies and optionally fixes coding problems in JavaScript, TypeScript, and related source code.

Which Manning books explain ESLint?

"Looks Good to Me", Secrets of the JavaScript Ninja, Third Edition and React in Depth.

What should I know before learning ESLint?

Manning books that teach ESLint usually introduce JavaScript first.

What is ESLint a kind of?

ESLint is a kind of linting. Linting is the automated static analysis of source code or configuration against rules to detect potential errors, suspicious patterns, and style or consistency violations.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.