-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugintriageWaiting for team members to take a lookWaiting for team members to take a look
Description
The default eslint rule spaced-comment does not support the triple-slash method of typescript file referencing. If it is turned on it will add a space between the second and third slash, breaking the reference.
Repro
{
"rules": {
"spaced-comment": ["error", "always"],
}
}/// <reference path="yourFile.ts" />
//A commentExpected Result
/// <reference path="yourFile.ts" />
// A commentActual Result
// / <reference path="yourFile.ts" />
// A commentVersions
| package | version |
|---|---|
ESLint |
5.16.0 |
Metadata
Metadata
Assignees
Labels
package: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugintriageWaiting for team members to take a lookWaiting for team members to take a look