Skip to content

Commit 70a9345

Browse files
authored
feat: add js-yaml (#199)
This recommends `yaml` over `js-yaml`. Closes #197
1 parent 27d1acd commit 70a9345

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

docs/modules/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ ESLint plugin.
3838
- [`invariant`](./invariant.md)
3939
- [`is-builtin-module`](./is-builtin-module.md)
4040
- [`jQuery`](./jquery.md)
41+
- [`js-yaml`](./js-yaml.md)
4142
- [`lint-staged`](./lint-staged.md)
4243
- [`lodash`, `underscore` and related](./lodash-underscore.md)
4344
- [`MaterializeCSS`](./materialize-css.md)

docs/modules/js-yaml.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# `js-yaml`
2+
3+
`js-yaml` appears to be no longer maintained. It also parses some YAML incorrectly.
4+
5+
## Alternatives
6+
7+
### `yaml`
8+
9+
`yaml` is a better JavaScript YAML parser. It’s maintained, follows the YAML spec more closely, and has support for more features, such a modifying YAML content.
10+
11+
[Project Page](https://eemeli.org/yaml/)
12+
13+
[npm](https://www.npmjs.com/package/yaml)

manifests/preferred.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@
180180
"docPath": "jquery",
181181
"category": "preferred"
182182
},
183+
{
184+
"type": "documented",
185+
"moduleName": "js-yaml",
186+
"docPath": "js-yaml",
187+
"category": "preferred"
188+
},
183189
{
184190
"type": "documented",
185191
"moduleName": "lint-staged",

0 commit comments

Comments
 (0)