taler-typescript-core

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

button-without-type.yaml (353B)


      1 # finds <button /> without type 
      2 # and suggest type="button" as default
      3 id: find-button-missing-type
      4 language: tsx
      5 rule:
      6   kind: identifier
      7   regex: "^button$"
      8   inside:
      9     kind: jsx_opening_element
     10     not:
     11       has:
     12         kind: jsx_attribute
     13         has:
     14           kind: property_identifier
     15           regex: "^type$"
     16 fix: "button type=\"button\""