Skip to content

Commit 88d5186

Browse files
committed
Use knip instead of unimported to remove more of the code
also update dependencies
1 parent 8c214ec commit 88d5186

File tree

4 files changed

+815
-1900
lines changed

4 files changed

+815
-1900
lines changed

.unimportedrc.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The column and row indices are 1-based. If a 0 index is present, it means that a
7474
"modifiedEndLineNumber": 4
7575
}
7676
```
77-
means that the 4th line in the modified text was added after line 3 in the original text.
77+
means that the 4th line in the modified text was added after line 3 in the original text.
7878

7979
The opposite:
8080
```json
@@ -187,7 +187,7 @@ as opposed to
187187

188188
### 2.0.0
189189
* New DiffComputer option: maxComputationTime. Specify maximum time that the diff computer should run. Specify 0 for no limit. For character changes (`charChanges`) there is a new hard coded maximum limit of 5 seconds.
190-
* New return type from diffComputer:
190+
* New return type from diffComputer:
191191
```
192192
interface IDiffComputerResult {
193193
quitEarly: boolean;
@@ -199,12 +199,12 @@ as opposed to
199199
Initial release
200200

201201
## Contribute
202-
Since we do not want this package to differ from the original implementation in VS Code, no changes that differs from the [source repository](https://github.com/Microsoft/vscode) will be merged. Any changes that only affect this npm package (like changes to this README) are welcome via pull requests.
202+
Since we do not want this package to differ from the original implementation in VS Code, no changes that differs from the [source repository](https://github.com/Microsoft/vscode) will be merged. Any changes that only affect this npm package (like changes to this README) are welcome via pull requests.
203203

204204
Steps for updating diff algorithm:
205205
* Copy all necessary files from VS Code repo.
206206
* Verify with `npm run build` that all code is self-contained.
207-
* Verify with `npm run unimported` that there are no unused files.
207+
* Verify with `npm run knip` that there are no unused files or exports.
208208
* Run `npm test` to run all the tests.
209209
* Update [src/example.ts] on any API changes.
210210
* Run `npm run example` and update this README with example usage code and output.

0 commit comments

Comments
 (0)