chore(playground): add new options (#3350)

This commit is contained in:
Ika authored and Lucas Azzola committed 2017-12-05 21:22:10 +11:00
1 parent c7c1d2e7a4
commit f3e7ca2210
3 files changed
+14 -2

No files matched your search

-1
View File
@@ -82,7 +82,6 @@ const detailedOptions = normalizeDetailedOptions({
category: CATEGORY_FORMAT,
forwardToApi: true,
description: "Include parentheses around a sole arrow function parameter.",
default: "avoid",
choices: [
{
value: "avoid",
+13 -1
View File
@@ -351,7 +351,13 @@
<div class="options">
<label>--print-width <input type="number" value="80" min="0" id="printWidth"></label>
<label>--tab-width <input type="number" min="0" value="2" id="tabWidth"></label>
<label><input type="checkbox" data-inverted id="proseWrap"> --no-prose-wrap</label>
<label>--prose-wrap
<select id="proseWrap">
<option value="preserve">preserve</option>
<option value="always">always</option>
<option value="never">never</option>
</select>
</label>
<label><input type="checkbox" id="insertPragma"> --insert-pragma</label>
<label><input type="checkbox" id="requirePragma"> --require-pragma</label>
</div>
@@ -363,6 +369,12 @@
<label><input type="checkbox" id="jsxBracketSameLine"> --jsx-bracket-same-line</label>
</div>
<div class="options last">
<label>--arrow-parens
<select id="arrowParens">
<option value="avoid">avoid</option>
<option value="always">always</option>
</select>
</label>
<label>--trailing-comma
<select id="trailingComma">
<option value="none">none</option>
+1
View File
@@ -22,6 +22,7 @@ var OPTIONS = [
"insertPragma",
"requirePragma",
"proseWrap",
"arrowParens",
"doc",
"ast",
"output2"