GithubHelp home page GithubHelp logo

Prettier config about darkti.de HOT 5 CLOSED

danreeves avatar danreeves commented on September 13, 2024
Prettier config

from darkti.de.

Comments (5)

danreeves avatar danreeves commented on September 13, 2024 1

I like to keep config to a minimum, and avoiding bike shaving, but it also picks up using tabs from the .editorconfig

from darkti.de.

danreeves avatar danreeves commented on September 13, 2024

Already configured

"prettier": {

from darkti.de.

ronvoluted avatar ronvoluted commented on September 13, 2024

Ah forgot. "semi": false is all we want (besides defaults)?

from darkti.de.

ronvoluted avatar ronvoluted commented on September 13, 2024

What about "printWidth": 120 or something > 80?

from darkti.de.

danreeves avatar danreeves commented on September 13, 2024

hmm, if a config is getting changed from the defaults I think it should be solving a problem rather than for aesthetics or something. Prettier themselves explicitly advise against going greater than 80 for readability and I'd agree: https://prettier.io/docs/en/options.html#print-width

One change I've been considering is trailingComma: "all" since it makes re-ordering arguments easier, but long argument lists are an antipattern anyway so I've been hesitant.

from darkti.de.

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.