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

Convert CaseStyleConverterBag, MathResolver, and NameSplitter to standalone functions and variables #520

Open
JoshuaKGoldberg opened this issue Nov 7, 2018 · 0 comments

Comments

@JoshuaKGoldberg
Copy link
Member

JoshuaKGoldberg commented Nov 7, 2018

It's annoying having to constantly do things like this:

import { convertToCase } from "???/CaseStyleConveterBag";

const caseStyleConverterBag = new CaseStyleConverterBag();

caseStyleConveterBag.convert(...);

These classes are exclusively string manipulations and aren't going to need local state. Now that standalone functions are supported, they should be changed to that easier API:

import { convertToCase } from "???/CaseStyleConveterBag";

convertToCase(...);
@JoshuaKGoldberg JoshuaKGoldberg changed the title Convert CaseStyleConverterBag and NameSplitter to standalone functions and variables Convert CaseStyleConverterBag, MathResolver, and NameSplitter to standalone functions and variables Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant