Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

feat: add support for husky v6 #765

Closed
wants to merge 6 commits into from
Closed

feat: add support for husky v6 #765

wants to merge 6 commits into from

Conversation

vinayakkulkarni
Copy link
Contributor

Husky is finally MIT again! Wo-Hoo 🥳

This PR will enable support for husky v6 out of the box.

@clarkdo: Pl review & you can successfully close #715 now :)

Copy link
Member

@clarkdo clarkdo left a comment

Choose a reason for hiding this comment

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

Thanks for the pr, I was going to update my pr as well.

@@ -115,7 +115,8 @@ module.exports = [
choices: [
{ name: 'jsconfig.json (Recommended for VS Code if you\'re not using typescript)', value: 'jsconfig.json' },
{ name: 'Semantic Pull Requests', value: 'semantic-pull-requests' },
{ name: 'Dependabot (For auto-updating dependencies, GitHub only)', value: 'dependabot' }
{ name: 'Dependabot (For auto-updating dependencies, GitHub only)', value: 'dependabot' },
{ name: 'Git Hooks (via husky)', value: 'husky' }
Copy link
Member

Choose a reason for hiding this comment

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

I’m not sure if this is a good idea as actually we’re using husky only for lint in git but not provide any other special hooks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use git-notify internally at GeoSpoc, and I thought adding husky as a devtool choice would provide devs with much more flexibility than just using husky for performing lint or test checks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I totally leave it upto you & the Nuxt team to decide on the approach, I'm just happy I get to contribute :)

Copy link
Member

Choose a reason for hiding this comment

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

I think create-nuxt-app is more a nuxt template generater instead of generic application solution, so it makes sense to use lint-stage and husky to run vue and nuxt lint rules. And having hubsky as separeted may have some confilcts like:

  • Select lint-stage/commitlint but not husky
  • Select husky but not lint-stage/commitlint which is just adding husky as dep but no usage at all.

Copy link
Member

Choose a reason for hiding this comment

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

@danielroe What do you think ?

Copy link
Member

Choose a reason for hiding this comment

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

@clarkdo I tend to agree with you. Anyway, it's a separate question from upgrading Husky to v6. Maybe merge #765 and then make this PR about reconsidering role of Husky?

Copy link
Member

Choose a reason for hiding this comment

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

@danielroe We could, but current pr is adding husky as a new selection Git Hooks (via husky)

Copy link
Member

@danielroe danielroe Mar 30, 2021

Choose a reason for hiding this comment

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

Sorry, I meant merge the previous PR #715 and then make this one about reconsidering the role of Husky. Your call though.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, good point.

Copy link
Member

Choose a reason for hiding this comment

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

@vinayakkulkarni Original pr has been merged, can you please update the pr add title ?

@vinayakkulkarni
Copy link
Contributor Author

Will create new for husky v7

@vinayakkulkarni vinayakkulkarni deleted the feat/add-support-for-husky-v6 branch August 22, 2021 20:20
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