-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The config that we use probably looks similar to this:
{
"bracketSpacing": true,
"printWidth": 120,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"plugins": ["prettier-plugin-solidity", "prettier-plugin-organize-imports"],
"overrides": [
{
"files": "*.md",
"options": {
"parser": "markdown",
"proseWrap": "always"
}
},
{
"files": "*.sol",
"options": {
"parser": "slang",
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
}
}
]
}
with small expcetions:
- The older contract repos preferred line length of 80 and not 120
- Markdown wrapping leads to worse reviews and I've changed my opinion on it. Initially I liked the text alignment, but similar thing can be achived with toggling word wrap.
It's OK for projects to use whatever they want, but we can have a recommended recipe with good default and document what are the reasonable changes the projects can choose.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels