Files
video-gen/video-gen-admin/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.js
T
2026-05-25 17:07:28 +08:00

9 lines
332 B
JavaScript

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