Skip to content

1.2.0

Choose a tag to compare

@ihordiachenko ihordiachenko released this 06 Apr 23:28
· 3 commits to master since this release

Changes:

  • Added support for TypeScript-specific expressions: TSAsExpression, TSTypeAssertion, TSNonNullExpression, and
    TSInstantiationExpression are now correctly flagged as unused (e.g. foo as any;, foo!;, Foo<string>;)
  • Added ignoreDirectives option: when set to true, string-literal directives are always exempt regardless of
    parser context (useful as an escape hatch for ecmaVersion: 3 environments)
  • 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