hashedAnimationLinter.js 332 B

123456789
  1. import { lintWarning } from './utils';
  2. const linter = (key, value, info) => {
  3. if (key === 'animation') {
  4. if (info.hashId && value !== 'none') {
  5. lintWarning(`You seem to be using hashed animation '${value}', in which case 'animationName' with Keyframe as value is recommended.`, info);
  6. }
  7. }
  8. };
  9. export default linter;