33 lines
738 B
JavaScript
33 lines
738 B
JavaScript
/** @type {import("prettier").Config} */
|
|
const config = {
|
|
arrowParens: "avoid",
|
|
bracketSameLine: false,
|
|
bracketSpacing: true,
|
|
embeddedLanguageFormatting: "auto",
|
|
endOfLine: "lf",
|
|
experimentalOperatorPosition: "start",
|
|
experimentalTernaries: true,
|
|
htmlWhitespaceSensitivity: "ignore",
|
|
jsxSingleQuote: false,
|
|
objectWrap: "collapse",
|
|
overrides: [
|
|
{
|
|
files: ["package.json"],
|
|
options: {
|
|
plugins: ["prettier-plugin-pkg"],
|
|
},
|
|
},
|
|
],
|
|
plugins: ["prettier-plugin-sh"],
|
|
printWidth: 120,
|
|
proseWrap: "never",
|
|
quoteProps: "as-needed",
|
|
semi: true,
|
|
singleAttributePerLine: true,
|
|
singleQuote: false,
|
|
tabWidth: 2,
|
|
trailingComma: "all",
|
|
useTabs: false,
|
|
};
|
|
|
|
export default config;
|