ronantakizawa/codereview-bench huggingface dataset:
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
			code: "global['setTimeout']('foo')",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "global['setInterval']('foo')",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "globalThis.setTimeout('foo')",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "globalThis['setInterval']('foo')",
			languageOptions: { ecmaVersion: 2017, globals: globals.browser },
		},

		{
			code: "window[`SetTimeOut`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`SetTimeOut`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "globalThis[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 2020, globals: globals.browser },
		},

		// normal usage
		{
			code: "setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{

Review comment (suggestion):
```suggestion
```

`global` is enabled as a global by `sourceType: "commonjs"`.

Code after:
			code: "global['setInterval']('foo')",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "globalThis.setTimeout('foo')",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "globalThis['setInterval']('foo')",
			languageOptions: { ecmaVersion: 2017, globals: globals.browser },
		},

		{
			code: "window[`SetTimeOut`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`SetTimeOut`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
			},
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
			},
		},
		{
			code: "globalThis[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 2020 },
		},

		// normal usage
		{
			code: "setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: { execScript: false } },
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
			code: "globalThis['setInterval']('foo')",
			languageOptions: { ecmaVersion: 2017, globals: globals.browser },
		},

		{
			code: "window[`SetTimeOut`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`SetTimeOut`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "globalThis[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 2020, globals: globals.browser },
		},

		// normal usage
		{
			code: "setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{

Review comment (suggestion):
```suggestion
```

Same as the previous comment.

Code after:
		{
			code: "window[`SetTimeOut`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`SetTimeOut`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
			},
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
			},
		},
		{
			code: "globalThis[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 2020 },
		},

		// normal usage
		{
			code: "setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: { execScript: false } },
		},
		{
			code: "window.setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
			code: "window[`SetTimeOut`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`SetTimeOut`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "globalThis[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 2020, globals: globals.browser },
		},

		// normal usage
		{
			code: "setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(function() { x = 1; }, 100);",

Review comment (suggestion):
```suggestion
			languageOptions: { ecmaVersion: 2020 },
```

`globalThis` is enabled as a global by `ecmaVersion: 2020`.

Code after:
			code: "global[`SetTimeOut`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
			},
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 6, globals: globals.browser },
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
			},
		},
		{
			code: "globalThis[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 2020 },
		},

		// normal usage
		{
			code: "setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: { execScript: false } },
		},
		{
			code: "window.setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
		},
		{
			code: "global[`setTimeout${foo}`]('foo', 100);",
			languageOptions: {
				ecmaVersion: 6,
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "globalThis[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 2020, globals: globals.browser },
		},

		// normal usage
		{
			code: "setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(foo, 100);",
			languageOptions: { globals: globals.browser },
		},

Review comment (suggestion):
```suggestion
			languageOptions: { globals: { execScript: false } },
```

`execScript` is not in `globals.browser`.

Code after:
				sourceType: "commonjs",
			},
		},
		{
			code: "globalThis[`setTimeout${foo}`]('foo', 100);",
			languageOptions: { ecmaVersion: 2020 },
		},

		// normal usage
		{
			code: "setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: { execScript: false } },
		},
		{
			code: "window.setTimeout(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "global.setTimeout(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
		},
		{
			code: "window.setInterval(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "global.setTimeout(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(foo, 100);",

Review comment (suggestion):
```suggestion
```

`global` is enabled as a global by `sourceType: "commonjs"`.

Code after:
			code: "window.execScript(function() { x = 1; }, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "global.setTimeout(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setTimeout(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.setInterval(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "global.setTimeout(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(foo, 100);",

Review comment (suggestion):
```suggestion
```

Same as the previous comment.

Code after:
		{
			code: "window.setInterval(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "global.setTimeout(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "globalThis.setTimeout(foo, 100);",
			languageOptions: { ecmaVersion: 2020 },
		},

		// only checks on top-level statements or window.*
		{
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
			code: "window.setInterval(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "window.execScript(foo, 100);",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "global.setTimeout(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "globalThis.setTimeout(foo, 100);",

Review comment (suggestion):
```suggestion
```

Same as the previous comment.

Code after:
		},
		{
			code: "global.setTimeout(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "globalThis.setTimeout(foo, 100);",
			languageOptions: { ecmaVersion: 2020 },
		},

		// only checks on top-level statements or window.*
		{
			code: "foo.setTimeout('hi')",
			languageOptions: { globals: globals.browser },
		},

		// identifiers are fine
		{
			code: "setTimeout(foo, 10)",
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
		{
			code: "global.setTimeout(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "globalThis.setTimeout(foo, 100);",
			languageOptions: { ecmaVersion: 2020, globals: globals.browser },
		},

		// only checks on top-level statements or window.*
		{
			code: "foo.setTimeout('hi')",
			languageOptions: { globals: globals.browser },

Review comment (suggestion):
```suggestion
```

Same as the previous comment.

Code after:
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "globalThis.setTimeout(foo, 100);",
			languageOptions: { ecmaVersion: 2020 },
		},

		// only checks on top-level statements or window.*
		{
			code: "foo.setTimeout('hi')",
			languageOptions: { globals: globals.browser },
		},

		// identifiers are fine
		{
			code: "setTimeout(foo, 10)",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(1, 10)",
			languageOptions: { globals: globals.browser },
		},
		{
Repository: eslint/eslint
File: tests/lib/rules/no-implied-eval.js (JavaScript)

Code before:
		{
			code: "global.setInterval(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "global.execScript(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
				globals: globals.browser,
			},
		},
		{
			code: "globalThis.setTimeout(foo, 100);",
			languageOptions: { ecmaVersion: 2020, globals: globals.browser },
		},

		// only checks on top-level statements or window.*
		{
			code: "foo.setTimeout('hi')",
			languageOptions: { globals: globals.browser },
		},

		// identifiers are fine
		{
			code: "setTimeout(foo, 10)",
			languageOptions: { globals: globals.browser },
		},

Review comment (suggestion):
```suggestion
```

Same as the previous comment.

Code after:
			code: "global.execScript(function() { x = 1; }, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setTimeout(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.setInterval(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "global.execScript(foo, 100);",
			languageOptions: {
				sourceType: "commonjs",
			},
		},
		{
			code: "globalThis.setTimeout(foo, 100);",
			languageOptions: { ecmaVersion: 2020 },
		},

		// only checks on top-level statements or window.*
		{
			code: "foo.setTimeout('hi')",
			languageOptions: { globals: globals.browser },
		},

		// identifiers are fine
		{
			code: "setTimeout(foo, 10)",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "setInterval(1, 10)",
			languageOptions: { globals: globals.browser },
		},
		{
			code: "execScript(2)",
			languageOptions: { globals: { execScript: false } },
		},

		// as are function expressions
		{
			code: "setTimeout(function() {}, 10)",