Add espree parser (#9000)
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
This commit is contained in:
1 parent
2bc68f11f3
commit
73e3976c34
73 files changed
+397
-116
No files matched your search
@@ -84,7 +84,7 @@ Format options:
|
||||
Defaults to false.
|
||||
--jsx-single-quote Use single quotes in JSX.
|
||||
Defaults to false.
|
||||
--parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
--parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
Which parser to use.
|
||||
--print-width <int> The line length where Prettier will try wrap.
|
||||
Defaults to 80.
|
||||
@@ -180,7 +180,7 @@ exports[`show warning with --help not-found (typo) (stderr) 1`] = `
|
||||
`;
|
||||
|
||||
exports[`show warning with --help not-found (typo) (stdout) 1`] = `
|
||||
"--parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
"--parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
|
||||
Which parser to use.
|
||||
|
||||
@@ -191,6 +191,7 @@ Valid options:
|
||||
babel-flow Flow
|
||||
babel-ts TypeScript
|
||||
typescript TypeScript
|
||||
espree JavaScript
|
||||
css CSS
|
||||
less Less
|
||||
scss SCSS
|
||||
@@ -244,7 +245,7 @@ Format options:
|
||||
Defaults to false.
|
||||
--jsx-single-quote Use single quotes in JSX.
|
||||
Defaults to false.
|
||||
--parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
--parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
Which parser to use.
|
||||
--print-width <int> The line length where Prettier will try wrap.
|
||||
Defaults to 80.
|
||||
|
||||
@@ -361,7 +361,7 @@ exports[`show detailed usage with --help no-semi (write) 1`] = `Array []`;
|
||||
exports[`show detailed usage with --help parser (stderr) 1`] = `""`;
|
||||
|
||||
exports[`show detailed usage with --help parser (stdout) 1`] = `
|
||||
"--parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
"--parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
|
||||
Which parser to use.
|
||||
|
||||
@@ -372,6 +372,7 @@ Valid options:
|
||||
babel-flow Flow
|
||||
babel-ts TypeScript
|
||||
typescript TypeScript
|
||||
espree JavaScript
|
||||
css CSS
|
||||
less Less
|
||||
scss SCSS
|
||||
|
||||
@@ -20,8 +20,8 @@ exports[` 1`] = `
|
||||
Defaults to false.
|
||||
--jsx-single-quote Use single quotes in JSX.
|
||||
Defaults to false.
|
||||
- --parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
+ --parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc|foo-parser>
|
||||
- --parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
+ --parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc|foo-parser>
|
||||
Which parser to use.
|
||||
--print-width <int> The line length where Prettier will try wrap.
|
||||
Defaults to 80.
|
||||
|
||||
@@ -20,8 +20,8 @@ exports[` 1`] = `
|
||||
Defaults to false.
|
||||
--jsx-single-quote Use single quotes in JSX.
|
||||
Defaults to false.
|
||||
- --parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
+ --parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc|foo-parser>
|
||||
- --parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
||||
+ --parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc|foo-parser>
|
||||
Which parser to use.
|
||||
--print-width <int> The line length where Prettier will try wrap.
|
||||
Defaults to 80.
|
||||
@@ -32,7 +32,7 @@ exports[` 1`] = `
|
||||
exports[`include plugin's parsers to the values of the \`parser\` option\` (stderr) 1`] = `""`;
|
||||
|
||||
exports[`include plugin's parsers to the values of the \`parser\` option\` (stdout) 1`] = `
|
||||
"--parser <flow|babel|babel-flow|babel-ts|typescript|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc|foo-parser>
|
||||
"--parser <flow|babel|babel-flow|babel-ts|typescript|espree|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc|foo-parser>
|
||||
|
||||
Which parser to use.
|
||||
|
||||
@@ -43,6 +43,7 @@ Valid options:
|
||||
babel-flow Flow
|
||||
babel-ts TypeScript
|
||||
typescript TypeScript
|
||||
espree JavaScript
|
||||
css CSS
|
||||
less Less
|
||||
scss SCSS
|
||||
|
||||
@@ -162,6 +162,12 @@ This option cannot be used with --range-start and --range-end.",
|
||||
"typescript",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"description": "JavaScript",
|
||||
"enum": Array [
|
||||
"espree",
|
||||
],
|
||||
},
|
||||
Object {
|
||||
"description": "CSS",
|
||||
"enum": Array [
|
||||
|
||||
@@ -37,9 +37,11 @@ Object {
|
||||
"babel-ts",
|
||||
"flow",
|
||||
"typescript",
|
||||
"espree",
|
||||
],
|
||||
"JavaScript": Array [
|
||||
"babel",
|
||||
"espree",
|
||||
"babel-flow",
|
||||
"babel-ts",
|
||||
"flow",
|
||||
@@ -150,6 +152,7 @@ Object {
|
||||
"babel-flow",
|
||||
"babel-ts",
|
||||
"typescript",
|
||||
"espree",
|
||||
"css",
|
||||
"less",
|
||||
"scss",
|
||||
@@ -313,7 +316,14 @@ exports[`CLI --support-info (stdout) 1`] = `
|
||||
],
|
||||
\\"linguistLanguageId\\": 183,
|
||||
\\"name\\": \\"JavaScript\\",
|
||||
\\"parsers\\": [\\"babel\\", \\"babel-flow\\", \\"babel-ts\\", \\"flow\\", \\"typescript\\"],
|
||||
\\"parsers\\": [
|
||||
\\"babel\\",
|
||||
\\"espree\\",
|
||||
\\"babel-flow\\",
|
||||
\\"babel-ts\\",
|
||||
\\"flow\\",
|
||||
\\"typescript\\"
|
||||
],
|
||||
\\"since\\": \\"0.0.0\\",
|
||||
\\"tmScope\\": \\"source.js\\",
|
||||
\\"type\\": \\"programming\\",
|
||||
@@ -355,7 +365,14 @@ exports[`CLI --support-info (stdout) 1`] = `
|
||||
\\"group\\": \\"JavaScript\\",
|
||||
\\"linguistLanguageId\\": 178,
|
||||
\\"name\\": \\"JSX\\",
|
||||
\\"parsers\\": [\\"babel\\", \\"babel-flow\\", \\"babel-ts\\", \\"flow\\", \\"typescript\\"],
|
||||
\\"parsers\\": [
|
||||
\\"babel\\",
|
||||
\\"babel-flow\\",
|
||||
\\"babel-ts\\",
|
||||
\\"flow\\",
|
||||
\\"typescript\\",
|
||||
\\"espree\\"
|
||||
],
|
||||
\\"since\\": \\"0.0.0\\",
|
||||
\\"tmScope\\": \\"source.js.jsx\\",
|
||||
\\"type\\": \\"programming\\",
|
||||
@@ -864,6 +881,7 @@ exports[`CLI --support-info (stdout) 1`] = `
|
||||
\\"since\\": \\"1.4.0\\",
|
||||
\\"value\\": \\"typescript\\"
|
||||
},
|
||||
{ \\"description\\": \\"JavaScript\\", \\"since\\": \\"2.2.0\\", \\"value\\": \\"espree\\" },
|
||||
{ \\"description\\": \\"CSS\\", \\"since\\": \\"1.7.1\\", \\"value\\": \\"css\\" },
|
||||
{ \\"description\\": \\"Less\\", \\"since\\": \\"1.7.1\\", \\"value\\": \\"less\\" },
|
||||
{ \\"description\\": \\"SCSS\\", \\"since\\": \\"1.7.1\\", \\"value\\": \\"scss\\" },
|
||||
|
||||
Reference in new issue
Block a user