X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=eslint%2Flib%2Frules%2Fsort-imports.js;fp=eslint%2Flib%2Frules%2Fsort-imports.js;h=04814ed6fedcb6ffada4843cf4c0042d67d67da4;hb=f2a92ac62f5c8e72451bd86e77e46c05e75cf42e;hp=bfb0765baa5e6fa28c5a5a072659ec227ae3d924;hpb=28ff354db001e368c2497fb14373081a5dfad2fd;p=pve-eslint.git diff --git a/eslint/lib/rules/sort-imports.js b/eslint/lib/rules/sort-imports.js index bfb0765..04814ed 100644 --- a/eslint/lib/rules/sort-imports.js +++ b/eslint/lib/rules/sort-imports.js @@ -17,7 +17,7 @@ module.exports = { docs: { description: "Enforce sorted import declarations within modules", recommended: false, - url: "https://eslint.org/docs/rules/sort-imports" + url: "https://eslint.org/docs/latest/rules/sort-imports" }, schema: [ @@ -71,7 +71,7 @@ module.exports = { ignoreMemberSort = configuration.ignoreMemberSort || false, memberSyntaxSortOrder = configuration.memberSyntaxSortOrder || ["none", "all", "multiple", "single"], allowSeparatedGroups = configuration.allowSeparatedGroups || false, - sourceCode = context.getSourceCode(); + sourceCode = context.sourceCode; let previousDeclaration = null; /**