commands.sh

xo

all

A pluggable, zero-configuration linting utility for JavaScript.

More info →

Examples (5)

Lint files in the "src" directory

Lint a given set of files

xo path/to/file1.js path/to/file2.js ...

Automatically fix any lint issues found

xo --fix

Lint using spaces as indentation instead of tabs

xo --space

Lint using the "prettier" code style

xo --prettier
made by @shridhargupta | data from tldr-pages