Skip to content
New issue

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

Bug: Error: Invalid --pug-bracket-spacing value. Expected null, false, "" or "true", but received true. #174

Closed
njzzzz opened this issue Dec 30, 2020 · 1 comment

Comments

@njzzzz
Copy link

njzzzz commented Dec 30, 2020

Info

Tool Version
Plugin v1.13.1
Prettier v2.2.1
Framework vue
Node v12.20.0
OS win

Prettier config

{
	"semi": true,
	"singleQuote": true,
	"bracketSpacing": true,
	"printWidth": 80,
	"tabWidth": 4,
	"useTabs": true,
	"quoteProps": "as-needed",
	"jsxSingleQuote": false,
	"trailingComma": "all",
	"jsxBracketSameLine": true,
	"arrowParens": "always",
	"endOfLine": "crlf",
	"embeddedLanguageFormatting": "auto",
	"pugBracketSpacing": true,
	"pugSingleQuote": false
}

Input

Output or Error

npx prettier --write .

Expected Output

Additional Context

when i am running the command npx prettier --write .
I got an Error : [error] Error: Invalid --pug-bracket-spacing value. Expected null, false, "" or "true", but received true.

so, i changed "pugBracketSpacing": true to "pugBracketSpacing": "true" , this time, i got [PugPrinter:formatText]: Error: Invalid bracketSpacing value. Expected true or false, but received "true".

@Shinigami92
Copy link
Member

prettier/prettier#9204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants