@next/eslint-plugin-next
Advanced tools
Comparing version 9.4.2-canary.1 to 9.4.2-canary.2
@@ -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" | ||
} |
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
3093
68