-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): [no-redundant-type-constituents] use assignability checking for redundancy checks #10744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
e9c19a6
6207864
ac85ecb
11cc737
98ac978
f4939b7
a6c822a
91b9cc5
81264c0
686e5a0
6fa4e1b
567e062
a81a06e
7a8d574
ba0dd2d
70fbe0c
e2ded16
2b9d3b0
6e69343
c11d7c9
b92d6fa
db67764
f2aa34c
35d90d0
17bf29a
200f6f0
5c68891
23d8780
d240c5f
c01e485
5c0de98
b97cb46
04d71c1
28c64b4
f89b9a6
3ef7b27
f2eaf07
1457723
8a00f2b
729a6fc
e240759
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,7 @@ export default createRule({ | |
* @returns the name and attribute of the member or null if it's a member not relevant to the rule. | ||
*/ | ||
function getMemberMethod( | ||
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents | ||
member: Member | MemberDeclaration, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Member -> ProgramStatement -> Statement -> ClassDeclarationWithName |
||
): Method | null { | ||
switch (member.type) { | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to Merging Interfaces, it should not be considered as redundant types.
So I added a lint disable comment for the line.
typescript-eslint/packages/types/src/ts-estree.ts
Lines 92 to 96 in fa265a9