You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using prettier alongside eslint with the airbnb style rule: "no-multiple-empty-lines": ["error", { "max": 2 }]
Due to prettier, unfortunally this:
a=1b=2
Becomes:
a=1b=2
As I said in the prettier-eslint issue (prettier/prettier-eslint#176), opinionated behavior should only be the default and always should be configurable, to allow maximum flexibility of this awesome tool.
Each of the Prettier options would not exist if could be avoided. They either have a legacy background or a very long community discussion (e.g. #812).
What you are proposing is a purely stylistic change, which can be easily skipped without any harm to code executability and readability.
By far the biggest reason for adopting Prettier is to stop all the on-going debates over styles.
I'm using prettier alongside eslint with the airbnb style rule:
"no-multiple-empty-lines": ["error", { "max": 2 }]
Due to prettier, unfortunally this:
Becomes:
As I said in the prettier-eslint issue (prettier/prettier-eslint#176), opinionated behavior should only be the default and always should be configurable, to allow maximum flexibility of this awesome tool.
Ref: #1613
There are already some options in prettier, but this is missing unless it's not documented: https://prettier.io/docs/en/options.html
The text was updated successfully, but these errors were encountered: