Skip to content

Conflict on reference types #317

Closed
@beenotung

Description

@beenotung

🚀 Feature Request

As mentioned in the issue:
typescript-eslint/typescript-eslint#600

The eslint rule spaced-comment does not support reference types syntax, example:

/// <reference types="./global" />

Will be converted into:

// / <reference types="./global" />

A configuration in the eslint can fix this:

/* eslint spaced-comment: ["error", "always", { "markers": ["/"] }] */

However this config is not set by default when converted from tslint-to-eslint-config

Existing Behavior

Below rule is generated during conversion:

        "spaced-comment": "error",

Change Proposal

Below rule should be generated during conversion:

        "spaced-comment": [
            "error",
            "always",
            {
                "markers": ["/"]
            }
        ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: incorrect converterRule converter with incomplete, incorrect, or invalid rule names and/or argumentsgood first issueGood for newcomers; welcome aboard!status: accepting prsPlease, send in a PR to resolve this! ✨

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions