Function: apheleia-formatters-js-indent
apheleia-formatters-js-indent is a function alias for
apheleia-formatters-indent, defined in apheleia-utils.el.
This function is obsolete since 4.1; use apheleia-formatters-indent
instead.
Signature
(apheleia-formatters-js-indent TAB-FLAG INDENT-FLAG &optional INDENT-VAR)
Documentation
Set flag for indentation.
Helper function for apheleia-formatters which allows you to supply
alternating flags based on the current buffers indent configuration. If the
buffer is indented with tabs then returns TAB-FLAG. Otherwise if INDENT-VAR
is set in the buffer return INDENT-FLAG and the value of INDENT-VAR. Use this
to easily configure the indentation level of a formatter. If INDENT-VAR is
unset then intelligently try to determine the indentation variable based on
the current mode.
If apheleia-formatters-respect-indent-level is nil then this
always returns nil to defer to the formatter.