Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
QuiteAFancyEmerald
GitHub Repository: QuiteAFancyEmerald/Holy-Unblocker
Path: blob/master/prettier.config.js
5154 views
1
module.exports = {
2
printWidth: 80, // Wrap lines at 80 characters
3
tabWidth: 2, // Use 2 spaces per indentation level
4
useTabs: false, // Use spaces instead of tabs
5
semi: true, // Add a semicolon at the end of every statement
6
singleQuote: true, // Use single quotes instead of double quotes
7
quoteProps: 'as-needed', // Only add quotes around object properties where required
8
jsxSingleQuote: false, // Use double quotes in JSX
9
trailingComma: 'es5', // Add trailing commas where valid in ES5 (objects, arrays, etc.)
10
bracketSpacing: true, // Print spaces between brackets in object literals
11
jsxBracketSameLine: false, // Put the `>` of a multi-line JSX element at the end of the last line
12
arrowParens: 'always', // Always include parentheses around arrow function arguments
13
htmlWhitespaceSensitivity: 'css', // Respect the default value of CSS display property
14
endOfLine: 'lf', // Use line feed only (\n) for newlines
15
embeddedLanguageFormatting: 'auto', // Format embedded code if Prettier can automatically identify it
16
proseWrap: 'preserve', // Do not wrap prose (including comments)
17
};
18
19