@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
10 lines • 343 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;