You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of the languages parsed by the sh plugin support prettier pragma directives, preventing the use of requirePragma.
Adding support would involve adding a hasPragma method with the signature (string) => boolean to the sh parser definition that is used by all added languages. It's probably "good enough" to parse the file, get the first statement, and check the first comment for the pragma content.
The text was updated successfully, but these errors were encountered:
Kenneth-Sills
added a commit
to Kenneth-Sills/un-ts-prettier-plugins
that referenced
this issue
Jul 25, 2024
None of the languages parsed by the sh plugin support prettier pragma directives, preventing the use of
requirePragma
.Adding support would involve adding a
hasPragma
method with the signature(string) => boolean
to thesh
parser definition that is used by all added languages. It's probably "good enough" to parse the file, get the first statement, and check the first comment for the pragma content.The text was updated successfully, but these errors were encountered: