-
Notifications
You must be signed in to change notification settings - Fork 349
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
chore(generator): update generator to support typescript files #1143
Conversation
PatternFly-React preview: https://1143-pr-patternfly-react-patternfly.surge.sh |
Pull Request Test Coverage Report for Build 3857
💛 - Coveralls |
29e7372
to
1ce677a
Compare
1ce677a
to
bae45de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is yarn.lock necessary in this change? I don't see any package changes.
ac66935
to
a95b686
Compare
className ?: string; | ||
} | ||
|
||
const {{componentName}}: React.SFC <{{componentName}}Props> = (props) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually just saw today on another project that React.SFC
will be replaced by React.FunctionComponent
in the future. Might be good to switch to that now. Also you might want to remove the space between SFC
and <
(React.FunctionComponent<{{componentName}}Props>
) prettier will likely remove it after the fact, but it would be better to avoid needing the cleanup step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me with the space removal - we should add an issue and make sure the FunctionComponent change above is good and make that change separately (to get this in and be consistent).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dgutride updated the PR to remove the spaces.
className ?: string; | ||
} | ||
|
||
const {{componentName}}: React.SFC <{{componentName}}Props> = (props) => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me with the space removal - we should add an issue and make sure the FunctionComponent change above is good and make that change separately (to get this in and be consistent).
a95b686
to
e216677
Compare
Added an issue for the FunctionComponent changes #1149 |
looks good to me @ibolton336 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What: fix #1045
Additional issues: