diff --git a/configs/prettier.js b/configs/prettier.js index d4a583b..31aa3ca 100644 --- a/configs/prettier.js +++ b/configs/prettier.js @@ -27,6 +27,17 @@ export default { useTabs: false, }, }, + { + files: ['**/*.mdx'], + options: { + // This stinks, if you don't do this, then an inline component on the + // end of the line will end up wrapping, then the next save prettier + // will add an extra line break. Super annoying and probably a bug in + // prettier, but until it's fixed, this is the best we can do. + proseWrap: 'preserve', + htmlWhitespaceSensitivity: 'ignore', + }, + }, ], plugins: ['prettier-plugin-tailwindcss'], tailwindAttributes: ['class', 'className', 'ngClass', '.*[cC]lassName'],