]> 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 d80f87090a73f3ee497d4bea1b06853c0fe7d6dc..dac98b06b9e243f2f832d0f69e71361546124628 100644 (file)
@@ -11,14 +11,15 @@ const astUtils = require("./utils/ast-utils");
 // Rule Definition
 //------------------------------------------------------------------------------
 
+/** @type {import('../shared/types').Rule} */
 module.exports = {
     meta: {
         type: "layout",
 
         docs: {
-            description: "enforce consistent newlines before and after dots",
+            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: [
@@ -42,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.