From 5284a022c81ee8719ef06419d966256e66603f09 Mon Sep 17 00:00:00 2001 From: ikatyang Date: Thu, 14 Sep 2017 11:49:21 +0800 Subject: [PATCH] feat(prettier): update to version 1.7 --- types/prettier/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/prettier/index.d.ts b/types/prettier/index.d.ts index 317a514912..1ed2568a1e 100644 --- a/types/prettier/index.d.ts +++ b/types/prettier/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prettier 1.6 +// Type definitions for prettier 1.7 // Project: https://github.com/prettier/prettier // Definitions by: Ika // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -62,6 +62,11 @@ export interface Options { * Specify the input filepath. This will be used to do parser inference. */ filepath?: string; + /** + * Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. + * This is very useful when gradually transitioning large, unformatted codebases to prettier. + */ + requirePragma?: boolean; } export interface CursorOptions extends Options {