Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Standardx setup for linting & code formatting #2992
Similar to closed PR #924 I'd like to add code formatting with pre-commit hook. It will improve development experience as you don't have to care about semicolons, spacings etc. because it will be automatically formatted on save to a consistent code style.
I first wanted to go with prettier but it was problematic to have function paren formatting working.
The only drawback of standardx is that vscode can only use standard and that's why I have added the configuration into
Styles we're having (basically according to standard style - just to mention some of the styles):
Points I've noticed during setup
Type of changes
Here is a test file where I've checked the linting rules.
@Rokt33r Indeed. Having this can significantly improve the development process. Although it causes conflict in other PR, I think most of the PRs are not very big so contributor can handle with resolving conflicts just fine. If we don't apply this improvement now and wait until all other PRs are merged, during that time, new PRs will jump in and it can cause a huge delay for this PR. I suggest we should apply this improvement now before other big PRs start to jump in.