For-Science / Crypto-For-Science

Crypto For Science is a crowdfunding platform that uses the spirit of cryptocurrency in order to fund scientific research: no fees and no intermediaries - all the funds go directly to the researchers.
MIT License
20 stars 6 forks source link

Use eslint for consistent styles #11

Closed dweipert-3138720606 closed 6 years ago

dweipert-3138720606 commented 6 years ago

Okay, so,

I added some custom rules to disable some others that don't necessarily need to be enforced just yet, but can be, and should be, some time later. Like the audit-argument-checks and template-names.

There were also a great number of mixed spaces and tabs which I disabled the check for, for now. Until we decide what to use. Altough I'd say we go for this: https://github.com/airbnb/javascript#whitespace

For other stuff like semicolons I'd say we try to conform with this: https://github.com/airbnb/javascript The eslintrc can be adjusted one bit at a time.

StorytellerCZ commented 6 years ago

You might also want to consider applying Prettier as well to automate most of this.

dweipert-3138720606 commented 6 years ago

@StorytellerCZ That sounds like it does exactly what I was actually looking for earlier, haha. Thanks!