extension that provides lightweight, useful code actions to improve your code
- JS(X)/TS(X)
- remove curly braces, quotes, &
$
from simple unnecessary template strings (e.g.prop={`${STR_CONST}`}
->prop={STR_CONST}
)
- remove curly braces, quotes, &
- JSX/TSX
- remove unnecessary braces from simple expressions (e.g.
prop={`string`}
->prop="string"
) - single line only
- remove unnecessary braces from simple expressions (e.g.
- code action (diagnostics)
N/A for now, but open to tweaking based on most common usages
- write tests
- evaluate making this a TypeScript Language Service Plugin (see example plugin) to leverage ASTs
- try making an "auto" refactor mode for some code actions
- add more refactorings
report any issues on the github issues page, and please provide as much detail as possible!
This project is licensed under the MIT License - see the LICENSE file for details