Skip to content

Using the eslint rules of node core for other projects in the foundation #55

@joyeecheung

Description

@joyeecheung

Hi, I have created these two npm packages that export the eslint rules of node core:

  1. eslint-config-node-core: Sharable ESLint configurations following the style guide of Node.js core.
  2. eslint-plugin-node-core: Custom ESLint rules from Node.js core.

Most of their sources are automatically generated from the source of the node core. I want to see how we can use these rules for other projects in the foundation. I believe with a unified coding style it would be easier for people to start contributing to them. AFAIK node-core-utils uses something that mimics the node core styles (but not quite), so I can start from there.

Action items:

  1. Move these two projects into the foundation, and move the npm packages to a scope that belongs to us (IIRC the @nodejs scope belongs to us? But I don't know who is the admin). We could also just use eslint-config-node-core or eslint-plugin-node-core (I've placed placeholders in both. My packages are currently published under @joyeecheung though), that way the config name would be shorter, just node-core, compared to @nodejs/eslint-config
  2. Find projects under the Node.js organization that are willing to switch to this coding style, and help them migrate.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions