Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: stricter no-undef eslint rule #19926

Closed
wants to merge 1 commit into from

Conversation

BridgeAR
Copy link
Member

By default eslint does not validate variables that are placed in a
typeof check. This caused a error that is fixed in this PR.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

By default eslint does not validate variables that are placed in a
typeof check. This caused a error that is fixed in this PR.
@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. tools Issues and PRs related to the tools directory. labels Apr 11, 2018
@BridgeAR
Copy link
Member Author

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 11, 2018
@Trott
Copy link
Member

Trott commented Apr 12, 2018

For the internal/fs.js change, can we add a test that fails with the previous code but passes with the code change here?

@BridgeAR
Copy link
Member Author

@Trott I agree, I plan on landing a different PR first and I will rebase afterwards to only update the eslint rule.

@BridgeAR BridgeAR added the blocked PRs that are blocked by other issues or PRs. label Apr 12, 2018
@BridgeAR BridgeAR removed the blocked PRs that are blocked by other issues or PRs. label Apr 13, 2018
BridgeAR added a commit to BridgeAR/node that referenced this pull request Apr 13, 2018
By default eslint does not validate variables that are placed in a
typeof check.

PR-URL: nodejs#19926
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR
Copy link
Member Author

Landed in 6376d43

@BridgeAR BridgeAR closed this Apr 13, 2018
jasnell pushed a commit that referenced this pull request Apr 16, 2018
By default eslint does not validate variables that are placed in a
typeof check.

PR-URL: #19926
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
BridgeAR added a commit to BridgeAR/node that referenced this pull request May 1, 2018
By default eslint does not validate variables that are placed in a
typeof check.

PR-URL: nodejs#19926
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR BridgeAR deleted the fix-no-undef-rule branch April 1, 2019 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. fs Issues and PRs related to the fs subsystem / file system. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants