Giter Site home page Giter Site logo

add prettier config about behave-graph HOT 4 CLOSED

beeglebug avatar beeglebug commented on June 11, 2024
add prettier config

from behave-graph.

Comments (4)

bhouston avatar bhouston commented on June 11, 2024

I had eslint doing cleanup on save in VSCode with all of the auto-formatting. I think you removed this file that enabled that:

https://github.com/bhouston/behave-graph/blob/e596cf818bf034a66b66e9b87c3ca0f46c23eb1f/.vscode/settings.json

Could we just re-enable that? Then this task is done and we do not need prettier.

from behave-graph.

bhouston avatar bhouston commented on June 11, 2024

Here is your commit where you removed this: 684df3d

from behave-graph.

bhouston avatar bhouston commented on June 11, 2024

I've added back auto-formatting via es-lint on save here: https://github.com/bhouston/behave-graph/blob/main/.vscode/settings.json

from behave-graph.

beeglebug avatar beeglebug commented on June 11, 2024

The problem with this approach is firstly that vscode settings file is a userland file and not really intended for sharing between developers (and obviously only works for people with vscode).

Secondly eslint is not really a code formatter, it can highlight code issues, but it's slightly out of scope to handle spacing, braces etc. That's where prettier comes in. Ideally we would use both, and let them do their own things.

from behave-graph.

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.