Closed
Description
@rsbuild/plugin-check-syntax plugin with ecmaVersion: 6. The plugin reports an error on valid ES6 syntax.
Specifically, the plugin flags the following constructor pattern as an error:
export class ORPCError<TCode extends ORPCErrorCode, TData> extends Error {
readonly defined: boolean
readonly code: TCode
readonly status: number
readonly data: TData
constructor(code: TCode, ...[options]: MaybeOptionalOptions<ORPCErrorOptions<TData>>) {
// ....
}
}
This syntax combines parameter destructuring with rest parameters, which are both standard ES6 (ES2015) features that should be compatible with the ecmaVersion: 6 setting.
Metadata
Metadata
Assignees
Labels
No labels