Skip to content

Commit f611ec6

Browse files
committed
microsoft-typescript/no-double-space
1 parent 65ddc1f commit f611ec6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"microsoft-typescript/no-type-assertion-whitespace": "error",
5555
"microsoft-typescript/type-operator-spacing": "error",
5656
"microsoft-typescript/only-arrow-functions": "off",
57-
"microsoft-typescript/no-double-space": "off",
57+
"microsoft-typescript/no-double-space": "error",
5858
"microsoft-typescript/boolean-trivia": "error",
5959
"microsoft-typescript/no-in-operator": "off",
6060
"microsoft-typescript/debug-assert": "error",

src/lib/es2015.core.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ interface ObjectConstructor {
312312
is(value1: any, value2: any): boolean;
313313

314314
/**
315-
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
315+
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
316316
* @param o The object to change its prototype.
317317
* @param proto The value of the new prototype or null.
318318
*/

src/lib/es2017.object.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ interface ObjectConstructor {
33
* Returns an array of values of the enumerable properties of an object
44
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
55
*/
6-
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
6+
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
77

88
/**
99
* Returns an array of values of the enumerable properties of an object

src/services/signatureHelp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,11 @@ namespace ts.SignatureHelp {
394394
// not enough to put us in the substitution expression; we should consider ourselves part of
395395
// the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1).
396396
//
397-
// tslint:disable no-double-space
397+
/* eslint-disable microsoft-typescript/no-double-space */
398398
// Example: f `# abcd $#{# 1 + 1# }# efghi ${ #"#hello"# } # `
399399
// ^ ^ ^ ^ ^ ^ ^ ^ ^
400400
// Case: 1 1 3 2 1 3 2 2 1
401-
// tslint:enable no-double-space
401+
/* eslint-enable microsoft-typescript/no-double-space */
402402
Debug.assert(position >= node.getStart(), "Assumed 'position' could not occur before node.");
403403
if (isTemplateLiteralToken(node)) {
404404
if (isInsideTemplateLiteral(node, position, sourceFile)) {

0 commit comments

Comments
 (0)