new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Next.js App Router · all subjects

getting-started/linting

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Linting options in Next.js

Next.js supports linting with either ESLint or Biome. Both are run directly via package.json scripts. ESLint offers comprehensive rules while Biome is a fast linter and formatter combined. Starting with Next.js 16, `next build` no longer runs the linter automatically; instead run your linter through NPM scripts.

ESLint scripts configuration

Example ESLint scripts in package.json: ```json { "scripts": { "lint": "eslint", "lint:fix": "eslint --fix" } } ```

Biome scripts configuration

Example Biome scripts in package.json: ```json { "scripts": { "lint": "biome check", "format": "biome format --write" } } ```

Migrate from next lint to ESLint CLI

If your project previously used `next lint`, migrate your scripts to the ESLint CLI using the codemod: `npx @next/codemod@canary next-lint-to-eslint-cli .`

ESLint configuration format

If using ESLint, create an explicit config (recommended format is `eslint.config.mjs`). ESLint supports both the legacy `.eslintrc.*` formats and the newer `eslint.config.mjs` format.

Give your agent this brain