EmmanuelDemey / eslint-plugin-angular

ESLint plugin for AngularJS applications
https://www.npmjs.com/package/eslint-plugin-angular
618 stars 131 forks source link

Better deprecation warning for editor integration #546

Open kaste opened 6 years ago

kaste commented 6 years ago

Hi!

Here

https://github.com/Gillespie59/eslint-plugin-angular/blob/cd58df172c1561994ce980bc9d9042f7a4b11c15/rules/service-name.js#L72

you just console.warn which lands on stderr. For SublimeLinter we parse stderr for common errors. It would be way easier to parse this message if you reword this. E.g. DeprecationWarning: .....

kaste commented 6 years ago

Currently we hard code your warning https://github.com/SublimeLinter/SublimeLinter-eslint/blob/7e1bab7b682314996afd4790cfb888d827301884/linter.py#L46-L47