]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/no-warning-comments.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / no-warning-comments.js
index 9754f50880b3725dba190c0a12c3d027cb0890c4..c415bee7a7b2134c510d9ae0af93250879c529f3 100644 (file)
@@ -22,7 +22,7 @@ module.exports = {
         docs: {
             description: "Disallow specified warning terms in comments",
             recommended: false,
-            url: "https://eslint.org/docs/rules/no-warning-comments"
+            url: "https://eslint.org/docs/latest/rules/no-warning-comments"
         },
 
         schema: [
@@ -58,7 +58,7 @@ module.exports = {
     },
 
     create(context) {
-        const sourceCode = context.getSourceCode(),
+        const sourceCode = context.sourceCode,
             configuration = context.options[0] || {},
             warningTerms = configuration.terms || ["todo", "fixme", "xxx"],
             location = configuration.location || "start",