diff options
| -rw-r--r-- | etc/NEWS | 16 |
1 files changed, 14 insertions, 2 deletions
| @@ -1289,8 +1289,20 @@ wrapped in parenthesis (e.g. in a 'return' statement or a function | |||
| 1289 | call). It would also fail in many intricate cases. Now, indentation | 1289 | call). It would also fail in many intricate cases. Now, indentation |
| 1290 | should work anywhere without parenthesis; many more intricacies are | 1290 | should work anywhere without parenthesis; many more intricacies are |
| 1291 | supported; and, indentation conventions align more closely with those | 1291 | supported; and, indentation conventions align more closely with those |
| 1292 | of the React developer community, otherwise still adhering to SGML | 1292 | of the React developer community (see 'js-jsx-align->-with-<'), |
| 1293 | conventions. | 1293 | otherwise still adhering to SGML conventions. |
| 1294 | |||
| 1295 | --- | ||
| 1296 | *** New defcustom 'js-jsx-align->-with-<' controls '>' indents. | ||
| 1297 | Commonly in JSX code, a '>' on its own line is indented at the same | ||
| 1298 | level as its opening '<'. This is the new default for JSX. This | ||
| 1299 | behavior is slightly different than that used by SGML in Emacs, where | ||
| 1300 | '>' is indented at the same level as attributes, which was also the | ||
| 1301 | old default for JSX. | ||
| 1302 | |||
| 1303 | This is turned on by default. To get back the old default indentation | ||
| 1304 | behavior of aligning '>' with attributes, set 'js-jsx-align->-with-<' | ||
| 1305 | to nil. | ||
| 1294 | 1306 | ||
| 1295 | --- | 1307 | --- |
| 1296 | *** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'. | 1308 | *** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'. |