Skip to content

Feature request: Generated code should follow the ts-lint rules defined in the project #20107

Closed
@mjbvz

Description

@mjbvz

From @nseba on November 17, 2017 9:34

It would be very useful if refactoring actions such as declare member variable, implement interface/abstract class etc. would take into account the relevant ts-lint rules. At a minimum the following rules can be enforced:

  • member-access - add explicit public | private modifier to newly generated members
  • member-ordering - add the members in their right place (for example public fields after existing public fields, methods after existing public methods etc.)
  • promise-function-async - automatically add the async modifier.
  • quotemark - use the right quotes/single quotes for automatic import declarations

As a small side note implementing abstract base class refactoring should also add automatically the async modifier if it exists on the abstract member.

Copied from original issue: microsoft/vscode#38603

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.VS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions