Modifying an entire directory to use the camelCase naming convention

Viewed 63

I have a TypeScript project that has named variables, functions, etc using the snake_case convention. I'd like to adhere to the widely accepted JavaScript naming guidelines (i.e. camelCase) but I'm having trouble coming up with a solution for implementing this across my codebase.

I read that ESLint does not plan to include a --fix option for the camelCase rule, so I searched a bit more and stumbled upon jscodeshift. I'm wondering if a codemod is the appropriate way to solve this problem. If so, I'd appreciate some tips -- I've never written one before.

If anybody has any other ideas, I'd be glad to hear them.

0 Answers
Related