@next/eslint-plugin-next
Advanced tools
Comparing version 13.5.7-canary.37 to 13.5.7
@@ -34,3 +34,3 @@ "use strict"; | ||
if (isGoogleFont) { | ||
var params = new URLSearchParams(hrefValue.split("?", 2)[1]); | ||
var params = new URLSearchParams(hrefValue.split("?")[1]); | ||
var displayValue = params.get("display"); | ||
@@ -37,0 +37,0 @@ if (!params.has("display")) { |
@@ -91,3 +91,3 @@ "use strict"; | ||
} | ||
var document = context.getFilename().split("pages", 2)[1]; | ||
var document = context.getFilename().split("pages")[1]; | ||
if (document && _path.parse(document).name.startsWith("_document")) { | ||
@@ -94,0 +94,0 @@ return; |
@@ -60,3 +60,3 @@ "use strict"; | ||
} | ||
var document = context.getFilename().split("pages", 2)[1]; | ||
var document = context.getFilename().split("pages")[1]; | ||
if (!document) { | ||
@@ -63,0 +63,0 @@ return; |
@@ -57,3 +57,3 @@ "use strict"; | ||
JSXOpeningElement: function JSXOpeningElement(node) { | ||
var document = context.getFilename().split("pages", 2)[1]; | ||
var document = context.getFilename().split("pages")[1]; | ||
if (!document) { | ||
@@ -60,0 +60,0 @@ return; |
@@ -115,3 +115,3 @@ "use strict"; | ||
ExportNamedDeclaration: function ExportNamedDeclaration(node) { | ||
var page = context.getFilename().split("pages", 2)[1]; | ||
var page = context.getFilename().split("pages")[1]; | ||
if (!page || _path.parse(page).dir.startsWith("/api")) { | ||
@@ -118,0 +118,0 @@ return; |
@@ -122,4 +122,4 @@ "use strict"; | ||
} | ||
url = url.split("?", 1)[0]; | ||
url = url.split("#", 1)[0]; | ||
url = url.split("?")[0]; | ||
url = url.split("#")[0]; | ||
url = url = url.replace(/(\/index\.html)$/, "/"); | ||
@@ -126,0 +126,0 @@ // Empty URLs should not be trailed with `/`, e.g. `#heading` |
{ | ||
"name": "@next/eslint-plugin-next", | ||
"version": "13.5.7-canary.37", | ||
"version": "13.5.7", | ||
"description": "ESLint plugin for Next.js.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
9
79846