]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/no-floating-decimal.js
import 8.41.0 source
[pve-eslint.git] / eslint / lib / rules / no-floating-decimal.js
index cce50bf9dadb8554148111afc770bbe60786eb8b..c26876440a588a53b2d92761277b3542f07f50f4 100644 (file)
@@ -23,7 +23,7 @@ module.exports = {
         docs: {
             description: "Disallow leading or trailing decimal points in numeric literals",
             recommended: false,
-            url: "https://eslint.org/docs/rules/no-floating-decimal"
+            url: "https://eslint.org/docs/latest/rules/no-floating-decimal"
         },
 
         schema: [],
@@ -35,7 +35,7 @@ module.exports = {
     },
 
     create(context) {
-        const sourceCode = context.getSourceCode();
+        const sourceCode = context.sourceCode;
 
         return {
             Literal(node) {