1.5.1 (2024-01-10)
CLI
Bug fixes
- The diagnostics
files/missingHandler
are now shown only when the option --verbose
is passed. Contributed by
@ematipico - The diagnostics for protected files are now shown only when the option
--verbose
is passed. Contributed by
@ematipico - Fix #1465, by taking in consideration the workspace folder when
matching a pattern. Contributed by @ematipico
- Fix #1465, by correctly process globs that contain file names.
Contributed by @ematipico
Formatter
Bug fixes
- Fix #1170. Fix placement of comments inside default switch clause. Now
all line comments that have a preceding node will keep their position. Contributed by @kalleep
Linter
Bug fixes
Fix #1335. noUselessFragments
now ignores code action on component props when the fragment is empty. Contributed by @vasucp1207
Fix #1483. useConsistentArrayType
now correctly handles its option. Contributed by @Conaclos
Fix #1502. useArrowFunction
now correctly handle functions that return a (comma) sequence expression. Contributed by @Conaclos
Previously the rule made an erroneous suggestion:
- f(function() { return 0, 1; }, "");
+ f(() => 0, 1, "")
Now, the rule wraps any comma sequence between parentheses:
- f(function() { return 0, 1; }, "");
+ f(() => (0, 1), "")
Fix #1473: useHookAtTopLevel
now correctly handles React components and hooks that are nested inside other functions. Contributed by @arendjr