Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Use ESLint + Prettier to enforce coding guidelines in Node version #10

Open
boyum opened this issue Nov 22, 2021 · 3 comments
Open

Use ESLint + Prettier to enforce coding guidelines in Node version #10

boyum opened this issue Nov 22, 2021 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@boyum
Copy link
Collaborator

boyum commented Nov 22, 2021

With this being an open source initiative, I miss coding guidelines. These can be set with ESLint and Prettier (one or both), and can be enforced by GH Actions.

@tplive
Copy link
Contributor

tplive commented Nov 29, 2021

My OCD approves! 😅 I suggest adding one coding_styleguide.md to each implementation, a simple list of bulletpoints with simple instructions, for instance;

  • Use Prettier to format code in your IDE. The .prettierrc configuration will help you.
  • Spaces, not tabs
  • 4-space indents
  • Start and end curly braces on own lines, not indented
  • Use trailing commas
  • Do not use semicolons

Please feel free to add and adjust as per your own preferences, @boyum ! :)

Also, there is Googles style guidelines for a lot of different languages

@tplive tplive added enhancement New feature or request help wanted Extra attention is needed labels Nov 29, 2021
@boyum
Copy link
Collaborator Author

boyum commented Nov 29, 2021

NO SEMICOLONS? You've seen the last collaboration.

@tplive
Copy link
Contributor

tplive commented Nov 29, 2021

That was pretty fragile... 🤣

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants