# ESLint and Prettier for a Node Project

ESLint reads a Node project's code and reports likely mistakes, such as a variable nobody uses or a == that hides text from a URL, and Prettier lays out every file the same way, so you set both up once with a flat config, globals.node and npm scripts.

![Cheat sheet: ESLint and Prettier for a Node Project](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/b3ea278211224b93988ee1af499de3f7.webp)

- Category: Node.js
- Level: Journeyman
- Tags: ESLint, Flat Config, Linter, nodejs, npm scripts, Prettier, software-development
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-pro-eslint-and-prettier-cheat-sheet
