Git Product home page Git Product logo

Comments (9)

corydeppen avatar corydeppen commented on August 18, 2024 6

Would you consider using tslint-config-prettier? I'd be willing to submit the PR if no one else is already working on it.

from create-react-app-typescript.

DorianGrey avatar DorianGrey commented on August 18, 2024 1

@LucienLee: Enforcing this was not the intention of this change. Before it, the TSLint config contained a lot of rules related to opinionated code style, like ' vs ", of stuff about whitespacing. Some of these rules are also enabled by default when using one of the TSLint standard configurations.
The intention was to kick style related rules from the config, e.g. for using tools like prettier to format the code automatically. And that config package does a good job for achieving this.

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

I will accept a PR to implement this 👍

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

@corydeppen I don't believe anyone is working on this. Very happy to accept a PR 😄

from create-react-app-typescript.

corydeppen avatar corydeppen commented on August 18, 2024

It might be good to include this in the work @timjacobi is doing related to #109. Thoughts?

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

Sounds good, check #112

from create-react-app-typescript.

nielsdB97 avatar nielsdB97 commented on August 18, 2024

@wmonk I think this can be closed now 🙂

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

Thanks!

from create-react-app-typescript.

LucienLee avatar LucienLee commented on August 18, 2024

Hi, #281 included tslint-config-prettier, which turns off conflict tslint rule with prettier. However, that doesn't enable prettier code style. If we want to use prettier code style, we have to include tslint-plugin-prettier.

@wmonk how do you think? I can make PR for this.

from create-react-app-typescript.

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.