-
Notifications
You must be signed in to change notification settings - Fork 137
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
Using the eslint rules of node core for other projects in the foundation #55
Comments
I'm in favor of doing this. FWIW, @geek tried to do this a while back with a module named |
I think its a good idea as well. We might make it a requirement of moving a project under the foundation that the project will move to these standards over time. It would be good to have linting enabled for node-addon-api if there is help to migrate. |
Would it be better for this conversation to move to the @nodejs/automation WG repo? |
For ref, nodejs/node-report#44. |
I like having it as an option but I'm less excited about mandating it for all projects. Not strongly opposed to it. Just see it as providing potentially significant friction for relatively little benefit. I'd prefer we keep our requirements minimal. I could see requiring that new projects have lint rules in place. But they don't need to be the same across projects. |
I would require linting to be in place. I would not force projects to change their linting rules because it's a very disruptive operation for the contributors. |
I think it's also notable that core's style deviates in many ways from the more common idiomatic styles in the JS community; iow I agree with #55 (comment) and #55 (comment) |
I agree, this is more useful for projects that are directly related to core, e.g. projects that are vendored into/out of core, projects in |
How about having it as a suggested default for core projects that don't already have a programming style, but not enforcing it? |
@gibfahn rather than a suggested default, how about the default and core projects can deviate from that at their maintainers' discretion? |
That would present an unnecessary obstacle for moving existing projects into the org. |
Closing stuff that has been inactive for more than a year in this repo, but if someone plans on picking this up, just go ahead and re-open! No strong opinions from me. Just tidying. |
@Trott since this has come up again recently, I wonder if this should get re-opened or just a new issue that is more targeted at creating a new config repo and taking the application as a separate issue. |
@nschonni I like the open-a-new-issue approach. |
Hi, I have created these two npm packages that export the eslint rules of node 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:
@nodejs
scope belongs to us? But I don't know who is the admin). We could also just useeslint-config-node-core
oreslint-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, justnode-core
, compared to@nodejs/eslint-config
What do you think?
The text was updated successfully, but these errors were encountered: