-
Notifications
You must be signed in to change notification settings - Fork 86
Use functionValue() for functions in complex data structures #306
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
Conversation
|
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
|
There were the following issues with this Pull Request
You may need to change the commit messages to comply with the repository contributing guidelines. 🤖 This comment was generated by commitlint[bot]. Please report issues here. Happy coding! |
|
What's the status on this? Feel free to reject the PR if its not something you want/need, but I'd really appreciate some kind of feedback. |
|
@PatrickSachs Sorry I have not been maintaining this, would you like to be the new maintainer? |
|
@vvo Certainly. I'd need some additional info on how this repository is managed, what my permissions are, etc, but since I expect to be using a library that directly depends on this quite a bit in the future this would simplify a lot of things. |
|
An invite link was sent to you, what's your npm username too? So you can publish. About how the repository is managed, everything is documented in the README (about publishing). Let me know if you have other questions. |
|
Thank you very much. My npm name is patrick.sachs. I'll ask if any questions arise. |
|
Added you. I would be fine removing the precommit hook, adding it to the readme, and using https://github.com/apps/semantic-pull-requests maybe |
|
This sounds like a good idea. I've requested the installation of the app into this repository. |
Currently the
functionValueoption is ignored for functions nested in complex data structures, leading to outputs potentially looking like this:Options:
This PR changes this behavior:
To achieve this without creating duplicate code I added a new formatter called
formatFunctionand added the respective unit tests for it. TheformatPropValueformatter has been updated to use this new formatter.Edit, some feedback on my developer experience, feel free to ignore:
You probably want to add a hint about enforcing a certain commit style in your Readme or a special contribution doc and mention what kind of messages are valid. Tracking down a guide for angular style commits when committing to React project was ... unexpected :)
Also the precommit formatter script kept breaking my unit tests. I'm aware that this is an edge case since the code layout typically doesn't affect logic, but especially in libraries like this, it does. I didn't understand why my tests suddenly failed after committing since I did not expect
git commit/pushto reformat my code.