eslint-plugin-moxio
Advanced tools
Comparing version 4.4.0 to 4.5.0
@@ -133,3 +133,7 @@ /*global module*/ | ||
if (property.key && property.key.value) { | ||
checkCssClassAttribute(property.key.value, property); | ||
if (property.value && property.value.type === "JSXElement") { | ||
//Skip assignment {$: JSXElement}, not triggering a css class. | ||
} else { | ||
checkCssClassAttribute(property.key.value, property); | ||
} | ||
} | ||
@@ -136,0 +140,0 @@ |
{ | ||
"name": "eslint-plugin-moxio", | ||
"version": "4.4.0", | ||
"version": "4.5.0", | ||
"description": "Custom rules for ESLint as used at Moxio", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,1 +1,2 @@ | ||
![CI](https://github.com/Moxio/eslint-plugin-moxio/workflows/CI/badge.svg) | ||
[![NPM version](https://img.shields.io/npm/v/eslint-plugin-moxio.svg)](https://www.npmjs.com/package/eslint-plugin-moxio) | ||
@@ -2,0 +3,0 @@ |
@@ -52,2 +52,8 @@ /* global require */ | ||
}, | ||
{ | ||
code: 'const properties = { "restricted-css-class": <div /> }', | ||
filename: 'file.tsx', | ||
errors: default_errors, | ||
options: default_options | ||
}, | ||
//Test to see if windows file paths are normalized | ||
@@ -54,0 +60,0 @@ { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
27935
625
161