← 输入框|github.com|刷新
Skip to content

style: use standard - #13

Merged
jsumners merged 1 commit into
mainfrom
lint-standard
May 21, 2021
Merged

jsumners merged 1 commit into
mainfrom
lint-standard

Conversation

@climba03003

@climba03003 climba03003 commented May 21, 2021 •

Copy link
Copy Markdown
Member

Resolve #5

Notable changes:

  • top-level return replaced by process.exit(0) - install.js#L69, uninstall.js#L30
  • if-else inverted - index.js#L310

Checklist

@climba03003
climba03003 requested review from jsumners and mcollina May 21, 2021 10:48
@zekth

zekth commented May 21, 2021

Copy link
Copy Markdown
Member

Why is the process.exit(0) needed? Won't it create side effect?

@mcollina mcollina 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.

lgtm

@climba03003

climba03003 commented May 21, 2021 •

Copy link
Copy Markdown
Member Author

Why is the process.exit(0) needed? Won't it create side effect?

top-level return cannot be properly parse by standardjs.
standard/standard#510

@zekth zekth 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.

lgtm

@jsumners jsumners 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.

Looks good to me.

@jsumners
jsumners merged commit 0dc9d73 into main May 21, 2021
@jsumners
jsumners deleted the lint-standard branch May 21, 2021 11:45
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 1, 2026
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.

Apply standard linting

4 participants