Closed
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I have searched for related issues and found none that match my proposal.
- I have searched the current rule list and found no rules that match my proposal.
- I have read the FAQ and my problem is not listed.
Relevant Package
parser
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Description
Up until now, the flat config in ESLint was unable to serialize custom parsers, meaning that caching and --print-config
would not work with typescript-eslint/parser
. I just added a feature that allows parsers to export a meta
key that would provide serialization information, such as:
exports.meta = {
name: "typescript-eslint/parser",
version: "0.0.0"
};
This should be exported on the same object as parse()
and parseForESLint()
.
Fail
// not applicable
Pass
// not applicable
Additional Info
It seems like there may be some fields meant for rules in this template. :)