Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upProposal: Case Sensitive Dependencies #915
Comments
Flet
added
the
enhancement
label
Nov 7, 2017
This comment has been minimized.
This comment has been minimized.
|
This is a neat idea! I recall we had some performance issues with some rules that search the filesystem. I'll see if I can find the reference. |
This comment has been minimized.
This comment has been minimized.
|
If your project has babel, it will warn you about naming problem. If you work on a UNIX machine, this will end up to be a problem during compilation (the OS is case sensitive on filenames). I think rule should be a must have. |
This comment has been minimized.
This comment has been minimized.
Could be nice with a rule that just enforced that it was all lower case. That way a part of standard would also be to name your javascript files in lower case which I think would be nice. |
kt3k commentedJun 13, 2017
Digging more and more in ESLint rules, i found some good ones which enforces good style and more readable code. This issue is for dependencies/case-sensitive rule - not fixable.
Suggested configuration.
{ "dependencies/case-sensitive": "error" }This rule verifies that
require("…"),require.resolve(…),import "…"andexport … from "…"ids match the case that is reported by a directory listing.On mac and windows,
requireworks in case-insensitive way, but in case-sensitive way on linux. The case mismatches in module ids cause platform-dependent bugs. This rule detects them and enforces platform independent style.