diff --git a/.changeset/vale-3-29-0.md b/.changeset/vale-3-29-0.md new file mode 100644 index 000000000..b41242dc4 --- /dev/null +++ b/.changeset/vale-3-29-0.md @@ -0,0 +1,9 @@ +--- +"@taskless/cli": patch +--- + +Update the bundled Vale to 3.29.0. + +Vale rules now check AsciiDoc (`.adoc`, `.asc`, `.asciidoc`), reStructuredText (`.rst`, `.rest`) and Typst (`.typ`) files. Vale reads them without an external program, so `check` no longer leaves them out of the run with a skipped-files notice, and a rule that reaches them can report findings it did not before. + +LaTeX (`.tex`, `.ltx`, `.latex`) and Markdoc (`.mdoc`, `.markdoc`) are read as markup: prose is linted, and math, `\verb`, comments and code fences are not. A rule that reached `.tex` used to fire on commands and math, so some findings there disappear. diff --git a/.taskless/taskless.json b/.taskless/taskless.json index 49ab0c6ca..9175e71cd 100644 --- a/.taskless/taskless.json +++ b/.taskless/taskless.json @@ -28,10 +28,10 @@ } }, "rules": { - "reconciledTo": "0.13.7", + "reconciledTo": "0.13.8", "engines": { "sg": "0.51.3", - "vale": "3.27.0" + "vale": "3.29.0" } } } diff --git a/packages/cli/package.json b/packages/cli/package.json index 5bff3bf70..a80b72690 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -56,7 +56,7 @@ "node": ">=22.22.0" }, "dependencies": { - "@taskless/vale-grammars": "3.27.0-20261117230017", + "@taskless/vale-grammars": "3.29.0-20261202070856", "tsx": "^4.21.0" }, "devDependencies": { @@ -93,11 +93,11 @@ "@ast-grep/cli-win32-arm64-msvc": "0.51.3", "@ast-grep/cli-win32-ia32-msvc": "0.51.3", "@ast-grep/cli-win32-x64-msvc": "0.51.3", - "@taskless/vale-darwin-arm64": "3.27.0-20261117230017", - "@taskless/vale-darwin-x64": "3.27.0-20261117230017", - "@taskless/vale-linux-arm64": "3.27.0-20261117230017", - "@taskless/vale-linux-x64": "3.27.0-20261117230017", - "@taskless/vale-win32-arm64": "3.27.0-20261117230017", - "@taskless/vale-win32-x64": "3.27.0-20261117230017" + "@taskless/vale-darwin-arm64": "3.29.0-20261202070856", + "@taskless/vale-darwin-x64": "3.29.0-20261202070856", + "@taskless/vale-linux-arm64": "3.29.0-20261202070856", + "@taskless/vale-linux-x64": "3.29.0-20261202070856", + "@taskless/vale-win32-arm64": "3.29.0-20261202070856", + "@taskless/vale-win32-x64": "3.29.0-20261202070856" } } diff --git a/packages/cli/src/agent/create-vale-rule.md b/packages/cli/src/agent/create-vale-rule.md index 0339752ae..01a3b1df3 100644 --- a/packages/cli/src/agent/create-vale-rule.md +++ b/packages/cli/src/agent/create-vale-rule.md @@ -1,4 +1,4 @@ -# Topic: create-vale-rule (CLI v%(CLI_VERSION)s / topic v23) +# Topic: create-vale-rule (CLI v%(CLI_VERSION)s / topic v24) %(ONE_COMMAND_PER_CALL)s @@ -911,9 +911,9 @@ track the shipped binary. **A single unreadable file fails the whole Vale pass.** Vale exits 2 with an `E100` runtime error and abandons the run, `--no-exit` does not suppress it, so every other Vale rule over every other file goes -unreported. `[*.{md,typ}]` is not a slightly wider `[*.md]`; it is a +unreported. `[*.{md,dita}]` is not a slightly wider `[*.md]`; it is a matcher that takes `check` down the first time the repo grows a -`.typ` file. Never put one of those extensions in a glob. +`.dita` file. Never put one of those extensions in a glob. **A large file is linted, not skipped.** Vale's cost is linear in a file's size as of 3.21.0 (a 3MB single-block document measures @@ -926,14 +926,17 @@ it. That example changed with Vale v3.18.0, which is the point: the dangerous extension is whichever one the list above says needs a program, not the one you remember. `.mdx` was the example until that -release parsed it natively, and `.typ` took its place. +release parsed it natively, and `.typ` took its place until Vale +v3.29.0 embedded the Typst reader. **`.mdx` is supported** as of Vale v3.18.0, which parses it natively rather than shelling out. `[*.{md,mdx}]` is a legitimate matcher again, the example this recipe used to warn about is no longer the broken one. Check the lists above rather than reaching for that -memory: `.typ` moved the opposite way in the same release, so a -matcher covering Typst is now the one that takes the run down. +memory: `.typ` moved the opposite way in the same release, and back +again in v3.29.0, which also reads AsciiDoc, reStructuredText, LaTeX +and Markdoc natively. A rule over `.adoc`, `.rst`, `.typ` or `.tex` +is an ordinary markup rule now. **In `.mdx`, a component's children are prose as of v3.19.0.** Vale reads a JSX element's children as the Markdown they are, so text diff --git a/packages/cli/src/agent/route.md b/packages/cli/src/agent/route.md index abc5dcbc8..70af811d4 100644 --- a/packages/cli/src/agent/route.md +++ b/packages/cli/src/agent/route.md @@ -1,4 +1,4 @@ -# Topic: route (CLI v%(CLI_VERSION)s / topic v12) +# Topic: route (CLI v%(CLI_VERSION)s / topic v13) %(ONE_COMMAND_PER_CALL)s @@ -283,7 +283,7 @@ and hard-fails on a fourth.** The tier is decided by the file's extension: **One such file fails the entire Vale pass, not just that file.** Vale exits 2 with an `E100` runtime error, `--no-exit` does not suppress it, and every other Vale rule over every other file goes - unreported. A matcher written as `[*.{md,typ}]` is not a wider + unreported. A matcher written as `[*.{md,dita}]` is not a wider `[*.md]`. It is a broken one. **`.mdx` is supported** as of Vale v3.18.0, which parses it @@ -293,6 +293,14 @@ and hard-fails on a fourth.** The tier is decided by the file's extension: file is excluded rather than read as prose the way it was before. Both are measured, not assumed. + **Vale v3.29.0 brought AsciiDoc, reStructuredText and Typst + back.** It reads AsciiDoc and reStructuredText itself and embeds + `typst2vast`, so `.adoc`, `.asc`, `.asciidoc`, `.rst`, `.rest` and + `.typ` are markup now and safe to match. It also reads LaTeX + (`.tex`, `.ltx`, `.latex`) and Markdoc (`.mdoc`, `.markdoc`) as + markup, where `.tex` used to be linted straight through its + commands and math. + As of v3.19.0 an MDX component's children are read as Markdown too, so prose wrapped in `` or `