From e1877235484fd73f31155c982ae1f75ef8215563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sun, 25 Jun 2023 21:52:17 +0200 Subject: [PATCH] fix: add markdownlint target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was missing from the website package.json, even though it was checking the website directory. So should be there. The markdownlint-cli2 tool does **not** check in the parent directory, unlike the other tools, so add explicit config. Signed-off-by: Anders F Björklund --- website/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/package.json b/website/package.json index 37c7b3542ee2b..ad6426a549fef 100644 --- a/website/package.json +++ b/website/package.json @@ -15,6 +15,8 @@ "typecheck": "tsc", "format:check": "prettier --check '**/*.{md,js}' 'src/**/*.{css,ts,tsx}'", "format:fix": "prettier --write '**/*.{md,js}' 'src/**/*.{css,ts,tsx}'", + "markdownlint:check": "markdownlint-cli2 --config ../.markdownlint.yaml \"**/*.md\" \"#node_modules\"", + "markdownlint:fix": "markdownlint-cli2-fix --config ../.markdownlint.yaml \"**/*.md\" \"#node_modules\"", "lint:check": "cd .. && eslint website --ext js,ts,tsx", "lint:fix": "cd .. && eslint website --fix --ext js,ts,tsx" },