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)
- Docs: broken anchor links in "This rule accepts the following options, and has more strict settings in the strict and strict-type-checked configs." HOT 1
- Base rule extension: [accessor-pairs] HOT 5
- Docs: Better Callouts for `all` / `strict` / `strict-type-checked` Config Stability
- Docs: Consider explicitly mentioning rule report properties as not covered by semver HOT 1
- Enhancement: [no-unnecessary-condition] Check truthiness assertion functions
- Configs: Apply changes to config presets for v8
- Enhancement: [prefer-nullish-coalescing] should ignore Boolean constructor HOT 4
- Repo: Use ESLint v9 for our internal linting HOT 3
- feat(eslint-plugin): remove deprecated no-throw-literal rule
- Docs: Updated typed linting docs for new project service
- Bug: incorrect peer dependencies in v8.0.0-alpha.10 packages HOT 6
- Parser: remove EXPERIMENTAL_useSourceOfProjectReferenceRedirect in favor of project service? HOT 1
- Repo: publishing v8 canary versions failed - "Not Found - PUT https://registry.npmjs.org/@typescript-eslint/types - Not found" HOT 2
- Bug: Broken examples? HOT 1
- Docs: Quickstart guide should be clear on type: module not being a requirement HOT 5
- Repo: Failing to publish new alpha versions of v8 post-v8.0.0-alpha.10 HOT 2
- Bug: [v8.0.0-alpha.10] incorrect error message `Parsing error: "parserOptions.programs"` HOT 1
- Bug: [member-ordering] Not Detecting Order For Read-Only Fields Correctly HOT 1
- Bug: Default configuration following https://typescript-eslint.io/getting-started results in error HOT 1
- Bug(typescript-estree): always parse mts/mjs as ESM for non-type-aware parsing HOT 1
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.