Skip to content
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

Support "and" on multiple lines #757

Open
steverep opened this issue May 2, 2023 · 1 comment
Open

Support "and" on multiple lines #757

steverep opened this issue May 2, 2023 · 1 comment

Comments

@steverep
Copy link
Contributor

steverep commented May 2, 2023

As far as I can tell, there is no way to use an intersection of queries, i.e. "and", across more than one line in .browserslistrc or in separate indices of a package.json array. The only exception is when using "not" since the "and" is implied.

When trying to construct a configuration using multiple intersections, this makes for a confusing and ugly read. I would really like to see a more intuitive syntax supported across multiple lines, such as:

query[{, |or}|and][\n] query2...

Meaning, keep the same syntax for backwards compatibility except allow the same set of combiners at the end of a line which will apply to the next query. Currently this throws an error as invalid.

@ai
Copy link
Member

ai commented May 2, 2023

Sure, nice idea. Please send PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants