37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
module.exports = {
|
|
// Parentheses around a single arrow function parameter. Default: always.
|
|
arrowParens: "always",
|
|
// Put the closing bracket of a multi-line element at the end of the last line of attributes.
|
|
bracketSameLine: false,
|
|
// Print spaces between brackets in object literals.
|
|
bracketSpacing: true,
|
|
// Format embedded code snippets.
|
|
embeddedLanguageFormatting: "auto",
|
|
// HTML whitespace sensitivity.
|
|
htmlWhitespaceSensitivity: "css",
|
|
// Insert a special @format marker at the top of formatted files.
|
|
insertPragma: false,
|
|
// Use single quotes in JSX.
|
|
jsxSingleQuote: false,
|
|
// Maximum line length.
|
|
printWidth: 80,
|
|
// Markdown prose wrapping.
|
|
proseWrap: "preserve",
|
|
// Object property quote policy.
|
|
quoteProps: "as-needed",
|
|
// Format only files with @prettier or @format pragma.
|
|
requirePragma: false,
|
|
// Add semicolons.
|
|
semi: true,
|
|
// Use single quotes.
|
|
singleQuote: false,
|
|
// Indentation width.
|
|
tabWidth: 2,
|
|
// Trailing commas.
|
|
trailingComma: "es5",
|
|
// Use tabs for indentation.
|
|
useTabs: false,
|
|
// Indent <style> and <script> tags in Vue files.
|
|
vueIndentScriptAndStyle: false,
|
|
};
|