Make ast-utils (or parts of it) extensible for new operators? #10441
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
core
Relates to ESLint's core APIs and features
needs design
Important details about this change need to be discussed
Inspired by #10399.
I think we need to start considering other ways to make ESLint (especially ast-utils) extensible, without taking on a large maintenance burden.
To solve #10399 in particular, we would need to make ast-utils (and code-path-analysis, but I'd like to focus on ast-utils in this issue) more extensible somehow.
We could potentially do so at a few different levels:
Personally, I could see some value in implementing some sort of Operators interface, which would contain precedence, arity, postfix/prefix, short-circuit, and other information, and let that be extensible by custom parsers and injectable into ast-utils and code-path-analysis. But I don't know if that's the best approach.
The text was updated successfully, but these errors were encountered: