Skip to content

Commit 35f5fb9

Browse files
committed
Fixes #1064: Dynamic comment prefix based on file type?
1 parent 7e0ddee commit 35f5fb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/eslintServer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,8 @@ const languageId2Config: Map<string, LanguageConfig> = new Map([
962962
['typescriptreact', { ext: 'tsx', lineComment: '//', blockComment: ['/*', '*/'] } ],
963963
['html', { ext: 'html', lineComment: '//', blockComment: ['/*', '*/'] }],
964964
['vue', { ext: 'vue', lineComment: '//', blockComment: ['/*', '*/'] }],
965-
['coffeescript', { ext: 'coffee', lineComment: '#', blockComment: ['###', '###'] }]
965+
['coffeescript', { ext: 'coffee', lineComment: '#', blockComment: ['###', '###'] }],
966+
['yaml', { ext: 'yaml', lineComment: '#', blockComment: ['#', ''] }]
966967
]);
967968

968969
function getLineComment(languageId: string): string {

0 commit comments

Comments
 (0)