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

Reason for absolute path? #7

Closed mathieumg closed 9 years ago

mathieumg commented 9 years ago

Is there any reason the path is made absolute in https://github.com/royriojas/eslint-friendly-formatter/blob/a8c3c710008a9aa0993836f8b4a4419c0ec39de9/index.js#L51? I would like to keep the path as outputted initially by ESLint and making it absolute also breaks the Guake quick open feature.

Thanks!

royriojas commented 9 years ago

iterm2 does not play well with relative ones. Maybe an environment variable to modify this? I'm not aware if the formatters can receive parameters from eslint. Can they?

If not I guess the env variable solution might help.

pull requests welcome.

royriojas commented 9 years ago

Fixed and released v.1.1.0