Skip to content

Instantly share code, notes, and snippets.

@Rem0ld
Created May 11, 2021 19:07
Show Gist options
  • Save Rem0ld/2d1d456d078576a8345f900ea61fed1b to your computer and use it in GitHub Desktop.
Save Rem0ld/2d1d456d078576a8345f900ea61fed1b to your computer and use it in GitHub Desktop.
simple prettier config file
module.exports = {
semi: false, // Print semicolons at the ends of statements.
trailingComma: 'es5', // Trailing commas where valid in ES5 (objects, arrays, etc.)
jsxBracketSameLine: false, // Put the > of a multi-line JSX element at the end of the last line
singleQuote: true, // Use single quotes instead of double quotes.
printWidth: 90, // Specify the line length that the printer will wrap on.
useTabs: true, // Indent lines with tabs instead of spaces.
tabWidth: 2, // Specify the number of spaces per indentation-level.
jsxSingleQuote: false, // Use single quotes instead of double quotes in JSX.
endOfLine: 'auto', // Maintain existing line endings
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment