snippetbashTip
xo — A pluggable, zero-configuration linting utility for JavaScript. More information: <https://github.co
Viewed 0 times
configurationcommandlintingclipluggablexoutilityzero
Problem
How to use the
xo command: A pluggable, zero-configuration linting utility for JavaScript. More information: <https://github.com/xojs/xo#usage>.Solution
xo — A pluggable, zero-configuration linting utility for JavaScript. More information: <https://github.com/xojs/xo#usage>.Lint files in the "src" directory:
xoLint a given set of files:
xo {{path/to/file1.js path/to/file2.js ...}}Automatically fix any lint issues found:
xo --fixLint using spaces as indentation instead of tabs:
xo --spaceLint using the "prettier" code style:
xo --prettierCode Snippets
Lint files in the "src" directory
xoLint a given set of files
xo {{path/to/file1.js path/to/file2.js ...}}Automatically fix any lint issues found
xo --fixLint using spaces as indentation instead of tabs
xo --spaceLint using the "prettier" code style
xo --prettierContext
tldr-pages: common/xo
Revisions (0)
No revisions yet.