Closed geek closed 5 years ago
definite +1 to the first (case sensitivity has bitten us several times developing in OSX and deploying to Linux), the second i'm completely neutral on
@geek is this for hapijs/owners or the broader hapijs/core-project-maintainers?
In any case, I like both those rules.
@devinivy really, anyone :) I didn't want to spam everyone.
I'm totally on board with both - first one has bitten me too, just like @nlf.
Curious how the first one works though. Does it compare the name vs that in the package.json or something?
Modules can only be lowercase.
My bad, thought they cleaned it up when they set up the new rules.
@kanongil, that's exactly why I'm curious how it's implemented, there's still stuff like: https://www.npmjs.com/package/JSONStream on npm!
Also local requires are occasionally mixed case for us
@hapijs/owners any objections to me adding a couple of lint rules to our hapi style:
1 - Enforce that module loading is case sensitive
2 - Require
.json
when loading a json file: