Standardize browserslist and remove lint exceptions #1010
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR sets all packages to a common browserslist standard. It uses
defaults
which is recommended by the browserslist project: https://github.com/browserslist/browserslist#best-practicesOn thing this PR does which is against the browserslist best practices, is remove Opera Mini.
Because of how Opera Mini works most of the javascript is executed on Opera's servers and just the html is sent to the users device. This means we have an extremely restrictive environment and one I don't think we'll be able to record with rrweb anyway. So for this reason I think we should remove it from browserslist.
This pr also removes any
eslint disable
exceptions in favor of feature checking.Unfortuneatly we can't use early returns as that isn't supported yet: amilajack/eslint-plugin-compat#523