]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/dot-location.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / dot-location.js
index 36b50b284cfe9998f6b0642452a50feea79f3fff..dac98b06b9e243f2f832d0f69e71361546124628 100644 (file)
@@ -19,7 +19,7 @@ module.exports = {
         docs: {
             description: "Enforce consistent newlines before and after dots",
             recommended: false,
-            url: "https://eslint.org/docs/rules/dot-location"
+            url: "https://eslint.org/docs/latest/rules/dot-location"
         },
 
         schema: [
@@ -43,7 +43,7 @@ module.exports = {
         // default to onObject if no preference is passed
         const onObject = config === "object" || !config;
 
-        const sourceCode = context.getSourceCode();
+        const sourceCode = context.sourceCode;
 
         /**
          * Reports if the dot between object and property is on the correct location.