Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-yml

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-yml

This ESLint plugin provides linting rules for YAML.

  • 0.12.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
506K
decreased by-3.02%
Maintainers
1
Weekly downloads
 
Created

What is eslint-plugin-yml?

eslint-plugin-yml is an ESLint plugin that provides linting rules for YAML files. It helps ensure consistency and correctness in YAML files by enforcing specific coding standards and best practices.

What are eslint-plugin-yml's main functionalities?

Indentation

This rule enforces consistent indentation in YAML files. The example configuration sets the indentation to 2 spaces.

module.exports = {
  'yml/indent': ['error', 2]
};

Key Sorting

This rule enforces sorted keys within YAML mappings. The example configuration sorts keys in ascending order, case-insensitively, and using natural sort order.

module.exports = {
  'yml/sort-keys': ['error', 'asc', { 'caseSensitive': false, 'natural': true }]
};

No Empty Mapping Values

This rule disallows empty values in YAML mappings. The example configuration treats any empty mapping value as an error.

module.exports = {
  'yml/no-empty-mapping-value': 'error'
};

Other packages similar to eslint-plugin-yml

Keywords

FAQs

Package last updated on 19 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc