]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/func-call-spacing.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / func-call-spacing.js
index fec6763a2cdf809e5d5d15d8b941e62fb09d4884..3d5e538493e36cea5073d188286b51adc5292260 100644 (file)
@@ -23,7 +23,7 @@ module.exports = {
         docs: {
             description: "Require or disallow spacing between function identifiers and their invocations",
             recommended: false,
-            url: "https://eslint.org/docs/rules/func-call-spacing"
+            url: "https://eslint.org/docs/latest/rules/func-call-spacing"
         },
 
         fixable: "whitespace",
@@ -73,7 +73,7 @@ module.exports = {
 
         const never = context.options[0] !== "always";
         const allowNewlines = !never && context.options[1] && context.options[1].allowNewlines;
-        const sourceCode = context.getSourceCode();
+        const sourceCode = context.sourceCode;
         const text = sourceCode.getText();
 
         /**