-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathprettier.config.js
More file actions
54 lines (49 loc) · 1006 Bytes
/
prettier.config.js
File metadata and controls
54 lines (49 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Standard Prettier configuration for ElizaOS packages
* Provides consistent code formatting across the monorepo
*/
export default {
// Basic formatting options
printWidth: 100,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'es5',
bracketSpacing: true,
bracketSameLine: false,
arrowParens: 'always',
// Prose formatting
proseWrap: 'preserve',
// HTML/JSX formatting
htmlWhitespaceSensitivity: 'css',
vueIndentScriptAndStyle: false,
// End of line
endOfLine: 'lf',
// Embedded language formatting
embeddedLanguageFormatting: 'auto',
// Plugin specific overrides
overrides: [
{
files: '*.json',
options: {
printWidth: 120,
},
},
{
files: '*.md',
options: {
printWidth: 80,
proseWrap: 'always',
},
},
{
files: '*.{yaml,yml}',
options: {
tabWidth: 2,
},
},
],
};