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

Improve dev tooling #51

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Improve dev tooling #51

wants to merge 3 commits into from

Conversation

estrattonbailey
Copy link
Collaborator

No description provided.

@@ -3,6 +3,7 @@ module.exports = {
env: {
browser: true,
es2021: true,
node: true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixes lint errors within the config files — could otherwise ignore them but this is just as easy

Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of doing this for the entire project, add this comment at the top of the config files:
/* eslint-env node */

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec commitlint --edit
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So instead of commitizen prompting us for a commit message and all that, this just ensures that we follow Conventional Commits (which Semantic Release requires). Wastes a little less time.

Copy link

Choose a reason for hiding this comment

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

nit: move this to npx? We moved away from pnpm

@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run format && npm run test
npx lint-staged
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adds formatted files to the commit, just a quality of life thing idk why I set this up without it 🤔

Comment on lines +11 to +12
"@semantic-release/github",
"@semantic-release/git",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These plugins should update the package.json version after publishing 👍

Copy link
Member

@christianbundy christianbundy left a comment

Choose a reason for hiding this comment

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

lgtm pending the other comments folks have made -- lmk if/when you want another review!

Copy link
Contributor

@wjohnson-truework wjohnson-truework left a comment

Choose a reason for hiding this comment

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

Glad to approve once the eslint-env and pnpm -> npm changes are made.

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.

4 participants