mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
microsoft-typescript/boolean-trivia
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
"microsoft-typescript/type-operator-spacing": "off",
|
||||
"microsoft-typescript/only-arrow-functions": "off",
|
||||
"microsoft-typescript/no-double-space": "off",
|
||||
"microsoft-typescript/boolean-trivia": "off",
|
||||
"microsoft-typescript/boolean-trivia": "error",
|
||||
"microsoft-typescript/no-in-operator": "off",
|
||||
"microsoft-typescript/debug-assert": "error",
|
||||
"microsoft-typescript/no-keywords": "off",
|
||||
|
||||
@@ -205,7 +205,18 @@ function convertDocumentToMarkdown(doc: Word.Document): string {
|
||||
var replace = find.replacement;
|
||||
replace.clearFormatting();
|
||||
setProperties(replace, replaceOptions);
|
||||
find.execute(findText, false, false, false, false, false, true, 0, true, replaceText, 2);
|
||||
find.execute(findText,
|
||||
/* matchCase */ false,
|
||||
/* matchWholeWord */ false,
|
||||
/* matchWildcards */ false,
|
||||
/* matchSoundsLike */ false,
|
||||
/* matchAllWordForms */ false,
|
||||
/* forward */ true,
|
||||
0,
|
||||
/* format */ true,
|
||||
replaceText,
|
||||
2
|
||||
);
|
||||
}
|
||||
|
||||
function fixHyperlinks() {
|
||||
@@ -405,7 +416,7 @@ function main(args: string[]) {
|
||||
var app: Word.Application = sys.createObject("Word.Application");
|
||||
var doc = app.documents.open(args[0]);
|
||||
sys.writeFile(args[1], convertDocumentToMarkdown(doc));
|
||||
doc.close(false);
|
||||
doc.close(/* saveChanges */ false);
|
||||
app.quit();
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace ts {
|
||||
if (content !== null) {
|
||||
if (!sourcesContent) sourcesContent = [];
|
||||
while (sourcesContent.length < sourceIndex) {
|
||||
// tslint:disable-next-line:no-null-keyword boolean-trivia
|
||||
// eslint-disable-next-line microsoft-typescript/boolean-trivia
|
||||
sourcesContent.push(null);
|
||||
}
|
||||
sourcesContent[sourceIndex] = content;
|
||||
|
||||
Reference in New Issue
Block a user