From 02add6be7d06b4f21cebd9086626e8483372b0dd Mon Sep 17 00:00:00 2001 From: Vasyl Boroviak Date: Mon, 1 Jun 2020 10:42:30 +1000 Subject: [PATCH] Update README with the fastest way to lint multiple pug files I took me a while to find how to lint many-many files very-very fast. That is my finding. I hope someone would find this helpful. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index cbf9e55..a9e5df0 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,14 @@ let g:syntastic_pug_checkers = ['pug_lint'] ## Build system integration +### Shell + +The fastest way to lint multiple `.pug` files is by using the standard `find` unix command. The command below assumes you have a `views` directory which contains other nested directories with `.pug` files. + +```sh +find ./views -type f -name '*.pug' | xargs pug-lint +``` + ### Gulp If you're using Gulp as your build system, you can use [gulp-pug-linter](https://github.com/ilyakam/gulp-pug-linter) for easier integration.