Skip to content

[FEATURE] Add TypeScript AST Scanner Support #19

Description

@KbWen

Problem Description

Currently, �st_js_scanner.py works great for parsing Javascript files using an AST checker. However, TypeScript files (.ts, .tsx) are widely used in AI-based web development but are currently skipped or parsed as regular JS, resulting in syntax errors due to TS-specific syntax (types, interfaces, generics).

Proposed Feature

  1. Implement �st_ts_scanner.py to parse TypeScript source files.
  2. Integrate with a TS-compatible parser or leverage esprima with appropriate TS options.
  3. Support scanning TS files for sensitive logic, mock key bypasses, and pattern vulnerabilities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions