]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/keyword-spacing.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / keyword-spacing.js
index 59a500f5bfc272362208ff7f3dda7ae8709ad969..8ed82199810efa3ea0050df77e760deaae855321 100644 (file)
@@ -69,7 +69,7 @@ module.exports = {
         docs: {
             description: "Enforce consistent spacing before and after keywords",
             recommended: false,
-            url: "https://eslint.org/docs/rules/keyword-spacing"
+            url: "https://eslint.org/docs/latest/rules/keyword-spacing"
         },
 
         fixable: "whitespace",
@@ -108,7 +108,7 @@ module.exports = {
     },
 
     create(context) {
-        const sourceCode = context.getSourceCode();
+        const sourceCode = context.sourceCode;
 
         const tokensToIgnore = new WeakSet();