Package Exports
- yaml-eslint-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yaml-eslint-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
yaml-eslint-parser
A YAML parser that produces output compatible with ESLint.
This parser is backed by excellent yaml and yaml-unist-parser packages.
Installation
npm install --save-dev yaml-eslint-parser
Usage
Configuration
Use .eslintrc.*
file to configure parser. See also: https://eslint.org/docs/user-guide/configuring.
Example .eslintrc.js:
module.exports = {
"overrides": [
{
"files": ["*.yaml", "*.yml"],
"parser": "yaml-eslint-parser"
}
]
}
Usage for Custom Rules / Plugins
- AST.md is AST specification.
- block-mapping.ts is an example.
- You can see the AST on the Online DEMO.