FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tools: enable no-extra-semi rule in the linter by silverwind · Pull Request #2207 · nodejs/node · GitHub

/ node Public

tools: enable no-extra-semi rule in the linter - #2207

Closed
silverwind wants to merge 2 commits into
nodejs:masterfrom
silverwind:lint-semicolons
Closed

tools: enable no-extra-semi rule in the linter#2207
silverwind wants to merge 2 commits into
nodejs:masterfrom
silverwind:lint-semicolons

Conversation

Copy link
Copy Markdown
Contributor

The no-extra-semi rule was requested multiple times, so here it is:

The big issue here were bodyless while and for loops. I took the time to refactor two cases in lib to hopefully be more readable. There were a few cases in test that do things like call a function until it returns false, where I opted to just put an empty body with a comment. If these are too ugly, we can wait on eslint/eslint#3075 for a fix.

cc: @targos

silverwind added the tools Issues and PRs related to the tools directory. label Jul 19, 2015
This rule ensures that no unnecessary semicolon after function
declarations is allowed, e.g. this will error:

function x() {
  // code
};
silverwind changed the title tools: enable semicolon rules in linter tools: enable no-extra-semi rule in the linter Jul 19, 2015

Copy link
Copy Markdown
Contributor Author

Updated to only include a single rule. @targos I'll close this if you like so we can collaborate on #2205.

Copy link
Copy Markdown
Contributor Author

Decided to close this one in favor of #2205.

silverwind closed this Jul 19, 2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL