Open matejkriz opened 1 year ago
We can consider this https://www.npmjs.com/package/eslint-plugin-compat
We had a discussion with @matejkriz and it is harder to add this plugin than it seems because it requires this code in .eslintrc.js
:
"env": {
"browser": true
}
We can't add this to the root .eslintrc.js
file so it must be handled separately for each package (also check where this packages is used, if it is relevant etc.).
This requires further research and right now not high priority, we can do it sometime later.
If we use some language feature, that is not compatible with all browsers we support according to browserlist config, we should be warned.
Or we can consider adding @babel/preset-env transformation for Suite Web.