Skip to content

Add defineCustomBlocksVisitor to parserServices #91

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

Merged
merged 5 commits into from
Dec 14, 2020

Conversation

ota-meshi
Copy link
Member

This PR adds defineCustomBlocksVisitor() to parserServices.

You can easily create rules to parse and validate custom blocks using defineCustomBlocksVisitor() API.

I plan to use this API to modify the rules of eslint-plugin-jsonc and eslint-plugin-yml to apply them to SFC custom blocks.
Also, eslint-plugin-vue-i18n can be refactored using this API.

@ota-meshi
Copy link
Member Author

I have checked that this works with another eslint plugins.
ota-meshi/eslint-plugin-jsonc#26
ota-meshi/eslint-plugin-yml#6

@ota-meshi ota-meshi merged commit 45f8900 into master Dec 14, 2020
@ota-meshi ota-meshi deleted the define-custom-block-visitor branch December 14, 2020 05:03
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