Skip to content

Instantly share code, notes, and snippets.

@willhoney7
Created September 7, 2018 15:09
Show Gist options
  • Save willhoney7/7f00d45543dc9808451b1dcfbdeccb6a to your computer and use it in GitHub Desktop.
Save willhoney7/7f00d45543dc9808451b1dcfbdeccb6a to your computer and use it in GitHub Desktop.
module.exports = {
// Fit code within this line limit
printWidth: 100,
// If true, will use single instead of double quotes
singleQuote: true,
tabWidth: 4,
// arrowParens: 'always',
// Controls the printing of trailing commas wherever possible.
//
// Valid options:
//
// "none" - No trailing commas
// "es5" - Trailing commas where valid in ES5 (objects, arrays, etc)
// "all" - Trailing commas wherever possible (function arguments)
trailingComma: 'none',
// Controls the printing of spaces inside array and objects
bracketSpacing: true,
// If true, puts the `>` of a multi-line jsx element at the end of
// the last line instead of being alone on the next line
jsxBracketSameLine: false,
// Which parser to use. Valid options are "flow", "babylon",
// "typescript" and "postcss".
//
// If CSS or TypeScript is detected in Sublime Text, the parser option
// will always be internally overridden and set to "postcss" or
// "typescript" respectively.
parser: 'babylon',
// Whether to add a semicolon at the end of every line (semi: true), or
// only at the beginning of lines that may introduce
// ASI failures (semi: false)
semi: true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment