eslint-plugin-yml weekly downloads statistics
By ota-meshi (12 listings) · npm · ESLint plugins
This ESLint plugin provides linting rules for YAML.
eslint-plugin-yml has 1,737,798 recorded weekly downloads on npm, an increase of 9.6% over the past 30 days, ranking #238 of 3,247 tracked listings.
About eslint-plugin-yml
Introduction
eslint-plugin-yml is ESLint plugin provides linting rules for [YAML].
:name_badge: Features
This ESLint plugin provides linting rules for [YAML].
- You can use ESLint to lint [YAML].
- You can find out the problem with your [YAML] files.
- You can apply consistent code styles to your [YAML] files.
- Supports Vue SFC custom blocks such as
<i18n lang="yaml">.
Requirementsvue-eslint-parserv7.3.0 and above. - Supports ESLint directives. e.g.
# eslint-disable-next-line - You can check your code in real-time using the ESLint editor integrations.
You can check on the Online DEMO.
:question: How is it different from other YAML plugins?
Plugins that do not use AST
e.g. eslint-plugin-yaml
These plugins use the processor to parse and return the results independently, without providing the ESLint engine with AST and source code text.
Plugins don't provide AST, so you can't use directive comments (e.g. # eslint-disable).
Plugins don't provide source code text, so you can't use it with plugins and rules that use text (e.g. eslint-plugin-prettier, eol-last).
eslint-plugin-yml works by providing AST and source code text to ESLint.
<!--DOCS_IGNORE_START-->:book: Documentation
See documents.
:cd: Installation
npm install --save-dev eslint eslint-plugin-yml
<!--DOCS_IGNORE_END-->Requirements
- ESLint v9.38.0 and above
- Node.js v20.19.0 or higher (in the 20.x line), v22.13.0 or higher (in the 22.x line), or v24.0.0 and above
:book: Usage
<!--USAGE_SECTION_START--> <!--USAGE_GUIDE_START-->Configuration
Use eslint.config.js file to configure rules. See also: https://eslint.org/docs/latest/use/configure/configuration-files-new.
Example eslint.config.js:
import eslintPluginYml from 'eslint-plugin-yml';
export default [
// add more generic rule sets here, such as:
// js.configs.recommended,
...eslintPluginYml.configs.recommended,
{
rules: {
// override/add rules settings here, such as:
// 'yml/rule-name': 'error'
}
}
];
This plugin provides configs:
*.configs.base... Configuration to enable correct YAML parsing.*.configs.recommended... Above, plus rules to prevent errors or unintended behavior.*.configs.standard... Above, plus rules to enforce the common stylistic conventions.*.configs.prettier... Turn off rules that may conflict with Prettier.
See the rule list to get the rules that this plugin provides.
Note: The *.configs['flat/*'] configs are still available for backward compatibility, but it is recommended to use the new config names without the flat/ prefix.
Parser Configuration
If you have specified a parser, you need to configure a parser for .yaml.
For example, if you are using the "@babel/eslint-parser", configure it as follows:
import eslintPluginYml from 'eslint-plugin-yml';
import babelParser from '@babel/eslint-parser';
export default [
...eslintPluginYml.configs.standard,
{
files: ['**/*.js'],
languageOptions: {
parser: babelParser,
},
},
// YAML files are already configured by the plugin
];
Parser Options
The following parser options for yaml-eslint-parser are available by specifying them in parserOptions in the ESLint configuration file.
import eslintPluginYml from 'eslint-plugin-yml';
export default [
...eslintPluginYml.configs.recommended,
{
files: ['**/*.yaml', '**/*.yml'],
languageOptions: {
parserOptions: {
defaultYAMLVersion: '1.2',
},
},
},
];
See also https://github.com/ota-meshi/yaml-eslint-parser#readme.
Running ESLint from the command line
With ESLint v9 and flat config, ESLint automatically lints all files matched by your config. You typically don't need the --ext option anymore.
Examples:
eslint .
eslint "src/**/*.{js,yaml,yml}"
Languages
This plugin provides the following language identifiers for use in ESLint configurations:
yml/yaml... YAML files…
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- yaml
- yml
- lint
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (591)Similar npm ESLint plugins plugins
All 20 eslint-plugin-yml alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-yml. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.