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 upDisallow string concatenation when using __dirname and __filename (no-path-concat) #403
Comments
feross
added
enhancement
semver-major
labels
Feb 5, 2016
This comment has been minimized.
This comment has been minimized.
7.5% of packages either don't work on Windows, or their tests don't work on Windows. I think we should enable this, because even though this will make people change their code, this is actually a real problem – a programmer error — in their code that should be fixed. |
This comment has been minimized.
This comment has been minimized.
|
After fixing up all the packages that I have push access to, only 21/427 (5%) are failing. All the cases I fixed up were real cases where that code wouldn't work in a cross-platform way on Windows. I think this is a good rule. |
This comment has been minimized.
This comment has been minimized.
|
ACK. I think this change makes sense. |
feross
added a commit
to standard/standard-packages
that referenced
this issue
Feb 6, 2016
This comment has been minimized.
This comment has been minimized.
|
Released in standard 6.0.0. |
feross
closed this
Feb 6, 2016
Merged
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
feross commentedFeb 5, 2016
See: http://eslint.org/docs/2.0.0/rules/no-path-concat
Replace this:
With this:
From eslint docs: