From c3c7aa2f4850b713ee43abd11506bc6a8b147c33 Mon Sep 17 00:00:00 2001 From: jakecastelli <959672929@qq.com> Date: Sun, 31 Mar 2024 22:15:28 +1030 Subject: [PATCH] doc: add lint-js-fix into BUILDING.md When there is any auto-fixable linting errors, there is not a way to pass `--fix` into `make lint-js` as far as I am aware of. Spent quiet some time fixing them one by one and just realised `lint-js-fix` exists. --- BUILDING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BUILDING.md b/BUILDING.md index a4e910aba39cca..b6f651ca77a9ad 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -319,6 +319,8 @@ documentation tests. To run the linter without running tests, use `make lint`/`vcbuild lint`. It will lint JavaScript, C++, and Markdown files. +To fix auto fixable JavaScript linting errors, use `make lint-js-fix`. + If you are updating tests and want to run tests in a single test file (e.g. `test/parallel/test-stream2-transform.js`):