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-02-27T23:30:16.000Z (10 months ago)
- Last Synced: 2024-02-28T00:32:48.002Z (10 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: 1.62 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![version](https://img.shields.io/vscode-marketplace/v/zachhardesty.vscode-simple-javascript-refactorings.svg?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=zachhardesty.vscode-simple-javascript-refactorings)
[![last updated](https://img.shields.io/visual-studio-marketplace/last-updated/zachhardesty.jsdoc-comment-toggler?color=0fCC10&style=flat-square)](https://marketplace.visualstudio.com/items?itemName=zachhardesty.vscode-simple-javascript-refactorings)
[![downloads](https://img.shields.io/vscode-marketplace/d/zachhardesty.vscode-simple-javascript-refactorings.svg?color=0fCC10&style=flat-square)](https://marketplace.visualstudio.com/items?itemName=zachhardesty.vscode-simple-javascript-refactorings)
[![license](https://img.shields.io/github/license/zachhardesty7/vscode-simple-javascript-refactorings.svg?color=0fCC10&style=flat-square)](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