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

tools: set eslint comma-spacing to 'warn' by silverwind · Pull Request #1672 · nodejs/node · GitHub

/ node Public

tools: set eslint comma-spacing to 'warn' - #1672

Closed
silverwind wants to merge 1 commit into
nodejs:masterfrom
silverwind:eslint-comma-spacing
Closed

tools: set eslint comma-spacing to 'warn'#1672
silverwind wants to merge 1 commit into
nodejs:masterfrom
silverwind:eslint-comma-spacing

Conversation

Copy link
Copy Markdown
Contributor

eslint takes comment as whitespace, resulting in code like

[0x2E/*'.'*/, 0x2B/*'+'*/, 0x2D/*'-'*/]

failing the linter. This change reduces the comma-spacing rule to a warning, making make lint pass. I also fixed some misc whitespace issues in .eslintrc.

encountered in: #1650
eslint issue: eslint/eslint#2408

cc: @yosuke-furukawa

Copy link
Copy Markdown
Member

LGTM.

silverwind added a commit that referenced this pull request May 11, 2015
Certain cases with comments inside arrays or object literals fail to
pass eslint's comma-spacing rule. This change sets the comma-spacing
rule to the 'warn' level.

Once eslint/eslint#2408 is resolved and
released, this rule should be set back to 'error' level.

PR-URL: #1672
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>

Copy link
Copy Markdown
Contributor Author

Thanks, landed in f07b3b6. Also added a note to the commit message to restore the rule to error level once the root issue is resolved.

silverwind closed this May 11, 2015
Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request May 19, 2015
Certain cases with comments inside arrays or object literals fail to
pass eslint's comma-spacing rule. This change sets the comma-spacing
rule to the 'warn' level.

Once eslint/eslint#2408 is resolved and
released, this rule should be set back to 'error' level.

PR-URL: nodejs#1672
Reviewed-By: Yosuke Furukawa <yosuke.furukawa@gmail.com>
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL