Comments (10)
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.
@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.
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.
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.
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.
@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.
@bradzacher any work on this issue?
from typescript-eslint.
@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.
Seems like this issue is resolved now? :)
from typescript-eslint.
Yep! Thanks for pointing it out @jhnns
from typescript-eslint.
Related Issues (20)
- Bug: [no-unnecessary-condition] reports on indirect eval HOT 5
- Enhancement: Support `${configDir}` in `tsconfig.json` HOT 7
- Bug: [no-var-requires] false positive on TemplateLiteral HOT 4
- TypeScript 5.5 Support
- Docs: contributing docs should say how to update rule doc code example snapshots HOT 2
- Enhancement: Finalize naming for EXPERIMENTAL_useProjectService HOT 1
- Enhancement: Finalize naming for EXPERIMENTAL_useProjectService
- Repo: Test rule-tester in CI HOT 1
- Bug: [no-unnecessary-type-assertion] false positive when casting to HTMLElement (from Element) HOT 6
- Bug: object-shorthand loses type parameters when auto-fixing HOT 3
- Enhancement: [strict-boolean-expressions] Check truthiness assertion functions
- Repo: rule-tester's eslint-base test failing on main
- Repo: rule-tester tests failing on v8 HOT 1
- Bug: <short description of the issue> HOT 3
- Enhancement(rule-tester): Stricter rule test validations
- Enhancement(rule-tester): FlatRuleTester -> RuleTester
- Enhancement(rule-tester): detect duplicate test cases
- Enhancement(rule-tester): check for parsing errors in suggestion fixes
- Enhancement(rule-tester): check for missing placeholder data in the message
- Docs: Add blog post announcing v8 beta
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-eslint.