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

Merged
merged 5 commits into from
Dec 30, 2024
Merged

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.

@sonarqubecloud
Copy link

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

sonarqubecloud 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

@YarosMallorca
Copy link
Contributor

This would be great! I would migrate to Prettier formatting.

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

netlify bot commented Dec 29, 2024

Deploy Preview for origin-betaflight-app ready!

Name Link
🔨 Latest commit 49cc9ce
🔍 Latest deploy log https://app.netlify.com/sites/origin-betaflight-app/deploys/6771ded50ed74000088e695e
😎 Deploy Preview https://deploy-preview-3196.dev.app.betaflight.com
📱 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.

@haslinghuis haslinghuis marked this pull request as ready for review December 29, 2024 23:45
@haslinghuis haslinghuis merged commit 937564a into betaflight:master Dec 30, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

6 participants