robatwilliams / es-compat

*** DEPRECATED*** Check JavaScript code compatibility with target runtime environments
MIT License
65 stars 13 forks source link

Include reason within error message for feature being forbidden #3

Closed robatwilliams closed 2 years ago

robatwilliams commented 4 years ago

Instead of

"ES2018 rest/spread properties are forbidden."

say

"ES2018 rest/spread properties are not supported in Chrome 10, Firefox 11"

But... is it really useful to know that? The outcome regardless is that you can't use the feature. And you can always look it up on MDN yourself. So it might not be worth complicating the plugin with this.

robatwilliams commented 2 years ago

Not enough value to justify complexity/effort - we delegate the message to eslint plugin es