Skip to content

Commit

Permalink
refactor: reorder parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatyang committed Dec 8, 2017
1 parent ffd09e4 commit e32ac72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/support.js
Expand Up @@ -300,8 +300,8 @@ const supportOptions = [
default: "babylon",
description: "Which parser to use.",
choices: [
{ value: "flow", description: "Flow" },
{ value: "babylon", description: "JavaScript" },
{ value: "flow", description: "Flow" },
{ value: "typescript", since: "1.4.0", description: "TypeScript" },
{ value: "css", since: "1.7.1", description: "CSS" },
{
Expand Down
10 changes: 5 additions & 5 deletions tests_integration/__tests__/__snapshots__/support-info.js.snap
Expand Up @@ -17,8 +17,8 @@ exports[`API getSupportInfo() with version 0.0.0 -> 1.0.0 1`] = `
+ },
+ \\"parser\\": Object {
+ \\"choices\\": Array [
+ \\"flow\\",
+ \\"babylon\\",
+ \\"flow\\",
+ ],
+ \\"default\\": \\"babylon\\",
+ \\"type\\": \\"choice\\",
Expand Down Expand Up @@ -174,8 +174,8 @@ exports[`API getSupportInfo() with version 1.0.0 -> 1.4.0 1`] = `
},
\\"parser\\": Object {
\\"choices\\": Array [
\\"flow\\",
\\"babylon\\",
\\"flow\\",
+ \\"typescript\\",
+ \\"postcss\\",
],
Expand Down Expand Up @@ -238,8 +238,8 @@ exports[`API getSupportInfo() with version 1.4.0 -> 1.5.0 1`] = `
\\"JavaScript\\": Array [
@@ -47,10 +53,12 @@
\\"choices\\": Array [
\\"flow\\",
\\"babylon\\",
\\"flow\\",
\\"typescript\\",
\\"postcss\\",
+ \\"json\\",
Expand Down Expand Up @@ -287,8 +287,8 @@ exports[`API getSupportInfo() with version 1.5.0 -> 1.7.1 1`] = `
@@ -52,11 +52,13 @@
\\"parser\\": Object {
\\"choices\\": Array [
\\"flow\\",
\\"babylon\\",
\\"flow\\",
\\"typescript\\",
- \\"postcss\\",
+ \\"css\\",
Expand Down Expand Up @@ -677,8 +677,8 @@ exports[`CLI --support-info (stdout) 1`] = `
\\"default\\": \\"babylon\\",
\\"description\\": \\"Which parser to use.\\",
\\"choices\\": [
{ \\"value\\": \\"flow\\", \\"description\\": \\"Flow\\" },
{ \\"value\\": \\"babylon\\", \\"description\\": \\"JavaScript\\" },
{ \\"value\\": \\"flow\\", \\"description\\": \\"Flow\\" },
{
\\"value\\": \\"typescript\\",
\\"since\\": \\"1.4.0\\",
Expand Down

0 comments on commit e32ac72

Please sign in to comment.