]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/array-bracket-spacing.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / array-bracket-spacing.js
index 5e7cea9ba587c2c7b105d52154a5d800d6651bd2..e3a46d82214ea89ea927f44c30c478080530a489 100644 (file)
@@ -18,7 +18,7 @@ module.exports = {
         docs: {
             description: "Enforce consistent spacing inside array brackets",
             recommended: false,
-            url: "https://eslint.org/docs/rules/array-bracket-spacing"
+            url: "https://eslint.org/docs/latest/rules/array-bracket-spacing"
         },
 
         fixable: "whitespace",
@@ -53,7 +53,7 @@ module.exports = {
     },
     create(context) {
         const spaced = context.options[0] === "always",
-            sourceCode = context.getSourceCode();
+            sourceCode = context.sourceCode;
 
         /**
          * Determines whether an option is set, relative to the spacing option.