]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/no-div-regex.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / no-div-regex.js
index dd1c5782a58940bb449bc50fff9020033edd3f0c..208f840bef68c4e85d669aed100c4cf4b7d2aef1 100644 (file)
@@ -15,9 +15,9 @@ module.exports = {
         type: "suggestion",
 
         docs: {
-            description: "Disallow division operators explicitly at the beginning of regular expressions",
+            description: "Disallow equal signs explicitly at the beginning of regular expressions",
             recommended: false,
-            url: "https://eslint.org/docs/rules/no-div-regex"
+            url: "https://eslint.org/docs/latest/rules/no-div-regex"
         },
 
         fixable: "code",
@@ -30,7 +30,7 @@ module.exports = {
     },
 
     create(context) {
-        const sourceCode = context.getSourceCode();
+        const sourceCode = context.sourceCode;
 
         return {