royriojas / eslint-friendly-formatter

A simple formatter/reporter for ESLint that's friendly with Sublime Text and iterm2 "click to open file" functionality
MIT License
198 stars 28 forks source link

Publish on npm as eslint-formatter-friendly ? #34

Closed InvictusMB closed 6 years ago

InvictusMB commented 6 years ago

Eslint recently became smarter in resolving plugin names so if this package is published with their naming convention (e.g. prefixed with eslint-formatter-) it would make the CLI usage less verbose.

Before: "eslint": "eslint --format 'node_modules/eslint-friendly-formatter' file1 file2 dir1/ dir2/"

After: "eslint": "eslint --format friendly file1 file2 dir1/ dir2/"

It is especially helpful in lerna managed repositories as the script there is even more ugly for nested packages: "eslint": "eslint --format '../../node_modules/eslint-friendly-formatter' file1 file2 dir1/ dir2/"

royriojas commented 6 years ago

@InvictusMB interesting, yeah sure. It makes a lot of sense. Will publish the package if name is available.

JounQin commented 6 years ago

Why not change the name of this repository to eslint-formatter-friendly but create a new one? If you change the name, the former links will be redirected to new one correctly, what means there is no need to create another same repository.

royriojas commented 6 years ago

Yeah I tried it, but run into some issues. Not sure why as you said links would have been redirected but didn't work at first try.

Then I renamed again and created a new one.

Will see if possible to unify both repos.