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

THEMES-1853: updated husky scripts #2053

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

vgalatro
Copy link
Contributor

@vgalatro vgalatro commented Mar 26, 2024

Description

This PR re-enables and updates the husky scripts to be compatible with version 9.x.

Jira Ticket

Acceptance Criteria

Test Steps

  1. Checkout this branch git checkout THEMES-1853
  2. Make a new branch off of this one.
  3. Make some change (like a readme file)
  4. Add and commit the change, the lint:changed-feature-branch script should run.
  5. Push the test branch, see that the lint:changed-feature-branch and test:changed-feature-branch scripts run.
  6. Please delete the test branch from GitHub.

@vgalatro vgalatro requested a review from a team as a code owner March 26, 2024 18:52
. "$(dirname "$0")/_/husky.sh"

# npx lint-staged
npm run lint:changed-feature-branch
Copy link
Contributor

Choose a reason for hiding this comment

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

are we still going to use both eslint and prettier? Can we remove prettier from package.json if not using?

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 could add npm run format here too. Forgot that we had that honestly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, so that doesn't work as a pre-commit hook. Since things change it kicks you back to the point where everything is just staged and you can't actually commit anything. Since we haven't been using it, I'm just going to remove it for now. We'll have prettier in the git history if we ever want it back.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stopped myself, our stylelint config is using prettier as a basis for some of the rules it enforces, so it's being used. The format script is just to run fixes manually.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it. Approving this.

@vgalatro vgalatro merged commit 9662754 into arc-themes-release-version-2.3.0 Mar 26, 2024
3 of 5 checks passed
@vgalatro vgalatro deleted the THEMES-1853 branch March 26, 2024 20:16
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.

2 participants