From bfda0994e10f54a8f9e26a37003b2657492dc1e1 Mon Sep 17 00:00:00 2001 From: Zac Bergquist Date: Thu, 28 Mar 2024 08:56:10 -0600 Subject: [PATCH] Use the --quiet flag when linting the docs Without this, the linter writes a line of output for every file that has no errors. Our docs consist of hundreds of files, which creates a lot of noise that you have to scroll through when looking for an error. --- package.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6d6746e833..7b2f10d195 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "lint": "yarn base:eslint --fix && yarn base:prettier --write -l", "lint-check": "yarn base:eslint && yarn base:prettier --check", "typecheck": "tsc --noEmit --skipLibCheck --incremental --tsBuildInfoFile node_modules/.cache/tsc/tsbuildinfo --project .", - "markdown-lint": "remark --rc-path .remarkrc.mjs 'content/**/docs/pages/**/*.mdx' --frail --ignore-pattern '**/includes/**' --silently-ignore", + "markdown-lint": "remark --rc-path .remarkrc.mjs 'content/**/docs/pages/**/*.mdx' --quiet --frail --ignore-pattern '**/includes/**' --silently-ignore", "markdown-lint-external-links": "WITH_EXTERNAL_LINKS=true yarn markdown-lint", "markdown-fix": "FIX=true yarn markdown-lint -o", "storybook": "storybook dev -p 6006", @@ -35,10 +35,7 @@ "mintlify": "node migration/index.mjs" }, "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint", - "prettier --check" - ], + "*.{js,jsx,ts,tsx}": ["eslint", "prettier --check"], "*.{json}": "prettier --check" }, "simple-git-hooks": {