stylelint-performance-animation
Stylelint rule for preventing the use of low performance animation and transition.
Install
npm install stylelint-performance-animation --save-dev
or
yarn add stylelint-performance-animation --save-dev
Usage
Add this config to your .stylelintrc
:
Details
/** ^^^^^^ * You should not use low performance animation properties */
@ }/** ^^^^^^ * You should not use low performance animation properties */
For more information read article By Paul Lewis and Paul Irish
Options
true
The following pattern is considered warning:
The following pattern is not considered warning:
Optional secondary options
ignore: [string]
Given:
{ ignore: ['color', 'background-color'] }
The following pattern is considered warning:
The following pattern is not considered warning:
License
MIT © Vinston Wolf