test()

in src/rules/tabindex-uses-button.js [10:17]


    test(_, props) {
        const hidden = hiddenFromAT(props);
        const href = 'href' in props;
        const button = props.role === 'button';
        const tabIndex = 'tabIndex' in props;

        return hidden || !tabIndex || href || button;
    }