Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate << keys shouldn't be marked as error when merge=true #21

Closed
ikatyang opened this issue Aug 1, 2018 · 0 comments
Closed

Duplicate << keys shouldn't be marked as error when merge=true #21

ikatyang opened this issue Aug 1, 2018 · 0 comments

Comments

@ikatyang
Copy link
Contributor

ikatyang commented Aug 1, 2018

version: 1.0.0-rc.7

var YAML = require("yaml").default;

YAML.parse(`
.anchors:
  - &anchor1
    key: value
  - &anchor2
    another: prop
foo:
  bar: baz
  <<: *anchor1
  <<: *anchor2
`, { merge: true }) //=> YAMLSemanticError: Map keys must be unique; "<<" is repeated

Expected: no error


Original post: prettier/prettier#4919

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant