1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 22:17:57 +01:00
tldr/pages/common/xo.md
2018-11-06 08:57:21 +00:00

322 B

xo

A pluggable zero configuration linting utility for JavaScript.

  • Lint files in "src":

xo

  • Lint on a gives set of files:

xo {{filename}}.js {{filename1}}.js

  • Fix lint issues:

xo --fix

  • Lint with spaces as indentation instead of tabs:

xo --space

  • Lint with prettier code style:

xo --prettier