Socket
Socket
Sign inDemoInstall

@next/eslint-plugin-next

Package Overview
Dependencies
Maintainers
8
Versions
2016
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.5-canary.0 to 9.4.5-canary.1

7

lib/rules/no-css-tags.js

@@ -11,8 +11,11 @@ module.exports = function (context) {

const attributes = node.attributes.filter(
(attr) => attr.type === 'JSXAttribute'
)
if (
node.attributes.find(
attributes.find(
(attr) =>
attr.name.name === 'rel' && attr.value.value === 'stylesheet'
) &&
node.attributes.find(
attributes.find(
(attr) =>

@@ -19,0 +22,0 @@ attr.name.name === 'href' && !/^https?/.test(attr.value.value)

@@ -10,8 +10,9 @@ module.exports = function (context) {

}
const attributeNames = node.attributes
.filter((attr) => attr.type === 'JSXAttribute')
.map((attr) => attr.name.name)
if (
node.attributes.find((attr) => attr.name.name === 'src') &&
!node.attributes.find(
(attr) => attr.name.name === 'async' || attr.name.name === 'defer'
)
attributeNames.includes('src') &&
!attributeNames.includes('async') &&
!attributeNames.includes('defer')
) {

@@ -18,0 +19,0 @@ context.report({

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

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

},
"gitHead": "ad145d347f7fed2b8200708d1f9d2040e71da07c"
"gitHead": "a62aadddab208264613839ed8de97ae6bf95a4e9"
}
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