eslint-config-widen-emotion
Advanced tools
Comparing version 1.2.0 to 1.3.0
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" | ||
} |
4155