Files
web_sport/prettier.config.mjs
T

26 lines
679 B
JavaScript

/** @type {import("prettier").Config} */
const config = {
semi: true,
singleQuote: true,
trailingComma: 'all',
printWidth: 100,
tabWidth: 2,
arrowParens: 'always',
endOfLine: 'lf',
plugins: ['prettier-plugin-tailwindcss'],
overrides: [
{
files: ['*.json', '*.jsonc', '*.yml', '*.yaml', '*.md'],
options: { singleQuote: false },
},
{
// These carry explanatory comments and are parsed as JSONC by their
// consumers (TypeScript and Turborepo both accept comments).
files: ['packages/config/typescript/*.json', 'turbo.json'],
options: { parser: 'jsonc', singleQuote: false },
},
],
};
export default config;