Code Monkey home page Code Monkey logo

Comments (10)

bradzacher avatar bradzacher commented on May 16, 2024 1

Ha ha no problem.

I don't think that more config would be a bad thing, as long as it's easy to keep the current "no anys are okay" functionality.

Considering we cut the rule down 5 lines, it should be fine to add some complexity back :)

from typescript-eslint.

weirdpattern avatar weirdpattern commented on May 16, 2024 1

@armano2 I agree. I already have some options in mind, but I won't be able to work on this until after the holidays.

from typescript-eslint.

kirstu avatar kirstu commented on May 16, 2024 1

One such case is typing generic rest parameters / function arguments:

type HigherOrderFn = <TArgs extends any[], TVal>(fn: (...args: TArgs): TVal): TVal

More in Typescript site

from typescript-eslint.

bradzacher avatar bradzacher commented on May 16, 2024

multiple cases that are currently supported

There aren't any individual cases any more, thanks to the new types provided by the parser!
https://github.com/bradzacher/eslint-plugin-typescript/blob/63311f3d0aca0ad93584eef69180862b8ed25bb8/lib/rules/no-explicit-any.js#L28-L33

from typescript-eslint.

weirdpattern avatar weirdpattern commented on May 16, 2024

Ha! I was doing this from memory...
I probably should stop doing that as this plugin has changed a lot since we moved to the latest typescript parser... anyway... unless I'm missing something (and I apologize if I am... I've been a little busy with a toddler and a new baby on the way) I think this is still a valid request, isn't it? Would be nice to have a little more control over what gets validated vs ignored.

from typescript-eslint.

armano2 avatar armano2 commented on May 16, 2024

@weirdpattern we can add configuration

but we have to define first, base on what we want to limit reporting, and by default all options should be enabled :)

from typescript-eslint.

aggmoulik avatar aggmoulik commented on May 16, 2024

@bradzacher any work on this issue?

from typescript-eslint.

bradzacher avatar bradzacher commented on May 16, 2024

@moulikcipherX - there hasn't been anything done!
it's difficult though because we don't currently have any "cases" so it'll be a bit of work/discussion to decide what should have options.

However right now there hasn't been anyone asking for options (not even +1's on this issue) - so I wouldn't class this as a high priority enhancement

from typescript-eslint.

jhnns avatar jhnns commented on May 16, 2024

Seems like this issue is resolved now? :)

from typescript-eslint.

JamesHenry avatar JamesHenry commented on May 16, 2024

Yep! Thanks for pointing it out @jhnns

from typescript-eslint.

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.