[array-type] --fix doesn't parenthesize ReadonlyArray fixes correctly #2741
Labels
bug
Something isn't working
good first issue
Good for newcomers
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
Actual Result
Additional Info
The lack of parenthesis change which level of array is considered
readonly
(it goes from the inner array to the outer one), causing a meaningful semantic difference in the resulting code.Versions
@typescript-eslint/eslint-plugin
4.5.0
@typescript-eslint/parser
4.5.0
TypeScript
nightly development version - 11/5/2020
ESLint
7.12.1
node
10.22.0
The text was updated successfully, but these errors were encountered: