Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).