https://github.com/mrseanryan/tslint-log
Custom tslint rule that logs out all visited source code files. Use for diagnosing tslint configuration.
https://github.com/mrseanryan/tslint-log
log logging tslint
Last synced: 8 months ago
JSON representation
Custom tslint rule that logs out all visited source code files. Use for diagnosing tslint configuration.
- Host: GitHub
- URL: https://github.com/mrseanryan/tslint-log
- Owner: mrseanryan
- License: mit
- Created: 2019-01-24T12:18:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T04:34:09.000Z (almost 5 years ago)
- Last Synced: 2025-01-28T02:45:14.775Z (over 1 year ago)
- Topics: log, logging, tslint
- Language: TypeScript
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# :page_with_curl: tslint-log readme
A custom tslint rule that logs out all visited source code files.
Use to diagnose tslint configuration, to see that expected files are being linted.
## status - stable
tslint-log is stable and tested on Linux and Windows.
[](https://packagephobia.now.sh/result?p=tslint-log)
[](https://david-dm.org/mrseanryan/tslint-log)
[](https://david-dm.org/mrseanryan/tslint-log?type=dev)
[](https://www.npmjs.org/package/tslint-log)
[](https://npmjs.org/package/tslint-log)
[](https://github.com/prettier/prettier)
[](https://opensource.org/licenses/MIT)
[](https://paypal.me/mrseanryan)
## dependencies
No special dependencies - just `TypeScript` and of course `tslint`.
## features
- a custom tslint rule that logs out the path to each visited TypeScript file
## usage
### 1 Install via npm (or yarn) into your TypeScript project
```
npm install tslint-log
```
### 2 Configure tslint to pick up the custom rule
Edit your `tslint.json` to have an entry `"rulesDirectory"` that points to tslint-log.
Normally this would be like:
```json
{
"rulesDirectory": "node_modules/tslint-log/dist/lib",
"rules": {
"tslLog": true
// more tslint rules here...
}
}
```
## sites
| site | URL |
| -------------------- | ------------------------------------------------- |
| source code (github) | https://github.com/mrseanryan/tslint-log |
| npm | https://www.npmjs.com/package/tslint-log |
## developing code in _this_ repository
see the [contributing readme](CONTRIBUTING.md).
## authors
Original work by Sean Ryan - mr.sean.ryan(at gmail.com)
## licence = MIT
This project is licensed under the MIT License - see the [LICENSE](https://github.com/mrseanryan/tslint-log/blob/master/LICENSE) file for details