docs: {
description: "Disallow the use of `alert`, `confirm`, and `prompt`",
recommended: false,
- url: "https://eslint.org/docs/rules/no-alert"
+ url: "https://eslint.org/docs/latest/rules/no-alert"
},
schema: [],
},
create(context) {
+ const sourceCode = context.sourceCode;
+
return {
CallExpression(node) {
const callee = skipChainExpression(node.callee),
- currentScope = context.getScope();
+ currentScope = sourceCode.getScope(node);
// without window.
if (callee.type === "Identifier") {