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

Show line number in gutter like Babel #22

Closed mohsen1 closed 6 years ago

mohsen1 commented 8 years ago

Here is how Babel error log looks like:

  511 |     //     $scope.main();
  512 |     // },
> 513 | ]);
      | ^
  514 |
  515 | export default MODULE_NAME;
  516 |

Showing those line numbers are very helpful.

You can use this module for it: https://www.npmjs.com/package/line-numbers

mohsen1 commented 8 years ago

Also few lines before and after the line of error. The number of lines and this gutter should be configurable

mohsen1 commented 7 years ago

Just came across this module that is exactly what you want: https://www.npmjs.com/package/babel-code-frame