hashedAnimationLinter.js 352 B

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