-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.prettierrc.js
More file actions
15 lines (15 loc) · 983 Bytes
/
Copy path.prettierrc.js
File metadata and controls
15 lines (15 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module.exports = {
printWidth: 80, // Specify the line length that the printer will wrap on.
tabWidth: 2, // Specify the number of spaces per indentation level.
useTabs: false, // Indent lines with tabs instead of spaces.
semi: true, // Print semicolons at the ends of statements.
singleQuote: true, // Use single quotes instead of double quotes.
quoteProps: 'as-needed', // Change when properties in objects are quoted.
jsxSingleQuote: false, // Use single quotes instead of double quotes in JSX.
trailingComma: 'es5', // Print trailing commas wherever possible in ES5 (objects, arrays, etc.).
bracketSpacing: true, // Print spaces between brackets in object literals.
jsxBracketSameLine: false, // Put the `>` of a multi-line JSX element at the end of the last line.
arrowParens: 'always', // Include parentheses around a sole arrow function parameter.
proseWrap: 'preserve', // By default, prose is wrapped as-is.
htmlWhitespaceSensitivity: 'css', //
};