]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/sort-vars.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / sort-vars.js
index ec0718ee578c742c3f3dedad3da7c94acf7d36c5..8fd723fd4e5b06cd24e337f608b401bf30399de3 100644 (file)
@@ -17,7 +17,7 @@ module.exports = {
         docs: {
             description: "Require variables within the same declaration block to be sorted",
             recommended: false,
-            url: "https://eslint.org/docs/rules/sort-vars"
+            url: "https://eslint.org/docs/latest/rules/sort-vars"
         },
 
         schema: [
@@ -44,7 +44,7 @@ module.exports = {
 
         const configuration = context.options[0] || {},
             ignoreCase = configuration.ignoreCase || false,
-            sourceCode = context.getSourceCode();
+            sourceCode = context.sourceCode;
 
         return {
             VariableDeclaration(node) {