-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(typescript-estree): disallow binding patterns in parameter properties #11760
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
Changes from all commits
a6aebe2
f288225
5c6e3df
e9ef2e9
547b55f
511efef
a9f77a1
647b65d
6b175b7
d824304
529ae16
c2ee584
348e7d7
ed93f1c
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| class Test { constructor(private [foo] = [1]) {} } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| class Test { constructor(private { bar } = { bar: 1 }) {} } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| class Test { constructor(private ...baz) {} } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,20 @@ | ||
| import type { AST_NODE_TYPES } from '../../ast-node-types'; | ||
| import type { Accessibility } from '../../base/Accessibility'; | ||
| import type { BaseNode } from '../../base/BaseNode'; | ||
| import type { Identifier } from '../../expression/Identifier/spec'; | ||
| import type { Decorator } from '../../special/Decorator/spec'; | ||
| import type { BindingName } from '../../unions/BindingName'; | ||
| import type { AssignmentPattern } from '../AssignmentPattern/spec'; | ||
| import type { RestElement } from '../RestElement/spec'; | ||
|
|
||
| type ParameterPropertyParameter = | ||
| | (AssignmentPattern & { left: Identifier }) | ||
| | Identifier; | ||
|
|
||
| export interface TSParameterProperty extends BaseNode { | ||
| type: AST_NODE_TYPES.TSParameterProperty; | ||
| accessibility: Accessibility | undefined; | ||
| decorators: Decorator[]; | ||
| override: boolean; | ||
| parameter: AssignmentPattern | BindingName | RestElement; | ||
| parameter: ParameterPropertyParameter; | ||
| readonly: boolean; | ||
| static: boolean; | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.