We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.prettierrc.json5
{ useTabs: true, tabWidth: 3, arrowParens: "avoid", plugins: ["@prettier/plugin-pug"], pugAttributeSeparator: "none", pugBracketSameLine: true, // or "true" pugEmptyAttributes: "none", }
(any pug file, can use an empty file)
with true:
true
[error] Error: Invalid --pug-bracket-same-line value. Expected null, false, "" or "true", but received true.
with "":
""
[error] Invalid pugBracketSameLine value. Expected null, false, true or "true", but received "".
with "true":
"true"
src/index2.pug [error] src/index2.pug: Error: Error: Invalid bracketSameLine value. Expected true or false, but received "true". [error] at x.build (file:///home/sarpnt/Programming/bytebeat-composer/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prettier/plugin-pug/dist/index.js:32:4380) [error] at async Object.print (file:///home/sarpnt/Programming/bytebeat-composer/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prettier/plugin-pug/dist/index.js:61:295) [error] at async printAstToDoc (file:///home/sarpnt/Programming/bytebeat-composer/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:20377:16) [error] at async coreFormat (file:///home/sarpnt/Programming/bytebeat-composer/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:20687:14) [error] at async formatWithCursor (file:///home/sarpnt/Programming/bytebeat-composer/node_modules/.pnpm/[email protected]/node_modules/prettier/index.mjs:20885:14) [error] at async formatFiles (file:///home/sarpnt/Programming/bytebeat-composer/node_modules/.pnpm/[email protected]/node_modules/prettier/internal/cli.mjs:7073:18) [error] at async main (file:///home/sarpnt/Programming/bytebeat-composer/node_modules/.pnpm/[email protected]/node_modules/prettier/internal/cli.mjs:7279:5) [error] at async Module.run (file:///home/sarpnt/Programming/bytebeat-composer/node_modules/.pnpm/[email protected]/node_modules/prettier/internal/cli.mjs:7225:5)
The text was updated successfully, but these errors were encountered:
duplicate, cannot be fixed by this plugin
Sorry, something went wrong.
No branches or pull requests
Info
Prettier config
.prettierrc.json5
Input
(any pug file, can use an empty file)
Output or Error
with
true
:with
""
:with
"true"
:The text was updated successfully, but these errors were encountered: