951 lines
26 KiB
Plaintext
951 lines
26 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,56 @@
|
|
Object {
|
|
\\"languages\\": Object {
|
|
+ \\"CSS\\": Array [
|
|
+ \\"postcss\\",
|
|
+ ],
|
|
\\"JSX\\": Array [
|
|
\\"babylon\\",
|
|
\\"flow\\",
|
|
],
|
|
\\"JavaScript\\": Array [
|
|
\\"babylon\\",
|
|
\\"flow\\",
|
|
],
|
|
+ \\"Less\\": 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 +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\\",
|
|
\\"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,14 +16,14 @@
|
|
\\"JavaScript\\": Array [
|
|
\\"babylon\\",
|
|
\\"flow\\",
|
|
],
|
|
\\"Less\\": Array [
|
|
- \\"postcss\\",
|
|
+ \\"less\\",
|
|
],
|
|
\\"SCSS\\": Array [
|
|
- \\"postcss\\",
|
|
+ \\"scss\\",
|
|
],
|
|
\\"TypeScript\\": Array [
|
|
\\"typescript\\",
|
|
],
|
|
},
|
|
@@ -52,11 +52,13 @@
|
|
\\"parser\\": Object {
|
|
\\"choices\\": Array [
|
|
\\"flow\\",
|
|
\\"babylon\\",
|
|
\\"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 {"
|
|
`;
|
|
|
|
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\\",
|
|
+ ],
|
|
\\"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 {"
|
|
`;
|
|
|
|
exports[`API getSupportInfo() with version 1.8.0 -> 1.8.2 1`] = `
|
|
"Snapshot Diff:
|
|
- First value
|
|
+ Second value
|
|
|
|
@@ -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,"
|
|
`;
|
|
|
|
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 [
|
|
@@ -27,12 +33,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 {
|
|
@@ -63,16 +80,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,
|
|
@@ -80,14 +108,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\\",
|
|
\\"extensions\\": [
|
|
\\".js\\",
|
|
\\"._js\\",
|
|
\\".bones\\",
|
|
\\".es\\",
|
|
\\".es6\\",
|
|
\\".frag\\",
|
|
\\".gs\\",
|
|
\\".jake\\",
|
|
\\".jsb\\",
|
|
\\".jscad\\",
|
|
\\".jsfl\\",
|
|
\\".jsm\\",
|
|
\\".jss\\",
|
|
\\".mjs\\",
|
|
\\".njs\\",
|
|
\\".pac\\",
|
|
\\".sjs\\",
|
|
\\".ssjs\\",
|
|
\\".xsjs\\",
|
|
\\".xsjslib\\"
|
|
],
|
|
\\"filenames\\": [\\"Jakefile\\"],
|
|
\\"group\\": \\"JavaScript\\",
|
|
\\"linguistLanguageId\\": 183,
|
|
\\"name\\": \\"JavaScript\\",
|
|
\\"parsers\\": [\\"babylon\\", \\"flow\\"],
|
|
\\"since\\": \\"0.0.0\\",
|
|
\\"tmScope\\": \\"source.js\\",
|
|
\\"vscodeLanguageIds\\": [\\"javascript\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"javascript\\",
|
|
\\"codemirrorMimeType\\": \\"text/jsx\\",
|
|
\\"codemirrorMode\\": \\"jsx\\",
|
|
\\"extensions\\": [\\".jsx\\"],
|
|
\\"group\\": \\"JavaScript\\",
|
|
\\"liguistLanguageId\\": 178,
|
|
\\"name\\": \\"JSX\\",
|
|
\\"parsers\\": [\\"babylon\\", \\"flow\\"],
|
|
\\"since\\": \\"0.0.0\\",
|
|
\\"tmScope\\": \\"source.js.jsx\\",
|
|
\\"vscodeLanguageIds\\": [\\"javascriptreact\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"typescript\\",
|
|
\\"aliases\\": [\\"ts\\"],
|
|
\\"codemirrorMimeType\\": \\"application/typescript\\",
|
|
\\"codemirrorMode\\": \\"javascript\\",
|
|
\\"extensions\\": [\\".ts\\", \\".tsx\\"],
|
|
\\"group\\": \\"JavaScript\\",
|
|
\\"liguistLanguageId\\": 378,
|
|
\\"name\\": \\"TypeScript\\",
|
|
\\"parsers\\": [\\"typescript\\"],
|
|
\\"since\\": \\"1.4.0\\",
|
|
\\"tmScope\\": \\"source.ts\\",
|
|
\\"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\\"],
|
|
\\"since\\": \\"1.13.0\\",
|
|
\\"tmScope\\": \\"source.json\\",
|
|
\\"vscodeLanguageIds\\": [\\"json\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"json\\",
|
|
\\"codemirrorMimeType\\": \\"application/json\\",
|
|
\\"codemirrorMode\\": \\"javascript\\",
|
|
\\"extensions\\": [\\".json\\", \\".geojson\\", \\".JSON-tmLanguage\\", \\".topojson\\"],
|
|
\\"filenames\\": [
|
|
\\".arcconfig\\",
|
|
\\".jshintrc\\",
|
|
\\".eslintrc\\",
|
|
\\".prettierrc\\",
|
|
\\"composer.lock\\",
|
|
\\"mcmod.info\\"
|
|
],
|
|
\\"group\\": \\"JavaScript\\",
|
|
\\"linguistLanguageId\\": 174,
|
|
\\"name\\": \\"JSON\\",
|
|
\\"parsers\\": [\\"json\\"],
|
|
\\"since\\": \\"1.5.0\\",
|
|
\\"tmScope\\": \\"source.json\\",
|
|
\\"vscodeLanguageIds\\": [\\"json\\", \\"jsonc\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"json\\",
|
|
\\"codemirrorMimeType\\": \\"application/json\\",
|
|
\\"codemirrorMode\\": \\"javascript\\",
|
|
\\"extensions\\": [\\".json5\\"],
|
|
\\"filenames\\": [\\".babelrc\\"],
|
|
\\"group\\": \\"JavaScript\\",
|
|
\\"linguistLanguageId\\": 175,
|
|
\\"name\\": \\"JSON5\\",
|
|
\\"parsers\\": [\\"json5\\"],
|
|
\\"since\\": \\"1.13.0\\",
|
|
\\"tmScope\\": \\"source.json\\",
|
|
\\"vscodeLanguageIds\\": [\\"json5\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"css\\",
|
|
\\"codemirrorMimeType\\": \\"text/css\\",
|
|
\\"codemirrorMode\\": \\"css\\",
|
|
\\"extensions\\": [\\".css\\", \\".pcss\\", \\".postcss\\"],
|
|
\\"group\\": \\"CSS\\",
|
|
\\"liguistLanguageId\\": 50,
|
|
\\"name\\": \\"CSS\\",
|
|
\\"parsers\\": [\\"css\\"],
|
|
\\"since\\": \\"1.4.0\\",
|
|
\\"tmScope\\": \\"source.css\\",
|
|
\\"vscodeLanguageIds\\": [\\"css\\", \\"postcss\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"less\\",
|
|
\\"codemirrorMimeType\\": \\"text/css\\",
|
|
\\"codemirrorMode\\": \\"css\\",
|
|
\\"extensions\\": [\\".less\\"],
|
|
\\"group\\": \\"CSS\\",
|
|
\\"liguistLanguageId\\": 198,
|
|
\\"name\\": \\"Less\\",
|
|
\\"parsers\\": [\\"less\\"],
|
|
\\"since\\": \\"1.4.0\\",
|
|
\\"tmScope\\": \\"source.css.less\\",
|
|
\\"vscodeLanguageIds\\": [\\"less\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"scss\\",
|
|
\\"codemirrorMimeType\\": \\"text/x-scss\\",
|
|
\\"codemirrorMode\\": \\"css\\",
|
|
\\"extensions\\": [\\".scss\\"],
|
|
\\"group\\": \\"CSS\\",
|
|
\\"liguistLanguageId\\": 329,
|
|
\\"name\\": \\"SCSS\\",
|
|
\\"parsers\\": [\\"scss\\"],
|
|
\\"since\\": \\"1.4.0\\",
|
|
\\"tmScope\\": \\"source.scss\\",
|
|
\\"vscodeLanguageIds\\": [\\"scss\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"text\\",
|
|
\\"extensions\\": [\\".graphql\\", \\".gql\\"],
|
|
\\"liguistLanguageId\\": 139,
|
|
\\"name\\": \\"GraphQL\\",
|
|
\\"parsers\\": [\\"graphql\\"],
|
|
\\"since\\": \\"1.5.0\\",
|
|
\\"tmScope\\": \\"source.graphql\\",
|
|
\\"vscodeLanguageIds\\": [\\"graphql\\"]
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"markdown\\",
|
|
\\"aliases\\": [\\"pandoc\\"],
|
|
\\"codemirrorMimeType\\": \\"text/x-gfm\\",
|
|
\\"codemirrorMode\\": \\"gfm\\",
|
|
\\"extensions\\": [
|
|
\\".md\\",
|
|
\\".markdown\\",
|
|
\\".mdown\\",
|
|
\\".mdwn\\",
|
|
\\".mkd\\",
|
|
\\".mkdn\\",
|
|
\\".mkdown\\",
|
|
\\".ron\\",
|
|
\\".workbook\\"
|
|
],
|
|
\\"filenames\\": [\\"README\\"],
|
|
\\"linguistLanguageId\\": 222,
|
|
\\"name\\": \\"Markdown\\",
|
|
\\"parsers\\": [\\"markdown\\"],
|
|
\\"since\\": \\"1.8.0\\",
|
|
\\"tmScope\\": \\"source.gfm\\",
|
|
\\"vscodeLanguageIds\\": [\\"markdown\\"],
|
|
\\"wrap\\": true
|
|
},
|
|
{
|
|
\\"aceMode\\": \\"html\\",
|
|
\\"codemirrorMimeType\\": \\"text/html\\",
|
|
\\"codemirrorMode\\": \\"htmlmixed\\",
|
|
\\"extensions\\": [\\".vue\\"],
|
|
\\"group\\": \\"HTML\\",
|
|
\\"linguistLanguageId\\": 146,
|
|
\\"name\\": \\"Vue\\",
|
|
\\"parsers\\": [\\"vue\\"],
|
|
\\"since\\": \\"1.10.0\\",
|
|
\\"tmScope\\": \\"text.html.vue\\",
|
|
\\"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 []`;
|