Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
eslint-plugin-yaml
Advanced tools
Lint YAML files
You'll first need to install ESLint:
Next, install eslint-plugin-yaml
:
npm install eslint-plugin-yaml --save-dev
Add the following to eslint.config.cjs
:
const pluginYaml = require("eslint-plugin-yaml").default
module.exports = [pluginYaml.configs.recommended]
or to eslint.config.mjs
:
import pluginYaml from "eslint-plugin-yaml"
export default [pluginYaml.configs.recommended]
Add the following to the overrides
section of .eslintrc
for yaml files:
"overrides" : [
{
"files": ["**/*.yaml", "**/*.yml"],
"plugins": ["yaml"],
"extends": ["plugin:yaml/legacy"]
}
]
and run it for all the files:
eslint .
or:
eslint example.yaml
See spec folder for an example of eslint config file.
or add yaml
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["yaml"],
"extends": ["plugin:yaml/legacy"]
}
You can run ESLint on individual YAML files or you can use the --ext
flag to add YAML files to the list.
eslint . --ext .yaml --ext .js
eslint example.yaml
FAQs
Lint YAML files
The npm package eslint-plugin-yaml receives a total of 35,448 weekly downloads. As such, eslint-plugin-yaml popularity was classified as popular.
We found that eslint-plugin-yaml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.