liveBook · Manning

Linter rule

A linter rule is a configurable condition applied by a linter to detect or enforce specified patterns or constraints in code or other artifacts.

How 4 Manning books explain it

Automating API Delivery

A custom linting rule is a user-defined validation rule that specifies where and how an API definition is checked.

How it is used
Checks static API definitions against executable API style-guide guidelines during design and CI/CD.
How deep it goes
Works through Spectral selectors, validation functions, severity, CLI testing, and custom-function escalation; leaves semantic judgment beyond simple rules.
Examples
Uses a missing `info.description`, versioned URI paths, and GET `operationId` naming conventions as rule targets.
What you can do after
Build it from scratch with Spectral selectors and functions, test violations, and apply organizational severity and pipeline policy.

Read how Automating API Delivery explains linter rule →

"Looks Good to Me"

A linting rule is a configured criterion that a linter applies to source code to detect a particular pattern or violation.

How it is used
Uses configured checks to automate team style and catch code concerns before review.
How deep it goes
Defines rule scope, granularity, and severity with practical configurations, but does not explain linter internals.
Examples
Uses Stroustrup braces, no-var, duplicate-import, equality, console, and unnecessary-ternary checks as concrete examples.
What you can do after
Apply it via ESLint to enforce selected checks, tune warning or error severity, and reduce recurring review issues.

Read how "Looks Good to Me" explains linter rule →

Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu

A linter rule is a configurable static-analysis check that specifies a condition source or configuration must satisfy.

How it is used
Applies static checks to Terraform configuration during quality and continuous-integration workflows.
How deep it goes
Explains rule selection, plugin configuration, diagnostics, disabling, and inline exceptions, but not rule implementation internals.
Examples
Uses Terraform plugin presets, required_version and unused-provider diagnostics, cloud plugins, Makefile commands, and inline ignore comments.
What you can do after
Operate TFLint by enabling plugins, selecting presets, interpreting findings, customizing rules, and recording narrow exceptions.

Read how Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu explains linter rule →

Essential TypeScript 5, Third Edition

A linting rule is a configurable condition that determines whether a linter reports a particular source-code pattern or violation.

How it is used
Configures lint feedback so warnings remain relevant to project-wide standards and temporary debugging needs.
How deep it goes
Explains numeric configuration values and statement-level suppression, but does not detail rule implementation internals.
Examples
Uses prefer-const in .eslintrc and no-debugger with an eslint-disable-line comment.
What you can do after
Operate ESLint by enabling or disabling rules globally and suppressing selected violations on individual statements.

Read how Essential TypeScript 5, Third Edition explains linter rule →

Related concepts

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.