X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=eslint%2Flib%2Frules%2Fmax-params.js;fp=eslint%2Flib%2Frules%2Fmax-params.js;h=213477a15c64ce83a01d3f382dec3e123bb798d6;hb=f2a92ac62f5c8e72451bd86e77e46c05e75cf42e;hp=8de1ab44b8ab548ddf1e7e57657b9a5dcf5a4c6b;hpb=28ff354db001e368c2497fb14373081a5dfad2fd;p=pve-eslint.git diff --git a/eslint/lib/rules/max-params.js b/eslint/lib/rules/max-params.js index 8de1ab4..213477a 100644 --- a/eslint/lib/rules/max-params.js +++ b/eslint/lib/rules/max-params.js @@ -24,7 +24,7 @@ module.exports = { docs: { description: "Enforce a maximum number of parameters in function definitions", recommended: false, - url: "https://eslint.org/docs/rules/max-params" + url: "https://eslint.org/docs/latest/rules/max-params" }, schema: [ @@ -57,7 +57,7 @@ module.exports = { }, create(context) { - const sourceCode = context.getSourceCode(); + const sourceCode = context.sourceCode; const option = context.options[0]; let numParams = 3;