Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pascal case component generation broken #75

Closed
TravisYeah opened this issue Oct 30, 2022 · 2 comments · Fixed by #76
Closed

Pascal case component generation broken #75

TravisYeah opened this issue Oct 30, 2022 · 2 comments · Fixed by #76
Labels

Comments

@TravisYeah
Copy link

Describe the bug
Pascal case components produce broken naming conventions. Example:

import React, { FC } from 'react';
import styles from './TempTest.module.css';

interface TEMP TESTProps {}

const TEMP TEST: FC<TEMP TESTProps> = () => (
  <div className={styles.TEMP TEST} data-testid="TEMP TEST">
    TEMP TEST Component
  </div>
);

export default TEMP TEST;

To Reproduce
In a new npm project run npx generate-react-cli component TempTest and accept all default cli options.

Expected behavior
Naming should be TempTest.

Machine (please complete the following information):
Node 18.12.0

arminbro added a commit that referenced this issue Oct 30, 2022
- Fix Pascal case component generation
arminbro added a commit that referenced this issue Oct 30, 2022
github-actions bot pushed a commit that referenced this issue Oct 30, 2022
## [8.0.1](v8.0.0...v8.0.1) (2022-10-30)

### Bug Fixes

* bugfix [#75](#75) ([79089bd](79089bd))
@github-actions
Copy link

🎉 This issue has been resolved in version 8.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@arminbro
Copy link
Owner

Thanks for reporting, @TravisYeah. You should now be able to generate your components with the pascal case.

SnowmanSeniorDev added a commit to SnowmanSeniorDev/generate-react-cli that referenced this issue Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants