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

formatting setup #3196

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chmelevskij
Copy link
Member

@chmelevskij chmelevskij commented Jan 1, 2023

  • add pre-commit hooks to lint stage files
  • prettier setup
  • eslint setup and adjust current settings
  • add recommended extension for prettier-eslint

There is a separate PR #3197 which actually applies all these changes. Keeping separate for clarity.

@@ -20,7 +20,8 @@ cordova/bundle.keystore
.DS_store

# artefacts for Visual Studio Code
/.vscode/
.vscode/*
!.vscode/extensions.json
Copy link
Member Author

Choose a reason for hiding this comment

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

@McGiverGim Adding this so that we can recommend some extensions as well as having the commit hooks.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, I'm not too sure if this will work if the user has its own file.

Comment on lines -15 to -16
"no-trailing-spaces": "error",
"eol-last": "error",
Copy link
Member

Choose a reason for hiding this comment

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

Why are these removed? Maybe they are included in other part?

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly, formatter (pretier) is handling these kind of things better.

linter (eslint) is better for enforcing/discouraging specific patterns.

* add pre-commit hooks to lint stage files
* prettier setup
* eslint setup
@sonarcloud
Copy link

sonarcloud bot commented Jan 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.4% 0.4% Duplication

@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week.

@chmelevskij
Copy link
Member Author

Closing this as there seems to be no traction

@haslinghuis haslinghuis mentioned this pull request Dec 31, 2023
@haslinghuis haslinghuis reopened this Dec 31, 2023
@haslinghuis
Copy link
Member

@chmelevskij sorry we simply did not get time for this.

@chmelevskij chmelevskij closed this Jan 3, 2024
@chmelevskij
Copy link
Member Author

Lol, just saw you re-opened this 🫣

@haslinghuis
Copy link
Member

Yes this would be helpful 🤞

@haslinghuis haslinghuis reopened this Jan 3, 2024
@haslinghuis
Copy link
Member

But needs a rebase 🙈

Copy link

sonarcloud bot commented Jan 3, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants