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

Support extended camelCase options #12

Open
TonyGravagno opened this issue Jul 11, 2023 · 2 comments
Open

Support extended camelCase options #12

TonyGravagno opened this issue Jul 11, 2023 · 2 comments
Labels
pending PR Waiting for another PR before generating new PR

Comments

@TonyGravagno
Copy link
Owner

According to the Google TypeScript Style Guide, Type identifiers should be in UpperCamelCase. Unless someone points out a difference, I'll settle for PascalCase.

PascalCase is implemented as an option on the camelCase(name) function:
camelCase(name, {pascalCase: true});

Since other options are possible, I'll implement this with a new camelCaseOptions option, which can be an object or null. The value of this option will be passed in to the camelCase(name,options) call without evaluation. I'll try to ensure that the Options match type Options from camelcase>index.d.ts>Options.

@TonyGravagno
Copy link
Owner Author

First commit b480954

@TonyGravagno
Copy link
Owner Author

@TonyGravagno TonyGravagno added PR submitted Waiting for PR to be merged pending PR Waiting for another PR before generating new PR and removed PR submitted Waiting for PR to be merged labels Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending PR Waiting for another PR before generating new PR
Projects
None yet
Development

No branches or pull requests

1 participant