LinuxCommandLibrary

xo

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 lints JavaScript. It's opinionated ESLint.
Zero config. Works out of the box.
TypeScript support. Built-in.
Prettier integration. Code formatting.
Strict rules. High quality code.

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)

Copied to clipboard