Appearance
Prettier
why
统一格式化配置
how
/**
* prettier.config.mjs
* @see https://prettier.io/docs/configuration
* @type {import("prettier").Config}
*/
const config = {
printWidth: 120,
tabWidth: 4,
useTabs: true,
semi: true,
singleQuote: true,
quoteProps: "as-needed",
jsxSingleQuote: true,
trailingComma: "es5",
bracketSpacing: true,
objectWrap: "preserve",
bracketSameLine: false,
arrowParens: "always",
htmlWhitespaceSensitivity: "css",
endOfLine: "lf",
};
export default config;