]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/no-confusing-arrow.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / no-confusing-arrow.js
index d2b6641b74fdbc98bb38e86280eb7ec809231662..de6e2f30c2ed8eb345e2a9104296092cbd448f42 100644 (file)
@@ -33,7 +33,7 @@ module.exports = {
         docs: {
             description: "Disallow arrow functions where they could be confused with comparisons",
             recommended: false,
-            url: "https://eslint.org/docs/rules/no-confusing-arrow"
+            url: "https://eslint.org/docs/latest/rules/no-confusing-arrow"
         },
 
         fixable: "code",
@@ -56,7 +56,7 @@ module.exports = {
         const config = context.options[0] || {};
         const allowParens = config.allowParens || (config.allowParens === void 0);
         const onlyOneSimpleParam = config.onlyOneSimpleParam;
-        const sourceCode = context.getSourceCode();
+        const sourceCode = context.sourceCode;
 
 
         /**