Closed
Description
/* eslint "@typescript-eslint/prefer-readonly-parameter-types": "error" */
function foo(arg: string[]) {}
This should error because the array is mutable. But it doesn't.
Debugging a bit - for some reason the type of arg
is {}
.
Maybe there's a config issue somewhere?
cc @armano2