Socket
Socket
Sign inDemoInstall

@next/eslint-plugin-next

Package Overview
Dependencies
Maintainers
5
Versions
1996
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@next/eslint-plugin-next - npm Package Compare versions

Comparing version 13.5.7-canary.37 to 13.5.7

2

dist/rules/google-font-display.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc