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

Document Prettier in README #2104

Merged
merged 5 commits into from
Jan 25, 2024
Merged

Document Prettier in README #2104

merged 5 commits into from
Jan 25, 2024

Conversation

yuliiiah
Copy link
Contributor

Describe the Change

This PR:

  • Adds docs on using Prettier to the librarium README.
  • Adds src/components/IconMapper/dynamicFontAwesomeImports.js to .prettierignore due to unpredictable behavior from Prettier.
  • Creates an npm command to simplify formatting checks, npm run format-check.

Review Changes

💻 Add Preview URL

🎫 Jira Ticket

…esomeImports.js to .prettierignore, and create an npm command to simplify formatting checks
Copy link

netlify bot commented Jan 24, 2024

Deploy Preview for docs-spectrocloud ready!

Name Link
🔨 Latest commit 6d3662c
🔍 Latest deploy log https://app.netlify.com/sites/docs-spectrocloud/deploys/65b29c2bf8d0160007e99126
😎 Deploy Preview https://deploy-preview-2104--docs-spectrocloud.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@karl-cardenas-coding karl-cardenas-coding left a comment

Choose a reason for hiding this comment

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

Looks great, just want to circle back about the commands we are sharing.

README.md Outdated
In this case, issue the following command to format all files manually.

```
npm run format
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the Makefile instead? That's a pattern we started a long time ago.

Copy link
Contributor Author

@yuliiiah yuliiiah Jan 25, 2024

Choose a reason for hiding this comment

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

I've added the Make command. Could you please document this pattern so that it's explicit for anyone who wants to introduce changes to the docbase? I would also be happy to document it if you have a minute to explain the patterns expectations to me 🙌🏻

README.md Outdated
commit changes, Prettier formats the staged files automatically. Then, once you create a pull request, it verifies that
all files comply with our Prettier configuration.

**Note:** The build fails if the Code Formatting check doesn't pass.
Copy link
Contributor

Choose a reason for hiding this comment

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

@yuliiiah yuliiiah added backport-version-4-0 Backport change to version 4.0 auto-backport Enable backport backport-version-3-4 Backport change to version 3.4 backport-version-4-1 Backport change to version 4.1 backport-version-4-2 Backport change to version 4.2 labels Jan 25, 2024
@yuliiiah yuliiiah merged commit 5b03006 into master Jan 25, 2024
9 checks passed
@yuliiiah yuliiiah deleted the prettier-docs branch January 25, 2024 18:00
vault-token-factory-spectrocloud bot pushed a commit that referenced this pull request Jan 25, 2024
* chore: Document Prettier, add src/components/IconMapper/dynamicFontAwesomeImports.js to .prettierignore, and create an npm command to simplify formatting checks

* chore: Update Prettier docs and add format-check to Makefile

* chore: Add docs/api-content/**/*.json to .prettierignore

---------

Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
(cherry picked from commit 5b03006)
vault-token-factory-spectrocloud bot pushed a commit that referenced this pull request Jan 25, 2024
* chore: Document Prettier, add src/components/IconMapper/dynamicFontAwesomeImports.js to .prettierignore, and create an npm command to simplify formatting checks

* chore: Update Prettier docs and add format-check to Makefile

* chore: Add docs/api-content/**/*.json to .prettierignore

---------

Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
(cherry picked from commit 5b03006)
vault-token-factory-spectrocloud bot pushed a commit that referenced this pull request Jan 25, 2024
* chore: Document Prettier, add src/components/IconMapper/dynamicFontAwesomeImports.js to .prettierignore, and create an npm command to simplify formatting checks

* chore: Update Prettier docs and add format-check to Makefile

* chore: Add docs/api-content/**/*.json to .prettierignore

---------

Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
(cherry picked from commit 5b03006)
@vault-token-factory-spectrocloud
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
version-4-0
version-3-4
version-4-1 Backport failed because of merge conflicts

You might need to backport the following PRs to version-4-1:
- chore: add vale rule (#2106)
version-4-2

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

backport --pr 2104

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

vault-token-factory-spectrocloud bot added a commit that referenced this pull request Jan 25, 2024
* chore: Document Prettier, add src/components/IconMapper/dynamicFontAwesomeImports.js to .prettierignore, and create an npm command to simplify formatting checks

* chore: Update Prettier docs and add format-check to Makefile

* chore: Add docs/api-content/**/*.json to .prettierignore

---------

Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
(cherry picked from commit 5b03006)

Co-authored-by: Yuliia Horbenko <31223054+yuliiiah@users.noreply.github.com>
vault-token-factory-spectrocloud bot added a commit that referenced this pull request Jan 25, 2024
* chore: Document Prettier, add src/components/IconMapper/dynamicFontAwesomeImports.js to .prettierignore, and create an npm command to simplify formatting checks

* chore: Update Prettier docs and add format-check to Makefile

* chore: Add docs/api-content/**/*.json to .prettierignore

---------

Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
(cherry picked from commit 5b03006)

Co-authored-by: Yuliia Horbenko <31223054+yuliiiah@users.noreply.github.com>
vault-token-factory-spectrocloud bot added a commit that referenced this pull request Jan 25, 2024
* chore: Document Prettier, add src/components/IconMapper/dynamicFontAwesomeImports.js to .prettierignore, and create an npm command to simplify formatting checks

* chore: Update Prettier docs and add format-check to Makefile

* chore: Add docs/api-content/**/*.json to .prettierignore

---------

Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
(cherry picked from commit 5b03006)

Co-authored-by: Yuliia Horbenko <31223054+yuliiiah@users.noreply.github.com>
@vault-token-factory-spectrocloud
Copy link
Contributor

🎉 This PR is included in version 4.2.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@vault-token-factory-spectrocloud
Copy link
Contributor

🎉 This PR is included in version 4.2.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Enable backport backport-version-3-4 Backport change to version 3.4 backport-version-4-0 Backport change to version 4.0 backport-version-4-1 Backport change to version 4.1 backport-version-4-2 Backport change to version 4.2 released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants