-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use eslint and prettier #71
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea!!!
We (at Platform team) decided to standardize this things across our front projects through https://github.com/src-d/platform-starter
You could maybe take a look :D
package.json
Outdated
@@ -25,5 +30,9 @@ | |||
"build": "react-scripts build", | |||
"test": "react-scripts test --env=jsdom", | |||
"eject": "react-scripts eject" | |||
}, | |||
"prettier": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no way to avoid this config here? Can not be moved any other place? 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are 3 options how to save config: https://prettier.io/docs/en/configuration.html
I prefer in package.json. But if you like .rc file, I'll change it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like to have different solutions to the same problem, but if the consensus on platform-starter can not be followed here is bblfsh/dashboard because of a limitation of the tools used in this project, or due to its particularities, lets go ahead with this solution.
Signed-off-by: smacker <max@smacker.ru>
Signed-off-by: smacker <max@smacker.ru>
Signed-off-by: smacker <max@smacker.ru>
Signed-off-by: smacker <max@smacker.ru>
@dpordomingo rebased. I don't have rights to merge. You need to press a button. |
LGTM. and @dpordomingo same lack of merge rights here |
Yeah! I have right to merge now. |
It will allow to use consistent code style