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

Changing linter rules #411

Open
anonrig opened this issue Feb 27, 2024 · 6 comments
Open

Changing linter rules #411

anonrig opened this issue Feb 27, 2024 · 6 comments

Comments

@anonrig
Copy link
Member

anonrig commented Feb 27, 2024

The overall linting and formatting rules in Corepack is extremely different than other repositories in Node.js. I'm planning on replacing it with Biome (which comes with linter and formatter) and have more nodejs/node similar code styles.

Any objections, ideas?

@GeoffreyBooth
Copy link
Member

It should use the same linter and lint rules as the Node core repo. Then if we ever move Corepack into the core repo, the code would already pass the lint check.

@aduh95
Copy link
Contributor

aduh95 commented Feb 27, 2024

It should use the same linter and lint rules as the Node core repo

See nodejs/node-core-test#22 for what would need to happen for this to be possible. The effort was started in nodejs/eslint-plugin-nodejs-internal#1

@anonrig
Copy link
Member Author

anonrig commented Feb 27, 2024

@GeoffreyBooth I recommended Biome because of several reasons:

  1. It has extremely unopinionated defaults.
  2. It doesn't involve installing X amount of dependencies, and discussions around what to use etc.
  3. I think this repository can be a test bed for build: use biome as formatter node#50672.

@anonrig
Copy link
Member Author

anonrig commented Feb 27, 2024

See nodejs/node-core-test#22 for what would need to happen for this to be possible. The effort was started in nodejs/eslint-plugin-nodejs-internal#1

I personally prefer to not invest more time on the current solution and Eslint, in favor of nodejs/node#50672

@GeoffreyBooth
Copy link
Member

GeoffreyBooth commented Feb 27, 2024

Then get Biome used on the main repo first, then update this one. If the main repo never migrates to Biome then we’re not any better off after migrating this repo to Biome than we are today.

We’re not any worse, either, I suppose. So either way. But it would be wasted effort if we migrate this to Biome and then the main repo migrates to something else, and then this repo needs to migrate again to that something else.

@merceyz
Copy link
Member

merceyz commented Feb 27, 2024

It has extremely unopinionated defaults.

That seems like a negative and prone to bikeshedding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants