Skip to content

Commit a96a08a

Browse files
committed
microsoft-typescript/boolean-trivia
1 parent 4e6fb72 commit a96a08a

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"microsoft-typescript/type-operator-spacing": "off",
5656
"microsoft-typescript/only-arrow-functions": "off",
5757
"microsoft-typescript/no-double-space": "off",
58-
"microsoft-typescript/boolean-trivia": "off",
58+
"microsoft-typescript/boolean-trivia": "error",
5959
"microsoft-typescript/no-in-operator": "off",
6060
"microsoft-typescript/debug-assert": "error",
6161
"microsoft-typescript/no-keywords": "off",

scripts/word2md.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,18 @@ function convertDocumentToMarkdown(doc: Word.Document): string {
205205
var replace = find.replacement;
206206
replace.clearFormatting();
207207
setProperties(replace, replaceOptions);
208-
find.execute(findText, false, false, false, false, false, true, 0, true, replaceText, 2);
208+
find.execute(findText,
209+
/* matchCase */ false,
210+
/* matchWholeWord */ false,
211+
/* matchWildcards */ false,
212+
/* matchSoundsLike */ false,
213+
/* matchAllWordForms */ false,
214+
/* forward */ true,
215+
0,
216+
/* format */ true,
217+
replaceText,
218+
2
219+
);
209220
}
210221

211222
function fixHyperlinks() {
@@ -405,7 +416,7 @@ function main(args: string[]) {
405416
var app: Word.Application = sys.createObject("Word.Application");
406417
var doc = app.documents.open(args[0]);
407418
sys.writeFile(args[1], convertDocumentToMarkdown(doc));
408-
doc.close(false);
419+
doc.close(/* saveChanges */ false);
409420
app.quit();
410421
}
411422

src/compiler/sourcemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace ts {
7373
if (content !== null) {
7474
if (!sourcesContent) sourcesContent = [];
7575
while (sourcesContent.length < sourceIndex) {
76-
// tslint:disable-next-line:no-null-keyword boolean-trivia
76+
// eslint-disable-next-line microsoft-typescript/boolean-trivia
7777
sourcesContent.push(null);
7878
}
7979
sourcesContent[sourceIndex] = content;

0 commit comments

Comments
 (0)