diff --git a/.gitignore b/.gitignore index c87defb9..acff7f30 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,6 @@ yarn-error.log* .yalc yalc.lock .cache + +# vale +.vale/check.json \ No newline at end of file diff --git a/.vale/vale.ini b/.vale/vale.ini index f3fba3ad..6577ba03 100644 --- a/.vale/vale.ini +++ b/.vale/vale.ini @@ -1,19 +1,9 @@ -# Core settings appear at the top -# (the "global" section). - StylesPath = styles MinAlertLevel = suggestion - Vocab = docs [formats] -# Format associations appear under -# the optional "formats" section. - -[md] -BasedOnStyles = Google +mdx = md [*] -# Format-specific settings appear -# under a user-provided "glob" -# pattern. \ No newline at end of file +BasedOnStyles = Google \ No newline at end of file diff --git a/package.json b/package.json index e6de2ead..3559feb3 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "typecheck": "tsc --noEmit", "typecheck:watch": "npm run typecheck -- --watch", "check:urls": "find . -type f -name '*.md' ! -path './node_modules/*' ! -path './_site/*' | xargs -L1 npx markdown-link-check -q -c mlc_config.json", - "check:style": "vale --sort --config='.vale/vale.ini' --glob='*.{md}' ./src/pages" + "check:style": "vale --no-exit --output=JSON --glob='*.{md}' --config='.vale/vale.ini' ./src/pages > .vale/check.json" }, "husky": { "hooks": {