Skip to content

Commit 33ea939

Browse files
committed
docs: change sourceType in no-eval examples
1 parent 1324af0 commit 33ea939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/rules/no-eval.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This rule is aimed at preventing potentially dangerous, unnecessary, and slow co
2323

2424
Examples of **incorrect** code for this rule:
2525

26-
::: incorrect
26+
::: incorrect { "sourceType": "script" }
2727

2828
```js
2929
/*eslint no-eval: "error"*/
@@ -71,7 +71,7 @@ global.eval("const a = 0");
7171

7272
Examples of **correct** code for this rule:
7373

74-
::: correct
74+
::: correct { "sourceType": "script" }
7575

7676
```js
7777
/*eslint no-eval: "error"*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy