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.

Could we have Prettier conventions?

See original GitHub issue

While working with @ssmiech on the NodeJS support we found ourselves writing with some clashing style conventions. Could we have a Prettier convention to have the IDE watch our backs about it?

Something simple like:

{
  "trailingComma": "es5",
  "tabWidth": 4, // or some onther value?
  "semi": true, 
  "singleQuote": false
}

let us know 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
rmdiascommented, Jan 9, 2020

I also prefer "tabWidth": 2 "semi": true and "singleQuote": true. I just came up with those settings having the current code as base.

So?

{
  "trailingComma": "es5",
  "tabWidth": 2, 
  "semi": false,
  "singleQuote": true
}
2reactions
simonbengtssoncommented, Jan 9, 2020

If anything I agree with you on singleQuote as well. Final:

{
  "trailingComma": "es5"
  "semi": false,
  "singleQuote": true
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Options - Prettier
To have Prettier wrap prose to the print width, change this option to "always". If you want Prettier to force all prose blocks...
Read more >
How to use Prettier with ESLint and TypeScript in VSCode
In this guide, we'll explain how to use Prettier with ESLint, delegating the responsibility of code convention definition to ESLint, and the ...
Read more >
Proposed JavaScript Coding Standards Revisions for Prettier ...
To teach this convention to Prettier, we had to create a fork that adds an extra option and modified the paren-formatting code, ...
Read more >
VS Code - You don't need a formatting extension (Prettier and ...
Since VS Code uses the JS Beautify library under the hood, which is also used by the Beautify extension, you can expect similar...
Read more >
Using Prettier and ESLint to automate formatting and fixing ...
Generally, we want Prettier to handle the first category and ESLint to handle the second. There are rules that may be difficult to ......
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