New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-widen-emotion

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-widen-emotion - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

4

lib/rules/no-conditional-css-prop.d.ts
import { Rule } from 'eslint';
declare const _default: Rule.RuleModule;
export default _default;
declare const noConditionalCssProp: Rule.RuleModule;
export default noConditionalCssProp;

@@ -13,3 +13,3 @@ function detectConditionalExpression(expression, context, node) {

}
export default {
const noConditionalCssProp = {
create(context) {

@@ -39,4 +39,4 @@ return {

category: 'Best Practices',
description: 'Disallow conditionals within the css prop, move them to the style prop. This increases the render performance.',
example: `
description: `Disallow conditionals within the css prop, move them to the style prop. This increases the render performance.,
// Before

@@ -54,1 +54,2 @@ <div css={[randomDivStyle, isRed ? {color: "red"} : null]} />

};
export default noConditionalCssProp;

@@ -25,3 +25,3 @@ {

},
"version": "1.2.0"
"version": "1.3.0"
}
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