Skip to content

What is our linter preference #3

Closed

Description

@joesepi

Activity

  1. joesepi commented on May 14, 2021

    @joesepi
    CollaboratorAuthor

    It would be nice to get as close to nodejs/node as possible.

  2. joesepi commented on May 14, 2021

    @joesepi
    CollaboratorAuthor
  3. ljharb commented on May 14, 2021

    @ljharb
    Member

    I don't think that should be a goal; node's linter settings are often exceedingly unidiomatic for the ecosystem.

  4. kaicataldo commented on May 17, 2021

    @kaicataldo

    I'm happy to take this on. I don't have a strong preference for linter settings (I personally prefer using Prettier for style enforcement since it stops the majority of style preference arguments in their tracks 😆 ). Would an org-wide shared config be useful here? Or is that impractical given that the same folks won't be working on all the packages?

    If a shared config doesn't seem like the way to proceed, I'll make a PR copying over the existing non-repo specific configuration from the nodejs/node .eslintrc.js and we can discuss there.

  5. ljharb commented on May 17, 2021

    @ljharb
    Member

    Imo prettier, if used, should only be used via eslint config :-)

    I think that its an impractical mandate for the reason you mention, but a shared config is a good idea for common patterns.

    The most common idiom in the ecosystem, by any metric, is the Airbnb config combined with prettier’s config. Is there a reason not to just use those?

  6. kaicataldo commented on May 17, 2021

    @kaicataldo

    No objections here

  7. targos commented on May 17, 2021

    @targos

    I don't think the nodejs/node config should be replicated/copied to other projects. It is a result the history of the project and has a lot of special rules that are there only to avoid big changes to the code base.

  8. mhdawson commented on May 31, 2021

    @mhdawson
    Member
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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions