From 6b9b1b15de3f7bcaf6aa2a0c345f6d77b01db470 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Tue, 2 Jul 2019 09:27:47 -0700 Subject: [PATCH] Update README to require spaces (#36595) --- README.es.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.es.md b/README.es.md index 4ba1be28fc..3fa7b50d12 100644 --- a/README.es.md +++ b/README.es.md @@ -134,7 +134,7 @@ Para un buen paquete de ejemplo, vea [base64-js](https://github.com/DefinitelyTy #### Errores comunes * Primero, sigue el consejo del [manual](http://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html). -* Formatear: Ya sea utilizar todo en tabs, o siempre utiliza 4 espacios. +* Formatear: Utiliza 4 espacios. * `function sum(nums: number[]): number`: Utiliza `ReadonlyArray` si una función no escribe a sus parámetros. * `interface Foo { new(): Foo; }`: Este define el tipo de objeto que esten nuevos. Probablemente quieras `declare class Foo { constructor(); }`. diff --git a/README.md b/README.md index 8f86e69399..286ebed9a9 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ For a good example package, see [base64-js](https://github.com/DefinitelyTyped/D #### Common mistakes * First, follow advice from the [handbook](http://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html). -* Formatting: Either use all tabs, or always use 4 spaces. +* Formatting: Use 4 spaces. For new code, this is enforced by Prettier. * `function sum(nums: number[]): number`: Use `ReadonlyArray` if a function does not write to its parameters. * `interface Foo { new(): Foo; }`: This defines a type of objects that are new-able. You probably want `declare class Foo { constructor(); }`.