esquery icon indicating copy to clipboard operation
esquery copied to clipboard

ECMAScript AST query library.

Results 47 esquery issues
Sort by recently updated
recently updated
newest added

Hi all, I remember a library that would automatically build an esquery selector for you based on some sample code with an underscore, e.g. `var x = 1 + _`...

* remove outdated travis-ci ststus badge * add github actions ci status badge * add npm version badge * add npm downloads per month badge cc @michaelficarra

feat: add native Node ESM, with ESM lite export BREAKING CHANGE: Adds `exports` and changes path for /parser.js to /parser.cjs Also: - chore: updates estraverse - chore: updates devDeps. -...

This is a useful utility function outside the library, and folks who are doing selectors (like me) will often want to do something like this without having to build up...

Follow the CSS specification. https://developer.mozilla.org/en-US/docs/Web/CSS/:is

I encountered the problem #111 today, where ESLint crashes due to TypeScript node types that are unrecognized by esquery. But it raises a different question about query strategy: In my...

I can't do something like [attr=[]] and expect attr to be equal to an empty array. Instead, esquery throws a syntax error: ```console Expected " ", "'", ".", "/", "\"",...

I'm using webpack plugin to bundle my application into one single js file. I'm using the library version of eslint which depends on esquery. After a successful build, running the...

esquery v1.4.0 ```js const literal = espree.parse("1").body[0].expression; const selector = esquery.parse(":has(Literal)"); esquery.matches(literal, selector); // true ``` Or. in the [esquery demo](https://estools.github.io/esquery/), enter `1` as code, `:has(Literal)` as selector. It finds...

For this code `[1, '1', true, 'true']`, there is no way to distinguish number/boolean and string (expect use `[raw=]`, which is not safe). I can see two solutions: 1. Treat...