If you want to respect the ignore marker in EditorConfig,
you need either the EditorConfig extension or shfmt version 3.8.0 or newer.
Extension Settings
This extension contributes the following settings:
shfmt.executablePath: Path to or name of the shfmt executable.
shfmt.executableArgs: Additional arguments to pass to the shfmt executable.
shfmt.formatIgnored: Format files marked ignore with EditorConfig.
By default, shfmt itself only ignores those files when scanning directories,
but version 3.8.0 added the flag --apply-ignore to always apply ignore rules.
Changing this setting to false requires either shfmt 3.8.0 or later, or the EditorConfig extension.
Known Issues
shfmt supports a limited number of shells, and
Visual Studio Code cannot determine the shell used to interpret script.
If you use an unsupported shell (like zsh, or descendants of csh or ksh),
consider using editorconfig to let shfmt ignore their scripts.