-
Notifications
You must be signed in to change notification settings - Fork 139
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
Create eslint-plugin-nodejs-internal repo #649
Comments
//cc @nodejs/linting |
+1 from me |
Could it be named with "internal" or something, so people don't get confused and think it's for all node-based projects? |
@ljharb like |
There are no restrictions, and yes, that sounds great to me. It could also go under a scope, if one is available, which would make it even less attractive for external consumption. |
OK, no issue for me, so I renamed the issue |
My understanding of shareable configs vs. plugins is not great, so apologies for this, but since I'm guessing I'm not the only one who will be wondering: Is the idea here that most repos that used this would install both the shareable config and the plugin? The plugin would be a peer dependency of the shareable config? Or would one make the other not necessary as it would be a superset? |
Sorry, the plugin https://www.npmjs.com/package/eslint-plugin-node isn't related to the rules in the core repo, but is used by a bunch of other common shareable configs. No relation to setting up a shareable config https://eslint.org/docs/developer-guide/shareable-configs |
A plugin can be a shareable config, but can also provide its own rules, like eslint-plugin-import. A shareable config can only provide a config, like eslint-config-airbnb. |
OK, since there are some custom rules in core, should it be a plugin then? |
Yep, given that, it seems like a plugin is the right approach. |
Oh, whoops, |
|
OK, updated title again 😄 |
+1, happy to help with setup if that's something that would be helpful. |
@bnb sure, if we have enough +1s now and you have the access that would be great! |
Is there any repository that would like to follow the same rules as nodejs/node? I find most them very specific to core development and also related to the history of the project. I would personally never want to use the same rule set anywhere else ^^ |
@targos the intention as i understood it was that it would only be used by projects seeking to be upstreamed into node core itself. I very much agree that no other project would want to use node core's idiosyncratic eslint config :-) |
I've created the repository at https://github.com/nodejs/eslint-plugin-nodejs-internal/ and given write access to @nodejs/linters, which includes @nschonni. |
Re-opening because there's a checklist in this issue, and I guess we should get all those done before closing. |
I just copied those issues over to the repo to track there, so I'll close this one. |
Splitting off from previous discussion in #55
This would be a repo to be published as a NPM package that could be used for node core and repos want to follow those rules already set there. Suggesting
eslint-plugin-nodejs-internal
since there is already aeslint-plugin-node
used, so it would be less likely to be confusedThe text was updated successfully, but these errors were encountered: