From b4aab776fd54f946ce774720d934d5a00e21d977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Str=C3=BCbing?= Date: Tue, 6 Nov 2018 09:57:21 +0100 Subject: [PATCH] xo: add page (#2552) --- pages/common/xo.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/xo.md diff --git a/pages/common/xo.md b/pages/common/xo.md new file mode 100644 index 0000000000..cfc931100b --- /dev/null +++ b/pages/common/xo.md @@ -0,0 +1,23 @@ +# 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`