Skip to content

Add linting to repository #2467

Closed
Closed

Description

@mtrezza

New Feature / Enhancement Checklist

Current Limitation

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

Feature / Enhancement Description

Enforce proper lint rules.

Activity

  1. parse-github-assistant commented on Jun 19, 2023

    @parse-github-assistant

    Thanks for opening this issue!

    • 🎉 We are excited about your ideas for improvement!
  2. added
    type:ciCI related issue
    bounty:$10Bounty applies for fixing this issue (Parse Bounty Program)
    and removed on Jun 19, 2023
  3. patelmilanun commented on Jun 19, 2023

    @patelmilanun
    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.

  4. mtrezza commented on Jun 19, 2023

    @mtrezza
    MemberAuthor

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

  5. patelmilanun commented on Jun 19, 2023

    @patelmilanun
    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.

  6. patelmilanun commented on Jun 19, 2023

    @patelmilanun
    Member

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

  7. patelmilanun commented on Jun 19, 2023

    @patelmilanun
    Member

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

  8. mtrezza commented on Jun 19, 2023

    @mtrezza
    MemberAuthor

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

  9. mtrezza commented on Jun 19, 2023

    @mtrezza
    MemberAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$10Bounty applies for fixing this issue (Parse Bounty Program)type:ciCI related issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions