1.2.0
Changes:
- Added support for TypeScript-specific expressions:
TSAsExpression,TSTypeAssertion,TSNonNullExpression, and
TSInstantiationExpressionare now correctly flagged as unused (e.g.foo as any;,foo!;,Foo<string>;) - Added
ignoreDirectivesoption: when set to true, string-literal directives are always exempt regardless of
parser context (useful as an escape hatch forecmaVersion: 3environments) - Aligned directive detection with ESLint upstream: the parser-set directive AST property is now used as the
primary check, matching the behavior of ESLint's built-in rule