cs
This commit is contained in:
15
node_modules/@ant-design/cssinjs/lib/linters/hashedAnimationLinter.js
generated
vendored
Normal file
15
node_modules/@ant-design/cssinjs/lib/linters/hashedAnimationLinter.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _utils = require("./utils");
|
||||
var linter = function linter(key, value, info) {
|
||||
if (key === 'animation') {
|
||||
if (info.hashId && value !== 'none') {
|
||||
(0, _utils.lintWarning)("You seem to be using hashed animation '".concat(value, "', in which case 'animationName' with Keyframe as value is recommended."), info);
|
||||
}
|
||||
}
|
||||
};
|
||||
var _default = exports.default = linter;
|
||||
Reference in New Issue
Block a user