https://github.com/urish/console-log-fix
Quick demo of Search-and-Replace with TSQuery
https://github.com/urish/console-log-fix
ast example tsquery typescript
Last synced: 10 months ago
JSON representation
Quick demo of Search-and-Replace with TSQuery
- Host: GitHub
- URL: https://github.com/urish/console-log-fix
- Owner: urish
- Created: 2018-06-22T11:47:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-05T21:42:35.000Z (over 7 years ago)
- Last Synced: 2025-01-11T19:32:48.600Z (12 months ago)
- Topics: ast, example, tsquery, typescript
- Language: TypeScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# console-log-fix
Code refactoring with TSQuery demo.
Looks inside class methods and replaces all `console.log()` calls with `this.awesomeLoggingService.logInfo`.
[Slides from the TypeScript AST talk](https://goo.gl/XovXRV)
## Usage
```shell
yarn
yarn start
```
## Runing tests
```shell
yarn test
```
## License
Copyright (C) 2018, Uri Shaked. Licensed under the terms of the MIT license.