hashedAnimationLinter.js 482 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _utils = require("./utils");
  7. var linter = function linter(key, value, info) {
  8. if (key === 'animation') {
  9. if (info.hashId && value !== 'none') {
  10. (0, _utils.lintWarning)("You seem to be using hashed animation '".concat(value, "', in which case 'animationName' with Keyframe as value is recommended."), info);
  11. }
  12. }
  13. };
  14. var _default = exports.default = linter;