Git Product home page Git Product logo

Comments (12)

r2dev2 avatar r2dev2 commented on May 24, 2024

Solved with commit 7fb2c51e769c92b66e328598641db264870b14c9.

from livetl.

Bob620 avatar Bob620 commented on May 24, 2024

@r2dev2bb8 I would like to have this re-opened. I do not think that the original issue was addressed as I would also like to make potential code changes but do not have a standard to write code to.

For example, a commonly used standard is:
https://standardjs.com/rules.html

This allows for anyone to write code that looks the same across all IDEs and not massively change the code style per contributor. Sometimes the actual module is included as a dev-dependancy, though it is not necessary in all projects as long as a specific code style guide is provided.

from livetl.

Bob620 avatar Bob620 commented on May 24, 2024

I also really don't want to auto-format all the code to some random style that I use and mess up the entire visual of the repo

from livetl.

r2dev2 avatar r2dev2 commented on May 24, 2024

The standard you provided seems pretty good, although our code is not currently formatted exactly to that. @KentoNishi, are you fine with the standard given by @Bob620? Also, can our repo be autoformatted to fit that style?

from livetl.

KentoNishi avatar KentoNishi commented on May 24, 2024

Sure yeah, my formatter in vscode is only configured to do tabbing and stuff so I can just change it to two spaces. Idk if this is because I write in other languages but I always use four spaces rather than two. Obviously I realize for JS two is more appropriate. Go ahead!

from livetl.

Bob620 avatar Bob620 commented on May 24, 2024

I usually use tabs so that you can set the actual depth to whatever the user wants, its all down to preference with styles, just want to have a consistent style.

from livetl.

KentoNishi avatar KentoNishi commented on May 24, 2024

@Bob620 could you submit a PR with the proposed formatting style?

from livetl.

yoyoyonono avatar yoyoyonono commented on May 24, 2024

There's an extention for vscode that automatically formats to those standards: https://marketplace.visualstudio.com/items?itemName=chenxsan.vscode-standardjs

from livetl.

r2dev2 avatar r2dev2 commented on May 24, 2024

So @Bob620, can you change CONTRIBUTING.md to say to use this but with semicolons.

from livetl.

KentoNishi avatar KentoNishi commented on May 24, 2024

Now that's epic, gonna install later. Anyone else can go ahead with the formatting changes, I need to go eat dinner XD

from livetl.

yoyoyonono avatar yoyoyonono commented on May 24, 2024

there's a version of the standards that essentially does what you said but in an actual standard
https://github.com/standard/semistandard
the vscode formatted also supports that

from livetl.

r2dev2 avatar r2dev2 commented on May 24, 2024

Are there any more concerns about this issue?

from livetl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.