indexr icon indicating copy to clipboard operation
indexr copied to clipboard

Different formatting options for the exported module name

Open thaithcock opened this issue 8 years ago • 0 comments

Hi there,

It would be useful if you could specify a different formatter than camelCase for the exported module name (export { default as moduleName } from '/path/to/module.name').

I am working on a React app, and want my exports in PascalCase to make them look consistent with other components.

Ideally this could be 'configurable' but it's kind of hard to have a javascript function as a config value. I am thinking a mvp could be a flag for camelCase vs PascalCase?

The camelCase repo lists this in their related list for a PascalCase formatter.

thaithcock avatar Jan 28 '17 18:01 thaithcock