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 upeslint-plugin-node/no-deprecated-api thinks one of my webpack aliases is a deprecated node library #1082
Comments
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
May 30, 2018
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
stale
bot
added
the
stale
label
May 30, 2018
This comment has been minimized.
This comment has been minimized.
|
I personally wouldn't recommend using aliases that way, since you might conflict with some other built-in module. Might not be the answer you want to hear but I've personally found that aliases introduce more problems than they solve... Making ESLint aware of webpack-configuration is probably something that will never happen, although you can always open an issue with them if you want this to happen. If support lands in ESLint it would trickle down to standard as well. |
LinusU
closed this
May 30, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Aug 28, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
dyegolara commentedFeb 28, 2018
•
edited
I have this in my webpack config:
and I am importing some of my declared constants like this in several files:
The problem is I'm getting this warning:
'constants' module was deprecated since v6.3. Use 'constants' property of each module instead. (node/no-deprecated-api)This started happening today since I updated to v11.0.0 (and I noticed it because the tests in my CI always run the latest version of
standard). I know I can disable the rule on each line but I wonder if is it there a more clever way to do it.(I know this is not an issue but more like a🙂 .
help wanted)Thanks in advance