GithubHelp home page GithubHelp logo

Comments (5)

saadq avatar saadq commented on September 25, 2024 1

Changed my mind, lol

#18

from lynt.

danielpza avatar danielpza commented on September 25, 2024

With tslint I had something like

"no-floating-promises": [true, "DocumentQuery", "Query", "MongooseThenable"],

from lynt.

saadq avatar saadq commented on September 25, 2024

Unfortunately a lot of the TS errors were added in pretty hastily when I was creating the initial TSLint config, so there are a lot of overly oppressive rules right now that will be removed very soon. They are being kept track of in this issue.

I don't think it would be a good idea to try to come up with every case with for Promise-like stuff, so I think it might be just a good idea to remove this rule altogether and add it to that issue. Thoughts?

from lynt.

danielpza avatar danielpza commented on September 25, 2024

Sounds good for me, maybe we could make a .lyntrc file like prettier to allow altering these rules a little

from lynt.

saadq avatar saadq commented on September 25, 2024

Fixed by #16. There is already support for a .lyntrc file as noted here, but it is only for the same stuff that the CLI offers like ignore and such. I don't really want to add support for configuration of rules, because I think that vastly takes away from the point of this project.

The one thing I may consider is adding a disable property to the settings which allows you to turn off any of the rules, but I think having something like enable wouldn't make sense – the rules that you would want to enable should already exist in lynt, and if they don't an issue should be raised about it or there is already a good reason why it shouldn't be in there.

from lynt.

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.