[chore]: add stricter linting rules

Merged
SE
10mo ago
+61-0

why

  • for better code hygiene

what changed

  • added some basic security linting rules

Summary by cubic

Added stricter ESLint security rules to block eval and dynamic Function usage. This improves code hygiene and catches unsafe patterns early.

  • Refactors

    • Enforce no-eval, no-implied-eval, and no-new-func.
    • Block Function constructors (direct, window.Function, globalThis.Function).
    • Enable security/detect-eval-with-expression.
  • Dependencies

    • Add eslint-plugin-security.