How to change the state of the BPMNLINT button when the application starts

Hello, community,

When I turn on my BPMNLINT project the button is disabled and the errors are not visible, I need to create a button called to validate and when I click it, it changes the state of showing errors to true

image

When I click on the validate button it should show me the errors

image

How could I implement that functionality?

image

I need it to be activated when I click on the button in the image (1), called validate