Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 638 Bytes

no-unused-expressions.md

File metadata and controls

33 lines (25 loc) · 638 Bytes

interfaced/no-unused-expressions

Ignore report for typedef and property definition.

Examples

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.

Resources