-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Allow multiple browserlist environments #392
Comments
I think we do support multiple environments but I'll have to check. Are there any issues you're running into because of this? |
Hi, It took me a while to figure out how to specify a different browserslist environment for each config, and ended up with something along the lines of:
This seems to work fine. So it might be helpful to document the fact that the plugin can take a string browserslist config as an option to the eslint rule. |
I believe this line creates the options for browserslist and then is passed to That helper gets called from the rule here. @amilajack Would you be open to me creating a new PR adding something like |
Thanks for outlining that. A pr would be great! |
Stumbled on this as well. We have two sets, but I don't get reports for "browserslist": {
"production": [
"last 10 Chrome versions",
"last 20 ChromeAndroid versions",
"last 5 Safari versions",
"last 3 iOS versions",
"last 10 Firefox versions",
"last 10 FirefoxAndroid versions",
"last 5 Edge versions",
"Firefox ESR",
"not dead",
"> 10% in DE"
],
"mobile": [
"iOS >= 13",
"Android >= 9",
"Chrome >= 66"
]
}, Would be great if it would respect both or if I could define which I prefer during development. |
Hey, not sure if feature is present or not but I don't see anything in documentation about multiple browserlist environments
Would it be possible to add support for this / is it present somehow ?
Thanks.
The text was updated successfully, but these errors were encountered: