Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 62c0f37

Browse files
fix: do not break TypeScript's /// <reference /> comments
1 parent 98e9f32 commit 62c0f37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

coding-styles/fixable.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,10 @@ module.exports = {
420420

421421
// Require or disallow a whitespace beginning a comment
422422
// This rule will enforce consistency of spacing after the start of a comment // or /*.
423-
'spaced-comment': 'warn',
423+
'spaced-comment': ['warn', 'always', {
424+
// Allow TypeScript's `/// <reference />` stanzas
425+
markers: ['/'],
426+
}],
424427

425428
// Enforce spacing around colons of switch statements
426429
// This rule controls spacing around colons of case and default clauses in switch statements.

0 commit comments

Comments
 (0)