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

Add support for parser object to parserOptions.parser #165

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

ota-meshi
Copy link
Member

@ota-meshi ota-meshi commented Aug 9, 2022

This PR changes parserOptions.parser to allow you to directly specify a parser object.

As background, ESLint core is planning a new flat configuration.
https://eslint.org/blog/2022/08/new-config-system-part-1/

The new configuration allows you to specify parser objects directly.
https://eslint.org/blog/2022/08/new-config-system-part-2/#custom-parsers-and-parser-options-are-mostly-the-same

For this reason, there is a possibility that parsers that do not assume module name specification as before will appear.
The changes in this PR are intended to follow the new parser specification method.

However, you cannot use the custom parser provided by the plugin by name. Because the plugin configuration is not accessible from the parser options.
https://eslint.org/blog/2022/08/new-config-system-part-2/#custom-parsers-in-plugins

@ota-meshi ota-meshi merged commit 9daf014 into master Sep 9, 2022
@ota-meshi ota-meshi deleted the parser-object branch June 1, 2024 01:09
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

Successfully merging this pull request may close these issues.

1 participant