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

feat(format): use named parameters in formatter functions #533

Merged
merged 3 commits into from
Feb 6, 2021

Conversation

dbanksdesign
Copy link
Member

@dbanksdesign dbanksdesign commented Feb 3, 2021

Issue #, if available:

Description of changes: Changed the method signature of the formatter function so that it can used named parameters rather than positional. This is done by overloading the first argument that is passed to the formatter function, so that users don't have to update their custom format code if they don't want to. This also fixes a lot of eslint errors.

TODO:

  • Update documentation if this is direction we want to go.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dbanksdesign dbanksdesign changed the title chore(eslint): fix no-unused-vars warning feat(format): use named parameters in formatter functions Feb 3, 2021
@chazzmoney
Copy link
Collaborator

This looks good to me. If this wasn't you, I'd require a third party to write up some documentation on this before we would merge it. So... can you add some documentation? 😁

@chazzmoney
Copy link
Collaborator

LGTM! :shipit:

@chazzmoney chazzmoney merged commit 32bd40d into 3.0 Feb 6, 2021
@dbanksdesign dbanksdesign deleted the fix-eslint-warnings branch March 12, 2021 22:13
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

Successfully merging this pull request may close these issues.

2 participants