question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bracketSpacing and compatibility with Prettier configs

See original GitHub issue

Lack of the bracketSpacing option in PrettierX breaks compatibility with Prettier configs.

This configuration with Prettier…

{
  "bracketSpacing": false,
}

Does not work with PrettierX. I think the compatibility should be preserved by expanding bracketSpacing in its equivalent grainy options.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
brodybitscommented, Feb 11, 2021

(See aMarCruz/eslint-plugin-prettierx#7)

Got it, wish you would have mentioned it before. Definitely was a breaking change:)

1reaction
aMarCruzcommented, Feb 11, 2021

@brodybits , I like the granular options in prettierx v17. The only downside is that unsupported options causes prettierx loading to fail. (See aMarCruz/eslint-plugin-prettierx#7) As always, thanks for your prompt reply. Closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Options - Prettier
Bracket Spacing. Print spaces between brackets in object literals. Valid options: true - Example: { foo: bar } .
Read more >
prettier: true , but no spaces inside braces: {Foo} #614 - GitHub
I have prettier: true in my xo config, but, I'm seeing this ... Wow, dreams come true, prettier actually has an option bracketSpacing...
Read more >
Prettier+ - Visual Studio Marketplace
Give Prettier the ability to read the user settings of Visual Studio ... Prettier+ is a superset of Prettier, Full backward compatibility.
Read more >
Efficient workflow with ESLint and Prettier - Dhanraj Padmashali
The Config. I use .prettierrc.js and .eslintrc.js to manage configurations for JavaScript based projects.
Read more >
Using Prettier and ESLint to automate formatting and fixing ...
Learn how to use ESLint and Prettier together to automatically format and fix JavaScript code in your projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found