]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/capitalized-comments.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / capitalized-comments.js
index ba798d428580b2aa1c60f90fa6859b78562e1bd5..3a17b05662016a457e92dd3aafabb545c30ce024 100644 (file)
@@ -107,7 +107,7 @@ module.exports = {
         docs: {
             description: "Enforce or disallow capitalization of the first letter of a comment",
             recommended: false,
-            url: "https://eslint.org/docs/rules/capitalized-comments"
+            url: "https://eslint.org/docs/latest/rules/capitalized-comments"
         },
 
         fixable: "code",
@@ -139,7 +139,7 @@ module.exports = {
 
         const capitalize = context.options[0] || "always",
             normalizedOptions = getAllNormalizedOptions(context.options[1]),
-            sourceCode = context.getSourceCode();
+            sourceCode = context.sourceCode;
 
         createRegExpForIgnorePatterns(normalizedOptions);