LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xo

Opinionated JavaScript and TypeScript linter

TLDR

Lint JavaScript
$ xo
copy
Lint specific files
$ xo [file.js]
copy
Fix issues
$ xo --fix
copy
Specify space indent
$ xo --space
copy
Print config
$ xo --print-config
copy

SYNOPSIS

xo [--fix] [--space] [options] [files]

DESCRIPTION

xo is an opinionated JavaScript and TypeScript linter built on top of ESLint. It provides a zero-configuration linting experience with a curated set of strict rules designed to enforce consistent, high-quality code without requiring manual ESLint setup.The tool includes built-in TypeScript support and optional Prettier integration for combined linting and formatting. The --fix option automatically corrects fixable issues, while --space switches from the default tab indentation to spaces. By defaulting to strict, well-chosen rules, xo eliminates the need for teams to debate and configure linting rules individually.

PARAMETERS

--fix

Auto-fix issues.
--space
Use space indent.
--semicolon
Require semicolons.
--prettier
Use Prettier.
--print-config
Show config.

CAVEATS

Opinionated rules. Node.js required. ESLint-based.

HISTORY

xo was created by Sindre Sorhus as an opinionated ESLint wrapper with sensible defaults.

SEE ALSO

eslint(1), standard(1), prettier(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid