]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/max-lines.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / max-lines.js
index d0e5bad3b2b722b76a7e6f406ca54047dd3f8156..e85d44290814b5534df68ef32df9c0327d7c867a 100644 (file)
@@ -36,7 +36,7 @@ module.exports = {
         docs: {
             description: "Enforce a maximum number of lines per file",
             recommended: false,
-            url: "https://eslint.org/docs/rules/max-lines"
+            url: "https://eslint.org/docs/latest/rules/max-lines"
         },
 
         schema: [
@@ -87,7 +87,7 @@ module.exports = {
         const skipComments = option && option.skipComments;
         const skipBlankLines = option && option.skipBlankLines;
 
-        const sourceCode = context.getSourceCode();
+        const sourceCode = context.sourceCode;
 
         /**
          * Returns whether or not a token is a comment node type