2017-11-03 10:06:25 +03:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
2017-12-31 07:34:37 +03:00
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\\",
2018-01-18 10:26:27 +03:00
+ \\"babylon\\",
2017-12-31 07:34:37 +03:00
+ ],
+ \\"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`] = `
2017-11-03 10:06:25 +03:00
Object {
2017-12-31 07:34:37 +03:00
"languages": Object {
"JSX": Array [
"babylon",
"flow",
],
"JavaScript": Array [
"babylon",
"flow",
],
},
"options": Object {
"bracketSpacing": Object {
"default": true,
"type": "boolean",
2017-11-03 10:06:25 +03:00
},
2017-12-31 07:34:37 +03:00
"printWidth": Object {
"default": 80,
"range": Object {
"end": Infinity,
"start": 0,
"step": 1,
},
"type": "int",
2017-11-03 10:06:25 +03:00
},
2017-12-31 07:34:37 +03:00
"singleQuote": Object {
"default": false,
"type": "boolean",
2017-11-03 10:06:25 +03:00
},
2017-12-31 07:34:37 +03:00
"tabWidth": Object {
"default": 2,
"range": Object {
"end": Infinity,
"start": 0,
"step": 1,
},
"type": "int",
2017-12-26 04:23:50 +03:00
},
2017-12-31 07:34:37 +03:00
"trailingComma": Object {
"choices": Array [
"none",
"es5",
"all",
true,
false,
],
"default": false,
"type": "choice",
2017-11-03 10:06:25 +03:00
},
2017-12-31 07:34:37 +03:00
"useFlowParser": Object {
"default": false,
"type": "boolean",
2017-11-03 10:06:25 +03:00
},
2017-12-31 07:34:37 +03:00
},
}
`;
exports[`API getSupportInfo() with version 1.0.0 -> 1.4.0 1`] = `
"Snapshot Diff:
- First value
+ Second value
@@ -1,29 +1,56 @@
Object {
\\"languages\\": Object {
+ \\"CSS\\": Array [
+ \\"postcss\\",
+ ],
\\"JSX\\": Array [
\\"babylon\\",
\\"flow\\",
],
\\"JavaScript\\": Array [
\\"babylon\\",
\\"flow\\",
],
+ \\"Less\\": Array [
+ \\"postcss\\",
+ ],
+ \\"SCSS\\": Array [
+ \\"postcss\\",
+ ],
+ \\"TypeScript\\": Array [
+ \\"typescript\\",
+ ],
2017-11-03 10:06:25 +03:00
},
2017-12-31 07:34:37 +03:00
\\"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\\",
2018-01-18 10:26:27 +03:00
\\"babylon\\",
2017-12-31 07:34:37 +03:00
+ \\"typescript\\",
+ \\"postcss\\",
],
\\"default\\": \\"babylon\\",
\\"type\\": \\"choice\\",
},
\\"printWidth\\": Object {
@@ -33,10 +60,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 [
@@ -47,10 +53,12 @@
\\"choices\\": Array [
\\"flow\\",
2018-01-18 10:26:27 +03:00
\\"babylon\\",
2017-12-31 07:34:37 +03:00
\\"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\\",
2017-11-03 10:06:25 +03:00
],
2017-12-31 07:34:37 +03:00
\\"GraphQL\\": Array [
\\"graphql\\",
2017-11-07 07:28:23 +03:00
],
2017-12-31 07:34:37 +03:00
\\"JSON\\": Array [
@@ -16,14 +16,14 @@
\\"JavaScript\\": Array [
\\"babylon\\",
\\"flow\\",
2017-11-07 07:28:23 +03:00
],
2017-12-31 07:34:37 +03:00
\\"Less\\": Array [
- \\"postcss\\",
+ \\"less\\",
2017-11-07 07:28:23 +03:00
],
2017-12-31 07:34:37 +03:00
\\"SCSS\\": Array [
- \\"postcss\\",
+ \\"scss\\",
2017-11-07 07:28:23 +03:00
],
2017-12-31 07:34:37 +03:00
\\"TypeScript\\": Array [
\\"typescript\\",
2017-11-07 07:28:23 +03:00
],
},
2017-12-31 07:34:37 +03:00
@@ -52,11 +52,13 @@
\\"parser\\": Object {
\\"choices\\": Array [
\\"flow\\",
2018-01-18 10:26:27 +03:00
\\"babylon\\",
2017-12-31 07:34:37 +03:00
\\"typescript\\",
- \\"postcss\\",
+ \\"css\\",
+ \\"less\\",
+ \\"scss\\",
\\"json\\",
\\"graphql\\",
],
\\"default\\": \\"babylon\\",
\\"type\\": \\"choice\\",
@@ -86,10 +88,14 @@
\\"start\\": 0,
\\"step\\": 1,
},
\\"type\\": \\"int\\",
},
+ \\"requirePragma\\": Object {
+ \\"default\\": false,
+ \\"type\\": \\"boolean\\",
+ },
\\"semi\\": Object {
\\"default\\": true,
\\"type\\": \\"boolean\\",
},
\\"singleQuote\\": Object {"
2017-11-03 10:06:25 +03:00
`;
2017-12-31 07:34:37 +03:00
exports[`API getSupportInfo() with version 1.7.1 -> 1.8.0 1`] = `
"Snapshot Diff:
- First value
+ Second value
2017-11-03 10:06:25 +03:00
2017-12-31 07:34:37 +03:00
@@ -18,10 +18,13 @@
\\"flow\\",
],
\\"Less\\": Array [
\\"less\\",
],
+ \\"Markdown\\": Array [
+ \\"markdown\\",
+ ],
\\"SCSS\\": Array [
\\"scss\\",
],
\\"TypeScript\\": Array [
\\"typescript\\",
@@ -43,10 +46,14 @@
},
\\"filepath\\": Object {
\\"default\\": undefined,
\\"type\\": \\"path\\",
},
+ \\"insertPragma\\": Object {
+ \\"default\\": false,
+ \\"type\\": \\"boolean\\",
+ },
\\"jsxBracketSameLine\\": Object {
\\"default\\": false,
\\"type\\": \\"boolean\\",
},
\\"parser\\": Object {
@@ -57,10 +64,11 @@
\\"css\\",
\\"less\\",
\\"scss\\",
\\"json\\",
\\"graphql\\",
+ \\"markdown\\",
],
\\"default\\": \\"babylon\\",
\\"type\\": \\"choice\\",
},
\\"printWidth\\": Object {"
2017-11-03 10:06:25 +03:00
`;
2017-12-31 07:34:37 +03:00
exports[`API getSupportInfo() with version 1.8.0 -> 1.8.2 1`] = `
"Snapshot Diff:
- First value
+ Second value
2017-11-03 10:06:25 +03:00
2017-12-31 07:34:37 +03:00
@@ -78,10 +78,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,"
2017-11-03 10:06:25 +03:00
`;
2017-12-31 07:34:37 +03:00
exports[`API getSupportInfo() with version 1.8.2 -> undefined 1`] = `
"Snapshot Diff:
- First value
+ Second value
2017-11-03 10:06:25 +03:00
2018-01-10 14:39:01 +03:00
@@ -27,12 +27,23 @@
\\"scss\\",
],
2017-12-31 07:34:37 +03:00
\\"TypeScript\\": Array [
\\"typescript\\",
],
2018-01-10 14:39:01 +03:00
+ \\"Vue\\": Array [
+ \\"vue\\",
+ ],
2017-12-31 07:34:37 +03:00
},
\\"options\\": Object {
+ \\"arrowParens\\": Object {
+ \\"choices\\": Array [
+ \\"avoid\\",
+ \\"always\\",
+ ],
+ \\"default\\": \\"avoid\\",
+ \\"type\\": \\"choice\\",
+ },
\\"bracketSpacing\\": Object {
\\"default\\": true,
\\"type\\": \\"boolean\\",
},
\\"cursorOffset\\": Object {
2018-01-18 10:26:27 +03:00
@@ -65,14 +76,19 @@
\\"less\\",
\\"scss\\",
\\"json\\",
\\"graphql\\",
\\"markdown\\",
+ \\"vue\\",
],
\\"default\\": \\"babylon\\",
\\"type\\": \\"choice\\",
},
+ \\"plugins\\": Object {
+ \\"default\\": Array [],
+ \\"type\\": \\"path\\",
+ },
\\"printWidth\\": Object {
\\"default\\": 80,
\\"range\\": Object {
\\"end\\": Infinity,
\\"start\\": 0,
@@ -80,14 +96,15 @@
2017-12-31 07:34:37 +03:00
},
\\"type\\": \\"int\\",
},
\\"proseWrap\\": Object {
\\"choices\\": Array [
- false,
- true,
+ \\"always\\",
+ \\"never\\",
+ \\"preserve\\",
],
- \\"default\\": true,
+ \\"default\\": \\"preserve\\",
\\"type\\": \\"choice\\",
},
\\"rangeEnd\\": Object {
\\"default\\": Infinity,
\\"range\\": Object {"
2017-11-03 10:06:25 +03:00
`;
exports[`CLI --support-info (stderr) 1`] = `""`;
exports[`CLI --support-info (stdout) 1`] = `
"{
\\"languages\\": [
{
\\"aceMode\\": \\"javascript\\",
\\"aliases\\": [\\"js\\", \\"node\\"],
2018-01-27 19:24:25 +03:00
\\"codemirrorMimeType\\": \\"text/javascript\\",
\\"codemirrorMode\\": \\"javascript\\",
2017-11-03 10:06:25 +03:00
\\"extensions\\": [
\\".js\\",
\\"._js\\",
\\".bones\\",
\\".es\\",
\\".es6\\",
\\".frag\\",
\\".gs\\",
\\".jake\\",
\\".jsb\\",
\\".jscad\\",
\\".jsfl\\",
\\".jsm\\",
\\".jss\\",
\\".mjs\\",
\\".njs\\",
\\".pac\\",
\\".sjs\\",
\\".ssjs\\",
\\".xsjs\\",
\\".xsjslib\\"
],
\\"filenames\\": [\\"Jakefile\\"],
2018-01-27 19:24:25 +03:00
\\"group\\": \\"JavaScript\\",
2017-11-03 10:06:25 +03:00
\\"linguistLanguageId\\": 183,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"JavaScript\\",
\\"parsers\\": [\\"babylon\\", \\"flow\\"],
\\"since\\": \\"0.0.0\\",
\\"tmScope\\": \\"source.js\\",
2017-11-03 10:06:25 +03:00
\\"vscodeLanguageIds\\": [\\"javascript\\"]
},
{
\\"aceMode\\": \\"javascript\\",
\\"codemirrorMimeType\\": \\"text/jsx\\",
2018-01-27 19:24:25 +03:00
\\"codemirrorMode\\": \\"jsx\\",
\\"extensions\\": [\\".jsx\\"],
\\"group\\": \\"JavaScript\\",
2017-11-03 10:06:25 +03:00
\\"liguistLanguageId\\": 178,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"JSX\\",
\\"parsers\\": [\\"babylon\\", \\"flow\\"],
\\"since\\": \\"0.0.0\\",
\\"tmScope\\": \\"source.js.jsx\\",
2017-11-03 10:06:25 +03:00
\\"vscodeLanguageIds\\": [\\"javascriptreact\\"]
},
{
\\"aceMode\\": \\"typescript\\",
2018-01-27 19:24:25 +03:00
\\"aliases\\": [\\"ts\\"],
2017-11-03 10:06:25 +03:00
\\"codemirrorMimeType\\": \\"application/typescript\\",
2018-01-27 19:24:25 +03:00
\\"codemirrorMode\\": \\"javascript\\",
\\"extensions\\": [\\".ts\\", \\".tsx\\"],
\\"group\\": \\"JavaScript\\",
2017-11-03 10:06:25 +03:00
\\"liguistLanguageId\\": 378,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"TypeScript\\",
\\"parsers\\": [\\"typescript\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.ts\\",
2017-11-03 10:06:25 +03:00
\\"vscodeLanguageIds\\": [\\"typescript\\", \\"typescriptreact\\"]
},
2017-12-26 04:23:50 +03:00
{
\\"aceMode\\": \\"json\\",
\\"codemirrorMimeType\\": \\"application/json\\",
2018-01-27 19:24:25 +03:00
\\"codemirrorMode\\": \\"javascript\\",
2017-12-26 04:23:50 +03:00
\\"extensions\\": [
\\".json\\",
\\".json5\\",
\\".geojson\\",
\\".JSON-tmLanguage\\",
\\".topojson\\"
],
\\"filenames\\": [
\\".arcconfig\\",
\\".jshintrc\\",
\\".babelrc\\",
\\".eslintrc\\",
\\".prettierrc\\",
\\"composer.lock\\",
\\"mcmod.info\\"
],
2018-01-27 19:24:25 +03:00
\\"group\\": \\"JavaScript\\",
2017-12-26 04:23:50 +03:00
\\"linguistLanguageId\\": 174,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"JSON\\",
\\"parsers\\": [\\"json\\"],
\\"since\\": \\"1.5.0\\",
\\"tmScope\\": \\"source.json\\",
2017-12-26 04:23:50 +03:00
\\"vscodeLanguageIds\\": [\\"json\\", \\"jsonc\\"]
},
2017-11-03 10:06:25 +03:00
{
\\"aceMode\\": \\"css\\",
\\"codemirrorMimeType\\": \\"text/css\\",
2018-01-27 19:24:25 +03:00
\\"codemirrorMode\\": \\"css\\",
2017-12-18 16:05:39 +03:00
\\"extensions\\": [\\".css\\", \\".pcss\\", \\".postcss\\"],
2018-01-27 19:24:25 +03:00
\\"group\\": \\"CSS\\",
2017-11-03 10:06:25 +03:00
\\"liguistLanguageId\\": 50,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"CSS\\",
\\"parsers\\": [\\"css\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.css\\",
2017-12-18 16:05:39 +03:00
\\"vscodeLanguageIds\\": [\\"css\\", \\"postcss\\"]
2017-11-03 10:06:25 +03:00
},
{
\\"aceMode\\": \\"less\\",
\\"codemirrorMimeType\\": \\"text/css\\",
2018-01-27 19:24:25 +03:00
\\"codemirrorMode\\": \\"css\\",
\\"extensions\\": [\\".less\\"],
\\"group\\": \\"CSS\\",
2017-11-03 10:06:25 +03:00
\\"liguistLanguageId\\": 198,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"Less\\",
\\"parsers\\": [\\"less\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.css.less\\",
2017-11-03 10:06:25 +03:00
\\"vscodeLanguageIds\\": [\\"less\\"]
},
{
\\"aceMode\\": \\"scss\\",
\\"codemirrorMimeType\\": \\"text/x-scss\\",
2018-01-27 19:24:25 +03:00
\\"codemirrorMode\\": \\"css\\",
2017-11-03 10:06:25 +03:00
\\"extensions\\": [\\".scss\\"],
2018-01-27 19:24:25 +03:00
\\"group\\": \\"CSS\\",
2017-11-03 10:06:25 +03:00
\\"liguistLanguageId\\": 329,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"SCSS\\",
\\"parsers\\": [\\"scss\\"],
\\"since\\": \\"1.4.0\\",
\\"tmScope\\": \\"source.scss\\",
2017-11-03 10:06:25 +03:00
\\"vscodeLanguageIds\\": [\\"scss\\"]
},
{
2018-01-27 19:24:25 +03:00
\\"aceMode\\": \\"text\\",
\\"extensions\\": [\\".graphql\\", \\".gql\\"],
\\"liguistLanguageId\\": 139,
2017-11-03 10:06:25 +03:00
\\"name\\": \\"GraphQL\\",
\\"parsers\\": [\\"graphql\\"],
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.5.0\\",
2017-11-03 10:06:25 +03:00
\\"tmScope\\": \\"source.graphql\\",
\\"vscodeLanguageIds\\": [\\"graphql\\"]
},
2017-11-07 07:28:23 +03:00
{
\\"aceMode\\": \\"markdown\\",
2018-01-27 19:24:25 +03:00
\\"aliases\\": [\\"pandoc\\"],
2017-11-07 07:28:23 +03:00
\\"codemirrorMimeType\\": \\"text/x-gfm\\",
2018-01-27 19:24:25 +03:00
\\"codemirrorMode\\": \\"gfm\\",
2017-11-07 07:28:23 +03:00
\\"extensions\\": [
\\".md\\",
\\".markdown\\",
\\".mdown\\",
\\".mdwn\\",
\\".mkd\\",
\\".mkdn\\",
\\".mkdown\\",
\\".ron\\",
\\".workbook\\"
],
\\"filenames\\": [\\"README\\"],
\\"linguistLanguageId\\": 222,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"Markdown\\",
\\"parsers\\": [\\"markdown\\"],
\\"since\\": \\"1.8.0\\",
\\"tmScope\\": \\"source.gfm\\",
\\"vscodeLanguageIds\\": [\\"markdown\\"],
\\"wrap\\": true
2018-01-10 14:39:01 +03:00
},
{
\\"aceMode\\": \\"html\\",
\\"codemirrorMimeType\\": \\"text/html\\",
2018-01-27 19:24:25 +03:00
\\"codemirrorMode\\": \\"htmlmixed\\",
2018-01-10 14:39:01 +03:00
\\"extensions\\": [\\".vue\\"],
2018-01-27 19:24:25 +03:00
\\"group\\": \\"HTML\\",
2018-01-10 14:39:01 +03:00
\\"linguistLanguageId\\": 146,
2018-01-27 19:24:25 +03:00
\\"name\\": \\"Vue\\",
\\"parsers\\": [\\"vue\\"],
\\"since\\": \\"1.10.0\\",
\\"tmScope\\": \\"text.html.vue\\",
2018-01-10 14:39:01 +03:00
\\"vscodeLanguageIds\\": [\\"vue\\"]
2017-11-03 10:06:25 +03:00
}
2017-12-31 07:34:37 +03:00
],
\\"options\\": [
{
\\"category\\": \\"JavaScript\\",
\\"choices\\": [
{
2018-01-27 19:24:25 +03:00
\\"description\\": \\"Omit parens when possible. Example: \`x => x\`\\",
\\"value\\": \\"avoid\\"
2017-12-31 07:34:37 +03:00
},
{
2018-01-27 19:24:25 +03:00
\\"description\\": \\"Always include parens. Example: \`(x) => x\`\\",
\\"value\\": \\"always\\"
2017-12-31 07:34:37 +03:00
}
2018-01-27 19:24:25 +03:00
],
\\"default\\": \\"avoid\\",
\\"description\\":
\\"Include parentheses around a sole arrow function parameter.\\",
\\"name\\": \\"arrowParens\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.9.0\\",
\\"type\\": \\"choice\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"JavaScript\\",
\\"default\\": true,
\\"description\\": \\"Print spaces between brackets.\\",
2018-01-27 19:24:25 +03:00
\\"name\\": \\"bracketSpacing\\",
\\"oppositeDescription\\": \\"Do not print spaces between brackets.\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"0.0.0\\",
\\"type\\": \\"boolean\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Special\\",
\\"default\\": -1,
\\"description\\":
2018-01-27 19:24:25 +03:00
\\"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\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"range\\": { \\"end\\": null, \\"start\\": -1, \\"step\\": 1 },
\\"since\\": \\"1.4.0\\",
\\"type\\": \\"int\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Special\\",
\\"description\\":
2018-01-27 19:24:25 +03:00
\\"Specify the input filepath. This will be used to do parser inference.\\",
\\"name\\": \\"filepath\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.4.0\\",
\\"type\\": \\"path\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Special\\",
\\"default\\": false,
2018-01-27 19:24:25 +03:00
\\"description\\":
\\"Insert @format pragma into file's first docblock comment.\\",
\\"name\\": \\"insertPragma\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.8.0\\",
\\"type\\": \\"boolean\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"JavaScript\\",
\\"default\\": false,
2018-01-27 19:24:25 +03:00
\\"description\\": \\"Put > on the last line instead of at a new line.\\",
\\"name\\": \\"jsxBracketSameLine\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"0.17.0\\",
\\"type\\": \\"boolean\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Global\\",
\\"choices\\": [
2018-01-27 19:24:25 +03:00
{ \\"description\\": \\"Flow\\", \\"value\\": \\"flow\\" },
{ \\"description\\": \\"JavaScript\\", \\"value\\": \\"babylon\\" },
2017-12-31 07:34:37 +03:00
{
2018-01-27 19:24:25 +03:00
\\"description\\": \\"TypeScript\\",
2017-12-31 07:34:37 +03:00
\\"since\\": \\"1.4.0\\",
2018-01-27 19:24:25 +03:00
\\"value\\": \\"typescript\\"
2017-12-31 07:34:37 +03:00
},
2018-01-27 19:24:25 +03:00
{ \\"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\\": \\"GraphQL\\", \\"since\\": \\"1.5.0\\", \\"value\\": \\"graphql\\" },
{ \\"description\\": \\"Markdown\\", \\"since\\": \\"1.8.0\\", \\"value\\": \\"markdown\\" },
{ \\"description\\": \\"Vue\\", \\"since\\": \\"1.10.0\\", \\"value\\": \\"vue\\" }
],
\\"default\\": \\"babylon\\",
\\"description\\": \\"Which parser to use.\\",
\\"name\\": \\"parser\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"0.0.10\\",
\\"type\\": \\"choice\\"
2017-12-31 07:34:37 +03:00
},
2018-01-18 10:26:27 +03:00
{
\\"array\\": true,
\\"category\\": \\"Global\\",
2018-01-27 19:24:25 +03:00
\\"default\\": [],
2018-01-18 10:26:27 +03:00
\\"description\\":
2018-01-27 19:24:25 +03:00
\\"Add a plugin. Multiple plugins can be passed as separate \`--plugin\`s.\\",
\\"name\\": \\"plugins\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.10.0\\",
\\"type\\": \\"path\\"
2018-01-18 10:26:27 +03:00
},
2017-12-31 07:34:37 +03:00
{
\\"category\\": \\"Global\\",
\\"default\\": 80,
\\"description\\": \\"The line length where Prettier will try wrap.\\",
2018-01-27 19:24:25 +03:00
\\"name\\": \\"printWidth\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"range\\": { \\"end\\": null, \\"start\\": 0, \\"step\\": 1 },
\\"since\\": \\"0.0.0\\",
\\"type\\": \\"int\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Markdown\\",
\\"choices\\": [
{
2018-01-27 19:24:25 +03:00
\\"description\\": \\"Wrap prose if it exceeds the print width.\\",
2017-12-31 07:34:37 +03:00
\\"since\\": \\"1.9.0\\",
2018-01-27 19:24:25 +03:00
\\"value\\": \\"always\\"
2017-12-31 07:34:37 +03:00
},
{
2018-01-27 19:24:25 +03:00
\\"description\\": \\"Do not wrap prose.\\",
2017-12-31 07:34:37 +03:00
\\"since\\": \\"1.9.0\\",
2018-01-27 19:24:25 +03:00
\\"value\\": \\"never\\"
2017-12-31 07:34:37 +03:00
},
{
2018-01-27 19:24:25 +03:00
\\"description\\": \\"Wrap prose as-is.\\",
2017-12-31 07:34:37 +03:00
\\"since\\": \\"1.9.0\\",
2018-01-27 19:24:25 +03:00
\\"value\\": \\"preserve\\"
2017-12-31 07:34:37 +03:00
}
2018-01-27 19:24:25 +03:00
],
\\"default\\": \\"preserve\\",
\\"description\\": \\"How to wrap prose. (markdown)\\",
\\"name\\": \\"proseWrap\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.8.2\\",
\\"type\\": \\"choice\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Special\\",
\\"default\\": null,
\\"description\\":
2018-01-27 19:24:25 +03:00
\\"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\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"range\\": { \\"end\\": null, \\"start\\": 0, \\"step\\": 1 },
\\"since\\": \\"1.4.0\\",
\\"type\\": \\"int\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Special\\",
\\"default\\": 0,
\\"description\\":
2018-01-27 19:24:25 +03:00
\\"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\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"range\\": { \\"end\\": null, \\"start\\": 0, \\"step\\": 1 },
\\"since\\": \\"1.4.0\\",
\\"type\\": \\"int\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Special\\",
\\"default\\": false,
\\"description\\":
2018-01-27 19:24:25 +03:00
\\"Require either '@prettier' or '@format' to be present in the file's first docblock comment\\\\nin order for it to be formatted.\\",
\\"name\\": \\"requirePragma\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.7.0\\",
\\"type\\": \\"boolean\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"JavaScript\\",
\\"default\\": true,
\\"description\\": \\"Print semicolons.\\",
2018-01-27 19:24:25 +03:00
\\"name\\": \\"semi\\",
2017-12-31 07:34:37 +03:00
\\"oppositeDescription\\":
2018-01-27 19:24:25 +03:00
\\"Do not print semicolons, except at the beginning of lines which may need them.\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.0.0\\",
\\"type\\": \\"boolean\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"JavaScript\\",
\\"default\\": false,
2018-01-27 19:24:25 +03:00
\\"description\\": \\"Use single quotes instead of double quotes.\\",
\\"name\\": \\"singleQuote\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"0.0.0\\",
\\"type\\": \\"boolean\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Global\\",
\\"default\\": 2,
\\"description\\": \\"Number of spaces per indentation level.\\",
2018-01-27 19:24:25 +03:00
\\"name\\": \\"tabWidth\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"range\\": { \\"end\\": null, \\"start\\": 0, \\"step\\": 1 },
\\"type\\": \\"int\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"JavaScript\\",
\\"choices\\": [
2018-01-27 19:24:25 +03:00
{ \\"description\\": \\"No trailing commas.\\", \\"value\\": \\"none\\" },
2017-12-31 07:34:37 +03:00
{
\\"description\\":
2018-01-27 19:24:25 +03:00
\\"Trailing commas where valid in ES5 (objects, arrays, etc.)\\",
\\"value\\": \\"es5\\"
2017-12-31 07:34:37 +03:00
},
{
\\"description\\":
2018-01-27 19:24:25 +03:00
\\"Trailing commas wherever possible (including function arguments).\\",
\\"value\\": \\"all\\"
2017-12-31 07:34:37 +03:00
}
2018-01-27 19:24:25 +03:00
],
\\"default\\": \\"none\\",
\\"description\\": \\"Print trailing commas wherever possible when multi-line.\\",
\\"name\\": \\"trailingComma\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"0.0.0\\",
\\"type\\": \\"choice\\"
2017-12-31 07:34:37 +03:00
},
{
\\"category\\": \\"Global\\",
\\"default\\": false,
2018-01-27 19:24:25 +03:00
\\"description\\": \\"Indent with tabs instead of spaces.\\",
\\"name\\": \\"useTabs\\",
2018-02-27 16:20:02 +03:00
\\"pluginDefaults\\": {},
2018-01-27 19:24:25 +03:00
\\"since\\": \\"1.0.0\\",
\\"type\\": \\"boolean\\"
2017-12-31 07:34:37 +03:00
}
2017-11-03 10:06:25 +03:00
]
}
"
`;
exports[`CLI --support-info (write) 1`] = `Array []`;