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

improve typescript with builtins and add tsx #1277

Merged
merged 1 commit into from
Feb 3, 2018

Conversation

fyrkant
Copy link
Contributor

@fyrkant fyrkant commented Jan 30, 2018

Improved typescript with some builtins and added tsx.

Copy link
Contributor

@Golmote Golmote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks for contributing.
Though I think this should rather be divided into two PRs.

Could you please take a look at my comments?

Also, could you add an example file for TSX, following the format used in existing examples?

components.js Outdated
@@ -578,6 +578,10 @@ var components = {
"require": "markup",
"owner": "Golmote"
},
"tsx": {
"title": "React Tsx",
"require": ["markup", "javascript", "jsx", "typescript"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is no need to require markup and javascript here, since they are already requirements for jsx.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, could you please move the component up so that the alphabetical order is based on the title value instead of the key. I know this is kinda counter-intuitive, but it's the way we did with JSX, so let's keep it consistent.

@fyrkant
Copy link
Contributor Author

fyrkant commented Feb 1, 2018

Ok, I'll remove the tsx stuff from this one and a separate PR for that! 👍

@fyrkant fyrkant force-pushed the typescript-improvements branch from 078a5fc to 357b1e4 Compare February 2, 2018 22:09
@fyrkant
Copy link
Contributor Author

fyrkant commented Feb 2, 2018

Removed tsx from this one and opened up a new PR with only tsx!

@Golmote Golmote merged commit 5de1b1f into PrismJS:gh-pages Feb 3, 2018
@Golmote
Copy link
Contributor

Golmote commented Feb 3, 2018

Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants