[GH-ISSUE #84] Consider using TypeScript or similar for newer ES features #69

Closed
opened 2026-03-03 01:23:28 +03:00 by kerem · 4 comments
Owner

Originally created by @JoshuaKGoldberg on GitHub (Oct 30, 2017).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/84

+1 to using TypeScript in particular, but anything like it or Babel would be nice.

Originally created by @JoshuaKGoldberg on GitHub (Oct 30, 2017). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/84 +1 to using TypeScript in particular, but anything like it or Babel would be nice.
kerem 2026-03-03 01:23:28 +03:00
Author
Owner

@DavidAnson commented on GitHub (Oct 30, 2017):

I prefer to avoid compilation for the core scripts. I’ve used Babel in the past and found it to be big and slow. Keeping the code on ES5 makes supporting older Node versions easy. If/when that change, I’d look at moving to ES6 directly (no compiler).

<!-- gh-comment-id:340323509 --> @DavidAnson commented on GitHub (Oct 30, 2017): I prefer to avoid compilation for the core scripts. I’ve used Babel in the past and found it to be big and slow. Keeping the code on ES5 makes supporting older Node versions easy. If/when that change, I’d look at moving to ES6 directly (no compiler).
Author
Owner

@JoshuaKGoldberg commented on GitHub (Oct 30, 2017):

Babel

Have you tried TypeScript with ES3/ES5 output? tsc -w is pretty speedy. :)

<!-- gh-comment-id:340325245 --> @JoshuaKGoldberg commented on GitHub (Oct 30, 2017): > Babel Have you tried TypeScript with ES3/ES5 output? `tsc -w` is pretty speedy. :)
Author
Owner

@DavidAnson commented on GitHub (Oct 30, 2017):

We use TS->ES5 at my day job. :) It sounds better than Babel, but still adds complexity/dependencies.

<!-- gh-comment-id:340326053 --> @DavidAnson commented on GitHub (Oct 30, 2017): We use TS->ES5 at my day job. :) It sounds better than Babel, but still adds complexity/dependencies.
Author
Owner

@DavidAnson commented on GitHub (Apr 27, 2018):

Commit 18125a1872 updates supported Node versions to 6+, supporting most new ES features (http://node.green/).
Commit 78c1af7bfd adds TypeScript to the demo script to maintain ES3 support for older browsers.

<!-- gh-comment-id:384867620 --> @DavidAnson commented on GitHub (Apr 27, 2018): Commit 18125a1872df8f5551ae81734e1d2627d6783586 updates supported Node versions to 6+, supporting most new ES features (http://node.green/). Commit 78c1af7bfd89b32fb531db20bc5f9b158d51ee2d adds TypeScript to the demo script to maintain ES3 support for older browsers.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#69
No description provided.