Could we have Prettier conventions?
See original GitHub issueWhile 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:
- Created 4 years ago
- Reactions:1
- Comments:9 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also prefer
"tabWidth": 2
"semi": true
and"singleQuote": true
. I just came up with those settings having the current code as base.So?
If anything I agree with you on singleQuote as well. Final: