code4sac / sacramento-campaign-finance

Dataset and dashboard of money in local politics
https://sacramento-campaign-cash.netlify.app/
2 stars 5 forks source link

Project code styling #44

Open natebass opened 11 months ago

natebass commented 11 months ago

I tried to follow the existing code as a guideline and reformatted all the project code in pull request #43. This is in preparation for the new design, so that new code has a consistent style to follow.

Styling your code this way is optional. Since there is no configuration file like eslintrc in the project root directory, the developer won't get any additional warnings in their editor.

Here is what it end up being.

Please let me know if there are any changes anyone would like to make.

jeremiak commented 11 months ago

I'm fine with whatever style but I do think we should add a .prettierrc or something like that so and people can code in whatever style they want and have a bot clean it up for them. That way it doesn't really matter what people's preferences are, the codebase can be consistent.