Code Monkey home page Code Monkey logo

Comments (2)

brodybits avatar brodybits commented on July 17, 2024

Thanks @lukescott, I will rewrite the title then give my response.

from prettierx.

brodybits avatar brodybits commented on July 17, 2024

I would really favor this kind of an enhancement, and a contribution would be very welcome. I hope to make this soon, cannot make any promises right now. Here are a few comments I have:

I would consider this to be applicable to JavaScript and supported derivatives such as Flow and TypeScript. Whenever we add a test case, it is possible to specify that it be run over parsers such as Babel (was born as Babylon), Flow, and TypeScript.

I found the original title to be a bit confusing since I am not so familiar with the tslint tooling. Here is the reference documentation that I think the title was referring to: https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terIndentRule.md

If I could have my way, I would like a tslint plugin that handled the line wrapping and use the other auto-fix rules for everything else. But nothing like that exists that I know of.

I suspect you mean some kind of a TypeScript equivalent to eslint-plugin-prettier (see https://prettier.io/docs/en/eslint.html) or prettier-eslint.

I think the ultimate solution would be some kind of a pipeline-based toolset using the Acorn parser data structure, as I described in #8 (comment).

And please accept my apologies for the small delay.

from prettierx.

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.