Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewbranch/ts-codefix-api-example
Exercise showing how to get codefixes for a TypeScript project
https://github.com/andrewbranch/ts-codefix-api-example
Last synced: 5 days ago
JSON representation
Exercise showing how to get codefixes for a TypeScript project
- Host: GitHub
- URL: https://github.com/andrewbranch/ts-codefix-api-example
- Owner: andrewbranch
- Created: 2021-06-15T18:58:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-29T22:06:00.000Z (over 3 years ago)
- Last Synced: 2024-11-10T16:53:23.324Z (2 months ago)
- Language: TypeScript
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ts-codefix-api-example
Exercise showing how to get codefixes for a TypeScript project, setting up with [`@ts-morph/bootstrap`](https://www.npmjs.com/package/@ts-morph/bootstrap).
## Instructions
Clone the repository and install dependencies:
```
npm install
```then run the tests:
```
npm test
```They’ll all fail at first. Edit [`src/index.ts`](./src/index.ts) to make them pass. [`test-project`](./test-project) contains the example TypeScript project that you’ll be getting codefixes for—don’t edit that.
## Solutions
Solutions can be found in the [solutions branch](https://github.com/andrewbranch/ts-codefix-api-example/blob/solutions/src/index.ts).