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

10 lines
341 B
JavaScript

import { lintWarning } from "./utils";
const linter = (key, value, info) => {
if (info.parentSelectors.some(selector => {
const selectors = selector.split(',');
return selectors.some(item => item.split('&').length > 2);
})) {
lintWarning('Should not use more than one `&` in a selector.', info);
}
};
export default linter;