[chore]: add stricter linting rules
Merged
SE
10mo ago+61+61+01234567890123456789-0-0-0123456789
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.