prettier/tests_integration/__tests__/__snapshots__/support-info.js.snap

998 lines
27 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`API getSupportInfo() with version 0.0.0 -> 1.0.0 1`] = `
"Snapshot Diff:
- First value
+ Second value
@@ -12,19 +12,35 @@
\\"options\\": Object {
\\"bracketSpacing\\": Object {
\\"default\\": true,
\\"type\\": \\"boolean\\",
},
+ \\"jsxBracketSameLine\\": Object {
+ \\"default\\": false,
+ \\"type\\": \\"boolean\\",
+ },
+ \\"parser\\": Object {
+ \\"choices\\": Array [
+ \\"flow\\",
+ \\"babylon\\",
+ ],
+ \\"default\\": \\"babylon\\",
+ \\"type\\": \\"choice\\",
+ },
\\"printWidth\\": Object {
\\"default\\": 80,
\\"range\\": Object {
\\"end\\": Infinity,
\\"start\\": 0,
\\"step\\": 1,
},
\\"type\\": \\"int\\",
},
+ \\"semi\\": Object {
+ \\"default\\": true,
+ \\"type\\": \\"boolean\\",
+ },
\\"singleQuote\\": Object {
\\"default\\": false,
\\"type\\": \\"boolean\\",
},
\\"tabWidth\\": Object {
@@ -39,17 +55,15 @@
\\"trailingComma\\": Object {
\\"choices\\": Array [
\\"none\\",
\\"es5\\",
\\"all\\",
- true,
- false,
],
- \\"default\\": false,
+ \\"default\\": \\"none\\",
\\"type\\": \\"choice\\",
},
- \\"useFlowParser\\": Object {
+ \\"useTabs\\": Object {
\\"default\\": false,
\\"type\\": \\"boolean\\",
},
},
}"
`;
exports[`API getSupportInfo() with version 0.0.0 1`] = `
Object {
"languages": Object {
"JSX": Array [
"babylon",
"flow",
],
"JavaScript": Array [
"babylon",
"flow",
],
},
"options": Object {
"bracketSpacing": Object {
"default": true,
"type": "boolean",
},
"printWidth": Object {
"default": 80,
"range": Object {
"end": Infinity,
"start": 0,
"step": 1,
},
"type": "int",
},
"singleQuote": Object {
"default": false,
"type": "boolean",
},
"tabWidth": Object {
"default": 2,
"range": Object {
"end": Infinity,
"start": 0,
"step": 1,
},
"type": "int",
},
"trailingComma": Object {
"choices": Array [
"none",
"es5",
"all",
true,
false,
],
"default": false,
"type": "choice",
},
"useFlowParser": Object {
"default": false,
"type": "boolean",
},
},
}
`;
exports[`API getSupportInfo() with version 1.0.0 -> 1.4.0 1`] = `
"Snapshot Diff:
- First value
+ Second value
@@ -1,29 +1,59 @@
Object {
\\"languages\\": Object {
+ \\"CSS\\": Array [
+ \\"postcss\\",
+ ],
\\"JSX\\": Array [
\\"babylon\\",
\\"flow\\",
],
\\"JavaScript\\": Array [
\\"babylon\\",
\\"flow\\",
],
+ \\"Less\\": Array [
+ \\"postcss\\",
+ ],
+ \\"PostCSS\\": Array [
+ \\"postcss\\",
+ ],
+ \\"SCSS\\": Array [
+ \\"postcss\\",
+ ],
+ \\"TypeScript\\": Array [
+ \\"typescript\\",
+ ],
},
\\"options\\": Object {
\\"bracketSpacing\\": Object {
\\"default\\": true,
\\"type\\": \\"boolean\\",
},
+ \\"cursorOffset\\": Object {
+ \\"default\\": -1,
+ \\"range\\": Object {
+ \\"end\\": Infinity,
+ \\"start\\": -1,
+ \\"step\\": 1,
+ },
+ \\"type\\": \\"int\\",
+ },
+ \\"filepath\\": Object {
+ \\"default\\": undefined,
+ \\"type\\": \\"path\\",
+ },
\\"jsxBracketSameLine\\": Object {
\\"default\\": false,
\\"type\\": \\"boolean\\",
},
\\"parser\\": Object {
\\"choices\\": Array [
\\"flow\\",
\\"babylon\\",
+ \\"typescript\\",
+ \\"postcss\\",
],
\\"default\\": \\"babylon\\",
\\"type\\": \\"choice\\",
},
\\"printWidth\\": Object {
@@ -33,10 +63,28 @@
\\"start\\": 0,
\\"step\\": 1,
},
\\"type\\": \\"int\\",
},
+ \\"rangeEnd\\": Object {
+ \\"default\\": Infinity,
+ \\"range\\": Object {
+ \\"end\\": Infinity,
+ \\"start\\": 0,
+ \\"step\\": 1,
+ },
+ \\"type\\": \\"int\\",
+ },
+ \\"rangeStart\\": Object {
+ \\"default\\": 0,
+ \\"range\\": Object {
+ \\"end\\": Infinity,
+ \\"start\\": 0,
+ \\"step\\": 1,
+ },
+ \\"type\\": \\"int\\",
+ },
\\"semi\\": Object {
\\"default\\": true,
\\"type\\": \\"boolean\\",
},
\\"singleQuote\\": Object {"
`;
exports[`API getSupportInfo() with version 1.4.0 -> 1.5.0 1`] = `
"Snapshot Diff:
- First value
+ Second value
@@ -1,10 +1,16 @@
Object {
\\"languages\\": Object {
\\"CSS\\": Array [
\\"postcss\\",
],
+ \\"GraphQL\\": Array [
+ \\"graphql\\",
+ ],
+ \\"JSON\\": Array [
+ \\"json\\",
+ ],
\\"JSX\\": Array [
\\"babylon\\",
\\"flow\\",
],
\\"JavaScript\\": Array [
@@ -50,10 +56,12 @@
\\"choices\\": Array [
\\"flow\\",
\\"babylon\\",
\\"typescript\\",
\\"postcss\\",
+ \\"json\\",
+ \\"graphql\\",
],
\\"default\\": \\"babylon\\",
\\"type\\": \\"choice\\",
},
\\"printWidth\\": Object {"
`;
exports[`API getSupportInfo() with version 1.5.0 -> 1.7.1 1`] = `
"Snapshot Diff:
- First value
+ Second value
@@ -1,9 +1,9 @@
Object {
\\"languages\\": Object {
\\"CSS\\": Array [
- \\"postcss\\",
+ \\"css\\",
],
\\"GraphQL\\": Array [
\\"graphql\\",
],
\\"JSON\\": Array [
@@ -16,17 +16,17 @@
\\"JavaScript\\": Array [
\\"babylon\\",
\\"flow\\",
],
\\"Less\\": Array [
- \\"postcss\\",
+ \\"less\\",
],
\\"PostCSS\\": Array [
- \\"postcss\\",
+ \\"css\\",
],
\\"SCSS\\": Array [
- \\"postcss\\",
+ \\"scss\\",
],
\\"TypeScript\\": Array [
\\"typescript\\",
],
},
@@ -55,11 +55,13 @@
\\"parser\\": Object {
\\"choices\\": Array [
\\"flow\\",
\\"babylon\\",
\\"typescript\\",
- \\"postcss\\",
+ \\"css\\",
+ \\"less\\",
+ \\"scss\\",
\\"json\\",
\\"graphql\\",
],
\\"default\\": \\"babylon\\",
\\"type\\": \\"choice\\",
@@ -89,10 +91,14 @@
\\"start\\": 0,
\\"step\\": 1,
},
\\"type\\": \\"int\\",
},
+ \\"requirePragma\\": Object {
+ \\"default\\": false,
+ \\"type\\": \\"boolean\\",
+ },
\\"semi\\": Object {
\\"default\\": true,
\\"type\\": \\"boolean\\",
},
\\"singleQuote\\": Object {"
`;
exports[`API getSupportInfo() with version 1.7.1 -> 1.8.0 1`] = `
"Snapshot Diff:
- First value
+ Second value
@@ -18,10 +18,13 @@
\\"flow\\",
],
\\"Less\\": Array [
\\"less\\",
],
+ \\"Markdown\\": Array [
+ \\"markdown\\",
+ ],
\\"PostCSS\\": Array [
\\"css\\",
],
\\"SCSS\\": Array [
\\"scss\\",
@@ -46,10 +49,14 @@
},
\\"filepath\\": Object {
\\"default\\": undefined,
\\"type\\": \\"path\\",
},
+ \\"insertPragma\\": Object {
+ \\"default\\": false,
+ \\"type\\": \\"boolean\\",
+ },
\\"jsxBracketSameLine\\": Object {
\\"default\\": false,
\\"type\\": \\"boolean\\",
},
\\"parser\\": Object {
@@ -60,10 +67,11 @@
\\"css\\",
\\"less\\",
\\"scss\\",
\\"json\\",
\\"graphql\\",
+ \\"markdown\\",
],
\\"default\\": \\"babylon\\",
\\"type\\": \\"choice\\",
},
\\"printWidth\\": Object {"
`;
exports[`API getSupportInfo() with version 1.8.0 -> 1.8.2 1`] = `
"Snapshot Diff:
- First value
+ Second value
@@ -81,10 +81,18 @@
\\"start\\": 0,
\\"step\\": 1,
},
\\"type\\": \\"int\\",
},
+ \\"proseWrap\\": Object {
+ \\"choices\\": Array [
+ false,
+ true,
+ ],
+ \\"default\\": true,
+ \\"type\\": \\"choice\\",
+ },
\\"rangeEnd\\": Object {
\\"default\\": Infinity,
\\"range\\": Object {
\\"end\\": Infinity,
\\"start\\": 0,"
`;
exports[`API getSupportInfo() with version 1.8.2 -> undefined 1`] = `
"Snapshot Diff:
- First value
+ Second value
@@ -7,10 +7,16 @@
\\"graphql\\",
],
\\"JSON\\": Array [
\\"json\\",
],
+ \\"JSON.stringify\\": Array [
+ \\"json-stringify\\",
+ ],
+ \\"JSON5\\": Array [
+ \\"json5\\",
+ ],
\\"JSX\\": Array [
\\"babylon\\",
\\"flow\\",
],
\\"JavaScript\\": Array [
@@ -30,12 +36,23 @@
\\"scss\\",
],
\\"TypeScript\\": Array [
\\"typescript\\",
],
+ \\"Vue\\": Array [
+ \\"vue\\",
+ ],
},
\\"options\\": Object {
+ \\"arrowParens\\": Object {
+ \\"choices\\": Array [
+ \\"avoid\\",
+ \\"always\\",
+ ],
+ \\"default\\": \\"avoid\\",
+ \\"type\\": \\"choice\\",
+ },
\\"bracketSpacing\\": Object {
\\"default\\": true,
\\"type\\": \\"boolean\\",
},
\\"cursorOffset\\": Object {
@@ -66,16 +83,27 @@
\\"typescript\\",
\\"css\\",
\\"less\\",
\\"scss\\",
\\"json\\",
+ \\"json5\\",
+ \\"json-stringify\\",
\\"graphql\\",
\\"markdown\\",
+ \\"vue\\",
],
- \\"default\\": \\"babylon\\",
+ \\"default\\": undefined,
\\"type\\": \\"choice\\",
},
+ \\"pluginSearchDirs\\": Object {
+ \\"default\\": Array [],
+ \\"type\\": \\"path\\",
+ },
+ \\"plugins\\": Object {
+ \\"default\\": Array [],
+ \\"type\\": \\"path\\",
+ },
\\"printWidth\\": Object {
\\"default\\": 80,
\\"range\\": Object {
\\"end\\": Infinity,
\\"start\\": 0,
@@ -83,14 +111,15 @@
},
\\"type\\": \\"int\\",
},
\\"proseWrap\\": Object {
\\"choices\\": Array [
- false,
- true,
+ \\"always\\",
+ \\"never\\",
+ \\"preserve\\",
],
- \\"default\\": true,
+ \\"default\\": \\"preserve\\",
\\"type\\": \\"choice\\",
},
\\"rangeEnd\\": Object {
\\"default\\": Infinity,
\\"range\\": Object {"
`;
exports[`CLI --support-info (stderr) 1`] = `""`;
exports[`CLI --support-info (stdout) 1`] = `
"{
\\"languages\\": [
{
\\"aceMode\\": \\"javascript\\",
\\"aliases\\": [\\"js\\", \\"node\\"],
\\"codemirrorMimeType\\": \\"text/javascript\\",
\\"codemirrorMode\\": \\"javascript\\",
\\"color\\": \\"#f1e05a\\",
\\"extensions\\": [
\\".js\\",
\\"._js\\",
\\".bones\\",
\\".es\\",
\\".es6\\",
\\".frag\\",
\\".gs\\",
\\".jake\\",
\\".jsb\\",
\\".jscad\\",
\\".jsfl\\",
\\".jsm\\",
\\".jss\\",
\\".mjs\\",
\\".njs\\",
\\".pac\\",
\\".sjs\\",
\\".ssjs\\",
\\".xsjs\\",
\\".xsjslib\\"
],
\\"filenames\\": [\\"Jakefile\\"],
\\"interpreters\\": [\\"node\\"],
\\"linguistLanguageId\\": 183,
\\"name\\": \\"JavaScript\\",
\\"parsers\\": [\\"babylon\\", \\"flow\\"],
\\"since\\": \\"0.0.0\\",
\\"tmScope\\": \\"source.js\\",
\\"type\\": \\"programming\\",
\\"vscodeLanguageIds\\": [\\"javascript\\"]
},
{
\\"aceMode\\": \\"javascript\\",
\\"codemirrorMimeType\\": \\"text/jsx\\",
\\"codemirrorMode\\": \\"jsx\\",
\\"extensions\\": [\\".jsx\\"],
\\"group\\": \\"JavaScript\\",
\\"linguistLanguageId\\": 178,
\\"name\\": \\"JSX\\",
\\"parsers\\": [\\"babylon\\", \\"flow\\"],
\\"since\\": \\"0.0.0\\",
\\"tmScope\\": \\"source.js.jsx\\",
\\"type\\": \\"programming\\",
\\"vscodeLanguageIds\\": [\\"javascriptreact\\"]
},
{
\\"aceMode\\": \\"typescript\\",
\\"aliases\\": [\\"ts\\"],
\\"codemirrorMimeType\\": \\"application/typescript\\",
\\"codemirrorMode\\": \\"javascript\\",
\\"color\\": \\"#2b7489\\",
\\"extensions\\": [\\".ts\\", \\".tsx\\"],
\\"linguistLanguageId\\": 378,
\\"name\\": \\"TypeScript\\",
\\"parsers\\": [\\"typescript\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.ts\\",
\\"type\\": \\"programming\\",
\\"vscodeLanguageIds\\": [\\"typescript\\", \\"typescriptreact\\"]
},
{
\\"aceMode\\": \\"json\\",
\\"codemirrorMimeType\\": \\"application/json\\",
\\"codemirrorMode\\": \\"javascript\\",
\\"extensions\\": [],
\\"filenames\\": [\\"package.json\\", \\"package-lock.json\\", \\"composer.json\\"],
\\"group\\": \\"JavaScript\\",
\\"linguistLanguageId\\": 174,
\\"name\\": \\"JSON.stringify\\",
\\"parsers\\": [\\"json-stringify\\"],
\\"searchable\\": false,
\\"since\\": \\"1.13.0\\",
\\"tmScope\\": \\"source.json\\",
\\"type\\": \\"data\\",
\\"vscodeLanguageIds\\": [\\"json\\"]
},
{
\\"aceMode\\": \\"json\\",
\\"codemirrorMimeType\\": \\"application/json\\",
\\"codemirrorMode\\": \\"javascript\\",
\\"extensions\\": [
\\".json\\",
\\".avsc\\",
\\".geojson\\",
\\".gltf\\",
\\".JSON-tmLanguage\\",
\\".jsonl\\",
\\".tfstate\\",
\\".tfstate.backup\\",
\\".topojson\\",
\\".webapp\\",
\\".webmanifest\\"
],
\\"filenames\\": [
\\".arcconfig\\",
\\".htmlhintrc\\",
\\".jscsrc\\",
\\".jshintrc\\",
\\".tern-config\\",
\\".tern-project\\",
\\"composer.lock\\",
\\"mcmod.info\\",
\\".eslintrc\\",
\\".prettierrc\\"
],
\\"group\\": \\"JavaScript\\",
\\"linguistLanguageId\\": 174,
\\"name\\": \\"JSON\\",
\\"parsers\\": [\\"json\\"],
\\"searchable\\": false,
\\"since\\": \\"1.5.0\\",
\\"tmScope\\": \\"source.json\\",
\\"type\\": \\"data\\",
\\"vscodeLanguageIds\\": [\\"json\\", \\"jsonc\\"]
},
{
\\"aceMode\\": \\"javascript\\",
\\"codemirrorMimeType\\": \\"application/json\\",
\\"codemirrorMode\\": \\"javascript\\",
\\"extensions\\": [\\".json5\\"],
\\"filenames\\": [\\".babelrc\\", \\".jslintrc\\"],
\\"linguistLanguageId\\": 175,
\\"name\\": \\"JSON5\\",
\\"parsers\\": [\\"json5\\"],
\\"since\\": \\"1.13.0\\",
\\"tmScope\\": \\"source.js\\",
\\"type\\": \\"data\\",
\\"vscodeLanguageIds\\": [\\"json5\\"]
},
{
\\"aceMode\\": \\"css\\",
\\"codemirrorMimeType\\": \\"text/css\\",
\\"codemirrorMode\\": \\"css\\",
\\"color\\": \\"#563d7c\\",
\\"extensions\\": [\\".css\\"],
\\"linguistLanguageId\\": 50,
\\"name\\": \\"CSS\\",
\\"parsers\\": [\\"css\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.css\\",
\\"type\\": \\"markup\\",
\\"vscodeLanguageIds\\": [\\"css\\"]
},
{
\\"aceMode\\": \\"text\\",
\\"extensions\\": [\\".pcss\\", \\".postcss\\"],
\\"group\\": \\"CSS\\",
\\"linguistLanguageId\\": 262764437,
\\"name\\": \\"PostCSS\\",
\\"parsers\\": [\\"css\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.postcss\\",
\\"type\\": \\"markup\\",
\\"vscodeLanguageIds\\": [\\"postcss\\"]
},
{
\\"aceMode\\": \\"less\\",
\\"codemirrorMimeType\\": \\"text/css\\",
\\"codemirrorMode\\": \\"css\\",
\\"extensions\\": [\\".less\\"],
\\"group\\": \\"CSS\\",
\\"linguistLanguageId\\": 198,
\\"name\\": \\"Less\\",
\\"parsers\\": [\\"less\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.css.less\\",
\\"type\\": \\"markup\\",
\\"vscodeLanguageIds\\": [\\"less\\"]
},
{
\\"aceMode\\": \\"scss\\",
\\"codemirrorMimeType\\": \\"text/x-scss\\",
\\"codemirrorMode\\": \\"css\\",
\\"extensions\\": [\\".scss\\"],
\\"group\\": \\"CSS\\",
\\"linguistLanguageId\\": 329,
\\"name\\": \\"SCSS\\",
\\"parsers\\": [\\"scss\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.scss\\",
\\"type\\": \\"markup\\",
\\"vscodeLanguageIds\\": [\\"scss\\"]
},
{
\\"aceMode\\": \\"text\\",
\\"extensions\\": [\\".graphql\\", \\".gql\\"],
\\"linguistLanguageId\\": 139,
\\"name\\": \\"GraphQL\\",
\\"parsers\\": [\\"graphql\\"],
\\"since\\": \\"1.5.0\\",
\\"tmScope\\": \\"source.graphql\\",
\\"type\\": \\"data\\",
\\"vscodeLanguageIds\\": [\\"graphql\\"]
},
{
\\"aceMode\\": \\"markdown\\",
\\"aliases\\": [\\"pandoc\\"],
\\"codemirrorMimeType\\": \\"text/x-gfm\\",
\\"codemirrorMode\\": \\"gfm\\",
\\"extensions\\": [
\\".md\\",
\\".markdown\\",
\\".mdown\\",
\\".mdwn\\",
\\".mkd\\",
\\".mkdn\\",
\\".mkdown\\",
\\".ronn\\",
\\".workbook\\"
],
\\"filenames\\": [\\"README\\"],
\\"linguistLanguageId\\": 222,
\\"name\\": \\"Markdown\\",
\\"parsers\\": [\\"markdown\\"],
\\"since\\": \\"1.8.0\\",
\\"tmScope\\": \\"source.gfm\\",
\\"type\\": \\"prose\\",
\\"vscodeLanguageIds\\": [\\"markdown\\"],
\\"wrap\\": true
},
{
\\"aceMode\\": \\"html\\",
\\"color\\": \\"#2c3e50\\",
\\"extensions\\": [\\".vue\\"],
\\"linguistLanguageId\\": 391,
\\"name\\": \\"Vue\\",
\\"parsers\\": [\\"vue\\"],
\\"since\\": \\"1.10.0\\",
\\"tmScope\\": \\"text.html.vue\\",
\\"type\\": \\"markup\\",
\\"vscodeLanguageIds\\": [\\"vue\\"]
}
],
\\"options\\": [
{
\\"category\\": \\"JavaScript\\",
\\"choices\\": [
{
\\"description\\": \\"Omit parens when possible. Example: \`x => x\`\\",
\\"value\\": \\"avoid\\"
},
{
\\"description\\": \\"Always include parens. Example: \`(x) => x\`\\",
\\"value\\": \\"always\\"
}
],
\\"default\\": \\"avoid\\",
\\"description\\":
\\"Include parentheses around a sole arrow function parameter.\\",
\\"name\\": \\"arrowParens\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.9.0\\",
\\"type\\": \\"choice\\"
},
{
\\"category\\": \\"Common\\",
\\"default\\": true,
\\"description\\": \\"Print spaces between brackets.\\",
\\"name\\": \\"bracketSpacing\\",
\\"oppositeDescription\\": \\"Do not print spaces between brackets.\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"0.0.0\\",
\\"type\\": \\"boolean\\"
},
{
\\"category\\": \\"Special\\",
\\"default\\": -1,
\\"description\\":
\\"Print (to stderr) where a cursor at the given position would move to after formatting.\\\\nThis option cannot be used with --range-start and --range-end.\\",
\\"name\\": \\"cursorOffset\\",
\\"pluginDefaults\\": {},
\\"range\\": { \\"end\\": null, \\"start\\": -1, \\"step\\": 1 },
\\"since\\": \\"1.4.0\\",
\\"type\\": \\"int\\"
},
{
\\"category\\": \\"Special\\",
\\"description\\":
\\"Specify the input filepath. This will be used to do parser inference.\\",
\\"name\\": \\"filepath\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.4.0\\",
\\"type\\": \\"path\\"
},
{
\\"category\\": \\"Special\\",
\\"default\\": false,
\\"description\\":
\\"Insert @format pragma into file's first docblock comment.\\",
\\"name\\": \\"insertPragma\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.8.0\\",
\\"type\\": \\"boolean\\"
},
{
\\"category\\": \\"JavaScript\\",
\\"default\\": false,
\\"description\\": \\"Put > on the last line instead of at a new line.\\",
\\"name\\": \\"jsxBracketSameLine\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"0.17.0\\",
\\"type\\": \\"boolean\\"
},
{
\\"category\\": \\"Global\\",
\\"choices\\": [
{ \\"description\\": \\"Flow\\", \\"value\\": \\"flow\\" },
{ \\"description\\": \\"JavaScript\\", \\"value\\": \\"babylon\\" },
{
\\"description\\": \\"TypeScript\\",
\\"since\\": \\"1.4.0\\",
\\"value\\": \\"typescript\\"
},
{ \\"description\\": \\"CSS\\", \\"since\\": \\"1.7.1\\", \\"value\\": \\"css\\" },
{ \\"description\\": \\"Less\\", \\"since\\": \\"1.7.1\\", \\"value\\": \\"less\\" },
{ \\"description\\": \\"SCSS\\", \\"since\\": \\"1.7.1\\", \\"value\\": \\"scss\\" },
{ \\"description\\": \\"JSON\\", \\"since\\": \\"1.5.0\\", \\"value\\": \\"json\\" },
{ \\"description\\": \\"JSON5\\", \\"since\\": \\"1.13.0\\", \\"value\\": \\"json5\\" },
{
\\"description\\": \\"JSON.stringify\\",
\\"since\\": \\"1.13.0\\",
\\"value\\": \\"json-stringify\\"
},
{ \\"description\\": \\"GraphQL\\", \\"since\\": \\"1.5.0\\", \\"value\\": \\"graphql\\" },
{ \\"description\\": \\"Markdown\\", \\"since\\": \\"1.8.0\\", \\"value\\": \\"markdown\\" },
{ \\"description\\": \\"Vue\\", \\"since\\": \\"1.10.0\\", \\"value\\": \\"vue\\" }
],
\\"description\\": \\"Which parser to use.\\",
\\"name\\": \\"parser\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"0.0.10\\",
\\"type\\": \\"choice\\"
},
{
\\"array\\": true,
\\"category\\": \\"Global\\",
\\"default\\": [],
\\"description\\":
\\"Custom directory that contains prettier plugins in node_modules subdirectory.\\\\nOverrides default behavior when plugins are searched relatively to the location of Prettier.\\\\nMultiple values are accepted.\\",
\\"name\\": \\"pluginSearchDirs\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.13.0\\",
\\"type\\": \\"path\\"
},
{
\\"array\\": true,
\\"category\\": \\"Global\\",
\\"default\\": [],
\\"description\\":
\\"Add a plugin. Multiple plugins can be passed as separate \`--plugin\`s.\\",
\\"name\\": \\"plugins\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.10.0\\",
\\"type\\": \\"path\\"
},
{
\\"category\\": \\"Global\\",
\\"default\\": 80,
\\"description\\": \\"The line length where Prettier will try wrap.\\",
\\"name\\": \\"printWidth\\",
\\"pluginDefaults\\": {},
\\"range\\": { \\"end\\": null, \\"start\\": 0, \\"step\\": 1 },
\\"since\\": \\"0.0.0\\",
\\"type\\": \\"int\\"
},
{
\\"category\\": \\"Markdown\\",
\\"choices\\": [
{
\\"description\\": \\"Wrap prose if it exceeds the print width.\\",
\\"since\\": \\"1.9.0\\",
\\"value\\": \\"always\\"
},
{
\\"description\\": \\"Do not wrap prose.\\",
\\"since\\": \\"1.9.0\\",
\\"value\\": \\"never\\"
},
{
\\"description\\": \\"Wrap prose as-is.\\",
\\"since\\": \\"1.9.0\\",
\\"value\\": \\"preserve\\"
}
],
\\"default\\": \\"preserve\\",
\\"description\\": \\"How to wrap prose. (markdown)\\",
\\"name\\": \\"proseWrap\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.8.2\\",
\\"type\\": \\"choice\\"
},
{
\\"category\\": \\"Special\\",
\\"default\\": null,
\\"description\\":
\\"Format code ending at a given character offset (exclusive).\\\\nThe range will extend forwards to the end of the selected statement.\\\\nThis option cannot be used with --cursor-offset.\\",
\\"name\\": \\"rangeEnd\\",
\\"pluginDefaults\\": {},
\\"range\\": { \\"end\\": null, \\"start\\": 0, \\"step\\": 1 },
\\"since\\": \\"1.4.0\\",
\\"type\\": \\"int\\"
},
{
\\"category\\": \\"Special\\",
\\"default\\": 0,
\\"description\\":
\\"Format code starting at a given character offset.\\\\nThe range will extend backwards to the start of the first line containing the selected statement.\\\\nThis option cannot be used with --cursor-offset.\\",
\\"name\\": \\"rangeStart\\",
\\"pluginDefaults\\": {},
\\"range\\": { \\"end\\": null, \\"start\\": 0, \\"step\\": 1 },
\\"since\\": \\"1.4.0\\",
\\"type\\": \\"int\\"
},
{
\\"category\\": \\"Special\\",
\\"default\\": false,
\\"description\\":
\\"Require either '@prettier' or '@format' to be present in the file's first docblock comment\\\\nin order for it to be formatted.\\",
\\"name\\": \\"requirePragma\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.7.0\\",
\\"type\\": \\"boolean\\"
},
{
\\"category\\": \\"JavaScript\\",
\\"default\\": true,
\\"description\\": \\"Print semicolons.\\",
\\"name\\": \\"semi\\",
\\"oppositeDescription\\":
\\"Do not print semicolons, except at the beginning of lines which may need them.\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.0.0\\",
\\"type\\": \\"boolean\\"
},
{
\\"category\\": \\"Common\\",
\\"default\\": false,
\\"description\\": \\"Use single quotes instead of double quotes.\\",
\\"name\\": \\"singleQuote\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"0.0.0\\",
\\"type\\": \\"boolean\\"
},
{
\\"category\\": \\"Global\\",
\\"default\\": 2,
\\"description\\": \\"Number of spaces per indentation level.\\",
\\"name\\": \\"tabWidth\\",
\\"pluginDefaults\\": {},
\\"range\\": { \\"end\\": null, \\"start\\": 0, \\"step\\": 1 },
\\"type\\": \\"int\\"
},
{
\\"category\\": \\"JavaScript\\",
\\"choices\\": [
{ \\"description\\": \\"No trailing commas.\\", \\"value\\": \\"none\\" },
{
\\"description\\":
\\"Trailing commas where valid in ES5 (objects, arrays, etc.)\\",
\\"value\\": \\"es5\\"
},
{
\\"description\\":
\\"Trailing commas wherever possible (including function arguments).\\",
\\"value\\": \\"all\\"
}
],
\\"default\\": \\"none\\",
\\"description\\": \\"Print trailing commas wherever possible when multi-line.\\",
\\"name\\": \\"trailingComma\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"0.0.0\\",
\\"type\\": \\"choice\\"
},
{
\\"category\\": \\"Global\\",
\\"default\\": false,
\\"description\\": \\"Indent with tabs instead of spaces.\\",
\\"name\\": \\"useTabs\\",
\\"pluginDefaults\\": {},
\\"since\\": \\"1.0.0\\",
\\"type\\": \\"boolean\\"
}
]
}
"
`;
exports[`CLI --support-info (write) 1`] = `Array []`;