We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Values for duplicate object keys as seen in package.json comments are lost during autofix.
Before an autofix to package.json:
{ "dependencies": { "//": "comment about foo", "foo": "^1.2.3", "//": "comment about bar", "bar": "^4.5.6", "//": "comment about baz", "baz": "^7.8.9", } }
After an autofix to the file:
{ "dependencies": { "//": "comment about baz", "foo": "^1.2.3", "bar": "^4.5.6", "baz": "^7.8.9", } }
We use edit-json-file to actual edit the file. It likely serializes/deserializes the file into an object which doesn't support duplicate keys.
Until IonicaBizau/edit-json-file#59 is fixed, we should disable autofix in places where comments will be lost.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Values for duplicate object keys as seen in package.json comments are lost during autofix.
Before an autofix to package.json:
After an autofix to the file:
We use edit-json-file to actual edit the file. It likely serializes/deserializes the file into an object which doesn't support duplicate keys.
Until IonicaBizau/edit-json-file#59 is fixed, we should disable autofix in places where comments will be lost.
The text was updated successfully, but these errors were encountered: