skovy / typed-scss-modules

🎁 Generate type definitions (.d.ts) for CSS Modules using SCSS
https://skovy.dev/generating-typescript-definitions-for-css-modules-using-sass/
MIT License
638 stars 67 forks source link

support the values of the "localsConvention" parameter (postcss-modules) #226

Open yumadilovtimur opened 7 months ago

yumadilovtimur commented 7 months ago

Thanks for the great library! I would like the "--nameFormat" to support the values of the "localsConvention" parameter from "postcss-modules". (https://github.com/madyankin/postcss-modules?tab=readme-ov-file#localsconvention)

"dashes" and "dashesOnly" (https://github.com/madyankin/postcss-modules?tab=readme-ov-file#localsconvention) convert a string a little differently (when compared with "--nameFormat dashes")