News for hackers. Stuff that matters.
Re:From Rust to TypeScript by danfo on Saturday September 12, 2020 @09:32PM (#24457445)
Yes. There are so few TS features that are non-type-level and non-standard. One option is to lint against these few features and call it a day.

  {
    "rules": {
      "no-restricted-syntax": [
        "error",
        {
          "selector": "TSEnumDeclaration",
          "message": "Enum restricted."
        },
        {
          "selector": "ClassDeclaration[abstract=true]",
          "message": "Abstract class restricted."
        },
        {
          "selector": "TSParameterProperty",
          "message": "Parameter property restricted."
        }
      ]
    }
  }
(TS decorators are already marked experimental)

There are no comments on this comment yet.