1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Merge from origin/emacs-30

1d2ae31b8b typescript-ts-mode: Improve function body indentation (bu...
421ecbcf6b ; * CONTRIBUTE: Explain the line-width preferences.
This commit is contained in:
Eli Zaretskii 2025-05-31 08:29:50 -04:00
commit b3a8633dba
3 changed files with 30 additions and 3 deletions

View file

@ -182,3 +182,28 @@ interface Foo {
bar?: boolean;
}
=-=-=
Code:
(lambda ()
(setq tsx-ts-mode-indent-offset 2)
(tsx-ts-mode)
(setq indent-tabs-mode nil)
(indent-region (line-beginning-position 7) (point-max)))
Name: Function body with params misindented (bug#78121)
=-=
const f1 = (a1: string,
a2: number) => {
const f2 = (a1: string,
a2: number) => {
const f3 = (a1: string,
a2: number) =>
{
return;
}
return;
}
return;
}
=-=-=