diff --git a/.prettierrc.js b/.prettierrc.js index 77f10bf8194..892289423d3 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -3,7 +3,7 @@ module.exports = { bracketSpacing: false, singleQuote: true, - jsxBracketSameLine: true, + bracketSameLine: true, printWidth: 80, trailingComma: 'all', htmlWhitespaceSensitivity: 'ignore', diff --git a/packages/lexical-playground/__tests__/utils/index.mjs b/packages/lexical-playground/__tests__/utils/index.mjs index b9c83041f82..632fc051cc5 100644 --- a/packages/lexical-playground/__tests__/utils/index.mjs +++ b/packages/lexical-playground/__tests__/utils/index.mjs @@ -486,6 +486,7 @@ export function prettifyHTML(string, {ignoreClasses, ignoreInlineStyles} = {}) { .format(output, { attributeGroups: ['$DEFAULT', '^data-'], attributeSort: 'ASC', + bracketSameLine: true, htmlWhitespaceSensitivity: 'ignore', parser: 'html', })