connorjs / css-typed

TypeScript declaration generator for CSS files
https://npmjs.com/package/css-typed
MIT License
4 stars 1 forks source link

✨ Handle kebab-case #8

Closed connorjs closed 8 months ago

connorjs commented 8 months ago

Adds the --dashes option (subject to change for v1.0) to supports emitting camelCase class names in place of kebab-case ones. Changes the default to drop invalid (e.g. kebab-case names) from the generated TypeScript.

Note: Although the generated default has changed, releasing under 0.2 (no breaking change) because the existing emitted TS was invalid.

Adds css to Prettier config.

connorjs commented 8 months ago

FYI @rdparker - I’m thinking of merging this implementation instead of yours. (I’ll merge Monday (2023-12-25) to give you some time to comment any opinions.

If you see this after merge, still free to comment. My overall goal is to finalize some of this config over this next week and look to v1.0 by mid-to-end of Jan 2024.

connorjs commented 8 months ago

@rdparker - Again, feel free to comment or open a separate issue if this does not satisfy your needs!! Thanks in advance.