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

Added missing semicolon #882

Merged
merged 1 commit into from
Oct 21, 2018
Merged

Added missing semicolon #882

merged 1 commit into from
Oct 21, 2018

Conversation

reviewher
Copy link
Contributor

There originally was a special ESLint exception for the one missing semicolon case:

https://github.com/tj/commander.js/blob/master/.eslintrc.json#L5

    "semi": ["error", "always", { "omitLastInOneLineBlock": true }],

Other TJ projects like mocha always require semicolons, even in this case (mocha uses semistandard whose rule is "semi": [2, "always"]

Going back to the blame log, 4c9b4b8 is the commit that introduced it and the comment "customize linter to fit with style of project" suggests the original contributor @mojavelinux thought the missing semicolon was intentional.

@mojavelinux
Copy link
Contributor

At the time, we were just trying to get the linter set up, so exceptions were added to avoid modifying the code. I'm in favor of updating the code so the exceptions are not necessary.

@abetomo abetomo merged commit 27aeac1 into tj:master Oct 21, 2018
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.

3 participants