Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 625 Bytes

no-param-reassign.md

File metadata and controls

29 lines (20 loc) · 625 Bytes

interfaced/no-param-reassign

Ignore report for self assignment with typecast.

Examples

The following code causes the reports for arg from original no-param-reassign:

function func(arg) {
	arg = /** @type {string} */ (arg);
}

and when props option is set to true:

function func(arg) {
	arg.a = /** @type {string} */ (arg.a);
}

but doesn't when interfaced/no-param-reassign is used.

Resources