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

Use eslint-config-stripes #42

Merged
merged 3 commits into from
Sep 25, 2017
Merged

Use eslint-config-stripes #42

merged 3 commits into from
Sep 25, 2017

Conversation

cherewaty
Copy link
Collaborator

Switches to using shared FOLIO eslint config: https://github.com/folio-org/eslint-config-stripes

}
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a linting rule that got triggered?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes https://eslint.org/docs/rules/no-else-return
I have mixed feelings about that rule.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, these days I favor symmetry over efficiency when given a choice

Copy link
Contributor

Choose a reason for hiding this comment

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

As a general policy, we want ESLint to be our servant, not our master. Bondage-and-discipline rules like no-nested-ternary and no-plusplus can go, with no period of mourning required. no-else-return definitely belongs in this category!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cherewaty
Copy link
Collaborator Author

Re: Jenkins build failures: is it running into a cached npm registry or something? debug, a dependency of finalhandler (a dependency of express), had a 2.6.9 release 8 hours ago that npm install on Jenkins can't find.

@funkymalc
Copy link
Contributor

Right. npmjs.org is cached. The builds passes now.

@cherewaty cherewaty merged commit 6cfa071 into folio-org:master Sep 25, 2017
@cherewaty cherewaty deleted the eslint-config-stripes branch September 25, 2017 14:57
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.

4 participants