86 lines
2.9 KiB
Plaintext
86 lines
2.9 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`include plugin's parsers to the values of the \`parser\` option\` 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "--parser <flow|babel|babel-flow|babel-ts|typescript|acorn|espree|meriyah|css|less|scss|json|json5|jsonc|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc|mjml|foo-parser>
|
|
|
|
Which parser to use.
|
|
|
|
Valid options:
|
|
|
|
flow Flow
|
|
babel JavaScript
|
|
babel-flow Flow
|
|
babel-ts TypeScript
|
|
typescript TypeScript
|
|
acorn JavaScript
|
|
espree JavaScript
|
|
meriyah JavaScript
|
|
css CSS
|
|
less Less
|
|
scss SCSS
|
|
json JSON
|
|
json5 JSON5
|
|
jsonc JSON with Comments
|
|
json-stringify JSON.stringify
|
|
graphql GraphQL
|
|
markdown Markdown
|
|
mdx MDX
|
|
vue Vue
|
|
yaml YAML
|
|
glimmer Ember / Handlebars
|
|
html HTML
|
|
angular Angular
|
|
lwc Lightning Web Components
|
|
mjml MJML
|
|
foo-parser foo (plugin: ./plugin.cjs)",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`show detailed external option with \`--help foo-option\` 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "--foo-option <bar|baz>
|
|
|
|
foo description
|
|
|
|
Valid options:
|
|
|
|
bar bar description
|
|
baz baz description
|
|
|
|
Default: bar",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`show external options with \`--help\` 1`] = `
|
|
"===================================================================
|
|
--- Without plugin
|
|
+++ With plugin
|
|
@@ -28,17 +28,19 @@
|
|
Where to print operators when binary expressions wrap lines.
|
|
Defaults to end.
|
|
--no-experimental-ternaries
|
|
Default behavior of ternaries; keep question marks on the same line as the consequent.
|
|
+ --foo-option <bar|baz> foo description
|
|
+ Defaults to bar.
|
|
--html-whitespace-sensitivity <css|strict|ignore>
|
|
How to handle whitespaces in HTML.
|
|
Defaults to css.
|
|
--jsx-single-quote Use single quotes in JSX.
|
|
Defaults to false.
|
|
--object-wrap <preserve|collapse>
|
|
How to wrap object literals.
|
|
Defaults to preserve.
|
|
- --parser <flow|babel|babel-flow|babel-ts|typescript|acorn|espree|meriyah|css|less|scss|json|json5|jsonc|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc|mjml>
|
|
+ --parser <flow|babel|babel-flow|babel-ts|typescript|acorn|espree|meriyah|css|less|scss|json|json5|jsonc|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc|mjml|foo-parser>
|
|
Which parser to use.
|
|
--print-width <int> The line length where Prettier will try wrap.
|
|
Defaults to 80.
|
|
--prose-wrap <always|never|preserve>
|
|
"
|
|
`;
|