Skip to content

Gracefully handle invalid class names #2

@connorjs

Description

@connorjs

Overview

As a user, I want css-typed to generate TS-compliant variable names for otherwise-invalid CSS class names. For example, kebab-case.

Notes

  • Should this require an option?

    Answer for now: Yes.

  • Should this be on by default, but have an option to disable?

    Answer for now: Not enabled by default.

  • If off, should the TS generate or skip the invalid name?

    Answer for now: Only emit valid TS.

  • What formats?

    Answer for now: support kebab-case to camelCase, but should not modify first letter.

    • kebab-case to camelCase is known
    • What about PascalCase?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions