Skip to content

Can I have only camelCased classnames in the generated types? #92

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

Open
maksnester opened this issue Nov 14, 2023 · 0 comments
Open

Can I have only camelCased classnames in the generated types? #92

maksnester opened this issue Nov 14, 2023 · 0 comments

Comments

@maksnester
Copy link

Hi, thanks for this plugin. My question is whether it is possible to drop non-camelCased types from the generated files?

E.g. this CSS

.nav-breadcrumb {}

produces the following types

declare namespace HeaderModuleScssNamespace {
  export interface IHeaderModuleScss {
    'nav-breadcrumb': string;
    navBreadcrumb: string;
  }
}

So I now have a choice when use the class names whether I want to use camelCase or dashed-case name. I'd like to eliminate this choice and keep only the camelCased version.

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

No branches or pull requests

1 participant