Ignore report for typedef and property definition.
The following code causes the reports for Typedef
and this.prop
from original no-unused-expressions
:
/**
* @typedef {{field: number}}
*/
let Typedef;
class Klass {
constructor() {
/**
* @type {number}
*/
this.prop;
}
}
but doesn't when interfaced/no-unused-expressions
is used.