Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@next/eslint-plugin-next

Package Overview
Dependencies
Maintainers
8
Versions
2057
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 9.4.2-canary.1 to 9.4.2-canary.2

8

lib/rules/no-css-tags.js

@@ -1,2 +0,2 @@

module.exports = function(context) {
module.exports = function (context) {
return {

@@ -13,6 +13,8 @@ JSXOpeningElement(node) {

node.attributes.find(
attr => attr.name.name === 'rel' && attr.value.value === 'stylesheet'
(attr) =>
attr.name.name === 'rel' && attr.value.value === 'stylesheet'
) &&
node.attributes.find(
attr => attr.name.name === 'href' && !/^https?/.test(attr.value.value)
(attr) =>
attr.name.name === 'href' && !/^https?/.test(attr.value.value)
)

@@ -19,0 +21,0 @@ ) {

@@ -1,2 +0,2 @@

module.exports = function(context) {
module.exports = function (context) {
return {

@@ -12,5 +12,5 @@ JSXOpeningElement(node) {

if (
node.attributes.find(attr => attr.name.name === 'src') &&
node.attributes.find((attr) => attr.name.name === 'src') &&
!node.attributes.find(
attr => attr.name.name === 'async' || attr.name.name === 'defer'
(attr) => attr.name.name === 'async' || attr.name.name === 'defer'
)

@@ -17,0 +17,0 @@ ) {

{
"name": "@next/eslint-plugin-next",
"version": "9.4.2-canary.1",
"version": "9.4.2-canary.2",
"description": "ESLint plugin for NextJS.",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

},
"gitHead": "2b5875502755ddc49244a8f8f2e8a25e3bbd5da6"
"gitHead": "53a2cebdf69e6a7e3b7bed2651fafd8dc92dc946"
}
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