Skip to content

Chores: Add private-fields-in-in AST to typings #1564

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

Merged
merged 1 commit into from
Jul 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rules/require-valid-default-prop.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ module.exports = {
}
}
},
onDefinePropsExit(node) {
onDefinePropsExit() {
scriptSetupPropsContexts.pop()
}
})
Expand Down
13 changes: 11 additions & 2 deletions typings/eslint-plugin-vue/util-types/ast/es-ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,12 +441,21 @@ export type BinaryOperator =
| 'in'
| 'instanceof'
| '**'
export interface BinaryExpression extends HasParentNode {
interface BinaryExpressionWithoutIn extends HasParentNode {
type: 'BinaryExpression'
operator: BinaryOperator
operator: Exclude<BinaryOperator, 'in'>
left: Expression
right: Expression
}
interface BinaryExpressionWithIn extends HasParentNode {
type: 'BinaryExpression'
operator: 'in'
left: Expression | PrivateIdentifier
right: Expression
}
export type BinaryExpression =
| BinaryExpressionWithoutIn
| BinaryExpressionWithIn
export type AssignmentOperator =
| '='
| '+='
Expand Down