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 upRule suggestion: no-var (node) #633
Comments
This comment has been minimized.
This comment has been minimized.
|
Would probably break wayyy to much. Although, I agree with the rule fundamentally. |
This comment has been minimized.
This comment has been minimized.
|
Maybe.... Will standard never release a breaking version, where developers need to fix their code? I mean, there must be room to add rules that break some codebases to make standard stricter (and thus better)? |
This comment has been minimized.
This comment has been minimized.
|
#382 might be what you're after, but in the end, I write code for environments where |
This comment has been minimized.
This comment has been minimized.
|
Cool! |
This comment has been minimized.
This comment has been minimized.
|
Isn't |
This comment has been minimized.
This comment has been minimized.
|
@dcousens I believe that npm will still print a warning in that case. Anyway, I don't think that magical behavior like changing rules based on Once |
This comment has been minimized.
This comment has been minimized.
|
Agreed @feross, I'm just saying I don't think that time is now. Hopefully soon though :) |
This comment has been minimized.
This comment has been minimized.
|
Cool -- I'll close this issue for now since it's not actionable. |
feross
closed this
Sep 26, 2016
This comment has been minimized.
This comment has been minimized.
ForsakenHarmony
commented
Oct 13, 2017
|
currently at 83% |
This comment has been minimized.
This comment has been minimized.
redbmk
commented
Apr 4, 2018
|
Up to 91.4% now |
This comment has been minimized.
This comment has been minimized.
|
@feross is it time? |
This comment has been minimized.
This comment has been minimized.
|
Yep, I think it's time |
feross
reopened this
May 15, 2018
feross
added
the
enhancement
label
May 15, 2018
feross
added this to the
standard v12 milestone
May 15, 2018
feross
modified the milestones:
standard v12,
standard v13
Aug 28, 2018
This comment has been minimized.
This comment has been minimized.
harrysarson
commented
Mar 9, 2019
|
May I inquire about the status of this one? |
This comment has been minimized.
This comment has been minimized.
|
This is something that we want to get in, if you want to work on this I would start with compiling a list of all the repos that would break if we change this. If it's not too many, we can open a PR against eslint-config-standard and start sending PRs to upstream projects (e.g. as in this one) You can get the list by cloning this repo, adding the rule to |
feross
modified the milestones:
standard v13,
standard v14
Jul 5, 2019
This comment has been minimized.
This comment has been minimized.
|
Anyone want to help start the process of opening PRs against repos that would break? I want to get this into standard v14 |
This comment has been minimized.
This comment has been minimized.
|
I’d like to help with this |
This comment has been minimized.
This comment has been minimized.
|
@sonicdoe Thanks for taking on this task! |

albinekb commentedSep 19, 2016
•
edited
Referring to this rule.
Standard should read node version from the
engines(more information) property in package.json, if the version supportsconst,no-varshould be added to the list of rules.Any thoughts?
Is there any reason to use
varin node versions that supportconstandlet?