Skip to content

Refactor everything to ES2016+ or better TypeScript #277

Closed

Description

@Shinigami92

Problem
Much of the code is written in old style es5
But node 6+ already supports es2016 and up natively

Describe the solution you'd like
Convert all the code by hand into es2016

Describe alternatives you've considered

  • Convert all code to es2016+ and use babel to transpile the code down to es2016
  • Convert all code to TypeScript and compile the code down to es2016
    TypeScript has the advantage of even better code optimization and documentation

Additional context
I have already started some successful experiments in this branch https://github.com/Shinigami92/HTMLHint/tree/experimental/babel-with-es2016
Also this branch is already a PR (#276): https://github.com/Shinigami92/HTMLHint/tree/refactoring/test/upgrade-to-es2016

node support of ES201X

Activity

  1. thedaviddias commented on Aug 28, 2018

    @thedaviddias
    Member

    I'm more about moving to ES6 than TypeScript. We can have some advantages of TypeScript using plain JavaScript.

  2. glen-84 commented on May 2, 2019

    @glen-84

    TypeScript is amazing. I would always recommend it.

  3. Shinigami92 commented on Jun 10, 2019

    @Shinigami92
    ContributorAuthor

    @thedaviddias Now when flow is dead, are you interested that I retrying to rewrite htmlhint into typescript?
    I'm only willing to write code in this project when we convert it to typescript, otherwise I'm only interested in community/issue managing and reviewing.

  4. stale commented on May 14, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  5. added
    bot:stale
    on May 14, 2020
  6. removed
    bot:stale
    on May 15, 2020
  7. self-assigned this
    on May 17, 2020
  8. Shinigami92 commented on May 21, 2020

    @Shinigami92
    ContributorAuthor
  9. thedaviddias commented on May 30, 2020

    @thedaviddias
    Member

    🎉 This issue has been resolved in version 0.13.1-beta.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  10. thedaviddias commented on May 31, 2020

    @thedaviddias
    Member

    🎉 This issue has been resolved in version 0.13.1-beta.2 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  11. thedaviddias commented on May 31, 2020

    @thedaviddias
    Member

    🎉 This issue has been resolved in version 0.13.1 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions