Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Add eslint config#8843

Closed
CapacitorSet wants to merge 1 commit into
EFForg:masterEFForg/https-everywhere:masterfrom
CapacitorSet:masterCapacitorSet/https-everywhere:masterCopy head branch name to clipboard
Closed

Add eslint config#8843
CapacitorSet wants to merge 1 commit into
EFForg:masterEFForg/https-everywhere:masterfrom
CapacitorSet:masterCapacitorSet/https-everywhere:masterCopy head branch name to clipboard

Conversation

@CapacitorSet

Copy link
Copy Markdown

This PR adds the eslint config used in EFForg/privacybadger, and fixes some linting issues.

@J0WI

J0WI commented Mar 1, 2017

Copy link
Copy Markdown
Contributor

@Hainish maybe this can also be added to Travis?

@CapacitorSet

Copy link
Copy Markdown
Author

If it is approved, I can add it to Travis in the same PR.

@Hainish Hainish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

Comment thread chromium/background.js Outdated
if (canonical_host.charAt(canonical_host.length - 1) == ".") {
while (canonical_host.charAt(canonical_host.length - 1) == ".")
canonical_host = canonical_host.slice(0,-1);
{canonical_host = canonical_host.slice(0,-1);}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this style odd, I'd prefer the open block { at the end of the previous line with a space after the ) (as in line 213) and the close block } on a new line.

@CapacitorSet

Copy link
Copy Markdown
Author

Ping @Hainish, I fixed the weird braces.

@Hainish

Hainish commented Apr 5, 2017

Copy link
Copy Markdown
Member

When I run the linter I'm getting a larger number of spaces before the opening of blocks. I'm using your .eslintrc.yml file. Any idea why this might be?

@J0WI J0WI mentioned this pull request Jul 5, 2017
@ghost

ghost commented Jul 18, 2017

Copy link
Copy Markdown

Duplicate of #10909, #10931 and #10932.

@ghost ghost marked this as a duplicate of #10909 Jul 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.