Overview of eslint-plugin-yml
mastereslint-plugin-yml is an ESLint plugin that provides linting rules for YAML files. Unlike some other YAML plugins that use processors to return results independently, this plugin provides both the Abstract Syntax Tree (AST) and the source code text to the ESLint engine.
Key benefits of this approach include:
- Support for ESLint directive comments (e.g.,
# eslint-disable). - Compatibility with plugins and rules that require source code text, such as
eslint-plugin-prettieroreol-last. - Support for Vue SFC custom blocks like
<i18n lang="yaml">(requiresvue-eslint-parserv7.3.0+). - Real-time checking via editor integrations.