-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghas prthere is a PR raised to close thisthere is a PR raised to close thispackage: websiteIssues related to the @typescript-eslint websiteIssues related to the @typescript-eslint website
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
armano2 and whalderman
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghas prthere is a PR raised to close thisthere is a PR raised to close thispackage: websiteIssues related to the @typescript-eslint websiteIssues related to the @typescript-eslint website