-
Notifications
You must be signed in to change notification settings - Fork 4
Align with Prettier #74
Comments
The CLI helper of CLI helper output
the following rules have been used: // .eslintrc.json
{
"extends": [
"peerigon",
"peerigon/typescript",
"peerigon/styles/prefer-arrow",
"peerigon/react",
"peerigon/styles/react-jsx-no-literals",
"peerigon/styles/react-jsx-allow-bind"
],
"env": {
"node": true
},
"root": true
} I think we should check these rules and keep the ones that are "unnecessary", since you likely want to have linting for these rules if you don’t use prettier. If you do use prettier though, I think reporting eslint errors that will be automatically fixed by prettier might not be the best idea, since you might feel, that you need to fix those errors manually. What do you think of having a subset of rules that are obsolete if you use prettier, but can help if you don’t use it? |
I've removed all format related rules from Unfortunately we still need to use |
Prettier is awesome 🏆 and we're using it in a lot of projects anyway. Prettier's formatting is compatible with a lot of Peerigon rules, but not all of them.
We should try to align with Prettier as close as possible to make it easy to use both our ESLint rules and Prettier. This issue is dedicated to collect all the instances where our rules deviate from Prettier:
?
and:
on the next line)The text was updated successfully, but these errors were encountered: