Skip to content

Instantly share code, notes, and snippets.

@DeveloperBeau
Created December 18, 2017 22:13
Show Gist options
  • Select an option

  • Save DeveloperBeau/8494101ed6805b64ade7b5632748701a to your computer and use it in GitHub Desktop.

Select an option

Save DeveloperBeau/8494101ed6805b64ade7b5632748701a to your computer and use it in GitHub Desktop.
Prettier Default settings
{
// "title": "Schema for prettier",
//
//
//"default": true,
//"description": "Print spaces between brackets in object literals.",
//"type": "boolean"
"bracketSpacing": true,
// "default": false,
// "description": "Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line.",
// "type": "boolean"
"jsxBracketSameLine": false,
// "enum": [
// "babylon",
// "flow",
// "typescript",
// "postcss",
// "json",
// "graphql"
// ],
// "description": "Specify which parser to use.",
// "default": "babylon",
// "type": "string"
//
"parser": "babylon",
// {
// "default": 80,
// "description": "Specify the line length that the printer will wrap on.",
// "type": "integer"
// }
"printWidth": 80,
//
// "default": true,
// "description": "Print semicolons at the ends of statements.",
// "type": "boolean"
//
"semi": true,
//
// "default": false,
// "description": "Use single quotes instead of double quotes.",
// "type": "boolean"
//
"singleQuote": false,
//
// "default": 2,
// "description": "Specify the number of spaces per indentation-level.",
// "type": "integer"
//
"tabWidth": 2,
//
// "default": "none",
// "description": "Print trailing commas wherever possible.",
// "enum": [
// "none",
// "all",
// "es5"
// ],
// "type": "string"
//
"trailingComma": "none",
//
// "default": false,
// "description": "Indent lines with tabs instead of spaces.",
// "type": "boolean"
//
"useTabs": false
// There are overrides if necessary, please check prettier.io for more information
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment