Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
/* eslint "@typescript-eslint/prefer-readonly-parameter-types": "error" */functionfoo(arg:string[]){}
This should error because the array is mutable. But it doesn't.
Debugging a bit - for some reason the type ofarg
is{}
.
Maybe there's a config issue somewhere?
cc@armano2