-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.cjs
45 lines (33 loc) · 1017 Bytes
/
prettier.config.cjs
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
/** @type {import("prettier").Config} */
module.exports = {
// Maximum line length before wrapping
printWidth: 100,
// Use 4 spaces for indentation
tabWidth: 4,
// Use spaces instead of tabs
useTabs: true,
// Add semicolons at the end of statements
semi: true,
// Use single quotes instead of double quotes
singleQuote: true,
// Object and array formatting
trailingComma: 'es5',
bracketSpacing: true,
// Always include parentheses around arrow function parameters
arrowParens: 'always',
// Line endings
endOfLine: 'lf',
// Vue files formatting
vueIndentScriptAndStyle: true,
singleAttributePerLine: false,
// HTML formatting
htmlWhitespaceSensitivity: 'css',
bracketSameLine: false,
// Handle embedded code formatting (like CSS-in-JS)
embeddedLanguageFormatting: 'auto',
// Plugins for additional formatting rules
plugins: ['prettier-plugin-tailwindcss'],
// TailwindCSS integration
tailwindStylesheet: './resources/scss/app.scss',
tailwindConfig: './tailwind.config.js',
};