Giter VIP home page Giter VIP logo

Comments (3)

antfu avatar antfu commented on May 20, 2024 2

I don't think it will be trivial to support this, as it's hard to determine where to break the line. Having auto line-wrapping is the main reason driving me to move away from the Prettier. I personally have no interest in implementing that. If someone wants to give it a try, I would suggest to publish as a separate plugin and validating that idea in various projects. If that ends up working well, I'd be happy to have it back to this project.

from eslint-stylistic.

ljharb avatar ljharb commented on May 20, 2024 1

I'm not sure this is a great approach; prettier's attempt to "fix" this results in much uglier code much of the time.

I think there should be different rules around when arrays/objects/function calls/function signatures/ternaries/imports/exports/etc should be single-line or multiline, and that if these are addressed, all the important use cases would be met without enabling max-len at all.

from eslint-stylistic.

DamianGlowala avatar DamianGlowala commented on May 20, 2024

Thanks for both of your comments, closing!

from eslint-stylistic.

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.