-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
14 lines (14 loc) · 1.04 KB
/
.prettierrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports = {
semi: false,
endOfLine: "auto", // <auto|lf|crlf|cr>
printWidth: 120 // Specify the line length that the printer will wrap on.
// tabWidth: <int default 2>, // Specify the number of spaces per indentation-level.
// useTabs: <bool default false> // Indent lines with tabs instead of spaces.
// trailingComma: "es5", // <none|es5|all> Print trailing commas wherever possible when multi-line. (A single-line array, for example, never gets trailing commas.)
// singleQuote: <bool default false>, // Use single quotes instead of double quotes.
// jsxSingleQuote: <bool default false> // Use single quotes instead of double quotes in JSX.
// quoteProps: "<as-needed|consistent|preserve> default "as-needed" " // Change when properties in objects are quoted.
// bracketSpacing: <bool default true> // Print spaces between brackets in object literals.
// jsxBracketSameLine: <bool default false>
// arrowParens: "<avoid|always> default "avoid" " // Include parentheses around a sole arrow function parameter. e.g. (x) => x
};