-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix clean console #5629
base: master
Are you sure you want to change the base?
Fix clean console #5629
Conversation
How to testgit clone -b fix-clean-console https://github.com/dimaslanjaka/hexo.git
cd hexo
npm install
npm test |
Pull Request Test Coverage Report for Build 13221663076Details
💛 - Coveralls |
@SukkaW need review |
@@ -1 +1,3 @@ | |||
#!/bin/sh | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/typicode/husky/releases/tag/v9.0.1#:~:text=shebang
shebang is not needed after husky v9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but got error on my windows, see the screenshoot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could see your screenshot of error. However, I could not reproduce on my window.
@@ -2,7 +2,8 @@ import Promise from 'bluebird'; | |||
import { exists, unlink, rmdir } from 'hexo-fs'; | |||
import type Hexo from '../../hexo'; | |||
|
|||
function cleanConsole(this: Hexo): Promise<[void, void, any]> { | |||
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
Even if I delete it, eslint have not report any errors.
I can't reproduce the two questions you mentioned, hexo ci also shows normal. I'll suspect the problem comes from your operating environment |
What does it do?
#!/bin/sh
, otherwise should got error like below screenshootPull request tasks