From 057e15d50d92a3af3de97b908905ed7ec13318de Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 9 Nov 2019 01:00:06 +0100 Subject: [PATCH] prettier 1.19.0-beta.1 --- package.json | 2 +- src/language-html/options.js | 2 +- .../__tests__/__snapshots__/schema.js.snap | 5 ++++ .../__snapshots__/support-info.js.snap | 23 ++++++++++++++++++- 4 files changed, 29 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 950dc3efbcde..72cb5367da90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prettier", - "version": "1.18.2", + "version": "1.19.0-beta.1", "description": "Prettier is an opinionated code formatter", "bin": { "prettier": "./bin/prettier.js" diff --git a/src/language-html/options.js b/src/language-html/options.js index 62362c6b4f84..b07ca181827d 100644 --- a/src/language-html/options.js +++ b/src/language-html/options.js @@ -26,7 +26,7 @@ module.exports = { ] }, vueIndentScriptAndStyle: { - since: "1.19.0", + since: "1.19.0-beta.1", category: CATEGORY_HTML, type: "boolean", default: false, diff --git a/tests_integration/__tests__/__snapshots__/schema.js.snap b/tests_integration/__tests__/__snapshots__/schema.js.snap index 26b422c704a4..fffd5fdd7449 100644 --- a/tests_integration/__tests__/__snapshots__/schema.js.snap +++ b/tests_integration/__tests__/__snapshots__/schema.js.snap @@ -367,6 +367,11 @@ in order for it to be formatted.", "description": "Indent with tabs instead of spaces.", "type": "boolean", }, + "vueIndentScriptAndStyle": Object { + "default": false, + "description": "Indent script and style tags in Vue files.", + "type": "boolean", + }, }, "type": "object", }, diff --git a/tests_integration/__tests__/__snapshots__/support-info.js.snap b/tests_integration/__tests__/__snapshots__/support-info.js.snap index 8df224c939e9..39adb440e818 100644 --- a/tests_integration/__tests__/__snapshots__/support-info.js.snap +++ b/tests_integration/__tests__/__snapshots__/support-info.js.snap @@ -645,7 +645,19 @@ exports[`API getSupportInfo() with version 1.16.0 -> undefined 1`] = ` \\"default\\": Infinity, \\"range\\": Object { \\"end\\": Infinity, - \\"start\\": 0," + \\"start\\": 0, +@@ -220,7 +233,11 @@ + }, + \\"useTabs\\": Object { + \\"default\\": false, + \\"type\\": \\"boolean\\", + }, ++ \\"vueIndentScriptAndStyle\\": Object { ++ \\"default\\": false, ++ \\"type\\": \\"boolean\\", + }, ++ }, + }" `; exports[`CLI --support-info (stderr) 1`] = `""`; @@ -1400,6 +1412,15 @@ exports[`CLI --support-info (stdout) 1`] = ` \\"pluginDefaults\\": {}, \\"since\\": \\"1.0.0\\", \\"type\\": \\"boolean\\" + }, + { + \\"category\\": \\"HTML\\", + \\"default\\": false, + \\"description\\": \\"Indent script and style tags in Vue files.\\", + \\"name\\": \\"vueIndentScriptAndStyle\\", + \\"pluginDefaults\\": {}, + \\"since\\": \\"1.19.0-beta.1\\", + \\"type\\": \\"boolean\\" } ] }