Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

feature/simple_prettier adds prettier and formats files #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

p4trykJ
Copy link
Contributor

@p4trykJ p4trykJ commented Mar 2, 2022

No description provided.

Comment on lines +85 to +90
if (center)
try {
center = JSON.parse(center);
} catch (e) {
console.warn(e);
}
Copy link
Collaborator

@pmatejko pmatejko Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be nice to have rule of mandatory {} brackets for every if statement because that's very hard to read and prone to issues now

Comment on lines +1 to +6
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it would be good to also have a prettier run on every commit?
https://prettier.io/docs/en/precommit.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are moving project to React (take a look at https://github.com/openstreetmap-polska/ua-2022-map-v2) so it is pointless to configure it right there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants