You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I want to add eslint-plugin-compat to my project, and the trouble is that plugin ignores babel built-in polyfills. I have tried to debug it, and it seems that the reason is here:
This code ignores node if node.kind is es, but there is no es property in caniuse nodes. Because of this, duplicated rules affects lint process anyway (Promise for example).
For now I fixed it in .eslintrc.js like this, but it seems to be a bad practice:
Hi! I want to add
eslint-plugin-compat
to my project, and the trouble is that plugin ignores babel built-in polyfills. I have tried to debug it, and it seems that the reason is here:compat.ts:165
This code ignores node if
node.kind
ises
, but there is noes
property in caniuse nodes. Because of this, duplicated rules affects lint process anyway (Promise for example).For now I fixed it in
.eslintrc.js
like this, but it seems to be a bad practice:You can see the demo here: https://github.com/kshshe/eslint-plugin-compat-demo
The text was updated successfully, but these errors were encountered: