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

Integrate prettier to the project and ci and prettify project #1133

Merged
merged 10 commits into from
Mar 7, 2024

Conversation

matux
Copy link
Collaborator

@matux matux commented Mar 3, 2024

Description of the change

This PR enables formatting checks in the CI with prettier and formats the entire project, including library, examples, tests, config files, html and markdown.

The following HTML errors identified by prettier were fixed as well:

examples/error.html
[error] examples/error.html: SyntaxError: Unexpected closing tag "html". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (49:1)
[error]   47 |   <button id="throw-depp-stack-error" onclick="throwDeepStackError(0,20)">Throw deep stack Error</button>
[error]   48 |   <button id="throw-event-handler-error" onclick="throwEventHandlerError(0,20)">Throw event handler Error</button>
[error] > 49 | </html>
[error]      | ^^^^^^^
[error]   50 |
examples/include_custom_object.html
[error] examples/include_custom_object.html: SyntaxError: Opening tag "a" not terminated. (39:18)
[error]   37 |     <button onclick="window.myvariable = {foo: 'bar'}; Rollbar.info('test from include_custom_object.html');">Send test message, myvariable = {foo: 'bar'}</button>
[error]   38 |     <br><br>
[error] > 39 |     See results: <a href="https://rollbar.com/Rollbar/rollbar.js/items/420/?item_page=0&#instances">rollbar/rollbar.js#420</a>
[error]      |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error]   40 |
[error]   41 |   </body>
[error]   42 | </html>
examples/webpack/src/index.html
[error] examples/webpack/src/index.html: SyntaxError: Unexpected closing tag "html". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (22:1)
[error]   20 |   <button id="rollbar-info-with-extra" onclick="rollbarInfoWithExtra()">Log info and store JSON payload</button>
[error]   21 |   <button id="send-json" onclick="sendJson()">Send stored JSON</button>
[error] > 22 | </html>
[error]      | ^^^^^^^
[error]   23 |

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Maintenance
  • New release

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers assigned
  • Issue from task tracker has a link to this pull request
  • Changes have been reviewed by at least one other engineer

@matux matux requested a review from waltjones March 3, 2024 00:59
@matux matux self-assigned this Mar 3, 2024
@matux matux requested a review from mudetroit March 3, 2024 21:32
Copy link
Contributor

@mudetroit mudetroit left a comment

Choose a reason for hiding this comment

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

Not seeing any obvious problems here

Base automatically changed from matux/istanbul to master March 6, 2024 19:06
@matux matux marked this pull request as ready for review March 6, 2024 19:08
@matux matux merged commit 443290f into master Mar 7, 2024
7 checks passed
@matux matux deleted the matux/prettier branch March 7, 2024 15:31
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.

None yet

2 participants