-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positives for prototype methods #29
Comments
There should be a new optional option The option should be passed into |
If you're working around this by parsing the error messages to decide what to ignore, the correct way (i.e. without also ignoring definite real problems) is to look for |
Solution will probably be:
Need to wait for aggressive mode to be released. |
Recommend that you do each prototype method individually and make sure you have a polyfill in place for each one. See #2 |
Note this about es plugin aggressive mode:
|
Unblocked by #56 |
Readme would need updating, including footnotes. Also features/es-versions.md |
Used aggressive mode for es2022 . |
These prototype methods have quite distinct names, which developers would normally strive to avoid using for their own methods. So I don't think this is important. This issue has been open for 2 years and received no comments or thumbs up, which also suggests it's not important. If you use lodash, add a polyfills entry to silence the false alarms. Feel free to comment if you read this and want this feature. |
Some features are detected with a chance of false positives - https://github.com/robatwilliams/es-compat/blob/master/packages/eslint-plugin-ecmascript-compat/lib/features/es-versions.md
This will happen all the time if you're using e.g. lodash, or a library that tests for feature presence before using it.
There should be a way of ignoring these, and only report problems that we have full confidence in.
The text was updated successfully, but these errors were encountered: