Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefanmaric/eslintblame
Parse eslint output into git-blame to unveil the offenders
https://github.com/stefanmaric/eslintblame
eslint fish-shell git git-blame npm shell snazzy standard-js
Last synced: about 2 months ago
JSON representation
Parse eslint output into git-blame to unveil the offenders
- Host: GitHub
- URL: https://github.com/stefanmaric/eslintblame
- Owner: stefanmaric
- License: mit
- Created: 2016-11-21T21:31:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-26T16:18:31.000Z (almost 8 years ago)
- Last Synced: 2024-11-14T12:07:36.040Z (2 months ago)
- Topics: eslint, fish-shell, git, git-blame, npm, shell, snazzy, standard-js
- Language: Shell
- Size: 6.84 KB
- Stars: 14
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
eslintblame
===========[Bash script](./bin/eslintblame), [Fish Shell function](./functions/eslintblame.fish), and [npm package](https://www.npmjs.com/package/eslintblame) to parse eslint output into git-blame to unveil the offenders.
![eslintblame](https://i.imgur.com/0l7QyeA.gif)
## Install
### Using npm
```shell
npm -g install eslintblame
```Or on a project:
```
npm install --save-dev eslintblame
```And use it in your scripts:
```json
{
"scripts": {
"blame": "eslint . | eslintblame"
}
}
```**NOTES**: won't work on windows (unless you're using [Bash on Windows](https://msdn.microsoft.com/en-us/commandline/wsl/about)).
### Using [Fish Shell](https://fishshell.com/)
#### Recomended
Use [fisherman](http://fisherman.sh/):
```shell
fisher install stefanmaric/eslintblame
```#### Manual
```shell
curl -Lo ~/.config/fish/functions/eslintblame.fish --create-dirs git.io/eslintblame
```### Shell script as binary file
Download the [bash script](./bin/eslint), copy in somewhere available in your `$PATH` and give it execution permissions with `chmod`.
## Use
Pipe eslint output to `eslintblame`
```shell
eslint . | eslintblame
```### Using [standard cli](http://standardjs.com/)?
Use [`snazzy`](https://www.npmjs.com/package/snazzy) to format output:
```shell
standard | snazzy | eslintblame
```Or replace the command entirely:
```shell
snazzy | eslintblame
```## Notes
`eslintblame` expects [eslint's default stylish format](http://eslint.org/docs/user-guide/formatters/#stylish).
## Contribute
Just open a Pull Request
## License
MIT ♥ — See [LICENSE](./LICENSE)