Permalink
Browse files

add prompts

  • Loading branch information...
schuchard committed Oct 18, 2018
1 parent 640afcf commit c9264171fd71e3adc9a83508ad06f3ca1a506c3c
Showing with 20 additions and 19 deletions.
  1. +20 −19 src/prettier/schema.json
@@ -5,14 +5,16 @@
"type": "object", "type": "object",
"properties": { "properties": {
"printWidth": { "printWidth": {
"type": "number", "enum": [80, 100, 120, 140],
"description": "Specify the line length that the printer will wrap on.", "description": "Specify the line length that the printer will wrap on.",
"default": 80 "default": 80,
"x-prompt": "Specify the line length that the printer will wrap on (default: 80)"
}, },
"tabWidth": { "tabWidth": {
"type": "number", "enum": [2,4],
"description": "Specify the number of spaces per indentation-level.", "description": "Specify the number of spaces per indentation-level.",
"default": 2 "default": 2,
"x-prompt": "Specify the number of spaces per indentation-level"
}, },
"useTabs": { "useTabs": {
"type": "boolean", "type": "boolean",
@@ -22,18 +24,20 @@
"semi": { "semi": {
"type": "boolean", "type": "boolean",
"description": "Print semicolons at the ends of statements.", "description": "Print semicolons at the ends of statements.",
"default": true "default": true,
"x-prompt": "Print semicolons at the ends of statements?"
}, },
"singleQuote": { "singleQuote": {
"type": "boolean", "type": "boolean",
"description": "Use single quotes instead of double quotes.", "description": "Use single quotes instead of double quotes.",
"default": false "default": false,
"x-prompt": "Use single quotes instead of double quotes?"
}, },
"trailingComma": { "trailingComma": {
"type": "string", "enum": ["none", "es5", "all"],
"description": "description": "Print trailing commas wherever possible when multi-line. (A single-line array, for example, never gets trailing commas.)",
"Print trailing commas wherever possible when multi-line. (A single-line array, for example, never gets trailing commas.)", "default": "none",
"default": "none" "x-prompt": "Print trailing commas wherever possible when multi-line? (default: none)"
}, },
"bracketSpacing": { "bracketSpacing": {
"type": "boolean", "type": "boolean",
@@ -42,8 +46,7 @@
}, },
"jsxBracketSameLine": { "jsxBracketSameLine": {
"type": "boolean", "type": "boolean",
"description": "description": "Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).",
"Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).",
"default": false "default": false
}, },
"arrowParens": { "arrowParens": {
@@ -58,26 +61,24 @@
}, },
"requirePragma": { "requirePragma": {
"type": "boolean", "type": "boolean",
"description": "description": "Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to prettier.",
"Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to prettier.",
"default": false "default": false
}, },
"insertPragma": { "insertPragma": {
"type": "boolean", "type": "boolean",
"description": "description": "Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier. This works well when used in tandem with the --require-pragma option.",
"Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier. This works well when used in tandem with the --require-pragma option.",
"default": false "default": false
}, },
"proseWrap": { "proseWrap": {
"type": "string", "type": "string",
"description": "description": "By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer, e.g. GitHub comment and BitBucket. In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out with \"never\".",
"By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer, e.g. GitHub comment and BitBucket. In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out with \"never\".",
"default": "preserve" "default": "preserve"
}, },
"lintStaged": { "lintStaged": {
"type": "boolean", "type": "boolean",
"description": "Run Prettier against staged git files.", "description": "Run Prettier against staged git files.",
"default": true "default": true,
"x-prompt": "Add lint-staged for running Prettier against staged files?"
} }
}, },
"required": [], "required": [],

0 comments on commit c926417

Please sign in to comment.