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

Deno · all subjects

cli/format

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

deno fmt command formats code, markdown, and JSON

The deno fmt command formats TypeScript, JavaScript, markdown, and JSON files. By default it formats all such files in the current directory and its subdirectories. To format specific files or directories, pass them as arguments: deno fmt src/

deno fmt --check verifies formatting without modifying files

The deno fmt --check command verifies if code is properly formatted according to Deno's default formatting rules. It reports formatting issues without modifying files, making it useful for CI pipelines and pre-commit hooks. If all files are correctly formatted, it exits without output.

deno fmt reads .editorconfig files for formatting settings

The deno fmt command reads .editorconfig files and uses them to fill in any option not set through a CLI flag or the deno.json fmt block. The precedence order is: CLI flags, then deno.json fmt settings, then .editorconfig, then built-in defaults.

Prettier can be run via deno run npm:prettier

Prettier can be run without a global installation. Use deno run -A npm:prettier --check . to report files needing formatting, or deno run -A npm:prettier --write . to format files in place. It requires no configuration.

Biome can be run via deno run npm:@biomejs/biome

Biome is a fast Rust-based linter and formatter that can be run with no configuration using deno run -A npm:@biomejs/biome. Use deno run -A npm:@biomejs/biome check . to lint and check formatting, deno run -A npm:@biomejs/biome format --write . to format files in place, or deno run -A npm:@biomejs/biome lint . to lint only. Generate a biome.json config file with deno run -A npm:@biomejs/biome init.

deno fmt and deno lint replace Prettier and ESLint

Unlike pnpm, Deno ships a formatter and linter in the box, so deno fmt and deno lint replace Prettier, ESLint, or Biome with no extra dependencies.

deno fmt --check option

deno fmt --check checks if code is formatted without modifying files.

Give your agent this brain