Skip to content

Commit 2a6ddce

Browse files
v-sayapincamc314
andauthored
feat(linter/eslint): implement no-implied-eval rule (#22391)
Implements the `eslint/no-implied-eval` rule, which disallows string-evaluating calls through `setTimeout`, `setInterval` and `execScript` ESLint ref: https://eslint.org/docs/latest/rules/no-implied-eval Part of: #479 ### AI Disclosure Claude Opus 4.7 & Codex GPT 5.5 --------- Co-authored-by: Cameron Clark <cameron.clark@hey.com>
1 parent 7ffb710 commit 2a6ddce

9 files changed

Lines changed: 1828 additions & 2 deletions

File tree

apps/oxlint/src-js/package/config.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ export interface DummyRuleMap {
755755
"no-global-assign"?: DummyRule;
756756
"no-implicit-coercion"?: DummyRule;
757757
"no-implicit-globals"?: DummyRule;
758+
"no-implied-eval"?: DummyRule;
758759
"no-import-assign"?: DummyRule;
759760
"no-inline-comments"?: DummyRule;
760761
"no-inner-declarations"?: DummyRule;

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/generated/rules_enum.rs

Lines changed: 29 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/rules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ pub(crate) mod eslint {
115115
pub mod no_global_assign;
116116
pub mod no_implicit_coercion;
117117
pub mod no_implicit_globals;
118+
pub mod no_implied_eval;
118119
pub mod no_import_assign;
119120
pub mod no_inline_comments;
120121
pub mod no_inner_declarations;

0 commit comments

Comments
 (0)