question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prettier solution

See original GitHub issue

Feature request

Is your feature request related to a problem? Please describe.

The Prettier code check has been failing recently and we have to fix it down the line.

Describe the solution you’d like

Have npm run prettier in package.json that checks and edits all of the files that Prettier would check on Github. Also adding into DEVELOPERS.md on all the steps you need to do before opening a PR. This would be best because people would only have to run once and we will stop having to fix it later down the line.

Additional context

let me know what you think.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
daroracommented, Dec 3, 2021

I’ve configured the repository to disallow merges to master that don’t pass the prettier check-I believe this covers all the scenarios raised thus far on this thread.

Going to close this out-lmk if there are cases that haven’t been handled.

1reaction
bobTheHandscommented, Dec 2, 2021

I don’t think we have a package.json file in the root of supabase/supabase so I’m not sure where to put an npm run prettier, since we would want it run on all the folders.

you could do that with a pre-commit git hook,

Read more comments on GitHub >

github_iconTop Results From Across the Web

CLI - Prettier
This rewrites all processed files in place. This is comparable to the eslint --fix workflow. You can also use -w alias. --loglevel.
Read more >
Code prettier eslint --fix Formatted Code - GitHub
This solution. This formats your code via prettier , and then passes the result of that to eslint --fix . This way you...
Read more >
Using Prettier and ESLint to automate formatting and fixing ...
Learn how to use ESLint and Prettier together to automatically format and fix JavaScript code in your projects.
Read more >
Prettier | IntelliJ IDEA Documentation - JetBrains
IntelliJ IDEA adds this action as soon as you install Prettier as a ... or quick-fix) and the code that is already processed...
Read more >
How to configure Prettier and VSCode - Gleb Bahmutov
You can configure JavaScript code auto-formatting with Prettier to work ... I prefer to use two solutions described in this blog post:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found