Merge pull request #19738 from ikatyang/feat/prettier-1.7

feat(prettier): update to version 1.7
This commit is contained in:
Benjamin Lichtman
2017-09-19 16:31:01 -07:00
committed by GitHub

View File

@@ -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 <https://github.com/ikatyang>
// 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 {