taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

button-without-type.yaml (281B)


      1 id: find-button-missing-type
      2 language: tsx
      3 rule:
      4   kind: identifier
      5   regex: "^button$"
      6   inside:
      7     kind: jsx_opening_element
      8     not:
      9       has:
     10         kind: jsx_attribute
     11         has:
     12           kind: property_identifier
     13           regex: "^type$"
     14 fix: "button type=\"button\""