Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zachhardesty7/vscode-simple-javascript-refactorings
automated refactorings and code actions for JS, TS, JSX & TSX via VSCode extension
https://github.com/zachhardesty7/vscode-simple-javascript-refactorings
javascript jsx linting react reactjs refactoring tsx typescript visual-studio-code vscode vscode-extension vscode-plugin
Last synced: about 2 months ago
JSON representation
automated refactorings and code actions for JS, TS, JSX & TSX via VSCode extension
- Host: GitHub
- URL: https://github.com/zachhardesty7/vscode-simple-javascript-refactorings
- Owner: zachhardesty7
- License: mit
- Created: 2021-08-15T23:53:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T01:18:21.000Z (2 months ago)
- Last Synced: 2024-12-16T01:28:15.388Z (2 months ago)
- Topics: javascript, jsx, linting, react, reactjs, refactoring, tsx, typescript, visual-studio-code, vscode, vscode-extension, vscode-plugin
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=zachhardesty.vscode-simple-javascript-refactorings
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://marketplace.visualstudio.com/items?itemName=zachhardesty.vscode-simple-javascript-refactorings)
[](https://marketplace.visualstudio.com/items?itemName=zachhardesty.vscode-simple-javascript-refactorings)
[](https://marketplace.visualstudio.com/items?itemName=zachhardesty.vscode-simple-javascript-refactorings)
[](https://github.com/zachhardesty7/vscode-simple-javascript-refactorings/blob/master/LICENSE)# simple javascript refactorings
extension that provides lightweight, useful code actions to improve your code
## Features
- JS(X)/TS(X)
- remove curly braces, quotes, & `$` from simple unnecessary template strings (e.g. `` prop={`${STR_CONST}`} `` -> `prop={STR_CONST}`)
- JSX/TSX
- remove unnecessary braces from simple expressions (e.g. `` prop={`string`} `` ->
`prop="string"`)
- single line only## Usage
- code action (diagnostics)
## Extension Settings
N/A for now, but open to tweaking based on most common usages
## TODO
- [ ] write tests
- [ ] evaluate making this a TypeScript Language Service Plugin ([see example plugin](https://github.com/tusaeff/vscode-typescript-destructure-plugin)) to leverage ASTs
- [ ] try making an "auto" refactor mode for some code actions
- [ ] add more refactorings## Reporting issues
report any issues on the github
[issues page](https://github.com/zachhardesty7/vscode-simple-javascript-refactorings/issues), and please
provide as much detail as possible!## License
This project is licensed under the MIT License - see the [LICENSE file](LICENSE) for details