Gathering detailed insights and metrics for yaml-eslint-parser
Gathering detailed insights and metrics for yaml-eslint-parser
Gathering detailed insights and metrics for yaml-eslint-parser
Gathering detailed insights and metrics for yaml-eslint-parser
any-eslint-parser
Check Any file with ESLint
@crabas0npm2/hic-corporis-atque
security holding package
@npmtuanmap/ex-vel-expedita-impedit
@taktikorg/unde-animi-omnis
<p align="center"> <a href="https://www.npmjs.com/package/@taktikorg/unde-animi-omnis"><img src="https://img.shields.io/npm/v/@taktikorg/unde-animi-omnis"></a> <a href=""><img src="https://img.shields.io/github/actions/workflow/status/RemiMyrset/@taktikor
A YAML parser that produces output compatible with ESLint
npm install yaml-eslint-parser
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.1
Supply Chain
100
Quality
77.9
Maintenance
100
Vulnerability
100
License
TypeScript (84.49%)
Vue (13.43%)
JavaScript (1.7%)
HTML (0.38%)
Total Downloads
93,661,355
Last Day
192,907
Last Week
1,078,202
Last Month
4,604,304
Last Year
45,936,036
MIT License
12 Stars
255 Commits
4 Forks
2 Watchers
5 Branches
4 Contributors
Updated on Apr 21, 2025
Minified
Minified + Gzipped
Latest Version
1.3.0
Package Id
yaml-eslint-parser@1.3.0
Unpacked Size
89.54 kB
Size
19.35 kB
File Count
39
NPM Version
10.8.2
Node Version
20.18.3
Published on
Feb 28, 2025
Cumulative downloads
Total Downloads
Last Day
49.5%
192,907
Compared to previous day
Last Week
1.4%
1,078,202
Compared to previous week
Last Month
-7.6%
4,604,304
Compared to previous month
Last Year
67.4%
45,936,036
Compared to previous year
2
33
A YAML parser that produces output compatible with ESLint.
This parser is backed by excellent yaml package and it is heavily inspired by yaml-unist-parser package.
1npm install --save-dev yaml-eslint-parser
Use .eslintrc.*
file to configure parser. See also: https://eslint.org/docs/user-guide/configuring.
Example .eslintrc.js:
1module.exports = { 2 overrides: [ 3 { 4 files: ["*.yaml", "*.yml"], 5 parser: "yaml-eslint-parser", 6 }, 7 ], 8};
The following additional configuration options are available by specifying them in parserOptions in your ESLint configuration file.
Example .eslintrc.js:
1module.exports = { 2 overrides: [ 3 { 4 files: ["*.yaml", "*.yml"], 5 parser: "yaml-eslint-parser", 6 // Additional configuration options 7 parserOptions: { 8 defaultYAMLVersion: "1.2", 9 }, 10 }, 11 ], 12};
parserOptions.defaultYAMLVersion
Set to "1.2"
or "1.1"
. Select the YAML version used by documents without a %YAML
directive.
If not specified, the yaml's default version
option ("1.2"
) is used.
See https://eemeli.org/yaml/#document-options for details.
Example:
1import type { AST } from "yaml-eslint-parser"; 2import { parseYAML, getStaticYAMLValue } from "yaml-eslint-parser"; 3 4const code = ` 5american: 6 - Boston Red Sox 7 - Detroit Tigers 8 - New York Yankees 9national: 10 - New York Mets 11 - Chicago Cubs 12 - Atlanta Braves 13`; 14 15const ast: AST.YAMLProgram = parseYAML(code); 16console.log(ast); 17 18const value = getStaticYAMLValue(ast); 19console.log(value);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Reason
Found 1/18 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-04-28
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More