-
-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
18 lines (16 loc) · 744 Bytes
/
prettier.config.mjs
File metadata and controls
18 lines (16 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export default {
// Use single quotes in JavaScript
singleQuote: true,
// Add trailing commas wherever possible
trailingComma: 'all',
// Other Prettier default settings
arrowParens: 'always', // Include parens in single param arrow functions
bracketSpacing: true, // Add spaces between brackets in object literals
endOfLine: 'lf', // Maintain line feed for cross-platform consistency
jsxSingleQuote: false, // Use double quotes in JSX attributes
printWidth: 80, // Wrap lines after 80 characters
proseWrap: 'preserve', // Maintain existing line breaks in markdown
semi: true, // Include semicolons at the end of statements
tabWidth: 2, // Set tab width to 2 spaces
useTabs: false, // Use spaces instead of tabs
};