Add eslint-plugin-yamllint for YAML 1.1 safety#50
Merged
gtbuchanan merged 6 commits intomainfrom Apr 21, 2026
Merged
Conversation
Enable yml/no-trailing-zeros and yml/require-string-key to catch subtle YAML value bugs that eslint-plugin-yml supports but the recommended preset does not enable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implements yamllint-equivalent rules as native ESLint rules using the yaml npm package — no Python dependency required. Rules: truthy (auto-fixable), octal-values, anchors, document-start (auto-fixable), document-end (auto-fixable). Integrates into eslint-config alongside eslint-plugin-yml. Disables document-start for pnpm-workspace.yaml (Renovate strips the header). Autofixes missing --- markers in existing YAML files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add @gtbuchanan/eslint-plugin-yamllint to the e2e fixture's workspaceDeps so the tarball is installed alongside eslint-config during isolated testing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add eslint-plugin-yamllint to workspaceDeps and update YAML test to include --- document start marker expected by the new yamllint/document-start rule. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Verify truthy and octal-values rules fire through the full eslint-config pipeline on YAML files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
c46a200 to
c6e2df5
Compare
Add README with yamllint rule comparison table showing what each tool covers and why only 5 rules are implemented here. Update AGENTS.md structure and linter sections. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
c6e2df5 to
7ddcf62
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@gtbuchanan/eslint-plugin-yamllint— native ESLint rules implementing yamllint gap coverage (truthy, octal-values, anchors, document-start, document-end)yml/no-trailing-zerosandyml/require-string-keyin existing eslint-plugin-yml config---document start markers in 9 YAML filesdocument-startrule forpnpm-workspace.yaml(Renovate strips it)Test plan
pnpm checkpasses (24 turbo tasks, typecheck + lint + tests)🤖 Generated with Claude Code