react-code-dataset / wp-calypso /packages /eslint-plugin-wpcalypso /docs /rules /jsx-gridicon-size.md
Enforce recommended Gridicon size attributes
Gridicon JSX elements must use one of the recommended sizes.
In previous incarnations, this warning could be subdued by adding a nonStandardSize prop to the element, but it's recommended instead to disable the rule using standard ESLint rule options (documentation).
Rule Details
The following patterns are considered warnings:
<Gridicon size={ 20 } />;
The following patterns are not warnings:
<Gridicon size={ 18 } />;