Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linting to repository #2467

Closed
3 tasks done
mtrezza opened this issue Jun 19, 2023 · 9 comments · Fixed by #2492
Closed
3 tasks done

Add linting to repository #2467

mtrezza opened this issue Jun 19, 2023 · 9 comments · Fixed by #2492
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) type:ci CI related issue

Comments

@mtrezza
Copy link
Member

mtrezza commented Jun 19, 2023

New Feature / Enhancement Checklist

Current Limitation

The code is not (properly) linted, causing varying code styles.

Feature / Enhancement Description

Enforce proper lint rules.

@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@mtrezza mtrezza added type:meta Non-code issue type:ci CI related issue bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) and removed type:meta Non-code issue labels Jun 19, 2023
@patelmilanun
Copy link
Member

I think for code style we should use something like prettier or any such code formatter. Doing formatting with linter is very bad idea mostly because of performance. I do have a video suggestion to not use linter as formatter. If u want I can post it here.

@mtrezza
Copy link
Member Author

mtrezza commented Jun 19, 2023

We use both prettier and eslint as the default across repos in this org.

@patelmilanun
Copy link
Member

Basically we setup a prettier formatting step in our CI so when somebody is pushing code that is not formatted correctly our CI will yell at him.

@patelmilanun
Copy link
Member

I don't see prettier anywhere in the dashboard repo.

@mtrezza
Copy link
Member Author

mtrezza commented Jun 19, 2023

@patelmilanun
Copy link
Member

ok but we dont have a dedicated step for checking formatting right ? or linter is doing that?

@mtrezza
Copy link
Member Author

mtrezza commented Jun 19, 2023

Yes, it's in the CI, see the 2nd point

@mtrezza
Copy link
Member Author

mtrezza commented Jun 19, 2023

Dashboard already has a lint check in the CI, see
https://github.com/parse-community/parse-dashboard/actions/runs/5315803113/jobs/9624609903?pr=2463

But it seems the rules are different, because it doesn't seem to enforce leading spacing and code structure for example:
#2466 (comment)

I would compare the lint rules with those of parse sever, which are the best maintained of all repos I assume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) type:ci CI related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants