threshold-network / merkle-distribution

Threshold Network rewards generation and distribution
https://threshold.network
1 stars 6 forks source link

Add linting tools and pre-commit Git hooks #45

Closed manumonti closed 1 year ago

manumonti commented 1 year ago

To standardize the code format and increase the code robustness, it's necessary to incorporate standard development guidelines. The proposed tools are Prettier and ESLint.

Added pre-commit hooks to check format and code errors in each commit.

This is not a final decision about linting. Feel free to suggest prettier/linting rules. 😄

This PR also format the previous code to follow the new standard code format and add this changes to a revs file to ignore bulk changes.