Skip to content

Linter plugins: Remove ParenthesizedExpression from AST #13851

@overlookmotel

Description

@overlookmotel

ESLint and TS-ESLint parse with ParenthesizedExpressions disabled, so AST does not contain ParenthesizedExpression.

TS-ESLint playground

Oxlint runs parser with default options, so ParenthesizedExpressions are enabled. We need to remove them from JS-side AST for compat with ESLint.

We wouldn't want to change the options for the parser, because Rust rules may rely on ParenthesizedExpressions being present. Need to remove them during raw transfer deserialization instead.

Metadata

Metadata

Assignees

Labels

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions